String settings with special characters become quoted
Bug #1552082 reported by
Brian Douglass
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
Medium
|
Alejandro J. Cura | ||
unity-js-scopes |
Invalid
|
Undecided
|
Unassigned | ||
unity-api (Ubuntu) |
Fix Released
|
Undecided
|
Marcus Tomlinson | ||
unity-scopes-shell (Ubuntu) |
Fix Released
|
Undecided
|
Marcus Tomlinson |
Bug Description
I'm unsure if this is a bug in the JS scopes or in scopes themselves, but a string setting that has special characters entered into it (like `=`) end up being surrounded by quotes when pulled in the code. For example I have a string setting that I entered `abc=abc`, the result in the code is `"abc=abc"`. I find this behavior to be very odd and unexpected.
Related branches
lp:~marcustomlinson/unity-api/lp-1552082
- Unity8 CI Bot: Approve (continuous-integration)
- Michi Henning (community): Approve
- Paweł Stołowski (community): Needs Fixing
-
Diff: 958 lines (+604/-65)7 files modifiedCMakeLists.txt (+1/-1)
debian/changelog (+6/-0)
include/unity/util/IniParser.h (+62/-18)
src/unity/util/IniParser.cpp (+247/-16)
test/data/sample.ini (+2/-0)
test/gtest/unity/util/IniParser/CMakeLists.txt (+2/-0)
test/gtest/unity/util/IniParser/IniParser_test.cpp (+284/-30)
lp:~marcustomlinson/unity-scopes-shell/lp-1552082
- Paweł Stołowski (community): Approve
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
-
Diff: 287 lines (+178/-13)3 files modifieddebian/control.in (+1/-1)
src/Unity/settingsmodel.cpp (+171/-10)
src/Unity/settingsmodel.h (+6/-2)
Changed in unity-api (Ubuntu): | |
assignee: | nobody → Marcus Tomlinson (marcustomlinson) |
status: | New → In Progress |
Changed in unity-js-scopes: | |
status: | In Progress → Invalid |
Changed in unity-js-scopes: | |
status: | Invalid → In Progress |
no longer affects: | unity-api (Ubuntu) |
Changed in unity-scopes-shell (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Marcus Tomlinson (marcustomlinson) |
Changed in unity-js-scopes: | |
status: | In Progress → Invalid |
Changed in unity-api (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Marcus Tomlinson (marcustomlinson) |
Changed in unity-js-scopes: | |
assignee: | Marcus Tomlinson (marcustomlinson) → nobody |
Changed in canonical-devices-system-image: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Alejandro J. Cura (alecu) |
milestone: | none → 11 |
Changed in unity-scopes-shell (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in unity-api (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Released |
Changed in canonical-devices-system-image: | |
status: | Fix Released → Fix Committed |
Changed in unity-api (Ubuntu): | |
status: | Fix Released → Fix Committed |
status: | Fix Committed → Fix Released |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hmm, I can't seem to reproduce this. I have the following setting:
[location]
type = string
defaultValue = abc=abc
_displayName = Default Location
Then in the code I'm doing:
console. log("location : " + scopes. self.settings[ "location" ].get_string( ));
And I see the output:
location : abc=abc
No quotes.
Could you please describe your use case.