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

Can not Create or Update a structure when SPA is disabled with certain field names.

    Details

      Description

      When SPA is disabled and you try to create a Structure with a field name of "submit", Liferay will throw a Javascript error.

      Steps to Reproduce:
      1. Add javascript.single.page.application.enabled=false to portal-ext.properties. For a more detailed error message, you'll want to set javascript.fast.load=false as well.
      2. Navigate to the screen for adding a structure.
      3. Add a new field (any type) and for the name, make sure it is changed to "submit" (without the quotation marks).
      4. Make sure your browser's developer tools are open and you are looking at the Console.
      5. Attempt to save the structure.

      Expected Results:
      The Structure saves successfully.

      Actual Results:
      The Structure does not save and this error is thrown in the browser developer tools:

      TypeError: node[method] is not a function[Learn More] node-core.js:786:27
      invoke
      http://localhost:8080/o/frontend-js-web/aui/node-core/node-core.js:786:27
      Y.Node.prototype[method]
      http://localhost:8080/o/frontend-js-web/aui/node-core/node-core.js:1493:19
      submitForm
      http://localhost:8080/o/frontend-js-web/liferay/util.js:998:4
      _defaultSubmitFormFn
      http://localhost:8080/o/frontend-js-web/liferay/util.js:1185:5
      CEProto.fireComplex
      http://localhost:8080/o/frontend-js-web/aui/event-custom-complex/event-custom-complex.js:256:17
      _fire
      http://localhost:8080/o/frontend-js-web/aui/event-custom-base/event-custom-base.js:1071:24
      fire
      http://localhost:8080/o/frontend-js-web/aui/event-custom-base/event-custom-base.js:2204:19
      <anonymous>
      http://localhost:8080/o/frontend-js-web/liferay/util.js:1751:5
      _proxy
      http://localhost:8080/o/frontend-js-web/liferay/dependency.js:98:5
      Y.bind/<
      http://localhost:8080/o/frontend-js-web/aui/oop/oop.js:403:16
      <anonymous>
      http://localhost:8080/o/frontend-js-web/liferay/aui_sandbox.js:20:6
      _notify
      http://localhost:8080/o/frontend-js-web/aui/aui/aui.js:1105:17
      use/<
      http://localhost:8080/o/frontend-js-web/aui/aui/aui.js:1021:17
      _notify
      http://localhost:8080/o/frontend-js-web/aui/aui/aui.js:1105:17
      handleLoader
      http://localhost:8080/o/frontend-js-web/aui/aui/aui.js:1250:25
      _use
      http://localhost:8080/o/frontend-js-web/aui/aui/aui.js:1341:17
      use
      http://localhost:8080/o/frontend-js-web/aui/aui/aui.js:1020:13
      ALLOY.use
      http://localhost:8080/o/frontend-js-web/liferay/aui_sandbox.js:25:10
      proxy
      http://localhost:8080/o/frontend-js-web/liferay/dependency.js:73:6
      _com_liferay_dynamic_data_mapping_web_portlet_DDMPortlet_saveStructure
      http://localhost:8080/group/guest/~/control_panel/manage:23:345
      onclick
      http://localhost:8080/group/guest/~/control_panel/manage:1:1
      

       

      Reproduced
      70x-private:      fe1583ea0a532382de6a180a06dfe42099284c50
      master-private: 88dd4b85f874d6b89cf5bca6dd413eafce46dee9

        Attachments

          Activity

            People

            Assignee:
            lu.liu Lu Liu
            Reporter:
            il.kim Brian I. Kim
            Participants of an Issue:
            Recent user:
            Csaba Turcsan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 5 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 DXP FP60
                7.0.0 DXP SP9
                7.0.X
                7.1.10 DXP FP3
                7.1.1 CE GA2
                7.1.10.1 SP1
                7.1.X
                Master