[richfaces-issues] [JBoss JIRA] (RF-13208) Push: error "not well-formed" appears in browser console in Firefox

Lukáš Fryč (JIRA) issues at jboss.org
Wed Jan 8 09:52:33 EST 2014


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

Lukáš Fryč edited comment on RF-13208 at 1/8/14 9:52 AM:
---------------------------------------------------------

Since the response headers don't specify any particular type, we should be okay with transporting basically anything,

but it seems that Firefox expects XML (that's probably because the response is padded with HTML comments (<!-- ... -->) by Atmosphere.

I'm okay with expanding {{"<message>"}} format to e.g {{"<update>message</update>"}}.

e.g.

{quote}
<msg>"topic":"jmsSampleAddress2","data":"day: 23, month: 9, time: 11:01:12.829","number":0</msg>
{quote}

Later, we could switch to e.g.:
{quote}
<msg topic="jmsSampleAddress2" number="0">day: 23, month: 9, time: 11:01:12.829</msg>
{quote}
                
      was (Author: lfryc):
    Since the response headers don't specify any particular type, we should be okay with transporting basically anything,

but it seems that Firefox expects XML (that's probably because the response is padded with HTML comments (<!-- ... -->) by Atmosphere.

I'm okay with expanding {{"<message>"}} format to e.g {{"<update>message</update>"}}.
                  
> Push: error "not well-formed" appears in browser console in Firefox
> -------------------------------------------------------------------
>
>                 Key: RF-13208
>                 URL: https://issues.jboss.org/browse/RF-13208
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-a4j-core
>    Affects Versions: 4.3.4
>         Environment: RichFaces 4.3.4.Final
> Metamer 4.3.4.20130919-Final
> Mojarra 2.1.19
> EAP 6.1.1
> OpenJDK Runtime Environment 1.7.0_40-mockbuild_2013_09_19_20_10-b00 @ Linux
> Firefox 24.0 @ Linux x86_64
>            Reporter: Pavol Pitonak
>            Assignee: Lukáš Fryč
>             Fix For: 4.3.5, 5.0.0.Alpha3
>
>         Attachments: firefox_console.png
>
>   Original Estimate: 1 hour
>  Remaining Estimate: 1 hour
>
> # deploy Metamer and open http://127.0.0.1:8080/metamer/faces/components/a4jPush/twoPush.xhtml
> # open browser console
> # click "Push 2!" button
> result:
> * browser console contains "not well-formed" JavaScript error (see screenshot)
> * when you click on the error, you can see something like this:
> {quote}
> <"topic":"jmsSampleAddress2","data":"day: 23, month: 9, time: 11:01:12.829","number":0>
> {quote}
> * component seems to work fine despite this error
> * I couldn't see this error in Chrome 29

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



More information about the richfaces-issues mailing list