You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Juergen Donnerstag (JIRA)" <ji...@apache.org> on 2009/05/17 12:13:45 UTC

[jira] Commented: (WICKET-2281) MockHttpServletRequest is broken when used with CryptedUrlWebRequestCodingStrategy

    [ https://issues.apache.org/jira/browse/WICKET-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710189#action_12710189 ] 

Juergen Donnerstag commented on WICKET-2281:
--------------------------------------------

Would it be possible for you to create a small testcase / quickstart? Would make things easier for us. Thanks.

> MockHttpServletRequest is broken when used with CryptedUrlWebRequestCodingStrategy
> ----------------------------------------------------------------------------------
>
>                 Key: WICKET-2281
>                 URL: https://issues.apache.org/jira/browse/WICKET-2281
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.3.6
>            Reporter: Alex Gitelman
>
> Upgraded to 1.3.6. One of my test cases started to fail with 
> org.apache.wicket.WicketRuntimeException: Internal error parsing wicket:interface = ?x=GR7uTj8e-D8FE0tmM9vvYcwdiASd9OJ5GgveAhSNaig
>      
> I tracked down the issue to MockHttpServletRequest .setRequestToComponent()
> In line 1253 it check for url starting with 6*. However, in CryptedUrlWebRequestCodingStrategy following encryption is employed:
> 198:					queryString = shortenUrl(queryString).toString();
> 199:
> 200:					// encrypt the query string
> 201:					String encryptedQueryString = urlCrypt.encryptUrlSafe(queryString);
> shortenUrl will replace 'wicket:interface=' with '6*' but then it gets immediately encrypted, consequently MockHttpServletRequest  will never recognize it correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.