Evince incorrectly reports document Location in its Properties if there are % in filename

Bug #1112641 reported by Norbert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evince
Fix Released
Medium
evince (Ubuntu)
Low
Unassigned
Precise
Low
Unassigned

Bug Description

I have a file named
art%3A10.1007%2FBF01034471.pdf,
if I open document Properties (Alt+Return) for it I get
Location: file:///home/username/Documents/PDFs/art%253A10.1007%252FBF01034471.pdf.

So there are extra escape sequences for percent sign (I know that %25 is a code for %). If I try to
ls -l /home/username/Documents/PDFs/art%253A10.1007%252FBF01034471.pdf I got ls: cannot access /home/username/Documents/PDFs/art%253A10.1007%252FBF01034471.pdf: No such file or directory.
If i try to navigate to correct file /home/username/Documents/PDFs/art%3A10.1007%2FBF01034471.pdf I get no error.

So there is an error in % sign processing in evince.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: evince 3.4.0-0ubuntu1.4
ProcVersionSignature: Ubuntu 3.2.0-36.57-generic 3.2.35
Uname: Linux 3.2.0-36-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: amd64
CheckboxSubmission: a3c9de473bf7a483a92609c6b20d2aee
CheckboxSystem: b633b4f40868d491c2ae5b50030ce6f3
Date: Fri Feb 1 20:15:58 2013
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: evince
UpgradeStatus: Upgraded to precise on 2012-09-28 (126 days ago)

Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Jason White (tinystoy28) wrote :

I attempted to recreate this bug in Ubuntu 12.04 LTS
I created a txt file named Test%. I as able to open the file as well as use the command ls -l on the file as the OP did. I could not recreate the issue posted.

I also tried naming the file art%253A10.1007%252FBF01034471.pdf as the OP had done.
I can ls -l the file and open it as well.
Both documents were created by right clicking and creating a new document and renaming the file to have a % in the file name. Second file was also created as a pdf from LibreOffice and still worked properly.

Revision history for this message
Dustin Cotton (dustin-cotton) wrote :

Attempted to recreate the bug by creating a pdf using libreoffice (File->Export to PDF) with a similar naming convention utilizing %25 but did not experience the same bug.

Revision history for this message
Debra Virden (teddydlv) wrote :

I tried recreating this bug by naming a pdf with a %25 in the name and I was able to open the file.
I am running Ubuntu 12.10.

Revision history for this message
Rick Reznicsek (rreznicsek11) wrote :

I also tried naming the file art%253A10.1007%252FBF01034471.pdf as the OP had done.
I can ls -l the file and open it as well.
Both documents were created by right clicking and creating a new document and renaming the file to have a % in the file name. Second file was also created as a pdf from LibreOffice and still worked properly. The problem may be specific to the file you have or your installation of Ubuntu. Can you give more information to help us issolate your particular problem?

Revision history for this message
Tyler Teal (tteal) wrote :

ubuntu 12.04

I created a directory called evincetest on my desktop.
I created a document called test%ubuntu
I made a copy of that document and renamed it test%ubuntu.pdf
I exported a libra office document as a PDF to the same folder called fish%ing.pdf

evince can see all three. I can open the PDF file. Not the text documents as they are unsupported.

I then used terminal. Navigated to the evincetest folder and did the ls command.
files have been displayed.

it may be a problem if your PDF. how did you obtain this PDF? it may be a problem with how it was created.

Revision history for this message
David Watne (dwatne10) wrote :

Ubuntu 12.04

Used Evince to create a document called test% and then changed the extension to pdf.
Tried opening the file through both the interface and the command line.
I could not replicate the issue here.

Revision history for this message
George Gill (ggilliii10) wrote :

Was unable to replicate this by simply creating a .pdf file and using a % in the file name. I used both Evince and the command line.
I am using Ubuntu version 12.04

Revision history for this message
Norbert (nrbrtx) wrote :

Hello, guys!
Thank you for replies. Did you opened a Properties window in evince for file with %25 in its name?
See my screenshot to understand what I mean.

Revision history for this message
Norbert (nrbrtx) wrote :

If I try to open a file, which path is in Location field of Properties window - file:///home/norbert/Documents/PDFs/art%253A10.1007%252FBF01034471.pdf, I get an error - "Unable to open document".

I tried to create a file with ~/%.pdf filename and get Location file:///home/norbert/%25.pdf for it in Properties window (evince reports not existed file).

My bug is about Properties window, not about evince ability to open files with % sign (see bug title).

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in evince (Ubuntu):
importance: Undecided → Low
Revision history for this message
Norbert (nrbrtx) wrote :

Thank you Sebastien, I reported bug to upstream (https://bugzilla.gnome.org/show_bug.cgi?id=693794).

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you!

Changed in evince (Ubuntu):
status: New → Triaged
Changed in evince:
importance: Unknown → Medium
status: Unknown → New
Changed in evince:
status: New → Fix Released
Revision history for this message
Norbert (nrbrtx) wrote :

I patched src-package on my Ubuntu 12.04 (Evince 3.4.0), their one line patch (http://bugzilla-attachments.gnome.org/attachment.cgi?id=236401) fixes this
bug.

Changed in evince (Ubuntu Precise):
importance: Undecided → Low
Changed in evince (Ubuntu):
status: Triaged → Fix Committed
Changed in evince (Ubuntu Precise):
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package evince - 3.8.2-0ubuntu1

---------------
evince (3.8.2-0ubuntu1) saucy; urgency=medium

  * Upload to saucy based on the work from the GNOME3 ppa, thanks Rico
  * The new version fixes those issues:
    - "use nautilus's frame for thumbnails" (lp: #155726)
    - "When <Ctrl>+Scroll zooming, include Page Width, Fit Page" (lp: #254519)
    - "Fix rendering of the first visible page while resizing" (lp: #349670)
    - "Allow case-sensitive and/or regexp search in evince" (lp: #360152)
    - "When manually zooming below 50% Evince still shows 50% as
      the zoom level." (lp: #653911)
    - "can´t resize side pane" (lp: #704232)
    - "incorrectly reports document Location in its Properties if
       there are % in filename" (lp: #1112641)

  [ Rico Tzschichholz ]
  * New upstream release
  * debian/control:
    - Bump build-depends on libgtk-3-dev (>= 3.7.5),
      Add libsecret-1-dev (>= 0.5) and drop libgnome-keyring-dev
  * debian/libevdocument3-4.symbols,libevview3-3.symbols:
    - Updated
  * debian/patches:
    - Drop 03_nodisplay.patch, upstream
  * debian/patches/11_grip_gestures.patch:
    - Refreshed
 -- Sebastien Bacher <email address hidden> Tue, 28 May 2013 13:43:47 +0200

Changed in evince (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Norbert (nrbrtx) wrote :

Thank you, Sebastien.
Package upgrade for Precise will be useful too.

Revision history for this message
Sebastien Bacher (seb128) wrote :

> Package upgrade for Precise will be useful too.

Right, the Stable Update team is quite busy though and the fix is a tiny cosmetic issue one, we will probably not do an upload for it alone but batch it with some other fixes later on

Revision history for this message
Norbert (nrbrtx) wrote :

Saucy is not affected but this bug anymore. Thank you!
What is about Precise?

Norbert (nrbrtx)
tags: removed: precise
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.