Bug 683096

Summary: mod_headers: "RequestHeader merge Cookie .... early" does not merge with existing cookies delimited by ";"
Product: [JBoss] JBoss Enterprise Web Server 1 Reporter: Raul Mahiques <rmahique>
Component: Red Hat Enterprise Linux 5Assignee: Permaine Cheung <pcheung>
Status: CLOSED EOL QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 1.0.0CC: cherguet, csutherl, prc
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-04 15:00:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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