cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6849) Form parameter names including '%' are not decoded properly
Date Thu, 31 Mar 2016 18:04:25 GMT

    [ https://issues.apache.org/jira/browse/CXF-6849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15220346#comment-15220346
] 

Sergey Beryozkin commented on CXF-6849:
---------------------------------------

The following test was added:

http://git-wip-us.apache.org/repos/asf/cxf/commit/0c05b1fe

Note I've updated the provider to encode the names - it did not do it, but it is not related
to this issue given that the client you use already encodes the names.

This goes on the wire: 
{noformat}
a=aValue&b=b+value&c%25=cValue
{noformat}

What is different in your case as far as the percent encoding is concerned, can you paste
some payload fragment ?


> Form parameter names including '%' are not decoded properly
> -----------------------------------------------------------
>
>                 Key: CXF-6849
>                 URL: https://issues.apache.org/jira/browse/CXF-6849
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.1.6
>            Reporter: Michael Schilling
>
> Making a POST call that has form parameter name of {{%25}} produces a {{BufferUnderflowException}}.
> Additionally, making a POST call with a form parameter name of {{%25}} directly followed
by any character that can't represent a hexadecimal value will produce a {{RuntimeException}}
stating {{"Invalid URL encoding: not a valid digit (radix 16): <byte value>"}}.
> The source of these exceptions are from {{UrlUtils#urlDecode}} and {{UrlUtils#digit16}}.
> Note: {{%25}} is the URL encoded version of {{%}}. The HTTP request send has a desired
form parameter of {{%}}.



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

Mime
View raw message