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

Publishing fails when dfile entry has pending status

Details

    Description

      in FileEntryStagedModelDataHandler.validateExport the fileVersion.status is checked to see if it is exportable. However, the dynamic query used to find fileEntries does not take status as a criterion because DLFileEntry is not a WorkflowedModel. DLFileVersion is a workflowedModel, thus it should be checked, but the two entities are coupled together with the current staging framework.

      There are two options:
      1) utilize the DLFileVersionExportActionableDynamicQuery
      2) do not validate export with version or trash status because it is already checked in the doExportStagedModel method

      testing:
      1) set up remote staging on one instance of liferay with two sites "staging" and "remote"
      2) add two documents to "staging" document library
      3) go into the DB and change the status of one of the dlFileVersions to 1 instead of 0 (this simulates what a workflow engine would do)
      4) clear the DB cache in the server
      5) go back to the document library of "staging" to verify that one of the documents is not pending
      6) publish

      expected result: only the approved document will be published
      actual result: an error message appears stating that the workflow status is not exportable.

      Attachments

        Issue Links

          Activity

            People

              linda.sui Linda Sui
              andrew.betts Andrew Betts (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8 years, 7 weeks ago

                Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M2