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

Form Validation error occurs when creating a new CXF Endpoint on the UI and portal.proxy.path is used

    Details

      Description

      1. Add portal.proxy.path=/portal to the portal-ext.properties
      2. Configure apache to proxy through /portal to the app server:
      3. Enable mod proxy:
        a2enmod proxy
      4. Open /etc/apache2/sites-enabled/000-default.conf
      5. Insert the following lines:
        ProxyRequests On
        	 ProxyPass /portal http://localhost:8080
        	 ProxyPassReverse /portal http://localhost:8080
      6. Start apache:
        service apache2 start
      7. Launch a de-32 bundle
      8. Add a new CXF Endpoint from System Settings (Go to Control Panel - Configuration - System Settings - Foundation - CXF Endpoints)
      9. Type /wd in context field

      An error message appears in the UI: "There was an error when trying to validate your form"

      Reproduced on master (36d9bf1b6a2a254e5499a261d7a9125d8d8c5e9b)

      Form validation fails because portal.proxy.path is missing in path "/o/dynamic-data-mapping-form-evaluator/" and returns 404

      The following js file is throwing the ui error message:
      /modules/apps/forms-and-workflow/dynamic-data-mapping/dynamic-data-mapping-form-renderer/src/main/resources/META-INF/resources/js/
      form.js
      The form.js is referenced by another js file (it is located in the same folder):
      form_evaluation_support.js

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 45 weeks ago

                  Packages

                  Version Package
                  7.0.0 DXP FP43
                  7.0.6 CE GA7
                  7.0.0 DXP SP8
                  7.0.X
                  7.1.0 M2
                  7.1.X
                  Master