[ https://issues.apache.org/jira/browse/OFBIZ-8302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17886610#comment-17886610 ]
ASF subversion and git services commented on OFBIZ-8302: -------------------------------------------------------- Commit 1740018f469e906380a3ebcab74d7ac84cfd10a4 in ofbiz-framework's branch refs/heads/trunk from Nicolas Malin [ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=1740018f46 ] Fixed: On webtools the FindGeneric screen (/webtools/entity/find/{entityName}) have an issue with the sort order. After a search if you click to sort the list, you lost the entityName and your search. The analysis look that come from the url encode (MacroFormRenderer.java:2141), who result a bad interpretation during ftl rendering. **** linkUrl = rh.makeLink(this.request, this.response, urlPath.concat(URLEncoder.encode(newQueryString, "UTF-8"))); **** This has been introduced with jira OFBIZ-8302 for security reason. To solve this, we implement a new function on UtilCodec.java to ask it if we need to encode the url or not with the presence of the variable escapeUrlEncode. Like is test on root context, we need to set this variable on our code where we want to escape the encoding, just before call the MacroRenderer. This it not accessible from the request so no risk for the security origin fix. > Sorting of lists generates undesired results > -------------------------------------------- > > Key: OFBIZ-8302 > URL: https://issues.apache.org/jira/browse/OFBIZ-8302 > Project: OFBiz > Issue Type: Bug > Components: product > Affects Versions: Release Branch 15.12, Trunk > Reporter: Pierre Smits > Assignee: Jacques Le Roux > Priority: Major > Fix For: Release Branch 13.07, Release Branch 14.12, 16.11.01, > Release Branch 15.12, 17.12.05, 18.12.01 > > > When trying to sort the overview of products in the product catalog on one of > the options, a blank screen is returned. > As an example the following returned url: > {code} > https://ofbiz-vm.apache.org:8443/catalog/control/https%3A%2F%2Fofbiz-vm.apache.org%3A8443%2Fcatalog%2Fcontrol%2FFindProduct%3FsortField%3DproductId%26amp%3BnoConditionFind%3DY%26amp%3BproductId_ic%3DY%26amp%3BproductId_op%3Dcontains%26amp%3BinternalName_ic%3DY%26amp%3BinternalName_op%3Dcontains > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)