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

Order of JavaScript interdependent resources used by portlet is not preserved when JS fast load is checked

    Details

      Description

      Steps to reproduce:

      1. Create a portlet whose file liferay-portlet.xml includes at least two JavaScript files through the tag <header-portlet-javascript>.
      2. Deploy the portlet and add it to a page.
      3. Load that page with url parameter ?js_fast_load=1 so that JavaScript files are combined into a single file (http://localhost:8080/combo?browseridId=...)

      Observed: The JavaScript resources may have been combined in an order other than specified in liferay-portlet.xml, leading to errors when running the combined JavaScript file.
      Expectd: The JavaScript resources are combined in the same order as that specified in liferay-portlet.xml.

      The order the JavaScript resources is lost in the method HttpImpl.parameterMapFromString(String queryString), which uses a HashMap structure. Before LPS-71572 the structure was LinkedHashMap, which kept the original order.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                joyce.wang Joyce Wang
                Reporter:
                ricardo.couso Ricardo Couso
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 8 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP19
                  7.0.3 CE GA4
                  7.0.0 DXP SP4
                  7.0.X EE
                  7.1.X
                  Master