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

404 error in dynamic-data-mapping-form-builder CSS in case of configuring Liferay with a non-ROOT context

Details

    Description

      A 404 error is produced in dynamic-data-mapping-form-builder CSS in case of configuring Liferay with a non-ROOT context.
      The 404 error is produced because CSS URL doesn't have the context prefix.

      Wrong URL was added in LPS-93069 (see commit 54b9facafac8989a3307104184a982933bf5ec42 ) causing the issue in 7.2.x and master branches.
      That code is being backported to 7.1.x in LPS-98514

      Steps to reproduce

      1. Configure Liferay with a non-ROOT context, for example: "test".
        • In order to do this, simply rename tomcat-9.x.y/webapps/ROOT and tomcat-9.x.y/conf/Catalina/localhost/ROOT.xml to test and test.xml
      2. Start Liferay
      3. Open the URL: http://localhost:8080/test , appending the context you have just added in previous step
      4. Open browser developer tools => network
      5. In the Navigation menu, go to Site => Content => Form
      6. Click in [+] button in order to create a Form.
      7. Check downloaded CSS:
        • Expected behavior: There aren't any 404 errors in browser developer tools
        • Wrong behavior: There is a 404 error in dynamic-data-mapping-form-builder CSS

      Attachments

        Issue Links

          Activity

            People

              harry.chai Harry Chai
              jorge.diaz Jorge Diaz
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 42 weeks, 5 days ago

                Packages

                  Version Package
                  7.1.10 DXP FP13
                  7.1.10.3 SP3
                  7.1.X
                  7.2.10 DXP FP1
                  7.2.1 CE GA2
                  7.2.X
                  7.3.10 DXP GA1
                  Master