-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.113
-
Fix Version/s: 4.0.3
-
Component/s: Synchronizer
We currently have this kind of code to guess the file name from a Note:
ext = ".txt" mime_type = props.get("note:mime_type") if mime_type == "text/html": ext = ".html" elif mime_type == "text/xml": ext = ".xml" elif mime_type == "text/x-web-markdown": ext = ".md" name = props["dc:title"] if not name.endswith(ext): name += ext
It has worked for years but it is not the good behavior. We should not try to guess and alter the filename. See the linked SupCom for a real life bad example.
Fix
The fix is to not alter the file name. Just use props["dc:title"].
- is caused by
-
NXDRIVE-256 Drive Edit of a file with accents fails
- Resolved