Bug 683096 - mod_headers: "RequestHeader merge Cookie .... early" does not merge with existing cookies delimited by ";"
Summary: mod_headers: "RequestHeader merge Cookie .... early" does not merge with exis...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss Enterprise Web Server 1
Classification: JBoss
Component: Red Hat Enterprise Linux 5
Version: 1.0.0
Hardware: Unspecified
OS: Linux
low
medium
Target Milestone: ---
: ---
Assignee: Permaine Cheung
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-08 14:58 UTC by Raul Mahiques
Modified: 2017-08-04 15:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-04 15:00:26 UTC
Type: ---


Attachments (Terms of Use)

Description Raul Mahiques 2011-03-08 14:58:50 UTC
Description of problem:
Using mod_headers when i specify an entry like this:

RequestHeader merge Cookie .... early 

it does not merge the cookies if the incoming packet cookies are delimited by a semicolons, while if i don't use 'early' processing, an entry like this:

RequestHeader merge Cookie ... env=!somevariable

It does merge the cookies.



Version-Release number of selected component (if applicable):
httpd-2.2.14-1.2.6.jdk6.ep5.el5


How reproducible:
1. Setup an apache server and include the following outside a directory/location statement (according to http://httpd.apache.org/docs/current/mod/mod_headers.html )

RequestHeader merge Cookie cookiename2=valueX early
RequestHeader merge Cookie cookiename1=valueY early

2. Send a request with the cookies already defined ( cookiename2=valueX and cookiename1=valueY )

  
Actual results:
HTTP_COOKIE: cookiename1=valueY; cookiename2=valueX; cookiename1=valueY, cookiename2=valueX

Expected results:
HTTP_COOKIE: cookiename1=valueY, cookiename2=valueX

Additional info:

Comment 1 Raul Mahiques 2011-03-08 15:05:30 UTC
Semicolon and comma are both recognized delimiters http://www.ietf.org/rfc/rfc2965.txt


Note You need to log in before you can comment on or make changes to this bug.