[jbosstools-issues] [JBoss JIRA] (JBIDE-15430) Chrome regression because of invalid content-lenght returned with special characters

Xavier Coulon (JIRA) jira-events at lists.jboss.org
Thu Sep 12 03:13:03 EDT 2013


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

Xavier Coulon commented on JBIDE-15430:
---------------------------------------

[~vpakan],

You can try with the following steps:
- have an HTML file that contains some Chinese characters (eg: https://raw.github.com/xcoulon/jbosstools-livereload/master/tests/org.jboss.tools.livereload.test/src/chinese.html) in your project
- this file should be encoded in UTF-8 in the Eclipse workspace.

Open this file via LiveReload using Chrome. Without the fix, Chrome displays an empty page (and errors appears in the Chrome DevTools). With the fix, it displays the Chinese characters, as expected.

Please, let me know if those steps to reproduce work for you. 
                
> Chrome regression because of invalid content-lenght returned with special characters 
> -------------------------------------------------------------------------------------
>
>                 Key: JBIDE-15430
>                 URL: https://issues.jboss.org/browse/JBIDE-15430
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: livereload
>    Affects Versions: 4.1.0.Final
>            Reporter: Xavier Coulon
>            Assignee: Max Rydahl Andersen
>             Fix For: 4.1.1.Alpha1
>
>
> When the HTML entity in the HTTP response contains special characters and the livereload script is injected in that entity, the computed content-lenght header is invalid, which causes Chrome to not render the returned HTML page *at all*.

--
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 jbosstools-issues mailing list