You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Geoffroy Schneck (JIRA)" <ji...@apache.org> on 2011/03/21 14:53:05 UTC

[jira] [Created] (FELIX-2889) Invalid JSON content in http response after starting or stopping a bundle.

Invalid JSON content in http response after starting or stopping a bundle.
--------------------------------------------------------------------------

                 Key: FELIX-2889
                 URL: https://issues.apache.org/jira/browse/FELIX-2889
             Project: Felix
          Issue Type: Bug
          Components: Web Console
    Affects Versions: webconsole-3.1.8
            Reporter: Geoffroy Schneck
            Priority: Trivial


When successfully starting of stopping a bundle via the Webconsole (POST request is sent with action=start/stop), the http response contains a bit of json ( {fragment:false,stateRaw:4} )  which is not fully respecting the JSON grammar : double-quotes missing on the attributes name.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (FELIX-2889) Invalid JSON content in http response after starting or stopping a bundle.

Posted by "Julian Sedding (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102773#comment-13102773 ] 

Julian Sedding commented on FELIX-2889:
---------------------------------------

> The quotes are mandatory only if the key is not valid identifier

Where do you get this information from? According to the grammar on json.org the grammar, the key is defined to be a "string", and "string" is in turn defined to be surrounded by double quotes. Unconditionally.

This is different (i.e. More strict) from the syntax allowed when writing javascript objects.

> Invalid JSON content in http response after starting or stopping a bundle.
> --------------------------------------------------------------------------
>
>                 Key: FELIX-2889
>                 URL: https://issues.apache.org/jira/browse/FELIX-2889
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.1.8
>            Reporter: Geoffroy Schneck
>            Assignee: Valentin Valchev
>            Priority: Trivial
>             Fix For: webconsole-3.1.10
>
>
> When successfully starting of stopping a bundle via the Webconsole (POST request is sent with action=start/stop), the http response contains a bit of json ( {fragment:false,stateRaw:4} )  which is not fully respecting the JSON grammar : double-quotes missing on the attributes name.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (FELIX-2889) Invalid JSON content in http response after starting or stopping a bundle.

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reopened FELIX-2889:
--------------------------------------

    
> Invalid JSON content in http response after starting or stopping a bundle.
> --------------------------------------------------------------------------
>
>                 Key: FELIX-2889
>                 URL: https://issues.apache.org/jira/browse/FELIX-2889
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.1.8
>            Reporter: Geoffroy Schneck
>            Assignee: Valentin Valchev
>            Priority: Trivial
>             Fix For: webconsole-4.0.0
>
>
> When successfully starting of stopping a bundle via the Webconsole (POST request is sent with action=start/stop), the http response contains a bit of json ( {fragment:false,stateRaw:4} )  which is not fully respecting the JSON grammar : double-quotes missing on the attributes name.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (FELIX-2889) Invalid JSON content in http response after starting or stopping a bundle.

Posted by "Valentin Valchev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valentin Valchev updated FELIX-2889:
------------------------------------

    Fix Version/s: webconsole-3.1.10
         Assignee: Valentin Valchev

> Invalid JSON content in http response after starting or stopping a bundle.
> --------------------------------------------------------------------------
>
>                 Key: FELIX-2889
>                 URL: https://issues.apache.org/jira/browse/FELIX-2889
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.1.8
>            Reporter: Geoffroy Schneck
>            Assignee: Valentin Valchev
>            Priority: Trivial
>             Fix For: webconsole-3.1.10
>
>
> When successfully starting of stopping a bundle via the Webconsole (POST request is sent with action=start/stop), the http response contains a bit of json ( {fragment:false,stateRaw:4} )  which is not fully respecting the JSON grammar : double-quotes missing on the attributes name.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (FELIX-2889) Invalid JSON content in http response after starting or stopping a bundle.

Posted by "Valentin Valchev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valentin Valchev resolved FELIX-2889.
-------------------------------------

    Resolution: Fixed

Added the quotes, svn rev.1170053

Thanks again for pointing out my mistake

> Invalid JSON content in http response after starting or stopping a bundle.
> --------------------------------------------------------------------------
>
>                 Key: FELIX-2889
>                 URL: https://issues.apache.org/jira/browse/FELIX-2889
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.1.8
>            Reporter: Geoffroy Schneck
>            Assignee: Valentin Valchev
>            Priority: Trivial
>             Fix For: webconsole-3.1.10
>
>
> When successfully starting of stopping a bundle via the Webconsole (POST request is sent with action=start/stop), the http response contains a bit of json ( {fragment:false,stateRaw:4} )  which is not fully respecting the JSON grammar : double-quotes missing on the attributes name.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (FELIX-2889) Invalid JSON content in http response after starting or stopping a bundle.

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed FELIX-2889.
------------------------------------

    Resolution: Fixed
    
