joplin
joplin copied to clipboard
Plugin API DirectoryPath manual entered path with space is stored as JSON
When a path with space manual entered in SettingItemSubType.DirectoryPath
the path is stored as JSON field in the database.
The quotes form the JSON object is returnd on the field request and causes the path to be invalid because it contains quotation marks.
When a value is enterd without a space the field type is TEXT.
Environment
Joplin 2.9.1 (dev, win32)
Client ID: a1021b9020f14fc8bb841cd357208e9d Sync Version: 3 Profile Version: 41 Keychain Supported: Yes
Revision: c3179a3
Steps to reproduce
- Manual enter a path with space, For example
c:\temp\test backup
- The path is displayed correctly
- In the database is
"C:\temp\test backup"
stored and the field type is JSON
Describe what you expected to happen
I believe this is also fixed in 6a4eb3309396f1a2a1a979b1a07a82ad9f9c2c57