| Summary: | Theme broken when navigating between entrypoints | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ralf Sternberg <rsternberg> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | ||
| Version: | 2.0 | ||
| Target Milestone: | 2.0 M4 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Ralf Sternberg
I think that this is very important issue. First of all, if I enable the "org.eclipse.rap.jettycustomizer" to disable the session cookie to problem is solved. The problem is following - the second GET request runs into the old session store. As a result, the current theme for the other entry point is used. Current theme is set in SessionStoreBuilder#buildSessionStore. A dirty hack to reinitialize the session store in the GET request fixes the problem too. I think it is related to bug 386504 and bug 390381. Till bug 390381 is fixed, we could reinitialize the session store not in the POST request when we detect session restart, but in every GET request. Another possibility is find current theme (StartupJson#appendLoadThemeDefinitions) by current request servletPath like it is done the SessionStoreBuilder#setCurrentTheme and not to query session store. I'd prefer the approach suggested in comment 2. The policy is that GET requests don't change the server's state. They should not need to create and not even to access a UI session. Only POST request should deal with the UI session. |