[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-9748) Openshift service: JSonSanitizer should be able to handle valid json objects with escaped quotes
Andre Dietisheim (JIRA)
jira-events at lists.jboss.org
Tue Sep 20 06:56:26 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andre Dietisheim updated JBIDE-9748:
------------------------------------
Description:
The JSonSanitzer currently is in place to 'sanitize' invalid json that is being responded by the openshift service. It corrects erroneously quotes json objects with escaped quotes in it:
{code}
...
"aJsonObjectHere": "{
\"aNestedProperty\" : \"withAStringValue\"
}"
...
{code}
*This sanitizer should be able to handle valid and invalid json since openshift could fix their bug after we release our plugins. *
The current implementation would most likely sanitize string values erroneously, if they have escaped quotes in the value:
{code}
"aStringValueWithA\"Quote"
{code}
The above value would get transformed into an invalid value if the json object would be reported in a valid way (aka not quoted and the quotes in it not escaped):
{code}
...
"aJsonObjectHere": {
"aNestedProperty" : "withAStringValueWithA\"Quote"
}
{code}
The above would become:
{code}
...
"aJsonObjectHere": {
"aNestedProperty" : "withAStringValueWithA"Quote"
}
{code}
was:
The JSonSanitzer currently is in place to 'sanitize' invalid json that is being responded by the openshift service. It corrects erroneously quotes json objects with escaped quotes in it:
{code}
...
"aJsonObjectHere": "{
\"aNestedProperty\" : \"withAStringValue\"
}"
...
{code}
*This sanitizer should be able to handle valid and invalid json since openshift could fix their bug after we release our plugins. *
The current implementation would most likely sanitize string values erroneously, if they have escaped quotes in the value:
{code}
"aStringValueWithA\"Quote"
{code}
The above value would get transformed into an invalid value if the json object would be reported in a valid way (aka not quoted and the quotes in it not escaped):
{code}
...
"aJsonObjectHere": {
"aNestedProperty\" : "withAStringValueWithA\"Quote"
}
{code}
The above would become:
{code}
...
"aJsonObjectHere": {
"aNestedProperty\" : "withAStringValueWithA\"Quote"
}
{code}
> Openshift service: JSonSanitizer should be able to handle valid json objects with escaped quotes
> ------------------------------------------------------------------------------------------------
>
> Key: JBIDE-9748
> URL: https://issues.jboss.org/browse/JBIDE-9748
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: JBossAS/Servers
> Affects Versions: 3.3.0.M4
> Reporter: Andre Dietisheim
> Assignee: Andre Dietisheim
> Fix For: 3.3.0.M4
>
>
> The JSonSanitzer currently is in place to 'sanitize' invalid json that is being responded by the openshift service. It corrects erroneously quotes json objects with escaped quotes in it:
> {code}
> ...
> "aJsonObjectHere": "{
> \"aNestedProperty\" : \"withAStringValue\"
> }"
> ...
> {code}
> *This sanitizer should be able to handle valid and invalid json since openshift could fix their bug after we release our plugins. *
> The current implementation would most likely sanitize string values erroneously, if they have escaped quotes in the value:
> {code}
> "aStringValueWithA\"Quote"
> {code}
> The above value would get transformed into an invalid value if the json object would be reported in a valid way (aka not quoted and the quotes in it not escaped):
> {code}
> ...
> "aJsonObjectHere": {
> "aNestedProperty" : "withAStringValueWithA\"Quote"
> }
> {code}
> The above would become:
> {code}
> ...
> "aJsonObjectHere": {
> "aNestedProperty" : "withAStringValueWithA"Quote"
> }
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list