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

Cannot submit Form in case of configuring Liferay with a non-ROOT context

    Details

      Description

      Cannot submit Form in case of configuring Liferay with a non-ROOT context, a 404 error is produced.

      Root cause: submit URL is hardcoded without path context in https://github.com/liferay/liferay-portal/blob/master/modules/apps/dynamic-data-mapping/dynamic-data-mapping-form-renderer/src/main/resources/META-INF/resources/js/util/evaluation.es.js#L19

      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. Open browser developer tools => network
      3. In the Navigation menu, go to Site => Content => Form
      4. Create a form with a text field and publish it.
      5. Copy form URL and open it in a new window
      6. Fill in the form and submit it

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              harry.chai Harry Chai
              Reporter:
              jorge.diaz Jorge Diaz
              Participants of an Issue:
              Recent user:
              Jason Pince
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 8 weeks, 2 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP1
                  7.2.X
                  7.2.1 CE GA2
                  7.3.10 DXP GA1
                  Master