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

Publish to Live creates new versions of documents even if these haven't changed

    Details

      Description

      Steps to reproduce:

      1. Create an structure which contains a Document from Docs and Media
      2. Add a new Basic Document in the Document Library.
      3. Add a new web content display in a page, and add a new web content using the structure from #1 and the document in #2.
      4. Activate Staging --> Check the database, table dlFileVersion, you will have 1 version in live and another in staging
      5. Publish to Live again --> still the same, this is ok
      6. Edit the document in Staging (now you have version 1.1)
      7. Publish to Live --> Now in the database, you have another version in live (2.0)
      8. Publish to Live again --> Another version is created (3.0) and so on...

      The main issue is that the DLPDataHandler is assuming the version is kept when publishing (see method isDuplicateFileEntry), but the version is not kept when publishing. We should use the dlFileVersion uuid to do this checking.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pani.gui Pani Gui (Inactive)
              Reporter:
              julio.camarero Julio Camarero (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 25 weeks, 3 days ago

                  Packages

                  Version Package
                  6.0.X EE
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2