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

Data provider timeout change does not take effect

    Details

      Description

      Steps to reproduce

      1. Copy the attached com.liferay.dynamic.data.mapping.data.provider.configuration.DDMDataProviderConfiguration.config file to folder osgi/configs
        1. This is needed to allow data providers to make requests to localhost
      2. Start the portal
      3. Start the attached dummy REST server by running java -jar delayed-rest-demo-0.0.1-SNAPSHOT.jar
        1. This dummy server sends a simple JSON string with a 5 seconds delay
      4. Import the attached LAR Forms-202108131451.portlet.lar
        1. It contains a data provider instance (named Test) and a form instance (named Untitled Form) that uses the Test data provider.
      5. In the sidebar site menu go to Content & Data > Forms
      6. Find the Untitled Form and get its share URL by clicking on ⋮> Share and copy the Link value
      7. Go to the Untitled Form share URL copied in the previous step
        1. It will load an empty as the server will respond with a 5 seconds delay and the data provider has a 4 second timeout
      8. In the sidebar site menu go to Content & Data > Forms
      9. Go to the Data Providers tab
      10. Edit the Teste data provider
      11. Change its timeout value from 4000 to 14000 then save
      12. Go to the Untitled Form url copied previously (or refresh the tab where it's currently open)

      Expected behavior

      The form will load the Brazil option in the Select field as the timeout is long enough to get the response from the dummy server

      Current behavior

      The form will continue to show the empty Select field as if the timeout value increase had no effect and the data provider request timed out anyways.

        Attachments

          Activity

            People

            Assignee:
            chao.wang Chao Wang
            Reporter:
            cleydyr.albuquerque Cleydyr Albuquerque
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Cleydyr Albuquerque
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              14 weeks ago

                Packages

                Version Package
                7.2.10 DXP FP15
                7.2.X
                7.3.X
                7.4.13 DXP GA1
                Master