[
https://issues.apache.org/jira/browse/OFBIZ-10198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17026982#comment-17026982 ]
ASF subversion and git services commented on OFBIZ-10198:
---------------------------------------------------------
Commit 765fdbbbd8583281b64b0c701ffb6be1f7b39c53 in ofbiz-framework's branch refs/heads/trunk from Michael Brohl
[
https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=765fdbb ]
Extend UtilHttp.urlEncodeArgs API with preserveEmpty-parameter
(OFBIZ-10198)
This patch extends the current UtilHttp.urlEncodeArgs() method with an
additional input parameter: boolean preserveEmpty.
It allows to get a query string with empty parameters, useful if the
receiver expects mandatory parameters or wants to explicit
override/clear existing values with an empty one.
Thanks Martin Becker for reporting and providing the patch.
> Extended UtilHttp.urlEncodeArgs API with preserveEmpty-parameter to be able to get a query string with empty parameters
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-10198
> URL:
https://issues.apache.org/jira/browse/OFBIZ-10198> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: Upcoming Branch
> Reporter: Martin Becker
> Assignee: Michael Brohl
> Priority: Trivial
> Attachments: OFBIZ-10198_UtilHttp_extension.patch
>
>
> This patch extends the current UtilHttp.urlEncodeArgs() method with an additional input parameter: boolean preserveEmpty.
> It allows to get a query string with empty parameters, useful if the receiver expects mandatory parameters or wants to explicit override/clear existing values with an empty one.
> For the patch, the urlEncodeArgs() method has been overloaded with another method so that the patch wont affect any already present method calls.
> Also corrected typos.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)