Alfresco
  1. Alfresco
  2. ALF-10717

Renditions doclib and webpreview accumulates (not replaced) when creating new version using Edit Offline

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 4.0.a Community
    • Fix Version/s: 4.0 Enterprise
    • Component/s: Repository
    • Security Level: external (External user)
    • Labels:
      None

      Description

      For each upload of a new version after offline edit in Share, a new set of cm:doclib and cm:webpreview renditions are created.

      To reproduce
      1. Create a text document.
      2. Select Edit Offline
      3. Upload new version
      4. Repeat step 2-3 a couple of times.
      5. View the children to this document in the node browser.
      Expected: One set of renditions that is updated for each new version
      Actual: 2 new renditions are created for each new version, the old ones kept as children.
      In order to do step 4 you may have to apply my suggested fix/workaround from ALF-10620

      I've also tested this with online edit (make sure you have applied the versionable aspect). The error does not occur in this case.

        Issue Links

          Activity

          Hide
          Peter Löfgren added a comment -

          Attached file showing multiple renditions

          Show
          Peter Löfgren added a comment - Attached file showing multiple renditions
          Hide
          Peter Löfgren added a comment -

          This also happens if you have child nodes in your model according to this Forum post
          https://forums.alfresco.com/en/viewtopic.php?f=36&t=41592

          Show
          Peter Löfgren added a comment - This also happens if you have child nodes in your model according to this Forum post https://forums.alfresco.com/en/viewtopic.php?f=36&t=41592
          Hide
          Roy Wetherall added a comment -

          Adjusted copy policies so on check-in (ie when version is updated) rendition child associations are not copied from the working copy.

          Tested and duplication of renditions no longer occurs.

          Show
          Roy Wetherall added a comment - Adjusted copy policies so on check-in (ie when version is updated) rendition child associations are not copied from the working copy. Tested and duplication of renditions no longer occurs.
          Hide
          Peter Löfgren added a comment -

          What about all those repositories that now have duplicate thumbnail child nodes? Will it affect retrieval of thumbnail (I haven't seen that though), will the duplicates be removed when a new version is created. Maybe a patch to remove them?

          Show
          Peter Löfgren added a comment - What about all those repositories that now have duplicate thumbnail child nodes? Will it affect retrieval of thumbnail (I haven't seen that though), will the duplicates be removed when a new version is created. Maybe a patch to remove them?
          Hide
          Cosmin Marginean added a comment -

          @Roy - we are looking for a patch to this problem and can't really upgrade.
          Are you able to point us to an SVN revision where this was committed?

          Thank you,
          Cosmin

          Show
          Cosmin Marginean added a comment - @Roy - we are looking for a patch to this problem and can't really upgrade. Are you able to point us to an SVN revision where this was committed? Thank you, Cosmin
          Hide
          Cosmin Marginean added a comment -

          Found the revision for this patch: 32129.

          Show
          Cosmin Marginean added a comment - Found the revision for this patch: 32129.
          Hide
          Ravi Manthena added a comment -

          Assigned to Alfresco QA Team Re-Testing
          Use build 681 and SVN Revision number 32368 or later.

          Show
          Ravi Manthena added a comment - Assigned to Alfresco QA Team Re-Testing Use build 681 and SVN Revision number 32368 or later.
          Hide
          Alfresco QA Team added a comment -

          Successfully validated on Alfresco Enterprise v4.0.0с build 681(r 32368), RHEL 5.5 x64bit, MySQL 5.5, mysql-connector-java-5.1.17-bin.jar, Tomcat 6.0.29, JDK 6 u22 x64, WinXP SP3, FF8.0.
          AlexPo.

          Show
          Alfresco QA Team added a comment - Successfully validated on Alfresco Enterprise v4.0.0с build 681(r 32368), RHEL 5.5 x64bit, MySQL 5.5, mysql-connector-java-5.1.17-bin.jar, Tomcat 6.0.29, JDK 6 u22 x64, WinXP SP3, FF8.0. AlexPo.
          Hide
          Eugene added a comment -

          What about custom child associations, they are accumulates (not replaced) when creating new version using Checkout/Checkin in webscript.
          Please see https://forums.alfresco.com/en/viewtopic.php?f=7&t=41565

          Show
          Eugene added a comment - What about custom child associations, they are accumulates (not replaced) when creating new version using Checkout/Checkin in webscript. Please see https://forums.alfresco.com/en/viewtopic.php?f=7&t=41565

            People

            • Assignee:
              Closed Issues
              Reporter:
              Peter Löfgren
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: