Project

General

Profile

Bug #8416

Documents/Upload: "Overwrite the existing file" with "Uncompress zip" does not work

Added by Matthieu Moy over 2 years ago. Updated over 2 years ago.

Status:
Needs testing
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
24/08/2016
Due date:
% Done:

0%

Estimated time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

In the "documents" tool, "Upload documents", tab "Upload (simple)", I can upload a ZIP file and tick "Uncompress zip" to have the ZIP file uncompressed on the server.

Ticking this automatically selects "Overwrite the existing file", but this is not what actually happens: the ZIP content gets renamed and does not overwrite the old files.

Steps to reproduce:

$ mkdir foo
$ echo 'This is a test' > foo/index.html      
$ zip -r foo.zip foo

Upload foo.zip with "Uncompress zip"+"Overwrite the existing file".

$ echo 'This is another test' > foo/index.html
$ zip -r foo.zip foo                          

Upload this new foo.zip with "Uncompress zip"+"Overwrite the existing file".

Expected outcome:

A single directory foo with a file index.html containing "This is another test".

Actual outcome:

Two directories, foo and foo_1 corresponding respectively to the first and second upload.

Thanks,

Associated revisions

Revision 91da2430 (diff)
Added by jmontoyaa over 2 years ago

Fix zip upload. Now it overwrites the documents. See #8416

History

#1

Updated by Julio Montoya over 2 years ago

  • Status changed from New to Needs testing

Also available in: Atom PDF