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

Javascripts not being reloaded to browser after migration from 7.3.2 to 7.3.3/7.3.4

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 7.3.3 CE GA4, 7.3.4 CE GA5, Master
    • Fix Version/s: None
    • Component/s: JS APIs and Utilities
    • Labels:
      None
    • Fix Priority:
      3

      Description

      LPS-113569 Remove unnecessary `requires` did the following change to available_languages.jsp:

      - requires: ['liferay-language']
      + requires: []

      This works with global.bundle.js from Liferay 7.3.3/7.3.4. However if you migrate from an older version of Liferay to 7.3.3/7.3.4 browser seems to continue using the old version of global.bundle.js which is incompatible with LPS-113569.

      The following error is seen in browser's console when browsing to Liferay's login page:

      available_languages.jsp?browserId=chrome&themeId=classic_WAR_classictheme&colorSchemeId=01&languageId=en_US&b=7303&t=1598781592331:87 Uncaught TypeError: Cannot set property 'available' of undefined
      {{ at Object.AUI.add.requires [as fn] (available_languages.jsp?browserId=chrome&themeId=classic_WAR_classictheme&colorSchemeId=01&languageId=en_US&b=7303&t=1598781592331:87)}}
      {{ at YUI._attach (aui.js:840)}}
      {{ at YUI._attach (aui.js:806)}}
      {{ at YUI.handleLoader (aui.js:1250)}}
      {{ at Y.Loader._finish (aui.js:8231)}}
      {{ at Y.Loader._onSuccess (aui.js:8280)}}
      {{ at complete (aui.js:8519)}}
      {{ at Y.Loader._insert (aui.js:8528)}}
      {{ at Y.Loader.complete (aui.js:8513)}}
      {{ at Y.Loader.onSuccess (aui.js:8581)}}

      Login form fields stay inaccessible. The reason might be that due to this error end.jsp which calls removeAttribute('disabled') is never run.

      Manually reloading global.bundle.js solves the problem. However I think this is not a proper solution for the problem.

      The console error can be reproduced easily by making a fresh install of 7.3.2 and upgrading it then to 7.3.3.

      My test portal-ext.properties contains only the basic four lines database configuration + javascript.fast.load=false.

       

        Attachments

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            mikael.andersson@alekstra.com Mikael Andersson
            Participants of an Issue:
            Recent user:
            Summer Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              48 weeks, 6 days ago

                Packages

                Version Package