This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Services and the fly likes jboss, glassfish and @Encoded Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "jboss, glassfish and @Encoded" Watch "jboss, glassfish and @Encoded" New topic
Forums: Web Services Glassfish JBoss/WildFly
Author

jboss, glassfish and @Encoded

Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1106

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jboss, glassfish and @Encoded
 
Similar Threads
I am not able to get parameter value in @PathParam("userID") of REST webService
Decoding "%5c"
Encoding, decoding problem
Managed beans aren't constructed running on JBoss 5.1.0 (works fine with Tomcat 6)
Print Client IP