Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-100057

Parameters are being escaped incorrectly when requesting data from REST data provider

    Details

      Description

      Steps to reproduce

      1. Create a new data provider, setting the following fields (leaving the rest with the defaults)
        1. name Random User API
        2. URL: https://randomuser.me/api/
        3. Inputs: (seed, seed, Text)
        4. Outputs: (email, $..email, List)
      2. Save Random User API
      3. Create a new form Random User Form
      4. Add the following fields in the form builder:
        1. Text field with name "Seed"
        2. Select from List with name "Email"
          1. Set Create List = From AutoFill for the field Email
      5. Create a rule for Random User Form
        1. If Field Seed is not empty Autofill Email from Random User API
        2. Input (seed, Seed)
        3. Output (email, Email)
      6. Save and publish Random User Form
      7. Go to the form URL and type {a b}

        (notice the space between a and b

      8. Click to open the select field

      Expected result

      suzanna.barnes@example.com should the only element listed (as can be seen by retrieving the email directly from the API using the percent-encoded a b seed (https://randomuser.me/api/?inc=email&seed=a%20b)

      Current result

      angelica.michelsen@example.com will be the only email listed

      Reproduced on

      master @ 3940582f11c74d2893ed6d272b7f697f240b4ee4
      7.2.x @ f9b80795107dca9f06bebe7681416eaf2f492bcc
      7.1.x @ 2dfcf02dfdf5f21e3779c672f4eeaabe9b047c77

        Attachments

        1. ActualResult_Sep2-LPS100057.mp4
          2.13 MB
        2. Failed.PNG
          Failed.PNG
          21 kB
        3. Q.gif
          Q.gif
          4.35 MB

          Activity

            People

            Assignee:
            alex.candido Alex Candido
            Reporter:
            cleydyr.albuquerque Cleydyr Albuquerque
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 7 weeks, 3 days ago

                Packages

                Version Package
                7.1.10 DXP FP14
                7.1.X
                7.2.10 DXP FP2
                7.2.10.1 DXP SP1
                7.2.X
                7.2.1 CE GA2
                7.3.10 DXP GA1
                Master