Repository: cxf Updated Branches: refs/heads/master 836f9703e -> 448ca8ec5
[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/448ca8ec Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/448ca8ec Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/448ca8ec Branch: refs/heads/master Commit: 448ca8ec540498783cf7b7458cebd6f319e17690 Parents: 836f970 Author: Sergey Beryozkin <[email protected]> Authored: Fri Sep 25 10:27:51 2015 +0100 Committer: Sergey Beryozkin <[email protected]> Committed: Fri Sep 25 10:27:51 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/448ca8ec/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();
