Willem Jiang created CAMEL-8649:
-----------------------------------
Summary: 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.15.1, 2.14.2
Reporter: Willem Jiang
Assignee: Willem Jiang
Fix For: 2.14.3, 2.15.2, 2.16.0
{code}
file:inbox?fileName=data%2B.txt (expected "inbox/data+.txt", but actually it's
"inbox/data .txt") - I think it's WRONG (double URL decode)
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)