[jboss-jira] [JBoss JIRA] (WFLY-3448) Session ID change with sub-directories using "/" context (virtual host)
Ken H (JIRA)
issues at jboss.org
Thu Aug 21 10:43:01 EDT 2014
[ https://issues.jboss.org/browse/WFLY-3448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994425#comment-12994425 ]
Ken H edited comment on WFLY-3448 at 8/21/14 10:42 AM:
-------------------------------------------------------
I don't think the patch in pull request 6338 is right. I experienced the issue defined here on 8.1.0.Final, built master at 50a830205c and the behavior is different but still broken. Now requests to http://host/login throws a Not Found, the server is expecting http://host//login (which explodes because it isn't valid). If I hit http://host then the redirect is generated to http://host//welcome because httpServletRequest.getContextPath() is returning "/" (when it was returning an empty string in 7.x).
>From web.xml:
{code}
<welcome-file-list>
<welcome-file>/</welcome-file>
</welcome-file-list>
{code}
>From jboss-web.xml:
{code}
<jboss-web>
<context-root>/</context-root>
</jboss-web>
{code}
My app is packaged as a war, so no application.xml exists to define context-root.
I have reported this new behavior in WFLY-3758.
was (Author: steeltomato):
I don't think the patch in pull request 6338 is right. I experienced the issue defined here on 8.1.0.Final, built master at 50a830205c and the behavior is different but still broken. Now requests to http://host/login throws a Not Found, the server is expecting http://host//login (which explodes because it isn't valid). If I hit http://host then the redirect is generated to http://host//welcome because httpServletRequest.getContextPath() is returning "/" (when it was returning an empty string in 7.x).
>From web.xml:
{code}
<welcome-file-list>
<welcome-file>/</welcome-file>
</welcome-file-list>
{code}
>From jboss-web.xml:
{code}
<jboss-web>
<context-root>/</context-root>
</jboss-web>
{code}
My app is packaged as a war, so no application.xml exists to define context-root.
I would say this is not resolved, please reopen.
> Session ID change with sub-directories using "/" context (virtual host)
> -----------------------------------------------------------------------
>
> Key: WFLY-3448
> URL: https://issues.jboss.org/browse/WFLY-3448
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Web (Undertow)
> Affects Versions: 8.1.0.Final
> Environment: Wildfly 8.1.0 RC2
> Reporter: David Cabillic
> Assignee: Stuart Douglas
> Labels: sessionid, virtualhosts
> Fix For: 9.0.0.Beta1
>
>
> I used a virtual host in Wildfly like this :
> <host name="toto" alias="www.toto.com">
> <location name="/" handler="welcome-content"/>
> </host>
> When I try to access www.toto.com/sub/, a new cookie is created. It would be great with a "/sub" context but it is not for a "/" context.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jboss-jira
mailing list