Forums Register Login

jboss, glassfish and @Encoded

+Pie Number of slices to send: Send
I wasn't sure which forum this question belongs in so here goes...

we are double encoding our rest resource parameters and JBOSS seems to be incorrectly handling the @Encoded

here is my method, if i run it like this (using JBOSS as my web server) the parameter arrives double encoded, if I add @Encoded it arrives only singly encoded.
When i run this using glassfish with @Encoded the parameters arrive double encoded and without it they are singly encoded (which is how i think it should be)



version information
JBOSS 7.1
Glassfish 3.1.2
windows 7

from the JBOSS/ jax-rs pages i found


The @javax.ws.rs.Encoded annotation can be used on a class, method, or param. By default, inject @PathParam and @QueryParams are decoded. By additionally adding the @Encoded annotation, the value of these params will be provided in encoded form.



I need my code to run under both systems (and websphere when we get that working at all ) so are there any flags or settings to help with this please
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1973 times.
Similar Threads
Encoding, decoding problem
Managed beans aren't constructed running on JBoss 5.1.0 (works fine with Tomcat 6)
Print Client IP
Decoding "%5c"
I am not able to get parameter value in @PathParam("userID") of REST webService
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:35:15.