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

When SPA timeout is reached, the page is refreshed and requests are sometimes sent twice

    Details

    • Fix Priority:
      2

      Description

      Steps to reproduce (note this has only occurred on our CI servers, and only occurs sporadically):

      1. Set the following in portal-ext.properties:
        javascript.single.page.application.timeout=5000
        
      2. Start a fresh bundle
      3. Add a virtual instance, site or user

      Alternate step to reproduce:

      1. Add the Language Selector portlet to a page
      2. Toggle open the Product Menu and navigate to > Control Panel > Configuration > Instance Settings

      Expected results:
      The success message should appear

      Actual results:
      The messages "Your request failed to complete." and "Please enter a valid web ID." appear instead. The request is being sent twice, because upon reaching the SPA timeout, the page will refresh, thus sending the request again. This happens on CI due to slower servers, so the default 30 second timeout is actually reached. It can be reproduced on faster computers by setting a shorter timeout time. This happens for various assets, such as sites, or users (the visible failure is seen because duplicate names are not allowed for those assets).

      It may not be reproducible that often in real world applications, as our test servers are less powerful than most actual servers.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 16 weeks ago

                  Packages

                  Version Package
                  Master