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 2005/07/27 17:17:46 UTC

DO NOT REPLY [Bug 35899] New: - Compression, noCompressionUserAgents and no user-agent header causes crash

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35899>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35899

           Summary: Compression, noCompressionUserAgents and no user-agent
                    header causes crash
           Product: Tomcat 5
           Version: 5.0.30
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connector:HTTP
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: chris@aidworld.org


When compression is enabled like so: 
 
    <Connector  port="8130" 
                maxThreads="150" minSpareThreads="25" maxSpareThreads="75" 
                enableLookups="false" redirectPort="8443" acceptCount="100" 
                debug="0" connectionTimeout="20000" 
                disableUploadTimeout="true" 
                compression="on" 
                compressionMinSize="2048" 
                noCompressionUserAgents="gozilla, traviata" 
                compressableMimeType="text/html,text/xml" /> 
 
and a request with no User-Agent is sent, Tomcat dies with a 
java.lang.NullPointerException at 
org.apache.coyote.http11.Http11Processor.isCompressable(Http11Processor.java:1379) 
 
        if (noCompressionUserAgents != null) { 
            MessageBytes userAgentValueMB = 
                request.getMimeHeaders().getValue("user-agent"); 
            String userAgentValue = userAgentValueMB.toString();

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org