Silently discards tar contents after a file with xattrs is encountered

Bug #1788231 reported by Dan Watkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
file-roller (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Steps to reproduce:

  1) Create a tar file containing /usr/bin/mtr-packet (which has xattrs) (and a file before and after to confirm the behaviour):
     $ tar -C / --xattrs --xattrs-include=\* etc/adduser.conf usr/bin/mtr-packet etc/aliases -cf reproducer.tar
  2) Confirm that tar reads the file correctly:
     $ tar tf reproducer.tar
     etc/adduser.conf
     usr/bin/mtr-packet
     etc/aliases
  3) Open the file with file-roller (`file-roller reproducer.tar`)

Expected behaviour:

  All three files are displayed in the UI

Actual behaviour:

  Only etc/adduser.conf appears in the UI

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: file-roller 3.28.0-1ubuntu1
ProcVersionSignature: Ubuntu 4.15.0-32.35-generic 4.15.18
Uname: Linux 4.15.0-32-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Aug 21 11:41:05 2018
InstallationDate: Installed on 2017-10-23 (301 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
SourcePackage: file-roller
UpgradeStatus: Upgraded to bionic on 2018-01-23 (210 days ago)

Revision history for this message
Dan Watkins (oddbloke) wrote :
Revision history for this message
Dan Watkins (oddbloke) wrote :

When I attempt to extract the file, I get an "Ignoring malformed pax extended attribute" error message (screenshot attached).

Revision history for this message
Dan Watkins (oddbloke) wrote :

Attached is a tar file that can be used to reproduce the issue.

Revision history for this message
Dan Watkins (oddbloke) wrote :
Revision history for this message
Robert C Jennings (rcj) wrote :

@daniel-thewatkins, this is still failing on cosmic with 3.30.0-1 but it's likely a library, like libarchive, and not file-roller.

Revision history for this message
Robert C Jennings (rcj) wrote :

libarchive 3.3.0 appears to add xattr support for gnu tar archives, this needs to be tested still but likely this is a key part of our issue. https://github.com/libarchive/libarchive/releases/tag/v3.3.0

Changed in file-roller (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Sebastien Bacher (seb128) wrote :

It works now in disco where libarchive got updated to the new version with the xattrs support, closing

Changed in file-roller (Ubuntu):
status: Triaged → 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.