Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10198

Extended UtilHttp.urlEncodeArgs API with preserveEmpty-parameter to be able to get a query string with empty parameters

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Implemented
    • Affects Version/s: Upcoming Branch
    • Fix Version/s: Upcoming Branch
    • Component/s: framework
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              mbrohl Michael Brohl
              Reporter:
              mbecker Martin Becker
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: