-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.2.X, Master
-
Fix Version/s: 7.2.10 DXP FP1, 7.2.1 CE GA2, 7.2.X, 7.3.10 DXP GA1, Master
-
Component/s: Forms
-
Labels:
-
Branch Version/s:7.2.x
-
Backported to Branch:Committed
-
Fix Priority:4
-
Git Pull Request:
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
- 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
- Open browser developer tools => network
- In the Navigation menu, go to Site => Content => Form
- Create a form with a text field and publish it.
- Copy form URL and open it in a new window
- Fill in the form and submit it
- Expected behavior: Form is submitted and there aren't any 404 errors in browser developer tools
- Wrong behavior:Form isn't submitted and there is a 404 error with http://localhost:8080/o/dynamic-data-mapping-form-context-provider/ URL
- Expected behavior: Form is submitted and there aren't any 404 errors in browser developer tools
- Discovered while testing
-
LPS-98519 404 error in dynamic-data-mapping-form-builder CSS in case of configuring Liferay with a non-ROOT context
- Closed