-
1. Re: JAX-RS: HTTP Method URL matching on HEAD request
sergeyb_deleteusersergeyb Oct 27, 2009 5:32 PM (in response to jsbournival)Hi, sorry for a delay...
HEAD is supported and a number of JAXRS TCK tests test it, but I think what is happening here is that the first @GET method also matches HEAD requests, alongside with the method annotated with @HEAD...
For some reasons, the @GET method takes the priority, possibly because of the bug in CXF to do with the fact that the @GET method also has @Produces thus is is more 'specific'.
I think if you change the class as follows :
@Path("/myresource/...")
public class MyResource {
@HEAD
public Response headResource(...) { ... }
@GET
@Produces("application/atom+xml")
public Response getResource(...) { ... }
}
then it might work; I will also add a test and will get back to you
cheers, Sergey
-
2. Re: JAX-RS: HTTP Method URL matching on HEAD request
sergeyb_deleteusersergeyb Oct 27, 2009 7:03 PM (in response to sergeyb_deleteusersergeyb)I've reproduced the issue - will report back once it's been fixed
Sergey
-
3. Re: JAX-RS: HTTP Method URL matching on HEAD request
jsbournival Nov 18, 2009 1:55 PM (in response to sergeyb_deleteusersergeyb)Hi Sergei, is there a patch issued on this? I do not necessarily want to upgrade my CXF bundles at this point. i would rather instead recompile the same version and apply some patch. How can I grab the project source code? Does fuse have a svn repo, or is there a special branch/tag in CXF for fuses need?
Thank you,
JS.
-
4. Re: JAX-RS: HTTP Method URL matching on HEAD request
jsbournival Nov 18, 2009 2:11 PM (in response to jsbournival)(btw, I do not find the issue in JIRA. Was there one created?)