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

Default "receptionType" values result in validation error in Kaleo Designer 7.0.x-private

    Details

      Description

      As part of fixing LPS-74909, we always add a receptionType attribute to <recipients> tags. However, it is causing breakage in the 7.0.x-private version of Kaleo Designer, because this version still validates the workflow definition schema. By the schema, receptionType should have one of the valid values (to, cc, bcc). Our fix sets no value to the attribute, which violates the schema.

      So, if we backport LPS-74909, and try to publish a workflow with <recipients>, the receptionType attribute will be added by the "View" mode. On publishing, the validation will fail, with an exception such as this one:

      com.liferay.portal.kernel.xml.DocumentException:
       Error on line 21 of document  :
       cvc-enumeration-valid: Value '' is not facet-valid with respect to enumeration '[bcc, cc, to]'.
       It must be a value from the enumeration.
       Nested exception: cvc-enumeration-valid:
       Value '' is not facet-valid with respect to enumeration '[bcc, cc, to]'.
       It must be a value from the enumeration.

      Also, if the schema version is from 6.2, which does not even have receptionType, the publication will fail with an exception like this:

      com.liferay.portal.kernel.xml.DocumentException:
       Error on line 21 of document  :
       cvc-complex-type.3.2.2: Attribute 'receptionType' is not allowed to appear in element 'recipients'.
       Nested exception: cvc-complex-type.3.2.2:
       Attribute 'receptionType' is not allowed to appear in element 'recipients'.

      These errors are preventing the backporting so should be addressed. receptionType should not be automatically added to workflows if it was not present in the XML document before.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                adam.brandizzi Adam Brandizzi
                Recent user:
                Enterprise Release HU
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  7.0.0 DXP FP58
                  7.0.0 DXP SP9
                  7.0.X
                  7.1.X
                  7.2.X
                  Master