You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by psd <pr...@thomsonreuters.com> on 2015/01/08 14:55:39 UTC
Problem with org.apache.cxf.transport.http.auth.DigestAuthSupplier
Hi Dan & Sergey,
I'm having trouble with
org.apache.cxf.transport.http.auth.DigestAuthSupplier class when generating
digest for URL that contains spaces e.g.
http://localhost:8080/ls-api-ws/ws/rs/v1/ci/%20%20%20/2222
On line 106 of class org.apache.cxf.transport.http.auth.DigestAuthSupplier
in version 3.0.2 of cxf client it calls currentURI.getPath() which returns
decoded URI with JDK 1.8 making above URL
"http://localhost:8080/ls-api-ws/ws/rs/v1/ci/ /2222" & when that gets on
the server, 3 spaces in the URL gets replaced with a single space making
digest re computation invalid.
Is it possible to replace call currentURI.getPath() with
currentURI.getRawPath()/toString() so that path will remain encoded?
-psd
--
View this message in context: http://cxf.547215.n5.nabble.com/Problem-with-org-apache-cxf-transport-http-auth-DigestAuthSupplier-tp5752864.html
Sent from the cxf-user mailing list archive at Nabble.com.