Bug 361490

Summary: Using Dolphin to open PDF file on a password protected SMB share opens Okular with access error
Product: [Applications] dolphin Reporter: Richard Llom <richard.llom>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, igor.ign, kiv, mail_to_wrt, nate, simonandric5
Priority: NOR    
Version: 16.12.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Richard Llom 2016-04-07 09:24:30 UTC
I cannot open pdf files with okular on my password protected smb-share

Reproducible: Always

Steps to Reproduce:
1. In dolphin open pdf file on password protected smb share


Actual Results:  
Okular opens with following error message:
"Could not open smb://diskstation/test.pdf. Reason: The file or folder smb://diskstation/test.pdf does not exist."

Expected Results:  
Okular opens the pdf file

If I do in okular:
1. File -> Open...
2. browse to my smb-share
-> Dialog pop-up and asks for my credentials + password
3. Enter credentials + password
4. continue browsing to file
5. open file
6. file is correctly opened in okular
Comment 1 Albert Astals Cid 2016-04-07 21:42:45 UTC
Let me make sure i understand this correct:
 * if you use okular to open the file, it works
 * if you dolphin to open the file, it fails
Am i correct?
Comment 2 Richard Llom 2016-04-08 00:44:54 UTC
(In reply to Albert Astals Cid from comment #1)
> Let me make sure i understand this correct:
>  * if you use okular to open the file, it works
If I use the File - Open dialog in okular it works.

>  * if you dolphin to open the file, it fails
If I click the file in dolphin, okular opens, but with error message.
Comment 3 Albert Astals Cid 2016-05-11 22:29:54 UTC
Looks more like a dolphin bug to me then.

I'll reassign it to the dolphin people as per the comment #2
Comment 4 Richard Llom 2016-05-20 11:21:20 UTC
Seems to me some sort of "interconnection" issue, because the credentials are provided in dolphin, but somehow aren't passed to okular.
Comment 5 Simon Schmeisser 2017-03-22 13:16:07 UTC
I can confirm the problem here (using Okular Version 0.24.2 Unter KDE 4.14.16 on Kubuntu 16.04).

What I also observed is that while new dolphin instances won't ask me for the smb credentials again, I have to provide them in the okular file open dialog. Don't know how the underlying kio magic is working or supposed to be working so I'm not sure if that observation is useful at all.
Comment 6 Nate Graham 2017-10-20 17:56:31 UTC
*** Bug 379602 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2017-10-20 17:58:03 UTC
Is anybody able to reproduce this with a distro that provides semi-recent software?

Also, does the problem still happen when you access the PDF file with Dolphin but try to open it in a program other than Okular?
Comment 8 kiv 2017-10-21 08:26:28 UTC
I had the same bug in openSUSE Leap 42.2 but with openSUSE Leap 42.3 it disappear.
It may be KDE related, as in openSUSE Leap 42.2 whyle I could not open the file with Okular same time Evince can open and work with same files.
Comment 9 Nate Graham 2017-10-21 14:15:57 UTC
Great, thanks. Okular has had a lot of work since Leap 42.2, so it's not inconceivable that there was a bug somewhere that has since been fixed.
Comment 10 Nate Graham 2017-10-26 22:11:57 UTC
*** Bug 386073 has been marked as a duplicate of this bug. ***