You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2014/01/23 11:19:53 UTC

[Bug 56055] New: Route is not extracted properly when a session cookie does not contain a dot

https://issues.apache.org/bugzilla/show_bug.cgi?id=56055

            Bug ID: 56055
           Summary: Route is not extracted properly when a session cookie
                    does not contain a dot
           Product: Apache httpd-2
           Version: 2.2-HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy_balancer
          Assignee: bugs@httpd.apache.org
          Reporter: jaromir.hamala@gmail.com

Hi,

according to documentation: "The balancer extracts the value of the cookie and
looks for a member worker with route equal to that value."

The documentation also says: "Some back-ends use a slightly different form of
stickyness cookie, for instance Apache Tomcat. Tomcat adds the name of the
Tomcat instance to the end of its session id cookie, separated with a dot (.)
from the session id. Thus if the Apache web server finds a dot in the value of
the stickyness cookie, it only uses the part behind the dot to search for the
route."

Unfortunately it seems me http 2.2 does not consider the value from the cookie
at all unless it contains the dot. It's probably caused by this line:
https://github.com/apache/httpd/blob/2.2.x/modules/proxy/mod_proxy_balancer.c#L287

If *route does not contain a dot then the *route will be set to NULL, therefore
the subsequent condition is false.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 56055] Route is not extracted properly when a session cookie does not contain a dot

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56055

--- Comment #1 from emdepl <em...@gmail.com> ---
I could confirm this for 2.4.9 

Support for changing separator has been added in Bug 53893 (stickysessionsep
parameter in mod_proxy). But still, when separator is missing the cookie is
omitted.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org