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

REST Data Provider in Forms doesn't populate when nonProxyHost is in use

    Details

      Description

      Steps to Reproduce

      Originally tested on a fresh 7.1 bundle patched to dxp-12:
      1. Unzip a fresh 7.1 bundle, and add the following CATALINA_OPTS environment variables to the setenv.sh (found in [Liferay_Home]/[Tomcat_Home]/bin):

      -Dhttp.proxyHost=test.com -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=localhost 
      

      2. Launch the bundle
      3. Navigate to [Site_Administration] > Content > Forms, ⠇> Data Providers, and add a new REST data provider “Test REST provider” with the following (leaving all other defaults):
      a. URL - http://localhost:8080/api/jsonws/region/get-regions/country-id/19/active/true
      b. Output - Label: Name; Path: name; Type: list
      4. Navigate back to [Site_Administration] > Content > Forms, and create a new form “Test Form” that contains a “Select from List” element, setting the “Create List” configuration to From Data Provider (choosing Test REST provider and Name for the required parameters).
      5. Save and Publish the form, access it with the link in the UI alert at the top of the screen, and attempt to choose an option

      Results of Testing

      Expected Result: The list is populated with the values from the data provider
      Actual Result: There are no options to choose, as it says “No results were found,” and a WARN appears in the log (though I don’t know if it’s related following a quick Google search).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              harry.chai Harry Chai
              Reporter:
              lino.alves Lino Alves
              Participants of an Issue:
              Recent user:
              Jason Pince
              Engineering Assignee:
              Lino Alves
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 26 weeks, 2 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