[mod_cluster-issues] [JBoss JIRA] (MODCLUSTER-443) mod_cluster doesn't recognize ; as a proper context delimiter causing 404s on requests with URL jsessionids
Michal Babacek (JIRA)
issues at jboss.org
Tue Nov 18 06:41:43 EST 2014
[ https://issues.jboss.org/browse/MODCLUSTER-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020750#comment-13020750 ]
Michal Babacek commented on MODCLUSTER-443:
-------------------------------------------
O.K., I amended the test and IMHO this is no bug in proxy, but it's a wrong servlet url mapping setup.
The following url works perfectly:
{{http://192.168.122.172:8080/tses;jsessionid=Qq7acr8AUL+212-o9bDcgtTJ.jboss-eap-6.4}}
Returning always the same session data:
{code}
<ul>
<li>Name: jj.test.com</li>
<li>Address: 192.168.122.172</li>
<li>JSESSIONID: Qq7acr8AUL+212-o9bDcgtTJ.jboss-eap-6.4</li>
</ul>
{code}
Provided one has this mapping (note url pattern):
{code}
<welcome-file-list>
<welcome-file>session.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>Hello</servlet-name>
<jsp-file>/session.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>Hello</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
{code}
What am I missing here?
> mod_cluster doesn't recognize ; as a proper context delimiter causing 404s on requests with URL jsessionids
> -----------------------------------------------------------------------------------------------------------
>
> Key: MODCLUSTER-443
> URL: https://issues.jboss.org/browse/MODCLUSTER-443
> Project: mod_cluster
> Issue Type: Bug
> Components: Native (httpd modules)
> Affects Versions: 1.2.9.Final, 1.3.1.Alpha2
> Reporter: Aaron Ogburn
> Assignee: Jean-Frederic Clere
>
> This is similar to MODCLUSTER-328, but in regards to ; instead of ?.
> mod_cluster does not recognize ; as a delimiter when checking the request context. Thus with no trailing slash on index page requests, it treats ;jsessionid as part of the request context and tries to check the balancer for a deployed context of /helloworld;jsessionid=..., which doesn't exist and 404s. Adding the trailing slash, mod_cluster can properly delimit this and then sees the context (so /helloworld/;jsessionid=... works just fine).
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
More information about the mod_cluster-issues
mailing list