Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-21275

REST Call Task does not Properly Escape Characters in URL Parameters

    Details

    • Type: Service Pack Request
    • Status: Verified
    • Resolution: Fixed
    • Affects Version/s: Alfresco Process Services 1.10
    • Component/s: APS Tasks
    • Labels:
      None
    • Environment:
      APS 1.10
    • Bug Priority:
      Category 1
    • ACT Numbers:

      01002406

      Description

      Summary
      The customer is using a REST call task with the following endpoint configured:

      https://postman-echo.com/get?foo=${searchterms}

      When placing a value in the Search terms field that contains a space, an exception is thrown and the REST call fails.  The issue is that the space is being submitted as a character instead of replacing it with the escaped value of %20.

      Steps to Reproduce:

      1. Import the attached sample app into the Activiti-app.
      2. Select the app and then start the process.
      3. In the Search Terms field enter the following value to be searched for then: "dog cat"
      4. Select Start Process.
      5. Inspect the logs

      Expected behaviour
      REST call task to execute just fine and no errors in the logs.

      Current behaviour
      Exception in the logs:

      “at java.lang.Thread.run(Unknown Source)
       Caused by: [java.net|https://java.net/].URISyntaxException: Illegal character in query at index 36: [https://postman-echo.com/get?foo=dog] cat
       at [java.net|https://java.net/].URI$Parser.fail(Unknown Source)”
      

        Attachments

          Structure

            Activity

              People

              • Assignee:
                custeng Customer Engineering
                Reporter:
                kwatson Kimberly Watson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Structure Helper Panel