Bug 366159 - [unarchiver] Race condition when opening header-encrypted archives
Summary: [unarchiver] Race condition when opening header-encrypted archives
Status: CONFIRMED
Alias: None
Product: ark
Classification: Applications
Component: plugins (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Ragnar Thomsen
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2016-07-27 09:34 UTC by Elvis Angelaccio
Modified: 2019-03-19 07:15 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Test file to reproduce the bug (836 bytes, application/rar)
2016-07-27 09:36 UTC, Elvis Angelaccio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elvis Angelaccio 2016-07-27 09:34:59 UTC
This is kind of hard to reproduce. It happens only when "quickly" typing the correct password, but not every time...

Reproducible: Always

Steps to Reproduce:
1. Disable clirar plugin
2. ark encrypted.rar
3. Quickly type the password ("asdasd").

Actual Results:  
Ark claims "The archive is empty or Ark could not read its content"

Expected Results:  
Ark opens the archive
Comment 1 Elvis Angelaccio 2016-07-27 09:36:19 UTC
Created attachment 100330 [details]
Test file to reproduce the bug

This is the archive I can reproduce the issue with, though not every time.
Comment 2 Edmund Kasprzak 2018-02-18 16:23:40 UTC
I can confirm the issue on current Neon git stable (Plasma 5.12.0, KF 5.43.0, Qt 5.9.3, Ark 17.12.2) using unarchiver plugin.

Sometimes it opens 10 times without any problem and sometimes this issue appears 10 times a row.
Doesn't matter if it's opened via "ark encrypted.rar", clicking the archive in dolphin or launching ark itself and then choosing an archive.

Also I think that "quickly typing the password" is not the problem here, as I was able to get the error when I was typing password very slowly and then waiting few seconds before enter.

I tried to run Ark with strace and gdb, but nothing meaningful appears except: "ark.part: No entry listed by the plugin" (that actually appears without strace or gdb).
Comment 3 Andrew Crouthamel 2019-03-12 03:55:26 UTC
I'm unable to reproduce this on 18.12.3, I tried probably 50 times as fast as possible. Elvis, can you test again?
Comment 4 Andrew Crouthamel 2019-03-12 03:57:35 UTC
Nevermind, I retract that statement. I can get it reproducing now.
Comment 5 sgmihai 2019-03-19 07:14:04 UTC
wanted to file a new bug report but I think this is related.
Test archive: https://mega.nz/#!MJ11HQpL!4d57xmiSmZtenOxn5waHRdSgZasaceZrxO0H8B0sAKQ
password: 'mola un huevo'
(without quotes)
sometimes it works to open the archive, sometimes it doesn't. If i click the show password it tends to work more often, I think.
Ark Version 18.12.3
plasma-desktop 5.15.3-1
Comment 6 sgmihai 2019-03-19 07:15:11 UTC
Always tried to paste the password.