joplin icon indicating copy to clipboard operation
joplin copied to clipboard

Plugin API DirectoryPath manual entered path with space is stored as JSON

Open JackGruber opened this issue 1 year ago • 0 comments

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. DB_Browser_for_SQLCipher_TLEnSSxYcK

Environment

Joplin 2.9.1 (dev, win32)

Client ID: a1021b9020f14fc8bb841cd357208e9d Sync Version: 3 Profile Version: 41 Keychain Supported: Yes

Revision: c3179a3

Steps to reproduce

  1. Manual enter a path with space, For example c:\temp\test backup
  2. The path is displayed correctly
  3. In the database is "C:\temp\test backup" stored and the field type is JSON

Describe what you expected to happen

JackGruber avatar Jul 26 '22 20:07 JackGruber

I believe this is also fixed in 6a4eb3309396f1a2a1a979b1a07a82ad9f9c2c57

laurent22 avatar Aug 29 '22 14:08 laurent22