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

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Implemented
    • 22.01.01
    • None
    • framework
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: