[MGNLUI-641] JS missing with Tomcat Created: 07/Feb/13  Updated: 16/May/19  Resolved: 13/Feb/13

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0

Type: Bug Priority: Critical
Reporter: Samuli Penttilä Assignee: Samuli Penttilä
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-4911 Sticky "jsessionid" URL parameter cau... Closed
supersession
is superseded by MAGNOLIA-4830 Use Tomcat 7.x for the bundle Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

After login pops up error stating that ./../VAADIN/vaadinBootstrap.js cannot be found. This can be only reproduced with Tomcat as it appends jsessionid to url which causes the problem.

From HipChat:
This is the root reason for jsession problem. Vaadin 7 bootstrap tries to find js file from relative URL. It fails because browser interprets last part of url containing ";" as a directory and relative referencing fails because it goes one level too high thus encountering 404
"admincentral;jsessionid=" = bad, "admincentral?jsessionid=" = good, "admincentral" = good



 Comments   
Comment by Samuli Penttilä [ 07/Feb/13 ]

Workaround exists in tomcat config/context.xml. Put disableURLRewriting="true" to Context so that Tomcat would not insert jsessionid to url.

Comment by Samuli Penttilä [ 08/Feb/13 ]

This happens only with Tomcat 6 while Tomcat 7 is unaffected. There is now external issue addressing this issue at http://dev.vaadin.com/ticket/10974

Comment by Richard Unger [ 08/Feb/13 ]

To prevent tomcat adding the jsessionid to URLs in certain situations (typically right after login), use the following configuration:

<Context disableURLRewriting="true">
</Context>

You can configure this via a context.xml file in a META-INF folder in your WAR, or via the global context configuration in CATALINA_HOME/conf/context.xml

It's not really something that you can control from inside the webapp, AFAIK.

Comment by Daniel Lipp [ 13/Feb/13 ]

Since we moved to Tomcat 7 now, we won't take any action on that issue.

Generated at Mon Feb 12 08:38:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.