Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
JackGruber opened this issue Jul 26, 2022 · 1 comment
Closed
Labels
bug It's a bug desktop All desktop platforms high High priority issues plugins Anything related to Joplin's plugin system

Comments

@JackGruber
Copy link
Contributor

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 JackGruber added the bug It's a bug label Jul 26, 2022
@laurent22 laurent22 added desktop All desktop platforms high High priority issues plugins Anything related to Joplin's plugin system labels Jul 30, 2022
@laurent22
Copy link
Owner

I believe this is also fixed in 6a4eb33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug desktop All desktop platforms high High priority issues plugins Anything related to Joplin's plugin system
Projects
None yet
Development

No branches or pull requests

2 participants