Bug report #371 has just been filed. You can view the report at the following URL: <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/371> REPORT #371 Details. Project: Tomcat Category: Bug Report SubCategory: New Bug Report Class: swbug State: received Priority: medium Severity: serious Confidence: public Environment: Release: 3.2 beta 6 JVM Release: IBMJava2-13 1.1 Operating System: RH Linux OS Release: 6.2 Platform: i686 Synopsis: Can't set multiple cookies in servlet response headers through Ajp13 Description: If a servlet sets more than one cookie using HttpServletResponse.addCookie(), one one of the cookies is actually returned in the response. This occurs because the HTTP header fields are returned by a mechanism which can return only one instance of each HTTP header field. Specifically: Ajp13ConnectorResponse.endHeaders(..) calls MimeHeaders.names() which returns a MimeHeadersEnumerator. This Enumerator builds its list of values from a HashTable, from the comments "to guarantee uniqueness". The Ajp13..endHeaders() call then loops over this (unique) list of field names, passing each as the argument to MimeHeaders.getHeader(headerName), which returns one value (from observation, the first one set).Title: BugRat Report # 371
BugRat Report # 371
Project: Tomcat | Release: 3.2 beta 6 |
Category: Bug Report | SubCategory: New Bug Report |
Class: swbug | State: received |
Priority: medium | Severity: serious |
Confidence:
public
|
Submitter:
_Anonymous ( [EMAIL PROTECTED] )
Date Submitted:
Nov 10 2000, 10:47:30 CST
Responsible:
Z_Tomcat Alias ( [EMAIL PROTECTED] )
- Synopsis:
- Can't set multiple cookies in servlet response headers through Ajp13
- Environment: (jvm, os, osrel, platform)
- IBMJava2-13 1.1, RH Linux, 6.2, i686
- Additional Environment Description:
- standard
- Report Description:
- If a servlet sets more than one cookie using HttpServletResponse.addCookie(), one one of the cookies is actually returned in the response. This occurs because the HTTP header fields are returned by a mechanism which can return only one instance of each HTTP header field. Specifically: Ajp13ConnectorResponse.endHeaders(..) calls MimeHeaders.names() which returns a MimeHeadersEnumerator. This Enumerator builds its list of values from a HashTable, from the comments "to guarantee uniqueness". The Ajp13..endHeaders() call then loops over this (unique) list of field names, passing each as the argument to MimeHeaders.getHeader(headerName), which returns one value (from observation, the first one set).
- How To Reproduce:
- null
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]