You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2016/02/10 13:00:23 UTC

[jira] [Resolved] (CXF-6765) UrlUtils#urlDecode incorrectly decodes encoded path with encoded plus = %2B symbol

     [ https://issues.apache.org/jira/browse/CXF-6765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin resolved CXF-6765.
-----------------------------------
    Resolution: Not A Problem
      Assignee: Sergey Beryozkin

I've confirmed with a tcp trace that Firefox does not encode '+' and encodes the space as %20 for a path component, so the best way to represent spaces in the matrix parameters is to use %20.

> UrlUtils#urlDecode incorrectly decodes encoded path with encoded plus = %2B symbol
> ----------------------------------------------------------------------------------
>
>                 Key: CXF-6765
>                 URL: https://issues.apache.org/jira/browse/CXF-6765
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.1.4
>         Environment: WIndows 7, Java 8
>            Reporter: Karsten Ohme
>            Assignee: Sergey Beryozkin
>
> I'm decoding some matrix parameters. When using a path with an encoded + (= %2B encoded), e.g. filterValue=Foobar+%2B+Bar which should be "Foobar + Bar", but it is "Foobar  Bar", because the %2B is decoded as plus first and later decoded as a space.
> The error is produced in org.apache.cxf.common.util.UrlUtils#urlDecode(java.lang.String, java.lang.String, boolean).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)