You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2012/09/06 08:46:07 UTC

[jira] [Comment Edited] (OFBIZ-2628) No Url encoding for get parameters

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

Jacques Le Roux edited comment on OFBIZ-2628 at 9/6/12 5:44 PM:
----------------------------------------------------------------

I unfortunately have no time to digg more about this at the moment, but I think this link could be helpful http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q8 (OFBiz is already most of this, did not check though)

Also, not directly related, but it's a "well known issue" that UTF8-encoding does not work for fields sent with GET method using Ajax...
                
      was (Author: jacques.le.roux):
    I unfortunately have no time to digg more about this at the moment, but I think this link could be helpful http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q8 (OFBiz is already most of this, did not check though)

Also, not directly related, but it's a "well known issue" that UTF8-encoding does not work for fields sent with GET method...
                  
> No Url encoding for get parameters
> ----------------------------------
>
>                 Key: OFBIZ-2628
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2628
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 4.0, Release Branch 09.04, SVN trunk
>         Environment: All
>            Reporter: Patrick Antivackis
>            Assignee: Sascha Rodekamp
>            Priority: Critical
>             Fix For: Release Branch 10.04, Release Branch 11.04, SVN trunk
>
>         Attachments: OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch, OFBIZ-2628-Add-URL-encoding-to-RequestHandler.patch
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> Let's say I want to create a new category which ID is  DVD+R
> Creation is ok through the admin interface, but whenever i want to access this category, the get parameter productCategoryId=.... of the url is wrong as it's not url encoded, so we have :
> https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD&#43;R instead of
> https://localhost:8443/catalog/control/EditCategory?productCategoryId=DVD%2BR
> Both <@ofbizUrl> tag and menu widgets are not encoding get parameters.
> Way to correct :
> framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modify the makeLink function
> framework/widget/src/org/ofbiz/widget/WidgetWorker.java : function buildhyperlinkUrl need to use defaultWebEncoder.encodeForURL instead of simpleEncoder
> Beofre i do the fix, can a core developper let me know about possible side effects

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira