Bug 249526 - KTar does not correctly support pax and ustar formats
Summary: KTar does not correctly support pax and ustar formats
Status: RESOLVED WORKSFORME
Alias: None
Product: kio
Classification: Unmaintained
Component: tar (other bugs)
Version First Reported In: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Mario Bensi
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2010-08-30 18:41 UTC by cmpweb-rp95
Modified: 2018-10-29 02:17 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
to see the bug must unzip is file (182.97 KB, application/octet-stream)
2010-08-30 18:51 UTC, cmpweb-rp95
Details
here is the exploration of the compress file (381.81 KB, image/png)
2010-08-31 16:33 UTC, cmpweb-rp95
Details
Opening with "ark" and "dolphin" (439.62 KB, image/jpeg)
2010-09-04 11:23 UTC, cmpweb-rp95
Details
Sample file which shows the problem in the tar ioslave. (183.30 KB, application/gzip)
2010-09-21 05:17 UTC, Raphael Kubo da Costa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cmpweb-rp95 2010-08-30 18:41:31 UTC
Version:           2.12 (using KDE 4.2.4) 
OS:                Linux

ark, compression is not as it should, sometimes certain folder that is in 5th position is reflected archive has position 1

Reproducible: Sometimes

Steps to Reproduce:
to reproduce the bug must unzip the file:    zark-good.tar.gz
which has been compressed with another program, and then compress the file with "ark"

Actual Results:  
the folder
alllll/fichiers/images(CHEZ.COM)
alllll/fichiers/images(TRUC.COM)
alllll/fichiers/(noftp)/google-photos

has a position so that one should be in position 4


attach the file to work properly it has been compressed with "file roller", to see the bug must unzip the. tar.gz, and recompress it with "ark"
Comment 1 cmpweb-rp95 2010-08-30 18:51:15 UTC
Created attachment 51112 [details]
to see the bug must unzip is file

attach the file to work properly it has been compressed with "file roller" , to see the bug must unzip the  .tar.gz  , and recompress it with "ark"
Comment 2 Raphael Kubo da Costa 2010-08-30 21:29:41 UTC
The order of the folders is incorrect only when you add the 'zark-bugg' folder in Ark, right? When you close Ark and reopen the archive the files and folders are listed in the right order, can you confirm that?
Comment 3 cmpweb-rp95 2010-08-31 12:29:14 UTC
no, there is nothing to do this does not change, I do not if it is just the folder name is  "("     ")"

because this bug does not occur every time it may be the file contents so
Comment 4 Raphael Kubo da Costa 2010-08-31 15:56:58 UTC
Can you post a screenshot of your Ark window with the folders expanded right after you add the "zark-bugg" folder and after you close Ark and open your generated archive?
Comment 5 cmpweb-rp95 2010-08-31 16:33:25 UTC
Created attachment 51144 [details]
here is the exploration of the compress file

here is the exploration of the compress file
Comment 6 cmpweb-rp95 2010-09-03 11:31:47 UTC
then?
Comment 7 Raphael Kubo da Costa 2010-09-03 16:03:14 UTC
Then we haven't had time to look at it yet ;)

The problem you've mentioned seems to be in the tar ioslave, not in Ark -- the screenshot you've posted is not from Ark. I'm still not sure where the problem is exactly, though.
Comment 8 cmpweb-rp95 2010-09-03 19:24:27 UTC
Hello, and thank you for bringing this to my comment made on well
yes I put a screenshot of "dolphin" kde browser, but I think it was what you asked, because I did what you told me I opened the archive with " ark "and" ark "works perfectly it does not delete my file or move a file, even after having unzip an archive that bug probably because of the browser, the archive is again as was originally so for me the problem is solved
thank you
Comment 9 Raphael Kubo da Costa 2010-09-03 20:25:36 UTC
Hmm, I'd rather keep this report open, as we need to check whether the tar ioslave (what you used in Dolphin to view your archive) is really misbehaving here.
Comment 10 Raphael Kubo da Costa 2010-09-04 07:14:00 UTC
Let me comment here before I forget these notes somewhere else: the problems seems to be that the tar ioslave (actually, KTar itself) does not support tar files in the "ustar" (POSIX-1998) or "pax" (aka POSIX-2001) correctly.

The original tar format only supported file name entries with at most 99 characters. GNU tar came up with some extensions for the file name length, such as the "././@LongLink" hack supported by KTar, which used areas in the tar header previously unused by the POSIX standards. However, when POSIX finally standardized the ustar and posix/pax formats later, all these headers ended up being used.

Apparently, KTar only correctly supports tar archives compressed in the "v7" and "gnu" formats. Since file-roller simply invokes the command-line tar utility with the usual options, the archives it creates can be correctly read by KTar, as it seems that the format chosen for long file names by GNU tar is "gnu" in this case instead of "ustar" or "pax".

Ark (and bsdtar) use libarchive, which behaves differently -- by default, a standard "ustar" file was created, and it wasn't read as expected by KTar because the archive from the original bug reporter contains file names which are too long.

Long story short (no pun intended ;) -- KTar needs to support newer tar formats.
Comment 11 cmpweb-rp95 2010-09-04 11:23:48 UTC
Created attachment 51301 [details]
Opening with "ark" and "dolphin"

ok I understand, I am at your disposal if you wish me to do tests,

I'm not a software developer so I understand not much in it these bugs and technical explanations

but on reflection I forget something because I rush to close the file, I did say that "file roller" was ok when I open the archive
using "dolphin", but with "ark" to move back are

the error is the same on "dolphin" and "konqueror"
Comment 12 David Faure 2010-09-20 13:09:37 UTC
Raphael: do you plan on fixing KTar? Otherwise, please post a sample TAR file which does not work with KTar, if you want me to have a look.
Comment 13 Raphael Kubo da Costa 2010-09-21 05:17:44 UTC
Created attachment 51841 [details]
Sample file which shows the problem in the tar ioslave.
Comment 14 Raphael Kubo da Costa 2010-09-21 05:19:48 UTC
David: I can try to fix KTar, but that means either duplicating low-level code present in libarchive, GNU tar and other programs/libraries that read tar files, or start depending on one of those.

Either way, I've attached a sample file that does not work with KTar, and we can hope one of us fixes this bug before the other :)
Comment 15 Robby Stephenson 2010-10-01 19:22:50 UTC
Just as an FYI, since I was poking at bug 252821... using the tartest command from the star package says the sample tar file is posix-compliant, at least... 
---------------------
robby@homebase:~> tartest < sample-file.tar 
tartest 1.12 (x86_64-suse-linux-gnu)

Copyright (C) 2002 Jörg Schilling
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Testing for POSIX.1-1990 TAR compliance...
Found 1st EOF block at 449
Found 2nd EOF block at 450
No deviations from POSIX.1-1990 TAR standard found.
Comment 16 Julian Steinmann 2018-08-05 12:13:11 UTC
Can anybody still reproduce this bug? As Raphael mentioned in comment 10, the ioslave would need to support newer tar formats, but I haven't been able to find any commits which would have done that so I expect that the issue does still exist. If that's the case, I'd need to move this over to kio-extras, because this product is now deprecated.
Comment 17 Andrew Crouthamel 2018-09-28 03:37:36 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 18 Andrew Crouthamel 2018-10-29 02:17:34 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!