You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2019/04/16 11:14:38 UTC
[Bug 63354] New: forced compression in HTTP2 truncate files
https://bz.apache.org/bugzilla/show_bug.cgi?id=63354
Bug ID: 63354
Summary: forced compression in HTTP2 truncate files
Product: Tomcat 9
Version: 9.0.19
Hardware: All
OS: Linux
Status: NEW
Severity: major
Priority: P2
Component: Connectors
Assignee: dev@tomcat.apache.org
Reporter: aag@enforex.es
Target Milestone: -----
Created attachment 36528
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36528&action=edit
Example of truncated file by tomcat when compression="force" is in
UpgradeProtocol
if I configure the conector following this guide:
https://tomcat.apache.org/tomcat-9.0-doc/config/http2.html
and I use compression="force" in UpgradeProtocol , for example:
---
<Connector port="8443"
protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="150" SSLEnabled="true" >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol"
compression="force" />
<SSLHostConfig>
<Certificate
certificateKeystoreFile="/home/tomcat/conf/keyfile.keystore"
certificateKeystorePassword="xxxxxx"
type="RSA" />
</SSLHostConfig>
</Connector>
---
If I use a html file that contents small text, It trunkates the text.
for example, if the jsp is (without coutes):
"B999000aaabbbccc111222333444555666777888999000abcd efghij kl mnopqr stuvwxyza
bc deE"
It returns:
"B999000aaabbbccc111222333444555666777888999000abcd efghij kl mnopqr stuvwxyza
bc "
removing the ending text "deE".
I detected sevaral file with same error, but this is the simples example that I
found.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 63354] forced compression in HTTP2 truncate files
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63354
--- Comment #1 from Alejandro Anadon <aa...@enforex.es> ---
Hi,
I have been tying to detect the source of the problem; and it seem that it is
in the Firefox , because in Crome it works perfect.
My firefox is:
firefox Quantum 66.0.3 (64-bits)
My OS is:
Windows 7 Profesional
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 63354] forced compression in HTTP2 truncate files
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63354
--- Comment #2 from Alejandro Anadon <aa...@enforex.es> ---
Created attachment 36533
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36533&action=edit
test file rhat in some browser does not work with gzip and http2
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 63354] forced compression in HTTP2 truncate files
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63354
Alejandro Anadon <aa...@enforex.es> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 63354] forced compression in HTTP2 truncate files
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63354
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Mark Thomas <ma...@apache.org> ---
All the indications are that this is a browser bug.
I was testing with Firefox.
I have captured the network traffic via Wireshark (using SSLKEYLOGFILE) and
confirmed that the response body sent to Firefox is correct. As are the HTTP/2
frames used to send the response.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 63354] forced compression in HTTP2 truncate files
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63354
Alejandro Anadon <aa...@enforex.es> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |---
Status|RESOLVED |REOPENED
--- Comment #3 from Alejandro Anadon <aa...@enforex.es> ---
Now I do not know if it is a bug or not.
In some browser it works, in other do not.
these are my results:
1) It work's in:
-opera (all versions that I tested)
-crome (all versions that I tested)
-Internet Explorer 11.0.9600 with windows 7
2) It doesn't work with:
-firefox
-Internet Explorer 11.437.17 with Windows 10
-Microsoft edge windows 10
3) It closes the conexion without any result (so, it doesn't work) in:
-any version of Safari that I tested.
It seems that the gzip compresion, with http2 and small files (<90 bytes more
or less) it is not well implemented in all browsers giving randoms resluts.
If e.g. https://www.testdomain.com/test.html contains only (added the file in
bug report https://bz.apache.org/bugzilla/attachment.cgi?id=36533 ):
www.mydomain.com<LF>
it returns only (when it fails):
www.my
The query headers are:
Host: www.testdomain.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:66.0) Gecko/20100101
Firefox/66.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en,en-US;q=0.5
Accept-Encoding: gzip, deflate, br
DNT: 1
Connection: keep-alive
Cookie: JSESSIONID=3067C83FD0F2B5F506A95B1A14014C44
Upgrade-Insecure-Requests: 1
Pragma: no-cache
Cache-Control: no-cache
The response headers are:
HTTP/2.0 200 OK
content-type: text/html;charset=ISO-8859-1
content-length: 17
date: Wed, 17 Apr 2019 09:33:20 GMT
vary: accept-encoding
content-encoding: gzip
X-Firefox-Spdy: h2
And the result in windows is only :
www.my
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org