cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psd <prasad.deshpa...@thomsonreuters.com>
Subject Problem with org.apache.cxf.transport.http.auth.DigestAuthSupplier
Date Thu, 08 Jan 2015 13:55:39 GMT
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.

Mime
View raw message