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

Kaleo Designer will modify source xml to value not allowed in the XSD

    Details

      Description

      Requires Kaleo Designer

      Steps to Reproduce:

      1. Go to Control Panel > Configuration > Workflow
      2. Add a new definition
      3. Upload the attached workflow definition with the following XML source:
        <recipients>
        	<user/>
        </recipients>
        
      4. Attempt to Publish the Definition
      5. View XML Source

      Expected Result:
      XML source is preserved on upload.

      Actual Result:
      XML source is modified on upload. Cannot publish due to XSD error.
      Changed to:

      <recipients receptionType="to">
      	<assignees/>
      </recipients>
      

      Error:

      Caused by: org.dom4j.DocumentException: Error on line 23 of document  : cvc-complex-type.2.4.a: Invalid content was found starting with element 'assignees'. One of '{"urn:liferay.com:liferay-workflow_7.1.0":address, "urn:liferay.com:liferay-workflow_7.1.0":roles, "urn:liferay.com:liferay-workflow_7.1.0":scripted-recipient, "urn:liferay.com:liferay-workflow_7.1.0":user}' is expected. Nested exception: cvc-complex-type.2.4.a: Invalid content was found starting with element 'assignees'. One of '{"urn:liferay.com:liferay-workflow_7.1.0":address, "urn:liferay.com:liferay-workflow_7.1.0":roles, "urn:liferay.com:liferay-workflow_7.1.0":scripted-recipient, "urn:liferay.com:liferay-workflow_7.1.0":user}' is expected.
      	at org.dom4j.io.SAXReader.read(SAXReader.java:482)
      	at org.dom4j.io.SAXReader.read(SAXReader.java:343)
      	at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:368)
      	... 197 more
      

      Reproduced on:
      7.1.x-private: 558f192a4b5d0a087ad22b20962f48155b8ac5e1

      Not Reproducible on:
      7.1 DXP GA1

        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:
                  2 years, 1 day ago

                  Packages

                  Version Package