[
https://issues.apache.org/jira/browse/WICKET-4865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497852#comment-13497852
]
Jesse Long commented on WICKET-4865:
------------------------------------
@Sven - It works for request handlers that are passed the page parameters in
the constructor. The API of request handler does not require this, it should be
able to work with the request cycle provided. Without the patch, the request
cycle provided to request handler is invalid.
@Martin - yes, your patch looks better than mine. Thank you. (There really
should be a wicket 7 branch so we can start implementing new features and
remove deprecated stuff on it in the mean time).
I will test shortly.
> Page parameters not working with CryptoMapper
> ---------------------------------------------
>
> Key: WICKET-4865
> URL: https://issues.apache.org/jira/browse/WICKET-4865
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.2.0
> Reporter: Jesse Long
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 6.3.0
>
> Attachments: WICKET-4865.patch
>
>
> When CryptoMapper is used, page parameters do not work. This is because the
> incorrect request is set in the request cycle. The incorrect request contains
> the encrypted url, where the page parameters are encoded into the url
> segments. When the CryptoMapper maps a url to a request handler, it should
> set the request to the correct request when the request handler is selected.
> This was reported on the users@ list, but I have also fallen victim to it
> when getting urlFor(resourceReference, pageParameters) and the pageParameters
> not comming out on the other end.
> See:
> http://mail-archives.apache.org/mod_mbox/wicket-users/201211.mbox/%[email protected]%3E
> https://github.com/jesselong/wicket/commits/for-apache-master-pr-4 (3 commits)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira