Nautilus Extract Here interprets backslashes as characters not directories

Bug #1274193 reported by Vaclav Petras
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Nautilus 3.4.2 Extract Here function interprets backslashes as characters not directories in a ZIP file which probably has directories saved in some MS Windows way, so that directories are stored using backslash.

I run Extract Here on a ZIP file and the result are files with backslash in file name, e.g.

lf78011331_US_DEM/US_DEM\info\arc0000.nit
lf78011331_US_DEM/US_DEM\us_dem\dblbnd.adf

The expected result is what unzip gives me, e.g.:

US_DEM/info/arc0000.nit
US_DEM/us_dem/dblbnd.adf

UnZip 6.00 of 20 April 2009 recognizes the directory structure and creates correct file names and directories.

I had this problem with the attached ZIP file (public domain data from USGS) with content:
./US_DEM.grid.aux
./US_DEM.prj
./us_dem
./us_dem/sta.adf
./us_dem/prj.adf
...
./Metadata.dbf
...
./info
./info/arc0000.nit
./info/arc0002.nit
...
./Metadata.prj

(two sub-directories: us_dem and info, everything is in one parent directory US_DEM)

lsb_release -rd

Description: Ubuntu 12.04.4 LTS
Release: 12.04

apt-cache policy pkgname

nautilus:
  Installed: 1:3.4.2-0ubuntu8
  Candidate: 1:3.4.2-0ubuntu9
  Version table:
     1:3.4.2-0ubuntu9 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
 *** 1:3.4.2-0ubuntu8 0
        100 /var/lib/dpkg/status
     1:3.4.1-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages

unzip:
  Installed: 6.0-4ubuntu2
  Candidate: 6.0-4ubuntu2
  Version table:
 *** 6.0-4ubuntu2 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages
        100 /var/lib/dpkg/status
     6.0-4ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main i386 Packages

Revision history for this message
Vaclav Petras (wenzeslaus) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nautilus (Ubuntu):
status: New → Confirmed
Revision history for this message
Martin Wildam (mwildam) wrote :

Approximately every 2 weeks I am downloading a few ZIP files from the same location (they change usually about once a week containing windows setup files). Suddenly I am experiencing this issue (using Ubuntu 14.04 - Archive Manager v3.10.2.1) with these zips. I cannot see any related update being done on my machine lately that may have introduced this behaviour.

However, extracting the ZIP on the commandline using 'unzip' produces the desired output.
I tried unzip on the commandline also with the zip that has been attached by Vaclav Petras and that also works here on the commandline but not using file-roller or Extract... in Nautilus.

Revision history for this message
Martin Wildam (mwildam) wrote : Re: [Bug 1274193] Re: Nautilus Extract Here interprets backslashes as characters not directories

Update: Not a problem of FileRoller - ZIP was created under Windows
using PowerShell and that thing has a bug in creating ZIPs. They use
backslashes in filenames rather than forward slashes which does not
meet the standard.

Best regards, Martin.

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.