Bug 176987 - ark doesn't prompt for password when trying to open a password protected RAR archive
Summary: ark doesn't prompt for password when trying to open a password protected RAR ...
Status: RESOLVED FIXED
Alias: None
Product: ark
Classification: Applications
Component: general (show other bugs)
Version: 2.10.999
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Hvaal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-05 16:11 UTC by Mauro
Modified: 2017-04-06 14:39 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mauro 2008-12-05 16:11:56 UTC
Version:           2.10.999 (using 4.1.3 (KDE 4.1.3), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.27-10-generic

This is not a duplicate bug, because I found similar one, but NOT for KDE4.
In KDE3 ark asks for password, and all works fine.
Comment 1 Dario Andres 2008-12-05 20:24:39 UTC
This may be related to bug 170295
Comment 2 FiNeX 2008-12-06 12:46:23 UTC
There is an old wish too: bug #35371.
Comment 3 Mauro 2008-12-10 07:19:16 UTC
Dario: I don't think so, that's related to a very old version of kde

Could anyone replicate the bug?
Comment 4 Dario Andres 2008-12-20 16:52:56 UTC
Here using:

Qt: 4.4.3                 
KDE: 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2))
kdelibs svn rev. 899135 / kdebase svn rev. 899135
kdeutils svn rev. 899332
on ArchLinux x86_64 - Kernel 2.6.27.8

ARK doesn't ask for password for showing the RAR filelist, but it ask it for extracting the files. However, ARK crashes after entering the password with a backtrace that may be related to the ones described in bug 176386 comment 3:

Application: Ark (ark), signal SIGABRT
0x00007f81613e1001 in nanosleep () from /lib/libc.so.6
[Current thread is 0 (LWP 14724)]

Thread 4 (Thread 0x7f8159c90950 (LWP 14725)):
..
Thread 3 (Thread 0x7f815948f950 (LWP 14726)):
..

Thread 2 (Thread 0x7f81589ea950 (LWP 14728)):
..

Thread 1 (Thread 0x7f8165017750 (LWP 14724)):
[KCrash Handler]
#5  0x00007f81613740c5 in raise () from /lib/libc.so.6
#6  0x00007f81613755e3 in abort () from /lib/libc.so.6
#7  0x00007f81620ada25 in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2102
#8  0x00007f81620adb47 in qFatal (msg=<value optimized out>) at global/qglobal.cpp:2303
#9  0x00007f81620b0499 in QMutex::unlock (this=0x7f8159c8fa08) at thread/qmutex.cpp:332
#10 0x00007f8164d32203 in Kerfuffle::Query::setResponse (this=0x7f8159c8f9f0, response=
      {d = {data = {c = 0 '\0', i = 1830116096, u = 1830116096, b = false, d = 6.9532340280050013e-310, ll = 140735023504128, ull = 140735023504128, ptr = 0x7fff6d155b00, shared = 0x7fff6d155b00}, type = 756374272, is_shared = 1, is_null = 0}, static handler = 0x7f8162eae900}) at /home/kde-devel/kde/src/KDE/kdeutils/ark/kerfuffle/queries.cpp:53
#11 0x00007f8164d326ac in Kerfuffle::PasswordNeededQuery::execute (this=0x7f8159c8f9f0) at /home/kde-devel/kde/src/KDE/kdeutils/ark/kerfuffle/queries.cpp:152
#12 0x000000000040fcad in BatchExtract::qt_metacall (this=0x2568a20, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff6d155d80) at /home/kde-devel/kde/src/KDE/kdeutils/ark/app/batchextract.cpp:92
#13 0x00007f81621a8ac0 in QMetaObject::activate (sender=0x25aded0, from_signal_index=<value optimized out>, to_signal_index=26, argv=0xffffffffffffffff) at kernel/qobject.cpp:3028
#14 0x00007f8164d247cf in Kerfuffle::Job::userQuery (this=0x3984, _t1=0x7f8159c8f9f0) at /home/kde-devel/kde/build/KDE/kdeutils/ark/kerfuffle/moc_jobs.cpp:87
#15 0x00007f8164d248aa in Kerfuffle::Job::qt_metacall (this=0x25aded0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x27c3540) at /home/kde-devel/kde/build/KDE/kdeutils/ark/kerfuffle/moc_jobs.cpp:73
#16 0x00007f81621a2c6e in QObject::event (this=0x25aded0, e=0x27c3650) at kernel/qobject.cpp:1152
#17 0x00007f81625fa0ad in QApplicationPrivate::notify_helper (this=0x24e9b30, receiver=0x25aded0, e=0x27c3650) at kernel/qapplication.cpp:3803
#18 0x00007f816260140e in QApplication::notify (this=0x7fff6d156810, receiver=0x25aded0, e=0x27c3650) at kernel/qapplication.cpp:3768
#19 0x00007f8163f5b22b in KApplication::notify (this=0x7fff6d156810, receiver=0x25aded0, event=0x27c3650) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#20 0x00007f8162193d90 in QCoreApplication::notifyInternal (this=0x7fff6d156810, receiver=0x25aded0, event=0x27c3650) at kernel/qcoreapplication.cpp:583
#21 0x00007f8162197643 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x24ae090) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#22 0x00007f81621bafa3 in postEventSourceDispatch (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:214
#23 0x00007f815d98eaa2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x00007f815d99221d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#25 0x00007f815d9923db in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0x00007f81621bacdf in QEventDispatcherGlib::processEvents (this=0x24bcf90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#27 0x00007f8162681f7f in QGuiEventDispatcherGlib::processEvents (this=0x3984, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#28 0x00007f81621929c2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1830119008}) at kernel/qeventloop.cpp:143
#29 0x00007f8162192b55 in QEventLoop::exec (this=0x7fff6d1566a0, flags={i = 1830119088}) at kernel/qeventloop.cpp:190
#30 0x00007f81621978f7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#31 0x000000000040c38f in main (argc=4, argv=0x7fff6d157448) at /home/kde-devel/kde/src/KDE/kdeutils/ark/app/main.cpp:198

Comment 5 Mauro 2008-12-20 17:20:39 UTC
When ark opens a protected rar archive, it doesn't ask for password, and MOREOVER it doesn't show archived files. The window is empty. Would this be related to http://bugs.kde.org/show_bug.cgi?id=176386#c3 to?
Comment 6 Dario Andres 2008-12-20 17:24:54 UTC
@Mauro: Can you post the rar file that you have problems?  I just tested with a random RAR-protected file posted in an old bug report . (also "unrar" asks for password ok too, so I suppose it was a valid rar-protected file)
Maybe you have a special file. Thanks :)
Comment 7 Mauro 2008-12-20 17:30:20 UTC
It happens with EVERY password protected .rar files I tried.
Comment 8 Dario Andres 2008-12-20 18:04:06 UTC
Are you using an updated build of KDE4.2 SVN trunk ? If you do, can you attach some test file ?
Comment 9 Mauro 2008-12-20 18:27:59 UTC
Nope, I'm using original 32bit i386 version.
Comment 10 Harald Hvaal 2008-12-21 06:20:57 UTC
Not asking for password when opening a protected file is the intended behavior. 
You should be able to look at a file without typing in a password.

When you look at the contents you can see if it's password protected or not, 
and then when you extract it should ask for the password.
I will look at the extraction crash afterwards.
Comment 11 FiNeX 2008-12-26 16:03:36 UTC
Using r901634 and rar 3.80, ark manage correctly rar protected files.
Comment 12 Mauro 2009-02-11 07:29:36 UTC
fixed with kde 4.2
Comment 13 Alejandro 2017-04-06 14:39:53 UTC
ark doesn't prompt for password when trying to open a password protected RAR archive.


OS: GNU Parabola https://www.parabola.nu/
KDE Plasma: 5.9.4
KDE Frameworks: 5.32.0

ark version: 16.12.3-1.parabola1
unar version: 1.10.1-3