You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Paudi Moriarty (JIRA)" <ji...@apache.org> on 2009/01/26 09:55:59 UTC
[jira] Created: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
-------------------------------------------------------------------------------------------
Key: TAP5-469
URL: https://issues.apache.org/jira/browse/TAP5-469
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.1.0.0
Reporter: Paudi Moriarty
GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667487#action_12667487 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
IE 7 on Windows works correctly.
I really think this is just an IE 6 issue.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667483#action_12667483 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
This doesn't reproduce under FireFox 3, Mac OS X.
Use IE 6 on Mac OS X I can see a problem, which I assume to be THE problem.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Andy Blower (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696993#action_12696993 ]
Andy Blower commented on TAP5-469:
----------------------------------
I have just encountered this issue in IE6, FF3 & Chrome2 on windows XP. The workaround fixes the issue as expected, but there definitely seems to be a problem here out of the box.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12697171#action_12697171 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
Ok, I'll set the default to no longer compress application/json. I have feelers out in the Prototype mailing lists and elsewhere to figure out what's going on.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
> Assignee: Howard M. Lewis Ship
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Peter Stavrinides (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12697002#action_12697002 ]
Peter Stavrinides commented on TAP5-469:
----------------------------------------
I get it as well, tested with Firefox 3, and IE7
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Paudi Moriarty (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667622#action_12667622 ]
Paudi Moriarty commented on TAP5-469:
-------------------------------------
Interesting, this was observed in FF2 and FF3 on Linux and IE6 on Windows. I haven't seen it work with any browser which lends credence to your suggestion of server interference.
I'm using the maven-jetty-plugin to run jetty-6.1.11 with no custom configuration. Tried jetty-6.1.14with the same result.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Paudi Moriarty (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667656#action_12667656 ]
Paudi Moriarty commented on TAP5-469:
-------------------------------------
I've noticed that the response is always chunked, only 10 bytes (with a correct gzip header) arriving in the first chunk when viewed in wireshark. The next chunk seems to have a zero length but wireshark reports a bad TCP checksum.
Only gzipped application/json responses are chunked.
I've replicated this with jetty-7.0.0.pre5 and using jetty-6.1.11 standalone (without maven). What configuration did you test?
I'm now using a TextStreamResponse to bypass compression while setting Content-Type to application/json for Prototype as I don't really have time to delve too deeply into this.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667486#action_12667486 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
FireFox 2 on Windows works correctly.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667486#action_12667486 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
FireFox 2 on Windows works correctly.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAP5-469:
-----------------------------------------
Assignee: Howard M. Lewis Ship
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
> Assignee: Howard M. Lewis Ship
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667488#action_12667488 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
Correction: IE 6 on Mac OS X does work. Not sure why I got a negative earlier; may have been junk stored in the local cache.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Paudi Moriarty (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667622#action_12667622 ]
Paudi Moriarty commented on TAP5-469:
-------------------------------------
Interesting, this was observed in FF2 and FF3 on Linux and IE6 on Windows. I haven't seen it work with any browser which lends credence to your suggestion of server interference.
I'm using the maven-jetty-plugin to run jetty-6.1.11 with no custom configuration. Tried jetty-6.1.14with the same result.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679034#action_12679034 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
I'm still not convinced this is necessary, but a workaround is:
public static void contributeResponseCompressionAnalyzer(Configuration<String> configuration)
{
configuration.add("application/json");
}
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Paudi Moriarty (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12697421#action_12697421 ]
Paudi Moriarty commented on TAP5-469:
-------------------------------------
I agree. I spent as much time as I could on it and had to move on. Let us know if you find out more.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
> Assignee: Howard M. Lewis Ship
> Fix For: 5.1.0.3
>
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667483#action_12667483 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
This doesn't reproduce under FireFox 3, Mac OS X.
Use IE 6 on Mac OS X I can see a problem, which I assume to be THE problem.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12697171#action_12697171 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
Ok, I'll set the default to no longer compress application/json. I have feelers out in the Prototype mailing lists and elsewhere to figure out what's going on.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
> Assignee: Howard M. Lewis Ship
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAP5-469:
-----------------------------------------
Assignee: Howard M. Lewis Ship
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
> Assignee: Howard M. Lewis Ship
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667497#action_12667497 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
Unable to get it to reproduce on Mac OS X at all (FF3 and IE6), with the compression verified using FireBug and the Java debugger.
See notes here: http://www.ruby-forum.com/topic/149617
I suspect there's a misconfigured server between your Tapestry application and your client that is responsible for the garbling.
I'll leave this open a little bit longer, but right now it is headed for "could not reproduce".
Workaround: contribute "application/json" to the ResponseCompressionAnalyzer; this will identify the content as not compressable, which is what you want.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Paudi Moriarty (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667656#action_12667656 ]
Paudi Moriarty commented on TAP5-469:
-------------------------------------
I've noticed that the response is always chunked, only 10 bytes (with a correct gzip header) arriving in the first chunk when viewed in wireshark. The next chunk seems to have a zero length but wireshark reports a bad TCP checksum.
Only gzipped application/json responses are chunked.
I've replicated this with jetty-7.0.0.pre5 and using jetty-6.1.11 standalone (without maven). What configuration did you test?
I'm now using a TextStreamResponse to bypass compression while setting Content-Type to application/json for Prototype as I don't really have time to delve too deeply into this.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667488#action_12667488 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
Correction: IE 6 on Mac OS X does work. Not sure why I got a negative earlier; may have been junk stored in the local cache.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667484#action_12667484 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
I suspect the problem is the content type; application/json is technically correct but is not on the list in the Prototype documentation.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-469.
-------------------------------------
Resolution: Fixed
Fix Version/s: 5.1.0.3
I'd rather understand the problem better, but if this solves the symptoms, it will do for now.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
> Assignee: Howard M. Lewis Ship
> Fix For: 5.1.0.3
>
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Paudi Moriarty (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12697421#action_12697421 ]
Paudi Moriarty commented on TAP5-469:
-------------------------------------
I agree. I spent as much time as I could on it and had to move on. Let us know if you find out more.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
> Assignee: Howard M. Lewis Ship
> Fix For: 5.1.0.3
>
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Andy Blower (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696993#action_12696993 ]
Andy Blower commented on TAP5-469:
----------------------------------
I have just encountered this issue in IE6, FF3 & Chrome2 on windows XP. The workaround fixes the issue as expected, but there definitely seems to be a problem here out of the box.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667497#action_12667497 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
Unable to get it to reproduce on Mac OS X at all (FF3 and IE6), with the compression verified using FireBug and the Java debugger.
See notes here: http://www.ruby-forum.com/topic/149617
I suspect there's a misconfigured server between your Tapestry application and your client that is responsible for the garbling.
I'll leave this open a little bit longer, but right now it is headed for "could not reproduce".
Workaround: contribute "application/json" to the ResponseCompressionAnalyzer; this will identify the content as not compressable, which is what you want.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Peter Stavrinides (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12697002#action_12697002 ]
Peter Stavrinides commented on TAP5-469:
----------------------------------------
I get it as well, tested with Firefox 3, and IE7
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667484#action_12667484 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
I suspect the problem is the content type; application/json is technically correct but is not on the list in the Prototype documentation.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-469.
-------------------------------------
Resolution: Fixed
Fix Version/s: 5.1.0.3
I'd rather understand the problem better, but if this solves the symptoms, it will do for now.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
> Assignee: Howard M. Lewis Ship
> Fix For: 5.1.0.3
>
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667492#action_12667492 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
Have to retest; forgot that my test app disabled GZIP compression entirely!
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12679034#action_12679034 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
I'm still not convinced this is necessary, but a workaround is:
public static void contributeResponseCompressionAnalyzer(Configuration<String> configuration)
{
configuration.add("application/json");
}
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667492#action_12667492 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
Have to retest; forgot that my test app disabled GZIP compression entirely!
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-469) ResponseCompressionAnalyzer:
application/json responses should be uncompressable by default
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667487#action_12667487 ]
Howard M. Lewis Ship commented on TAP5-469:
-------------------------------------------
IE 7 on Windows works correctly.
I really think this is just an IE 6 issue.
> ResponseCompressionAnalyzer: application/json responses should be uncompressable by default
> -------------------------------------------------------------------------------------------
>
> Key: TAP5-469
> URL: https://issues.apache.org/jira/browse/TAP5-469
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.1.0.0
> Reporter: Paudi Moriarty
>
> GZip compressed responses with Content-Type: application/json are not handled correctly by at least Firefox or IE and should be configured as uncompressable by default
> When the response is received in prototype's Ajax.Request response.responseText is "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.