Bug 394284 - Thumbnailer should not try to generate thumbnails for password-protected files
Summary: Thumbnailer should not try to generate thumbnails for password-protected files
Status: CONFIRMED
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-15 16:11 UTC by chansol98s
Modified: 2018-09-18 18:54 UTC (History)
3 users (show)

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


Attachments
Screenshot of the bug. (65.09 KB, image/png)
2018-05-15 16:11 UTC, chansol98s
Details
A password-protected .docx file that causes the bug. (7.00 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-05-15 19:52 UTC, chansol98s
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chansol98s 2018-05-15 16:11:35 UTC
Created attachment 112670 [details]
Screenshot of the bug.

Overview:
When dolphin enters or reloads a folder that contains a password-protected .docx file, it will prompt the user for the document's password.

Steps to reproduce:
1. Create and save a password-protected .docx file with LibreOffice or MS Word.
2. With dolphin, enter the folder where the document is stored.

Actual Results:
Dolphin will prompt the user for a password for the document. If there were multiple password-protected documents in the folder, multiple prompts will appear.

Expected Results:
Dolphin should not ask for a password until the user has explicitly opened the document.

Version & Platform:
Dolphin version 18.04.1
running on KDE Neon User Edition 5.12 (Linux x86_64 4.13.0-41-generic)

Additional Info.:
This does not seem to happen on password-protected .odt or .doc files.
Comment 1 Julian Steinmann 2018-05-15 19:14:49 UTC
Hmm, I cannot reproduce this behavior. I do also run KDE Neon User Edition 5.12.5 with Dolphin 18.04.1, but for me the password dialog only pops up when I try to open the file (which is the expected behavior). Maybe you could upload a document that triggers the bug for you just to rule out the possibility that I did not create the .docx file the same way you did? Thanks for reporting this bug & have a nice day :)
Comment 2 chansol98s 2018-05-15 19:49:09 UTC
(In reply to Julian Schraner from comment #1)
> Hmm, I cannot reproduce this behavior. I do also run KDE Neon User Edition
> 5.12.5 with Dolphin 18.04.1, but for me the password dialog only pops up
> when I try to open the file (which is the expected behavior). Maybe you
> could upload a document that triggers the bug for you just to rule out the
> possibility that I did not create the .docx file the same way you did?
> Thanks for reporting this bug & have a nice day :)


After reading your reply, I experimented around a bit more...
And it looks like Calligra Suite is somehow related to this behavior.

The bug disappears after running [apt remove calligra --autoremove] and reappears after running [apt install calligra].

So yeah, I think installing calligra may help you reproduce the bug.


...and just in case the bug still can't be reproduced, I'll add an attachment of a .docx file that cause the bug on my system.
Comment 3 chansol98s 2018-05-15 19:52:26 UTC
Created attachment 112673 [details]
A password-protected .docx file that causes the bug.
Comment 4 Rog131 2018-05-15 21:16:50 UTC
(In reply to chansol98s from comment #2)
> (In reply to Julian Schraner from comment #1)
> > Hmm, I cannot reproduce this behavior. I do also run KDE Neon User Edition
> > 5.12.5 with Dolphin 18.04.1, but for me the password dialog only pops up
> > when I try to open the file (which is the expected behavior). Maybe you
> > could upload a document that triggers the bug for you just to rule out the
> > possibility that I did not create the .docx file the same way you did?
> > Thanks for reporting this bug & have a nice day :)
> 
> 
> After reading your reply, I experimented around a bit more...
> And it looks like Calligra Suite is somehow related to this behavior.
> 
> The bug disappears after running [apt remove calligra --autoremove] and
> reappears after running [apt install calligra].
> 
> So yeah, I think installing calligra may help you reproduce the bug.
> 
> 
> ...and just in case the bug still can't be reproduced, I'll add an
> attachment of a .docx file that cause the bug on my system.

The Calligra suite has the thumbnailer for the docx.

If the Calligra suite is installed and the thumbnailer is enabled for the .docx then there is the 'Enter password' query when the thumbnailer is trying to make the thumbnail.

The 'Untitled 1.docx' is Microsoft Word 2007 Dcocument - so the Dolphin 'Show previews for': https://imgur.com/ZZJOluJ
Comment 5 Rog131 2018-05-15 21:26:09 UTC
An opinion: This is an example why the current Dolphin 'preview everything' is not good idea.  Change was made with: https://cgit.kde.org/dolphin.git/commit/?id=bebcf035d264410c943e7bad861628c1b14dd1f2
Comment 6 Julian Steinmann 2018-05-17 16:31:12 UTC
Thanks a lot for investigating this bug! I can now also reproduce this behavior after installing Calligra. This is of course quite annoying, so we should try to not generate a preview for files which are password-protected.
Comment 7 Nate Graham 2018-09-18 17:46:43 UTC
This is a bug in the thumbnailer itself: for password-protected files, it shouldn't even try to generate a preview (the contents are secret for a reason, so a preview makes no sense).

Also, the thumbnailer for this file type should really be moved into kio-extras so everyone can benefit from it: Bug 398813 (so if and when that bug gets addressed, we should move this bug to kio-extras).