Bugs item #1533145, was opened at 2006-08-02 16:08 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1533145&group_id=119783
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: core Group: 1.2 Status: Open Resolution: None Priority: 5 Submitted By: Matthijs Wensveen (wensveen) Assigned to: Nobody/Anonymous (nobody) Summary: CryptedUrlWebRequestCodingStrategy does not decode spaces.. Initial Comment: I have a bookmarkable page whose URL is: http://localhost:8080/myApp/app?wicket:bookmarkablePage=:myApp.MyPage¶m1=param+1¶m2=param+2 This is done by using new BookmarkablePageLink("link", myApp.MyPage.class, new PageParameters("param1=param 1,param2=param 2")); and works fine with the default coding strategy. The PageParameters have the space between 'param' and '1' intact. When I use the CryptedUrlWebRequestCodingStrategy, however, the space between 'param' and '1' is not decoded, so I get 'param+1' as a value. As a workaround I use: @Override protected IRequestCycleProcessor newRequestCycleProcessor() { // XXX: bug workaround IRequestCodingStrategy requestCodingStrategy = new CryptedUrlWebRequestCodingStrategy(new WebRequestCodingStrategy()) { @Override protected String decodeURL(String url) { String semiDecodedUrl = super.decodeURL(url); if(semiDecodedUrl != null) { try { return URLDecoder.decode(semiDecodedUrl, Application .get().getRequestCycleSettings().getResponseRequestEncoding()); } catch (UnsupportedEncodingException e) { throw new WicketRuntimeException(e); } } else { return null; } } }; return new CompoundRequestCycleProcessor(requestCodingStrategy, null, null, null, null); } This works but is not very elegant of course. I think it has something to do with the order of encoding and decoding. Or maybe the CryptedUrlWebRequestCodingStrategy.DecodedUrlRequest wrapper. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1533145&group_id=119783 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop