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

Martin Grigorov commented on WICKET-3514:
-----------------------------------------

The "tweak" here is easy:

Index: 
wicket-core/src/main/java/org/apache/wicket/request/mapper/CryptoMapper.java
===================================================================
--- 
wicket-core/src/main/java/org/apache/wicket/request/mapper/CryptoMapper.java    
    (revision 1081145)
+++ 
wicket-core/src/main/java/org/apache/wicket/request/mapper/CryptoMapper.java    
    (working copy)
@@ -90,6 +90,7 @@
                Url encrypted = new Url();
                String encryptedUrlString = 
getCrypt().encryptUrlSafe(url.toString());
                encrypted.addQueryParameter(getCryptParameterName(), 
encryptedUrlString);
+               encrypted.getSegments().addAll(url.getSegments());
                return encrypted;
        }

but this way the whole point of encrypting is lost.
I can't see this working without some processing of the .css itself.

> SimpleTree example not working with CryptoMapper
> ------------------------------------------------
>
>                 Key: WICKET-3514
>                 URL: https://issues.apache.org/jira/browse/WICKET-3514
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core, wicket-examples
>    Affects Versions: 1.5-RC2
>         Environment: Ubuntu 10.04 and Wicket 1.5 latest trunk
>            Reporter: Ludger Kluitmann
>              Labels: wicket
>
> Adding the following lines to WicketExampleApplication.java causes the 
> SimpleTree example to break. There are no expand icons anymore and there is 
> no way to expand the tree. Even the expand link will not work.
> Add to WicketExampleApplication.java 
> IRequestMapper cryptoMapper = new CryptoMapper(getRootRequestMapper(), this);
> setRootRequestMapper(cryptoMapper);
> Comment out in WicketExampleApplication.java 
> //getSecuritySettings().setCryptFactory(new ClassCryptFactory(NoCrypt.class, 
> ISecuritySettings.DEFAULT_ENCRYPTION_KEY));
> Without the CryptoMapper everythings works fine.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to