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

Liferay requests combo resources when cdn.dynamic.resources.enabled=false

    Details

      Description

      Description:
      CDN configuration property cdn.dynamic.resources.enabled=false does not work as expected: if a CDN is enabled using cdn.host.http= and/or cdn.host.https=, dynamic resources will be requested from the CDN instead of served by Liferay even when cdn.dynamic.resources.enabled=false is set.

      Steps to Reproduce:
      1. Prepare a clean DXP 7.2 SP1 bundle.
      2. Set the CDN properties:

      cdn.dynamic.resources.enabled=false
      cdn.host.http=http://localhost:3000
      cdn.host.https=https://localhost:3000

      3. Start Liferay and open the Dev Tools.

      Expected:
      Dynamic resources, such as combo javascripts, should be served by Liferay and not the CDN

      Actual:
      Liferay is requesting dynamic resources, such as combo javascripts, are being requested from whatever URL was configured in the CDN Host properties.

      Reproduced on:
      72x: 476b035983c0ad5f9b6b5970ad7d3be4005971b7
      master: 5fc5e4647f47060c679ed18f93c287f368442150

      * Please see Zendesk Support tab for further comments and attachments.

        Attachments

        1. not cnd.png
          not cnd.png
          55 kB
        2. screenshot.png
          screenshot.png
          169 kB

          Activity

            People

            Assignee:
            summer.zhang Summer Zhang
            Reporter:
            kevin.lee Kevin Lee
            Participants of an Issue:
            Recent user:
            Kevin Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.2.X
                7.3.X
                7.3.5 CE GA6
                7.3.10 DXP GA1
                Master