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

Pradeep Choudhary commented on OFBIZ-12014:
-------------------------------------------

As mentioned in ticket 
[OFBIZ-10275|https://issues.apache.org/jira/browse/OFBIZ-10275]

"The fix could be to only use the canonicalize logic to check the original 
value for double/mixed encoding and to encode the original value afterwards via 
URLDecoder instead of using the canonicalize output for this.
This way the UrlCodec decode method matches the encode method by only using 
URLDecoder / URLEncoder for doing the main job."

> Error while decoding url parameters with percent character
> ----------------------------------------------------------
>
>                 Key: OFBIZ-12014
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12014
>             Project: OFBiz
>          Issue Type: Bug
>          Components: base
>    Affects Versions: Release Branch 17.12, Trunk
>            Reporter: Pradeep Choudhary
>            Priority: Trivial
>         Attachments: Screenshot from 2020-09-14 12-02-00.png
>
>
> When we pass any URL parameter with a percent character, it throws an 
> exception stating the following message:
> "java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in 
> escape (%) pattern - For input string: "
> Steps to regenerate:
> 1. Open web tools.
> 2. Navigate to Order Manager component 
> [https://localhost:8443/ordermgr/control/findorders]
> 3. Search order by entering order Id like %Test%.
> 4. It will show an error message "java.lang.IllegalArgumentException: 
> URLDecoder: Illegal hex characters in escape (%) pattern - For input string: 
> "Te"



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to