unzip strips trailing semicolon from filename when extracting

Bug #609254 reported by Andrzej
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unzip
Unknown
Unknown
unzip (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: file-roller

If a zip archive contains a file where the filename ends in a semi-colon, then when the file is extracted, the trailing semi-colon is removed from the filename.

If you try to export the one file, named "this is a new file&22;" from the attached text.zip archive, using Archive Manager, it will create a file called "this is a new file&22". That is incorrect....the trailing semi-colon should be part of the extracted files filename!

Zip utilities (like WinZip) leave the trailing semi-colon intact in the extracted filename, so this is unique to file-roller/archive manager.

Revision history for this message
Andrzej (andrzej-chaeron) wrote :
Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Thank you for your bug report. I can confirm this bug, however, it is not file-roller's fault: If you do "unzip test.zip" with your file in a terminal, you get the same result (file-roller is using unzip for extracting zip files). I therefore changed the package to unzip.
If you are only using file-roller and not the unzip command directly, there's a simple work-around: Install the p7zip-full package, this will then be used by file-roller and doesn't show this bug.

affects: file-roller (Ubuntu) → unzip (Ubuntu)
Changed in unzip (Ubuntu):
status: New → Confirmed
summary: - Archive Manager strips trailing character from filename on export
+ unzip strips trailing semicolon from filename when extracting
Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

I reported this bug upstream, you can track it and make comments at:
http://sourceforge.net/tracker/?func=detail&aid=3033980&group_id=118012&atid=679786

Revision history for this message
Andrzej (andrzej-chaeron) wrote :

Thanks for the confirmation and details Marcel. I had discovered that unzip had the problem, and figured that file-roller was just using unzip or a common library.

I did install p7zip-full as a workaround using the command line version. Good to know that if you install p7zip-full then file-roller will use it. Very nice, transparent workaround! Thanks for that tip!

Piggy Blotch (wise-1)
Changed in unzip (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.