[jbosstools-issues] [JBoss JIRA] (JBIDE-9748) Openshift service: JSonSanitizer should be able to handle valid json objects with escaped quotes

Andre Dietisheim (Updated) (JIRA) jira-events at lists.jboss.org
Mon Oct 24 06:09:45 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-9748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andre Dietisheim updated JBIDE-9748:
------------------------------------

    Component/s: openshift
                     (was: JBossAS/Servers)

    
> 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: openshift
>    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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list