jersey icon indicating copy to clipboard operation
jersey copied to clipboard

Jersey client seems to create dupliate requests

Open glassfishrobot opened this issue 8 years ago • 3 comments

Hi, we're using Jersey v1.12 in a PROD environnement for Banking purpose.

Since we're are getting duplicates requests received on the server side and nothing indicates that the client send two but I'd like to see with you guys if you now anything that could be related to the Jersey api and the way we implemented it.

public CertaPayResponse postApplicationXmlAsCertaPayResponse(CertaPayRequest input) { UriBuilder localUriBuilder = _uriBuilder.clone(); WebResource resource = _client.resource(localUriBuilder.buildFromMap(_templateAndMatrixParameterValues)); WebResource.Builder resourceBuilder = resource.getRequestBuilder(); resourceBuilder = resourceBuilder.type("application/xml"); resourceBuilder = resourceBuilder.accept("application/xml"); return resourceBuilder.method("POST", CertaPayResponse.class, input);

Thanks for your help. Pat

Environment

PROD

Affected Versions

[1.12]

glassfishrobot avatar Nov 22 '16 02:11 glassfishrobot

Reported by pvsurnt

glassfishrobot avatar Nov 22 '16 02:11 glassfishrobot

This issue was imported from java.net JIRA JERSEY-3192

glassfishrobot avatar Apr 25 '17 05:04 glassfishrobot

I am facing this too. Is there any solution/workaround? I use v 1.19; So, has this been resolved/reported in the newer versions?

thomasmanuel avatar Jan 26 '18 01:01 thomasmanuel