[jbosstools-issues] [JBoss JIRA] (JBIDE-9689) Openshift service: response to list cartridges is invalid Json

Andre Dietisheim (Commented) (JIRA) jira-events at lists.jboss.org
Fri Oct 28 06:13:45 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638250#comment-12638250 ] 

Andre Dietisheim commented on JBIDE-9689:
-----------------------------------------

I currently just work around this by "sanitzing" the json before I parse it (see https://github.com/adietish/openshift-java-client/blob/master/org.jboss.tools.openshift.express.client/src/main/java/org/jboss/tools/openshift/express/internal/client/response/unmarshalling/JsonSanitizer.java)
                
> Openshift service: response to list cartridges is invalid Json
> --------------------------------------------------------------
>
>                 Key: JBIDE-9689
>                 URL: https://issues.jboss.org/browse/JBIDE-9689
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 3.3.0.M3
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>             Fix For: LATER
>
>
> when requesting available cartridges the openshift service currently answers with invalid json:
> {code}
> ...
> "data" : "{" \"carts:\"
> ...
> {code}
> The json object that holds the "carts" property is erroneously quoted and all its quotes are escaped.
> The current code in our openshift service client does not handle this bogus answer. I alredy reported this bug to jimjag in #libra. This issue is about tracking the progress/correction on the server side.

--
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