Hi,
On Wed, May 14, 2014 at 4:11 PM, NickMoutsios <[email protected]>wrote: > Hi, > > I have a shared resource, DynamicImageResource, to serve images from the > database given some parameters. > The URL looks like this (coming from tinymce where it encodes the > ampersand): > https://localhost/center/MerchantFile?merchant=Testing&image=logo2 > Our application was running on wicket 1.4.22 and this was working like a > charm. > Recently, I have migrated to 6.14.0 and the resource fails to return the > image because the ampersand is not decoded. As a result, parameters are now > these: > merchant=Testing > amp;image=logo2 (key is not "image" anymore) > > Any ideas how I could go about solving this? One solution would be to have > tinymce not encoding the URL, but is there any other way to have, for > I believe this is the correct way. > example, the URL decoded prior to being handled by the ResourceMapper? > Sure it is possible. Create your own IRequestMapper impl and set it up as a root request mapper (See HttpsMapper and CryptoMapper for examples of root request mapper). In #mapRequest() decode the url and use org.apache.wicket.request.Request#cloneWithUrl(theNewUrl) and pass the new Request to the delegate (i.e. the old request mapper). > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/PageParameters-are-not-extracted-correctly-from-an-Encoded-URL-tp4665836.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
