Public bug reported:

I have encountered a problem when using Archive Manager (file-roller) version 
3.16.5 on Ubuntu 16.04 LTS (currently updated). 
$ lsb_release -rd
Description:    Ubuntu 16.04.4 LTS
Release:        16.04
$ apt-cache policy file-roller
  Installed: 3.16.5-0ubuntu1.2
  Candidate: 3.16.5-0ubuntu1.2
  Version table:
 *** 3.16.5-0ubuntu1.2 500
        500 xenial-updates/main amd64 
        500 xenial-security/main amd64 
        100 /var/lib/dpkg/status
     3.16.4-1ubuntu3 500
        500 xenial/main amd64 Packages

To demonstrate this problem:

  1) Download the attached file "Archive rename". This archive 
contains the two files "Hello there.txt" and "Hello there.log". The archive 
password is "Hello there" (without the quotes). 
  2) Inspection of the contents of the two files indicates the files were 
mistakenly named. The .txt file should be .log and the .log file should be .txt.
  3) Close and re-open the archive. This step is required so the password is 
required in the next step.
  4) Rename file "Hello there.txt" to "Hello there2.log". When you click the 
"Rename" button, you will be immediately prompted for the archive password. 
Enter the password and click the "OK" button. At this point the file "Hello 
there.txt" has been deleted from the archive and only file "Hello there.log" 
remains in the archive. Menu item File > Test Integrity shows no problems with 
the archive. 
My expectation is that the rename of a file in an archive should never result 
in the deletion of that file from the archive. The rename operation should 
either rename the file or fail to rename the file preserving the original file 

I believe this problem is important because files that are put into a
password protected archive are put there for a reason (for example,
financial information). The unexpected deletion of these files is most
likely important to the file owner.

Please note:

  1) This problem does not occur if the identical files are placed into an 
archive which is not password protected.
  2) This problem does not occur if the archive password is entered previous to 
the rename operation. For example, if the files are first opened to inspect 
their contents. 
  3) This problem does not occur if the two files have different names 
excluding the file name extensions .txt and .log.

** Affects: file-roller (Ubuntu)
     Importance: Undecided
         Status: New

** Tags: file-roller

** Attachment added: "Archive rename"

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  Renaming file in password protected archive results in file being
  deleted from the archive

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to