Bug 591822 - abrt chooses wrong suffix for sosreport tarball, uses bz2 instead of xz
Summary: abrt chooses wrong suffix for sosreport tarball, uses bz2 instead of xz
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: abrt
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Denys Vlasenko
QA Contact: Michal Nowak
Depends On:
TreeView+ depends on / blocked
Reported: 2010-05-13 09:13 UTC by Michal Nowak
Modified: 2013-03-08 02:09 UTC (History)
7 users (show)

Fixed In Version: abrt-1.1.4-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-07-02 18:47:38 UTC
Target Upstream Version:

Attachments (Terms of Use)
Proposed patch (4.02 KB, patch)
2010-05-25 13:32 UTC, Denys Vlasenko
no flags Details | Diff

Description Michal Nowak 2010-05-13 09:13:22 UTC
Description of problem:

This is how SOSreport is started by abrt when I attempted to report via TicketUploader:

sosreport --batch --only=anaconda --only=bootloader --only=devicemapper --only=filesys --only=hardware --only=kernel --only=libraries --only=memory --only=networking --only=nfsserver --only=pam --only=process --only=rpm -k rpm.rpmva=off --only=ssh --only=startup --only=yum

When this is run manually it results in e.g. /tmp/sosreport-dhcp-lab-222-20100513104505-a579.tar.xz (see the XZ suffix). However abrt creates file /tmp/TicketUploader-newticket-20100513081932.tar.gz with following content:

* abrt specific info regarding that crash, and
* sosreport.tar.bz2.

sosreport.tar.bz2 which is itself:

dhcp-lab-222 ~ # file ~newman/Desktop/sosreport.tar.bz2 
/home/newman/Desktop/sosreport.tar.bz2: xz compressed data

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create report via TicketUploader
2. inspect type of tar.bz2 file inside tar.gz one
Expected results:

File in *this case* should be named sosreport.tar.xz however one never knows the suffix prio starting sosreport because sosreport chooses compression app depending on what compression apps are present: xz -> bz2.

Comment 1 Denys Vlasenko 2010-05-25 13:32:48 UTC
Created attachment 416408 [details]
Proposed patch

Comment 2 Denys Vlasenko 2010-05-25 19:08:15 UTC
Committed the fix to git

Comment 6 releng-rhel@redhat.com 2010-07-02 18:47:38 UTC
Red Hat Enterprise Linux Beta 2 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

Note You need to log in before you can comment on or make changes to this bug.