You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2015/04/16 18:10:58 UTC

[jira] [Commented] (CAMEL-8649) Camel RAW() cannot handle String of %2050

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

Willem Jiang commented on CAMEL-8649:
-------------------------------------

It's caused by the UnsafeUriCaharctersEncoder doesn't do the encoding for the String which is encoded like "%20" which could introduce some trouble when camel decode the URI parameter, so we need to encode the % in RAW message to fix the issue.

> Camel RAW() cannot handle String of  %2050
> ------------------------------------------
>
>                 Key: CAMEL-8649
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8649
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.14.2, 2.15.1
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.14.3, 2.15.2, 2.16.0
>
>
> {code}
> file:inbox?fileName=data+.txt (expected "inbox/data .txt" and result is OK)
> file:inbox?fileName=data%20.txt (expected "inbox/data .txt" and result is OK)
> file:inbox?fileName=RAW(data+.txt) (expected "inbox/data+.txt" and result is OK)
> file:inbox?fileName=RAW(data%20.txt) (expected "inbox/data%20.txt", but actually it's "inbox/data .txt") - I think it's WRONG (disobeyed RAW)
> file:inbox?fileName=RAW(data%2520.txt) (expected "inbox/data%2520.txt", but actually it's also "inbox/data .txt") - I think it's WRONG (disobeyed RAW + double URL decode)
> Additional info:
> RAW(data%252520.txt) results in "data%20.txt" (disobeyed RAW + double URL decode - it means there is not triple URL decode in this case)
> RAW(data%2B.txt) results in "data+.txt" (disobeyed RAW + single URL decode - it means there is not double URL decode in this case)
> data%252B.txt results in "data%2B.txt" (single URL decode - it means there is not double URL decode in this case)
> {code}



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