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 2018/07/13 23:44:46 UTC

[Bug 62538] New: Connector attribute "compressableMimeType" is ignored

https://bz.apache.org/bugzilla/show_bug.cgi?id=62538

            Bug ID: 62538
           Summary: Connector attribute "compressableMimeType" is ignored
           Product: Tomcat 9
           Version: 9.0.10
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: benjamenweber@gmail.com
  Target Milestone: -----

Created attachment 36028
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36028&action=edit
Modified server.xml

Hello.

It appears that the "compressableMimeType" attribute in "server.xml" is being
ignored.

Versions:
Tomcat 9.0.10
Java 1.8.0_171(Doesn't seem to matter what version of 8)

Repro:
Using the attached configuration files, and Java servlet file, startup a tomcat
9 instance.
Navigate to localhost:8080/deflate/whatever

Expected:
"I should show up in requests as deflated text!" deflated, with headers:
"Content-Encoding","deflate" and "Content-Type","text/plain"


Actual:
The deflated string gzipped with headers: "Content-Encoding","gzip" and
"Content-Type","text/plain"

Even though "text/plain" isn't one of the configured "compressableMimeTypes" it
still got gzipped.

Even you need any more details or if I was unclear please let me know, thanks.

-- 
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 62538] Connector attribute "compressableMimeType" is ignored

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62538

--- Comment #2 from benjamenweber@gmail.com ---
Created attachment 36030
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36030&action=edit
Simple servlet that returns a deflated string

-- 
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 62538] Connector attribute "compressableMimeType" is ignored

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62538

--- Comment #1 from benjamenweber@gmail.com ---
Created attachment 36029
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36029&action=edit
Simple web.xml

-- 
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 62538] Connector attribute "compressableMimeType" is ignored

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62538

benjamenweber@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from benjamenweber@gmail.com ---
Nevermind, I didn't realize the attribute got renamed to
"compressibleMimeType".

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