| Summary: | Support JSON preference values | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Server | Assignee: | John Arthorne <john.arthorne> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | 1.0 | ||
| Target Milestone: | 1.0 M2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Mark Macdonald
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=f2331692db28d23ef5f734b0586b77b01c20bd68 Also had to fix a bunch of other problems before this would work: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=05c90f8cf1ba911eb024d0fd07b9d90b5d122009 Oops, wrong bug. Reopening Pretend comment #1 never happened (In reply to comment #0) The problem can be seen in these 2 requests: PUT http://myserver:8080/prefs/user/cm/configurations/jslint.config {"properties":{"options":"foo:true, bar:false"}} but... GET http://myserver:8080/prefs/user/cm/configurations/jslint.config { "properties" : "{\"options\":\"foo:true, bar:false\"}" } This happens because PreferencesServlet forces all keys to have a string value when writing the pref node: > node.put(key, newNode.getString(key)); The prefs API should give back the same data that we put in. Moving to server... The server side backing store only accepts string values. I think we never expected this possibility from the client, but we can add support for this. This should work now. Implementation and regression test in single commit: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=c53cec15eb3127369b26adcdb9b3fe6b0879ac3d |