You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2010/08/27 07:26:55 UTC
[jira] Resolved: (WICKET-2327) URLs created with
urlFor(RequestListenerInterface) on a bookmarkable page try to instantiate
a new page after the page expired
[ https://issues.apache.org/jira/browse/WICKET-2327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-2327.
-----------------------------------
Assignee: Igor Vaynberg
Fix Version/s: 1.5-M1
(was: 1.5-M2)
Resolution: Fixed
should already be working in 1.5
> URLs created with urlFor(RequestListenerInterface) on a bookmarkable page try to instantiate a new page after the page expired
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: WICKET-2327
> URL: https://issues.apache.org/jira/browse/WICKET-2327
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-RC4
> Reporter: Ralf Ebert
> Assignee: Igor Vaynberg
> Fix For: 1.5-M1
>
> Attachments: mvn2327.zip
>
>
> When a component on a bookmarkable page uses urlFor to generate a URL to receive events, such an url is generated:
> http://localhost:8080/?wicket:bookmarkablePage=:somepkg.SomePage&wicket:interface=:12:bla::ISomeEventListener::
> If the given page expires and the URL is opened, Wicket tries to create a new page instead of throwing a PageExpiredException. This is incorrect in my opinion, because the URLs intention is to call a listener interface. In my understanding this cannot happen after the state of the page is lost, so a PageExpiredException should be thrown in this case (or a "non-bookmarkable" URL should be generated).
> Stack trace:
> at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:212)
> at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:89)
> at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:306)
> at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:321)
> at org.apache.wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents(BookmarkableListenerInterfaceRequestTarget.java:126)
> at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
> at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1240)
> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1319)
> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1418)
> at org.apache.wicket.RequestCycle.request(RequestCycle.java:544)
> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456)
> at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.