Hi Igor, > you can tweak the crypter to ignore bookmarkable urls. Well, that's what the crypter is supposed to do by default, isn't it? Now it simply tries to encrypt everything that starts with "?" safely ignoring only RESTful urls.
VItaly 2011/4/14 Igor Vaynberg <[email protected]>: > urls are encrypted with session-relative randomly generated keys. so > they are not bookmarkable. > > vitaly, > you can tweak the crypter to ignore bookmarkable urls. > > -igor > > > On Wed, Apr 13, 2011 at 2:59 AM, Martin Grigorov <[email protected]> wrote: >> I don't have time to debug it right now but as far as I know the crypting >> algorithm doesn't use the sessionid. >> Either try to debug and see what happens or create a ticket with a >> quickstart and wait until someone of us have time to look at it. >> >> On Wed, Apr 13, 2011 at 11:46 AM, Vitaly Tsaplin >> <[email protected]>wrote: >> >>> when I try to copy this link and open it in another browser it says >>> "The page you requested has expired." Does it mean that the link is >>> bookmarkable? ) But it works as it should with no crypting. Bug? I use >>> 1.4.17. The strategy is set like this >>> >>> @Override >>> protected IRequestCycleProcessor newRequestCycleProcessor() { >>> return new WebRequestCycleProcessor() { >>> @Override >>> protected IRequestCodingStrategy newRequestCodingStrategy() { >>> return new CryptedUrlWebRequestCodingStrategy(new >>> WebRequestCodingStrategy()); >>> } >>> }; >>> } >>> >>> >>> 2011/4/13 Martin Grigorov <[email protected]>: >>> > well, this is what crypting does ... >>> > but I think the url is still bookmarkable, i.e. clicking on it always >>> > creates a new instance of ProductViewPage >>> > >>> > On Wed, Apr 13, 2011 at 9:37 AM, Vitaly Tsaplin < >>> [email protected]>wrote: >>> > >>> >> Hi Martin, >>> >> >>> >> Here is how it looks >>> >> >>> >> >>> http://localhost:8080/mysite/?x=Dc11lSgdY6XfDJ4ubDucC6WRETrJP52-jOltr8KdvSmpmKOCpyMIMn-JtJePH3kpFspghl8jR-5be5cN-L0iMC8wWtD2AXFO >>> >> >>> >> with disabled strategy it becomes >>> >> >>> >> >>> http://localhost:8080/mysite/?wicket:bookmarkablePage=:com.tsaplin.web.engine.components.commerce.ProductViewPage&id=5 >>> >> >>> >> Vitaly >>> >> >>> >> 2011/4/13 Martin Grigorov <[email protected]>: >>> >> > On Tue, Apr 12, 2011 at 9:11 PM, Vitaly Tsaplin < >>> >> [email protected]>wrote: >>> >> > >>> >> >> Hi everyone, >>> >> >> >>> >> >> I am using CryptedUrlWebRequestCodingStrategy to encode urls. I also >>> >> >> put an instance of BookmarkablePageLink on my page and the link that >>> >> >> has been generated by this is NOT bookmarkable. What's wrong I am >>> >> >> doing? Do I always have to mount my page as bookmarkable? >>> >> >> >>> >> > How does this generated url look like ? >>> >> > >>> >> > >>> >> >> >>> >> >> Best regards, >>> >> >> Vitaly >>> >> >> >>> >> >> --------------------------------------------------------------------- >>> >> >> To unsubscribe, e-mail: [email protected] >>> >> >> For additional commands, e-mail: [email protected] >>> >> >> >>> >> >> >>> >> > >>> >> > >>> >> > -- >>> >> > Martin Grigorov >>> >> > jWeekend >>> >> > Training, Consulting, Development >>> >> > http://jWeekend.com <http://jweekend.com/> >>> >> > >>> >> >>> >> --------------------------------------------------------------------- >>> >> To unsubscribe, e-mail: [email protected] >>> >> For additional commands, e-mail: [email protected] >>> >> >>> >> >>> > >>> > >>> > -- >>> > Martin Grigorov >>> > jWeekend >>> > Training, Consulting, Development >>> > http://jWeekend.com <http://jweekend.com/> >>> > >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> >> -- >> Martin Grigorov >> jWeekend >> Training, Consulting, Development >> http://jWeekend.com <http://jweekend.com/> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
