You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/11/11 05:47:31 UTC

BugRat Report #371 has been filed.

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