-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.0 Alpha 3
-
Fix Version/s: 6.2.X EE, 7.0.0 Alpha 3
-
Component/s: Documents & Media, ~ [Archived] Collaboration
-
Branch Version/s:6.2.x
-
Backported to Branch:Committed
-
Fix Priority:5
-
Sprint:Roasted Barley Milk Tea, Gahnospinel, Tetraferriphlogopite 12/20-1/3
-
Git Pull Request:
Steps to reproduce:
- Navigate to Content > Documents and Media
- Click on the + sign to add a Basic Document.
- Publish the document
At this point if you check the file system (or other depending on the store) in the path data/document_library/ you should see the document that has been uploaded with a number like 1.0
- Try to move the document to the same folder (Home Folder)
You will see an error in the UI "Your request failed to complete."
If you check the file system store you will see that the file is gone, thus it cannot be downloaded.
The reason why this is happening is because when the store is moving the file to the same location (same folder as it was) it will throw a DuplicateFileException (see FileSystemStore around line 339). Then, as it threw that exception, the IgnoreDuplicatesStore will delete that file and will try to repeat the operation. However, the file that was deleted was the exact same file that was going to be copied so it won't succeed.