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 43209] - HTTP Headers are corrupted with basic authentication
Date Mon, 08 Oct 2007 17:17:28 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=43209>.
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=43209





------- Additional Comments From john@sourcelabs.com  2007-10-08 10:17 -------
This appears to be a problem with the Modify Headers extension:
https://www.mozdev.org/bugs/show_bug.cgi?id=17504

I've replicated this with tc6.0.x and ethereal appears to confirm the issue as
client-side:
No.     Time        Source                Destination           Protocol Info
      8 18.350781   ::1                   ::1                   HTTP     GET
/testHTTPHeadersCorruptedWithBasicAuthentication-BZ-43209-JIRA-14147/test HTTP/1.1

Frame 8 (567 bytes on wire, 567 bytes captured)
Null/Loopback
Internet Protocol Version 6
Transmission Control Protocol, Src Port: 52540 (52540), Dst Port: http-alt
(8080), Seq: 1, Ack: 1, Len: 491
Hypertext Transfer Protocol
    GET
/testHTTPHeadersCorruptedWithBasicAuthentication-BZ-43209-JIRA-14147/test
HTTP/1.1\r\n
    Host: localhost:8080\r\n
    User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.7)
Gecko/20070914 Firefox/2.0.0.7\r\n
    Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n
    Accept-Language: en-us,en;q=0.5\r\n
    Accept-Encoding: gzip,deflate\r\n
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
    Keep-Alive: 300\r\n
    Connection: keep-alive\r\n
    xyz: john\r\n
    \r\n

No.     Time        Source                Destination           Protocol Info
     10 18.352724   ::1                   ::1                   HTTP    
HTTP/1.1 401 Unauthorized (text/html)

Frame 10 (1340 bytes on wire, 1340 bytes captured)
Null/Loopback
Internet Protocol Version 6
Transmission Control Protocol, Src Port: http-alt (8080), Dst Port: 52540
(52540), Seq: 1, Ack: 492, Len: 1264
Hypertext Transfer Protocol
    HTTP/1.1 401 Unauthorized\r\n
    Server: Apache-Coyote/1.1\r\n
    Pragma: No-cache\r\n
    Cache-Control: no-cache\r\n
    Expires: Wed, 31 Dec 1969 16:00:00 PST\r\n
    WWW-Authenticate: Basic realm="Example Basic Authentication"\r\n
    Content-Type: text/html;charset=utf-8\r\n
    Content-Length: 966\r\n
    Date: Mon, 08 Oct 2007 17:02:28 GMT\r\n
    \r\n
Line-based text data: text/html

No.     Time        Source                Destination           Protocol Info
     12 23.013460   ::1                   ::1                   HTTP     GET
/testHTTPHeadersCorruptedWithBasicAuthentication-BZ-43209-JIRA-14147/test HTTP/1.1

Frame 12 (608 bytes on wire, 608 bytes captured)
Null/Loopback
Internet Protocol Version 6
Transmission Control Protocol, Src Port: 52540 (52540), Dst Port: http-alt
(8080), Seq: 492, Ack: 1265, Len: 532
Hypertext Transfer Protocol
    GET
/testHTTPHeadersCorruptedWithBasicAuthentication-BZ-43209-JIRA-14147/test
HTTP/1.1\r\n
    Host: localhost:8080\r\n
    User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.7)
Gecko/20070914 Firefox/2.0.0.7\r\n
    Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n
    Accept-Language: en-us,en;q=0.5\r\n
    Accept-Encoding: gzip,deflate\r\n
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n
    Keep-Alive: 300\r\n
    Connection: keep-alive\r\n
    xyz: john, john\r\n
    Authorization: Basic dXNlcjpwYXNz\r\n
        Credentials: user:pass
    \r\n

No.     Time        Source                Destination           Protocol Info
     14 23.014178   ::1                   ::1                   HTTP    
HTTP/1.1 200 OK

Frame 14 (278 bytes on wire, 278 bytes captured)
Null/Loopback
Internet Protocol Version 6
Transmission Control Protocol, Src Port: http-alt (8080), Dst Port: 52540
(52540), Seq: 1265, Ack: 1024, Len: 202
Hypertext Transfer Protocol
    HTTP/1.1 200 OK\r\n
    Server: Apache-Coyote/1.1\r\n
    Pragma: No-cache\r\n
    Cache-Control: no-cache\r\n
    Expires: Wed, 31 Dec 1969 16:00:00 PST\r\n
    Content-Length: 16\r\n
    Date: Mon, 08 Oct 2007 17:02:33 GMT\r\n
    \r\n
    Data (16 bytes)

0000  78 79 7a 3d 6a 6f 68 6e 2c 20 6a 6f 68 6e 0d 0a   xyz=john, john..

-- 
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message