Silently discards tar contents after a file with xattrs is encountered

Bug #1788231 reported by Dan Watkins on 2018-08-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
file-roller (Ubuntu)
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)

Dan Watkins (daniel-thewatkins) wrote :
Dan Watkins (daniel-thewatkins) wrote :

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

Dan Watkins (daniel-thewatkins) wrote :

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

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.

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
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  Edit
Everyone can see this information.

Other bug subscribers