Bug 245705 - Ark shows the file's name in the infopanel even when it isn't opened correctly
Summary: Ark shows the file's name in the infopanel even when it isn't opened correctly
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Raphael Kubo da Costa
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2010-07-25 04:53 UTC by Raphael Kubo da Costa
Modified: 2015-01-15 09:15 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.14.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Kubo da Costa 2010-07-25 04:53:34 UTC
Version:           unspecified (using Devel) 
OS:                Linux

When reading a given archive fails, Ark should not display its name in the infopanel as if it were just an empty archive.

Reproducible: Always

Steps to Reproduce:
 * Open an invalid archive (a plain text file, for example)
 * Choose a filetype based on libarchive
 * A dialog will pop up indicating that reading the archive failed
 * The archive's name will still be displayed in the infopanel


Expected Results:  
No file name should be displayed in the infopanel.
Comment 1 Raphael Kubo da Costa 2010-12-08 02:19:34 UTC
Changing the default assignee in the currently open Ark bug reports to me.
Comment 2 Raphael Kubo da Costa 2011-01-25 02:13:32 UTC
When working on this, one should remember to test opening header-protected archives with a wrong password (I'm considering bug 35371 will have been completely solved by then ;)
Comment 3 Ondřej Záruba 2014-03-03 19:15:12 UTC
Hi, I would like to work on this bug.
Comment 4 Raphael Kubo da Costa 2014-03-03 19:27:13 UTC
Excellent :-) Please send a patch through ReviewBoard once you're done.
Comment 5 Christoph Feck 2014-09-05 11:34:11 UTC
Review https://git.reviewboard.kde.org/r/120064/
Comment 6 Raphael Kubo da Costa 2014-09-06 16:09:39 UTC
Git commit 03b6de3cfc7519d88c0c026a4a9737f5604d6a99 by Raphael Kubo da Costa.
Committed on 06/09/2014 at 16:05.
Pushed by rkcosta into branch 'KDE/4.14'.

Reset info panel and window caption when an archive fails to open.

When opening an archive that for whatever reason fails to load (because
it's corrupt, or an invalid format) the archive appears to be open when
it is not in fact open. This patch fixes that by resetting the open
archive, info panel name and window caption.

Patch by Mathias Tillman <master.homer@gmail.com>, thank you!
CCMAIl:   master.homer@gmail.com
FIXED-IN: 4.14.1
REVIEW:   120027

M  +8    -0    part/part.cpp

http://commits.kde.org/ark/03b6de3cfc7519d88c0c026a4a9737f5604d6a99
Comment 7 Raphael Kubo da Costa 2014-09-06 16:13:40 UTC
(In reply to Raphael Kubo da Costa from comment #6)
> REVIEW:   120027

Should've been 120064, sorry.
Comment 8 kde 2015-01-10 07:16:00 UTC
Prior to KDE 4.13.3, when opening a partial archive with ark, I would sometimes receive the warning message:
Loading the archive /<path-to-file>/<filename>.part<n>.rar failed with the following error: Extraction failed because of an unexpected error.
To which I would reply OK. Sometimes I would not receive the message.

In either case, ark would then display the list of files in the archive to that point and their filesizes according to how much had downloaded. This would allow me to unpack and keep only the files I need, without downloading the entire archive, sometimes saving GiB of unnecessary download.

Since upgrading to 4.13.3, which went smoothly, if I receive the warning message and reply OK, the information box is cleared, meaning no access to the files already downloaded. On partial archives that do not generate the warning message, all proceeds as before.

Using rar from the command line, it is possible to list and test partial archives using the l and t commands. It is also possible to extract any file listed by the list function, with or without the resulting file sitting in the full archive path in the archive using the e or x commands. 

This means that Ark is no longer honouring rar's capabilities. The test for failure needs to parse the return codes more finely so that Ark honours rar's capabilities.
Comment 9 Raphael Kubo da Costa 2015-01-15 09:15:54 UTC
For the record, I've spoken to David and we're tracking what he mentioned in comment 8 separately in bug 342859.