javaee / jersey

This is no longer the active Jersey repository. Please see the README.md
http://jersey.github.io
Other
2.86k stars 2.35k forks source link

Jersey client seems to create dupliate requests #3464

Open glassfishrobot opened 7 years ago

glassfishrobot commented 7 years ago

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 commented 7 years ago

Reported by pvsurnt

glassfishrobot commented 7 years ago

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

thomasmanuel commented 6 years ago

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?