Re: upgrade Selfhost to trunk
Völker Ronny <[email protected]> Wed, 29 Oct 2008 17:37:48 +0100
| Newsgroups | gmane.comp.java.scarab.devel |
|---|---|
| Message-ID | <[email protected]> |
Hussayn Dabbous wrote: >I detected a flaw in the selfhost: > >- When i start a new browser session, then navigate to >http://www.solitone.org/scarab >I get the scarab start window. On the left side i see a function bar >with the "reports" hyperlink. > >- When i am not logged in and click on this hyperlink, i get a stack trace. > it basically says: > > ... Unable to find resource 'screens/Default.vm' > >- When i am logged in, the reports hyperlink works as expected. > >- After i log off, the reports hyperlink keeps working. > >hmmm, i should make a Scarab entry for this, no ? ;-) Yes, please. I found that the reason is the jsessionid-parameter in the url. The current tomcat handles it differently than the old tomcat. Since the tomcat-upgrade, HttpRequest.pathInfo under certain circumstances returns a value, which still contains the jsessionid (maybe a bug). But this pathInfo is used to determine the template to be rendered. This fails and the template is set to 'screens/Default.vm', which does not exist in reality. So this problem only occurs if a jsessionid is in the url, that means if no session cookie is available. Ronny