Repository: cxf Updated Branches: refs/heads/3.0.x-fixes 422bcf6c4 -> b5524e805
[CXF-6606] Avoiding double decoding when procesing extension or language maps, patch from Tyler Brazier applied, This closes #91 Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/b5524e80 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/b5524e80 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/b5524e80 Branch: refs/heads/3.0.x-fixes Commit: b5524e805576ddff66a1fa78281708c9119f52ff Parents: 422bcf6 Author: Sergey Beryozkin <[email protected]> Authored: Fri Sep 25 10:27:51 2015 +0100 Committer: Sergey Beryozkin <[email protected]> Committed: Fri Sep 25 10:28:53 2015 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/b5524e80/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java ---------------------------------------------------------------------- diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java index 1a9e00f..ada66e3 100644 --- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java +++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java @@ -82,7 +82,7 @@ public class RequestPreprocessor { if (languageMappings.isEmpty()) { return; } - PathSegmentImpl ps = new PathSegmentImpl(uriInfo.getPath(false)); + PathSegmentImpl ps = new PathSegmentImpl(uriInfo.getPath(false), false); String path = ps.getPath(); for (Map.Entry<?, ?> entry : languageMappings.entrySet()) { if (path.endsWith("." + entry.getKey())) { @@ -97,7 +97,7 @@ public class RequestPreprocessor { if (extensionMappings.isEmpty()) { return; } - PathSegmentImpl ps = new PathSegmentImpl(uriInfo.getPath(false)); + PathSegmentImpl ps = new PathSegmentImpl(uriInfo.getPath(false), false); String path = ps.getPath(); for (Map.Entry<?, ?> entry : extensionMappings.entrySet()) { String key = entry.getKey().toString();
