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

Deploying multiple theme contributors with the same servlet context path does not respect Liferay-Theme-Contributor-Weight

Details

    Description

      Steps to reproduce

      1. Deploy the attached org.foo.control.menu.one.jar
      2. Deploy the attached org.foo.product.menu.jar
      3. Run the following cURL command and observe that we get an HTTP 200 response:
        curl --location --head http://localhost:8080/o/control-menu/css/1.css
      4. Deploy the attached org.foo.control.menu.two.jar
      5. Delete org.foo.product.menu.jar from osgi/modules
      6. Deploy the attached org.foo.product.menu.jar again
      7. Run the following cURL command:
        curl --location --head http://localhost:8080/o/control-menu/css/2.css

      Expectation is that, because org.foo.product.menu.two has a higher Liferay-Theme-Contributor-Weight, its resources should be available and we should see an HTTP 200 response.

      Actual behavior is that, because org.foo.product.menu.one was deployed first, the resources for org.foo.product.menu.two are not available and we see an HTTP 404 response.

      Attachments

        Issue Links

          Activity

            People

              summer.zhang Summer Zhang
              minhchau.dang Minhchau Dang
              Kiyoshi Lee Kiyoshi Lee
              Minhchau Dang Minhchau Dang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                2 years, 17 weeks, 6 days ago

                Packages

                  Version Package
                  7.0.0 DXP FP94
                  7.0.10.15 DXP SP15
                  7.0.X
                  7.1.10 DXP FP19
                  7.1.10.5 SP5
                  7.1.X
                  7.2.10 DXP FP8
                  7.2.10.3 DXP SP3
                  7.2.X
                  7.3.4 CE GA5
                  7.3.10 DXP GA1
                  Master