|
From: Larry M. <lar...@gm...> - 2014-07-07 22:29:50
|
I'm trying to implement a service that uses a DELETE http method but
also posts data ("patronId=12345678901111") for the delete operation.
The patronId doesn't appear to be passed along to my resource method.
I tried a couple of different ways of making the call (Cocoa Rest
Client and curl), but the results were the same, so I walked through
the code with a debugger.
It looks like there is a workaround in HttpServletInputMessage for
Tomcat and PUT requests to deal with a similar issue, so I tried
changing the curl command to use PUT instead of DELETE - that worked.
I haven't tried cloning the repo and changing (the public
MultivaluedMap<String, String> getFormParameters() and public
MultivaluedMap<String, String> getDecodedFormParameters() methods),
but I think that changing the code there to handle "DELETE" the same
way as "PUT" would resolve this.
Three questions:
- is this something that is an issue or intentional?
- if it's an issue, is this a known one or did I find a new one?
- is there a workaround for this?
Larry
|