tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35899] New: - Compression, noCompressionUserAgents and no user-agent header causes crash
Date Wed, 27 Jul 2005 15:17:46 GMT
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


Mime
View raw message