Bug 1917752

Summary: Evince does not open containing folder if file from URI is loaded (permission problem)
Product: Red Hat Enterprise Linux 8 Reporter: Radek Duda <rduda>
Component: evinceAssignee: Marek Kašík <mkasik>
Status: CLOSED ERRATA QA Contact: Bill Sanford <bsanford>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.4CC: bsanford, jkoten, mboisver, tpelka, vbudikov
Target Milestone: rcKeywords: Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: evince-3.28.4-12.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 17:40:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Radek Duda 2021-01-19 10:27:51 UTC
Description of problem:
Evince does not open containing folder if file from URI is loaded. Nautilus is started and then abruptly closed.
"Do not have a permission to access requested location" message appears for a while.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Start evince and load some pdf from URI (e.g.: evince http://www.farnell.com/datasheets/2819352.pdf)
2. Click "file options"-> "Open containing folder"

Actual results:
Nautilus is started, but then abruptly closes. "Do not have a permission to access requested location" message appears for a while.

Expected results:
Containing folder is opened by Nautilus.

Additional info:

Comment 1 Radek Duda 2021-01-19 14:01:22 UTC
That is probably issue of given wrong file permission. 
If I save pdf file to /tmp dir, evince gives 600 permission. According to our test suite it should have 644, which is default permission according to our testcase (tested with gedit).

Comment 2 Marek Kašík 2021-02-16 17:23:10 UTC
The issue is that it tries to open the original URI but it is a http:// URI so it fails. I've created a merge request which uses the tmp directory where the downloaded document is instead. See https://gitlab.gnome.org/GNOME/evince/-/merge_requests/312.

I'll wait few days whether upstream will accept it and devel_ack+ it then.

Comment 7 Bill Sanford 2021-04-16 16:18:32 UTC
Verified with evince-3.28.4-12 & nautilus-3.28.1-15.

Comment 9 errata-xmlrpc 2021-11-09 17:40:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (evince bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.