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

Specified workflow definitions for folders won't get imported

    Details

      Description

      Description

      Currently, with the inclusion of LPS-83326, we are able to import/stage folders where default workflow configurations are staged properly.  However, when using the "Define Specific Restrictions and Workflow for This Folder" setting to define folder workflow(s), these workflow(s) are not carried over properly.

      This is easily seen because the type variable is hard-coded to -1 during the export process, which is for defaults.  Seems this may have simply been overlooked though, as the import process has the beginnings of correct typing.

      Steps to Reproduce:

      1. Create two Web Content Folders called "folder1" and "folder2".
      2. (Master-only since the "Basic Web Content" structure no longer exists) Create a new structure called "Structure".
      3. In folder1, define a Default Workflow for This Folder using the Single Approver Workflow.
      4. In folder2, Define Specific Restrictions and Workflow for This Folder using "Structure" and Single Approver.
      5. Enable locale staging.  The only asset type needed is Web Content
      6. Edit both folders in the staging site (to view workflows)

      Expected:
      folder1 has the default workflow set to Single Approver
      folder2 has the Single Approver workflow set for "Structure"

      Actual:
       folder1 has the default workflow set to Single Approver
       folder2 has no workflow set for "Structure", but the option is selected.  This is because the live site's JournalFolder is being read in, but there is no WorkflowDefinitionLink entry linked.

      Reproduced:

      master: 81616ac411e9b370b2b327c263ca4ba71bbccf47

      Note: 70x suffers from both issues in folder1 and folder2.  This is because LPS-83326 has not yet been backported.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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

                  Packages

                  Version Package
                  7.0.0 DXP FP76
                  7.0.10.11 DXP SP11
                  7.0.X
                  7.1.10 DXP FP8
                  7.1.10.2 SP2
                  7.1.3 CE GA4
                  7.1.X
                  Master