Avoid duplicate files with the same name#4361
Avoid duplicate files with the same name#4361gvmura wants to merge 1 commit intonextcloud:stable11from gvmura:patch-1
Conversation
|
@gvmura, thanks for your PR! By analyzing the history of the files in this pull request, we identified @MTGap, @AdamWill, @icewind1991 and @Xenopathic to be potential reviewers. |
|
It doesn't handle duplicate files in Google Drive, it tries to avoid them. |
icewind1991
left a comment
There was a problem hiding this comment.
Looks fine as far as I can tell
|
@gvmura thanks a lot for your pull request! Just run:
|
|
UPDATE: I have just tried to sign and commit @rullzer sorry, This morning I tested owncloud 9.1.5 and I saw that when the system create the secondary file it handle the Google version. No "temporary" file is created in Google. |
When it renames the temporary file, it tests if the file is already present. If so, it moves to trash the previous version to avoid duplicate files with the same name (message log: "Ignoring duplicate file name: ... on Google Drive for Google user: ...") Signed-off-by: gvmura <[email protected]>
Codecov Report
@@ Coverage Diff @@
## stable11 #4361 +/- ##
==============================================
+ Coverage 57.39% 57.39% +<.01%
Complexity 19439 19439
==============================================
Files 1214 1214
Lines 72565 72563 -2
Branches 1237 1237
==============================================
Hits 41650 41650
+ Misses 30915 30913 -2
|
|
@gvmura so this is not needed? Because then we can close this... |
|
Before merging this keep in mind: this is against stable11 |
|
@rullzer, |
Best would be then to have this PR against master and we will take care of backporting to stable11. Could open this PR against master instead? |
Ok, tomorrow mornign I'll do it. |
When it renames the temporary file, it tests if the file is already present. If so, it moves to trash the previous version to avoid duplicate files with the same name (message log: "Ignoring duplicate file name: ... on Google Drive for Google user: ...")