Bug 432271 - Can't save a file out of Okular
Summary: Can't save a file out of Okular
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.10.2
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-29 10:30 UTC by Joerg
Modified: 2021-02-05 21:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg 2021-01-29 10:30:54 UTC
SUMMARY
every time i try to save a file out of Okular to a folder in my home-directory, i get the reply "Datei kann nicht in „/tmp/okular.Lufxxf“ gespeichert werden." (file can't save in /tmp/okular.Lufxxf). 
Out of other applications i can save files without any problem.

STEPS TO REPRODUCE
1. I choose menue |file|save| (or |save as|) and select a sub folder in my home directory
2. When I confirm to save the file, i get the reply, that i can't save in /tmp/...
3. 

OBSERVED RESULT
It is not possible to save any file from okular.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.18.6
KDE Frameworks Version: 5.71.0
Qt Version: 5.12.7
OS: Opensuse Leap 15.2

ADDITIONAL INFORMATION
Comment 1 Yuri Chornoivan 2021-01-29 10:37:38 UTC

*** This bug has been marked as a duplicate of bug 402017 ***
Comment 2 David Hurka 2021-01-29 16:14:19 UTC
Why is this a duplicate of bug 402017?

This bug report describes that Okular attempts to save in a wrong place. Bug 402017 describes that Okular attempts to read a file from a not existing place.

The given example is /tmp/okular.Lufxxf, which does not look like the user opened a file from e. g. KMail, because the filename contains “okular”, not “kmail”.

@Joerg: Can you describe how you opened the file?
Comment 3 Yuri Chornoivan 2021-01-29 16:26:26 UTC
(In reply to David Hurka from comment #2)
> Why is this a duplicate of bug 402017?

Because the above-mentioned file names are typical for the browser-opened PDFs.
Comment 4 Joerg 2021-01-30 18:42:37 UTC
(In reply to David Hurka from comment #2)
> Why is this a duplicate of bug 402017?
> 
> This bug report describes that Okular attempts to save in a wrong place. Bug
> 402017 describes that Okular attempts to read a file from a not existing
> place.
> 
> The given example is /tmp/okular.Lufxxf, which does not look like the user
> opened a file from e. g. KMail, because the filename contains “okular”, not
> “kmail”.
> 
> @Joerg: Can you describe how you opened the file?

@David: thanks for your reply. I agree with you. 
 It's the same result, whether I open a local file and try to save it or i try to save a browser-opend file. Both don't work and i'm asked to choose another directory than /tmp/..., although i selected a folder in my home-directory.
Comment 5 Yuri Chornoivan 2021-01-30 18:44:50 UTC
Change the status for further investigation (cannot reproduce it btw).
Comment 6 Joerg 2021-02-01 19:29:52 UTC
An other problem with Okular occured today. I can't print from Okular. To get an error-report, i started Okular from console. When i tried to print, the reply on console was "/usr/bin/lpr: Fehler - Zugriff auf »/tmp/okular_IhOqaH.ps« nicht möglich - Keine Berechtigung" witch means: no access to /tmp ... - no authorization.
Comment 7 Albert Astals Cid 2021-02-01 21:02:40 UTC
This really smells like your system is broken/badly configured.
Comment 8 Joerg 2021-02-04 21:14:29 UTC
(In reply to Albert Astals Cid from comment #7)
> This really smells like your system is broken/badly configured.

I don't think so, because only okular shows the problems mentioned above. Other applications work without any problems.
Comment 9 Albert Astals Cid 2021-02-04 22:25:24 UTC
You're not authorized to write to /tmp, sorry but that means your system is broken.
Comment 10 Joerg 2021-02-05 21:27:41 UTC
(In reply to Albert Astals Cid from comment #9)
> You're not authorized to write to /tmp, sorry but that means your system is
> broken.

That's not the reason for my problem. I can write to /tmp (I just tested it and saved a file out of kate in /tmp). In the directory access control owner and group are set to root, all others are allowed to read and change. Only okular has some kind of problem with it. 
Anyway, I don't want to save in /tmp, when I try to save out of okular (I select my home directory), but okular complains, that it can't save to /tmp.