> Invalid JSON content in http response after starting or stopping a bundle.
> --------------------------------------------------------------------------
>
>                 Key: FELIX-2889
>                 URL: https://issues.apache.org/jira/browse/FELIX-2889
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.1.8
>            Reporter: Geoffroy Schneck
>            Assignee: Valentin Valchev
>            Priority: Trivial
>             Fix For: webconsole-4.0.0
>
>
> When successfully starting of stopping a bundle via the Webconsole (POST request is sent with action=start/stop), the http response contains a bit of json ( {fragment:false,stateRaw:4} )  which is not fully respecting the JSON grammar : double-quotes missing on the attributes name.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (FELIX-2889) Invalid JSON content in http response after starting or stopping a bundle.

Posted by "Valentin Valchev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valentin Valchev resolved FELIX-2889.
-------------------------------------

    Resolution: Fixed

Fixed in rev.1169752

About that JSON .. it is completely valid. The quotes are mandatory only if the key is not valid identifier, which is not our case.

The actual problem is that response omitted the content type header, and the browser wasn't able to recognize that the returned content is JSON.

> Invalid JSON content in http response after starting or stopping a bundle.
> --------------------------------------------------------------------------
>
>                 Key: FELIX-2889
>                 URL: https://issues.apache.org/jira/browse/FELIX-2889
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.1.8
>            Reporter: Geoffroy Schneck
>            Assignee: Valentin Valchev
>            Priority: Trivial
>             Fix For: webconsole-3.1.10
>
>
> When successfully starting of stopping a bundle via the Webconsole (POST request is sent with action=start/stop), the http response contains a bit of json ( {fragment:false,stateRaw:4} )  which is not fully respecting the JSON grammar : double-quotes missing on the attributes name.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (FELIX-2889) Invalid JSON content in http response after starting or stopping a bundle.

Posted by "Valentin Valchev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valentin Valchev reopened FELIX-2889:
-------------------------------------


It is my mistake. Obviously I didn't read the spec carefully.

> Invalid JSON content in http response after starting or stopping a bundle.
> --------------------------------------------------------------------------
>
>                 Key: FELIX-2889
>                 URL: https://issues.apache.org/jira/browse/FELIX-2889
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.1.8
>            Reporter: Geoffroy Schneck
>            Assignee: Valentin Valchev
>            Priority: Trivial
>             Fix For: webconsole-3.1.10
>
>
> When successfully starting of stopping a bundle via the Webconsole (POST request is sent with action=start/stop), the http response contains a bit of json ( {fragment:false,stateRaw:4} )  which is not fully respecting the JSON grammar : double-quotes missing on the attributes name.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (FELIX-2889) Invalid JSON content in http response after starting or stopping a bundle.

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed FELIX-2889.
------------------------------------


Close after release
                
> Invalid JSON content in http response after starting or stopping a bundle.
> --------------------------------------------------------------------------
>
>                 Key: FELIX-2889
>                 URL: https://issues.apache.org/jira/browse/FELIX-2889
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.1.8
>            Reporter: Geoffroy Schneck
>            Assignee: Valentin Valchev
>            Priority: Trivial
>             Fix For: webconsole-4.0.0
>
>
> When successfully starting of stopping a bundle via the Webconsole (POST request is sent with action=start/stop), the http response contains a bit of json ( {fragment:false,stateRaw:4} )  which is not fully respecting the JSON grammar : double-quotes missing on the attributes name.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (FELIX-2889) Invalid JSON content in http response after starting or stopping a bundle.

Posted by "Geoffroy Schneck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503093#comment-13503093 ] 

Geoffroy Schneck commented on FELIX-2889:
-----------------------------------------

Thank you for your message.

I'm currently out of office and have no access to email. I'll be back in the office on Monday, Dec. 3rd 2012.
In my absence, if your request is urgent please feel free to contact Gilles Metz at gmetz@adobe.com  or Jean-Claude Jung at jjung@adobe.com.

Regards,
Geoffroy Schneck


                
> Invalid JSON content in http response after starting or stopping a bundle.
> --------------------------------------------------------------------------
>
>                 Key: FELIX-2889
>                 URL: https://issues.apache.org/jira/browse/FELIX-2889
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.1.8
>            Reporter: Geoffroy Schneck
>            Assignee: Valentin Valchev
>            Priority: Trivial
>             Fix For: webconsole-4.0.0
>
>
> When successfully starting of stopping a bundle via the Webconsole (POST request is sent with action=start/stop), the http response contains a bit of json ( {fragment:false,stateRaw:4} )  which is not fully respecting the JSON grammar : double-quotes missing on the attributes name.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (FELIX-2889) Invalid JSON content in http response after starting or stopping a bundle.

Posted by "Julian Sedding (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13103611#comment-13103611 ] 

Julian Sedding commented on FELIX-2889:
---------------------------------------

No worries, thanks for the fix!

> Invalid JSON content in http response after starting or stopping a bundle.
> --------------------------------------------------------------------------
>
>                 Key: FELIX-2889
>                 URL: https://issues.apache.org/jira/browse/FELIX-2889
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.1.8
>            Reporter: Geoffroy Schneck
>            Assignee: Valentin Valchev
>            Priority: Trivial
>             Fix For: webconsole-3.1.10
>
>
> When successfully starting of stopping a bundle via the Webconsole (POST request is sent with action=start/stop), the http response contains a bit of json ( {fragment:false,stateRaw:4} )  which is not fully respecting the JSON grammar : double-quotes missing on the attributes name.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira