Hi Gabo
Gabo Manuel wrote:
Hi Sergey,
Any specifics on when the fix regarding regex would be uploaded to any snapshot?
This fix is definitely in the 2.1.4-snapshot source tree - but the actual
downloadable jar has not been produced yet.
Also example I have the following annotations:
@GET
@Path("/search")
@ProduceMime("application/xml")
public Accounts getList
And I try to access "/search/additional/path/here", if no other operation matches the path, i.e. no method annotated with
"/search/additional", shouldn't the JAX-RS engine map to the method with "/search"?
No. It would actually match @Path("/search") but the final regex group will
contain /additional/path/here
and according to the spec only if it's either empty or '/' then the match is
accepted.
When I change the @Path to "/search{bar:.*}" or "/search/{bar:.*}", I only get the response: JAXBException occurred : Premature
end of file. There is no exception or stacktrace server side or client side.
Actually, looks like you're building from the source ? Please enable a fine-level logging, a default web application exception
handler should report a message. It seems though it won't report more than what you've got, it does seem like the failure occurs
when a JAXB provider deserializes the request body ay am early XML parsing time.
Which says that it's a GET request but a method parameter has not been annotated with a
@PathParam("bar") ?
Thanks, Sergey
interceptors, both in and out, function ok and it does not go the the fault interceptor chain. What it does not do however, is go
inside the method.
Again, my thanks.
Gabo