Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-15661

Making a Copy of a Locked Offline file adds a long string to copied file name

    Details

      Description

      [Summary]

      If you have a document which is checked out (edit offline) and then make a copy of it to another location or site (while it is checked out) the file name for the copy includes a UUID like string in the filename.

      [Steps to reproduce]

      • Install alfresco 5.0.2.11 using the installer
      • Startup alfresco and login to share as the default admin user
      • Click on the repository link and create a text file named "file.txt"
      • Under the actions for the new file click on "Edit offline"
      • Once the file has been checked out click on the details of the checked out file and click the "Copy to..." action
      • Select a folder as the destination and click copy

      [Current behaviour]

      A file with a filename "file_<SOMEUUID>.txt" is generated.

      [Expected behaviour]

      A file with a filename "file.txt" is generated

      [Analysis to Date]

      It appears that the CopyService is the one responsible for this behavior. After briefly debugging the copy action it can be seen that the class ./root/projects/repository/source/java/org/alfresco/repo/copy/CopyServiceImpl.java is called and the method that is setting the new filename is copyAndRename -> getTopLevelNodeNewName() -> buildCopyProperties()

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs
                  Reporter:
                  jportillo Jose Portillo
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Time Spent - 3 hours, 15 minutes Remaining Estimate - 1 day, 5 hours, 30 minutes
                    1d 5h 30m
                    Logged:
                    Time Spent - 3 hours, 15 minutes Remaining Estimate - 1 day, 5 hours, 30 minutes
                    3h 15m

                      Structure Helper Panel