Bug 290203 - Ark do not pack something with *.tar.*
Summary: Ark do not pack something with *.tar.*
Status: RESOLVED DUPLICATE of bug 289307
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: 0.0.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Raphael Kubo da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-30 19:47 UTC by FabiB
Modified: 2012-01-04 19:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
brokan files made by ark (744.00 KB, application/x-tar)
2011-12-31 15:56 UTC, FabiB
Details
same file made with terminal $ tar --create (750.00 KB, application/x-tar)
2011-12-31 15:57 UTC, FabiB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FabiB 2011-12-30 19:47:25 UTC
Version:           0.0.1 (using Devel) 
OS:                Linux

Hi 
with RC1 (maybe with Beta too) when i trie to pack a script/textfile with 20kiB.
rightclick > kompress > as tar/zip. Then ark will pack a clear files (without any content) and show this file is 16TiB.

also moviefiles will be cleared. more i can not test

Reproducible: Always

Steps to Reproduce:
choose some file like video.mp4
rightclick > kompress > tar/zip 

Actual Results:  
will packe a clear file without content

Expected Results:  
should pack the right file with content :P

OS: Linux (i686) release 3.2.0-7-generic-pae
Compiler: gcc

Its completely the same when i try to pack in ark directly, without service menu
Comment 1 Raphael Kubo da Costa 2011-12-31 14:28:42 UTC
Does it happen to any file you try to compress? What if you try to use another format?
Comment 2 FabiB 2011-12-31 14:34:06 UTC
kompress to *.zip and *.rar works finde. all formats with .tar fails. for example *.tar.lzma, tar.gz, tar.bz
Comment 3 Raphael Kubo da Costa 2011-12-31 15:43:28 UTC
Hmm. You are using the 4.8-RC1 packages from Kubuntu, right? What if you just try to open a tar archive which was not created by Ark? Are they also shown as empty? And if you create one a tar archive with Ark, does using `tar -tf` in the terminal also does not show any files?
Comment 4 FabiB 2011-12-31 15:56:33 UTC
Created attachment 67278 [details]
brokan files made by ark

yep from kubuntu
no problems to open and extraxt files, not created from ark
no, will displayd correctly
tar files created with ark will shown this:

tar: Ignoriere unbekanntes Schlüsselwort „SCHILY.dev“ für erweiterten Kopfteil
tar: Ignoriere unbekanntes Schlüsselwort „SCHILY.ino“ für erweiterten Kopfteil
tar: Ignoriere unbekanntes Schlüsselwort „SCHILY.nlink“ für erweiterten Kopfteil
DSC00102.JPG
tar: Unerwartetes Dateiende im Archiv.
tar: Error is not recoverable: exiting now

well its mostly german, so here i will attach the archive packed by ark
Comment 5 FabiB 2011-12-31 15:57:26 UTC
Created attachment 67279 [details]
same file made with terminal $ tar --create
Comment 6 Raphael Kubo da Costa 2011-12-31 19:18:38 UTC
Interesting. Does Ark create archives like these with any file you pass to it (short text files, etc)? Can you also try creating an archive with bsdtar (bsdtar -cvzf foo.tar somefile) and see if it presents the same problem?
Comment 7 FabiB 2011-12-31 19:33:48 UTC
all files i tested with are empty, yes. (*.jpeg, 300MiB *.mkv, a *.exe and *.odf) but if i choose a folder it works.

i can extract files from bsdtar and without a single problem. like the the ones from normal tar

ohh and btw happy new year :)
Comment 8 Raphael Kubo da Costa 2011-12-31 19:44:35 UTC
(In reply to comment #7)
> all files i tested with are empty, yes. (*.jpeg, 300MiB *.mkv, a *.exe and
> *.odf) but if i choose a folder it works.

Weird, I was able to create a .tar archive with that picture in the second attachment with Ark with no problems.
 
> i can extract files from bsdtar and without a single problem. like the the ones
> from normal tar

What if you try to create an archive with bsdtar? Both Ark and bsdtar use libarchive and they both seem to extract files just fine; I'm trying to figure out if it is actually a problem with libarchive itself. What package version are you using?

> ohh and btw happy new year :)

Thanks, for you too :)
Comment 9 FabiB 2011-12-31 20:47:03 UTC
(In reply to comment #8)
> What if you try to create an archive with bsdtar? Both Ark and bsdtar use
> libarchive and they both seem to extract files just fine; I'm trying to figure
> out if it is actually a problem with libarchive itself. What package version
> are you using?

no problems to create a archive with bsdtar. libarchive is Version 2.8.5-5
Comment 10 Raphael Kubo da Costa 2011-12-31 22:03:56 UTC
Hmm, there has been no change in this part of the code between 4.7 and 4.8. Do you know if there has been any update to libarchive in Ubuntu lately too? I'd appreciate if you could contact your distro's folks and check if somebody else can reproduce the issue (it all works fine here on FreeBSD).
Comment 11 Jekyll Wu 2012-01-04 06:34:34 UTC
(In reply to comment #4)

When trying to unpack this archive using tar from terminal, I get error messages similar to what I have posted in bug 289307. Hope that helps.
Comment 12 Raphael Kubo da Costa 2012-01-04 19:14:45 UTC
Hmm, this bug looks like a duplicate of the one you mentioned. Let's keep track of it there.

*** This bug has been marked as a duplicate of bug 289307 ***