please create a jira issue. -igor
On Mon, Feb 16, 2009 at 6:00 AM, Michael Sparer <[email protected]> wrote: > > I recently came across a link to one of my projects where a user linked to a > session dependent URL such as /?wicket:interface=:0::IBehaviorListener:2:3 > > when clicking on that URL, a PageExpiredException gets thrown and a redirect > to the SessionExpiredPage takes place. So far so good - that's the way it > should be. > However this works only for the first request (as long as the user doesn't > have a session). If the user has a session and clicks on that link different > exceptions might get thrown. with the URL mentioned above I've seen either a > IllegalStateException (when it couldn't find a IBehaviorListener with the > corresponding ID) or a ClassCastException (when it tried to cast a > HeaderContributor to an IBehaviorListener in BehaviorRequestTarget). > > I must admit I didn't look into the code that thoroughly as I wanted to ask > you first how you go about this problem (or it may be already fixed in > 1.3.6/1.4 - I'm using 1.3.5). I thinks accidentally pasting session > dependent URLs in blogs etc. shouldn't result in server errors ... would it > be save to throw e.g. a PageExpiredException instead of > IllegalStateExceptions? > > Michael > > > > > ----- > Michael Sparer > http://techblog.molindo.at > -- > View this message in context: > http://www.nabble.com/exception-handling-for-session-dependent-URLs-tp22037821p22037821.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
