After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 691257 - Evince does not save files unless I rename them with the .pdf extension
Evince does not save files unless I rename them with the .pdf extension
Status: RESOLVED NOTGNOME
Product: evince
Classification: Core
Component: general
3.7.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 688840 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-01-07 00:03 UTC by entropy
Modified: 2013-01-09 13:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description entropy 2013-01-07 00:03:18 UTC
I open a pdf document from springerlink. It has the name "0012132432" (no pdf extension). If I try and "Save a copy" of the file with the exact same name into my $HOME folder, there is no problem, the file is saved with that name. If I try and "Save a copy" of the file with the exact same name into my /media/Disk directory (i.e. where /dev/sda6 was mounted) or some other disk apart from the mountpoint of $HOME, it doesn't save it, UNLESS I rename the file and place the .pdf extension like this: "0012132432.pdf". Then it saves it without any problem. I had this issue with Evince 3.6.1, now in Evince 3.7.1 the annoying bug persists. Please note that there is no permission problem: I can easily transfer files from $HOME to /media/Disk and vice versa, without any requirement for root password. It's clearly a bug in Evince, please fix it, it actually scared the guys on the #linux IRC channel, irc.freenode.org, due to its dumbness.
Comment 1 entropy 2013-01-07 00:08:05 UTC
I forgot to tell you the "error" given by Evince: "The file could not be saved as “file:///media/Disk/0012132432. Error opening file '/media/Disk/0012132432': Permission denied". That's in a red rectangle inside the Evince window above the title of the pdf file (that's when Evince reports an error).
Comment 2 José Aliste 2013-01-07 00:33:53 UTC
What distro are you using? If you are using Ubuntu, please check that you can reproduce the bug with apparmor desactivated. If you are using a selinux based distro, please desactivate selinux to test. If you can't reproduce the bug like that, then it is probably a bug in your distro
Comment 3 entropy 2013-01-07 11:06:09 UTC
I'm using Ubuntu, I have deactivated apparmor and I still get the error. I don't have selinux.
Comment 4 José Aliste 2013-01-07 11:37:02 UTC
Oh... thanks. That is indeed weird... I don't see anything on this code that makes this bug appear. Anyway, will try to reproduce when I have time. I am assuming that you open the pdf from firefox? so it should be some sort of temp file or something?
Comment 5 entropy 2013-01-07 14:17:40 UTC
Yes, your assumption is correct. I open the file from firefox and it's some sort of temp file. But as I said, it saves it with no problem in my $HOME directory, it just refuses to save it on other disk drive (prompting me with the above error) unless I rename it by placing the .pdf extension at the end of the file name.
Comment 6 José Aliste 2013-01-07 17:20:03 UTC
Can you be more precise on the type/ permissions/other probably useful info about your hard-drive?
Comment 7 entropy 2013-01-07 22:14:39 UTC
Here's the output of the ls -ld command for /media/Disk:

drwxr-x--- 17 myusername myusername 12288 Jan  7 13:36 /media/Disk

and for /media/Windows:

drwxr-xr-x 1 myusername myusername 16384 Dec 26 10:56 /media/Windows

and for $HOME:

drwxr-xr-x 50 myusername myusername 4096 Jan  8 00:06 /home/myusername


As you can well see, there is no permission/ ownership issue. IMHO it's an Evince bug which has been left unsolved for a while, because nobody cared to report it, since renaming the file with the .pdf extension at the end of the title fixes it.
Comment 8 Germán Poo-Caamaño 2013-01-07 22:25:36 UTC
(In reply to comment #7)
> [...]

I can reproduce the bug with evince 3.4.0.  I have to give it a try with evince master, though.

In my case, the partition in the usb disk is an exact copy of my /home (it is one of my backups).  Same filesystem (ext4), same permissions, etc.

> As you can well see, there is no permission/ ownership issue. IMHO it's an
> Evince bug which has been left unsolved for a while, because nobody cared to
> report it, since renaming the file with the .pdf extension at the end of the
> title fixes it.

Or maybe very few users drop the extension :-)
Comment 9 José Aliste 2013-01-07 23:00:44 UTC
Germán, 

have you compiled evince with debug information? If so, you could do EV_DEBUG_JOBS=1 evince& to know what is happening.
Comment 10 Germán Poo-Caamaño 2013-01-08 03:32:50 UTC
(In reply to comment #9)
> Germán, 
> 
> have you compiled evince with debug information? If so, you could do
> EV_DEBUG_JOBS=1 evince& to know what is happening.

I am just running evince 3.4.0 provided by Ubuntu 12.04.

However, I can not reproduce the error with evince 3.7.1+ (0a0a2d8c45e36f81),
glib 2.34.3+ (18f306032), poppler 0.21.1+ (e6806d89), cairo 1.12 and gtk+ 3.4.2.

My bet: this bug is already fixed.
Comment 11 entropy 2013-01-08 09:57:56 UTC
The bug is not fixed. I get these errors:

(evince:2509): GLib-GObject-WARNING **: /build/buildd/glib2.0-2.35.4~git20130104.r1.e478b65e/./gobject/gsignal.c:2590: instance `0xb9005b00' has no handler with id `6470'

(evince:2509): GLib-GObject-WARNING **: /build/buildd/glib2.0-2.35.4~git20130104.r1.e478b65e/./gobject/gsignal.c:2590: instance `0xb9005b00' has no handler with id `6471'

However, I get these errors even if I save it as .pdf (by adding the extension at the end of the title) so I have no clue. But I still can't save it, I still get the error with the permission.
Comment 12 Germán Poo-Caamaño 2013-01-08 10:22:09 UTC
The information that you provides is not good enough. If you are using evince from git, please say which hash ids are? for every dependency of evince the same (say poppler, cairo, glib, gtk+).

Also, compile evince with debug information and run it as José asked in comment #9, which is documented in https://live.gnome.org/Evince_2fDebugging
Comment 13 José Aliste 2013-01-08 10:30:00 UTC
Actually, after looking at the code... It is doing more weird things. My guess is that the code is failing when copying the gvfs-metadata... Setting to NEW since germán can reproduce it at least on 3.6. Although, it is probably a bug on Gio...
Comment 14 entropy 2013-01-08 13:06:53 UTC
sudo apt-rdepends evince
Reading package lists... Done
Building dependency tree       
Reading state information... Done
evince
  Depends: evince-common (<< 3.7)
  Depends: gnome-icon-theme (>= 2.17.1)
  Depends: libatk1.0-0 (>= 1.12.4)
  Depends: libc6 (>= 2.4)
  Depends: libcairo2 (>= 1.10.0)
  Depends: libevdocument3-4 (= 3.6.1-1ubuntu1)
  Depends: libevview3-3 (= 3.6.1-1ubuntu1)
  Depends: libgdk-pixbuf2.0-0 (>= 2.22.0)
  Depends: libglib2.0-0 (>= 2.34)
  Depends: libgnome-keyring0 (>= 2.22.2)
  Depends: libgtk-3-0 (>= 3.3.16)
  Depends: libice6 (>= 1:1.0.0)
  Depends: libnautilus-extension1a (>= 1:2.91)
  Depends: libsm6
  Depends: libxml2 (>= 2.7.4)
  Depends: shared-mime-info
evince-common
  Depends: dconf-gsettings-backend
  Depends: gsettings-backend
  Depends: gsettings-desktop-schemas
dconf-gsettings-backend
  Depends: dconf-service (<< 0.14.1-0ubuntu1.1~)
  Depends: libc6 (>= 2.4)
  Depends: libdconf1 (= 0.14.1-0ubuntu1)
  Depends: libglib2.0-0 (>= 2.33.14)
dconf-service
  Depends: libc6 (>= 2.4)
  Depends: libdconf1 (= 0.14.1-0ubuntu1)
  Depends: libglib2.0-0 (>= 2.33.3)
libc6
  Depends: debconf (>= 0.5)
  Depends: debconf-2.0
  Depends: libgcc1
debconf
  PreDepends: perl-base (>= 5.6.1-4)
perl-base
  PreDepends: dpkg (>= 1.14.20)
  PreDepends: libc6 (>= 2.11)
dpkg
  PreDepends: libbz2-1.0
  PreDepends: libc6 (>= 2.11)
  PreDepends: liblzma5 (>= 5.1.1alpha+20120614)
  PreDepends: libselinux1 (>= 1.32)
  PreDepends: tar (>= 1.23)
  PreDepends: zlib1g (>= 1:1.1.4)
libbz2-1.0
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
multiarch-support
  Depends: libc6 (>= 2.13-5)
liblzma5
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libselinux1
  Depends: libc6 (>= 2.8)
  PreDepends: multiarch-support
tar
  PreDepends: libc6 (>= 2.8)
zlib1g
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
debconf-2.0
libgcc1
  Depends: gcc-4.7-base (= 4.7.2-17ubuntu2)
  Depends: libc6 (>= 2.2.4)
  PreDepends: multiarch-support
gcc-4.7-base
libdconf1
  Depends: libc6 (>= 2.4)
  Depends: libglib2.0-0 (>= 2.33.14)
  PreDepends: multiarch-support
libglib2.0-0
  Depends: libc6 (>= 2.15)
  Depends: libffi6 (>= 3.0.4)
  Depends: libpcre3 (>= 8.10)
  Depends: libselinux1 (>= 1.32)
  Depends: zlib1g (>= 1:1.2.2)
  PreDepends: multiarch-support
libffi6
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libpcre3
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
gsettings-backend
gsettings-desktop-schemas
  Depends: dconf-gsettings-backend
  Depends: gsettings-backend
gnome-icon-theme
  Depends: gnome-icon-theme-full
  Depends: hicolor-icon-theme
  Depends: humanity-icon-theme
  Depends: libgtk-3-bin
  Depends: librsvg2-common
gnome-icon-theme-full
  Depends: gnome-icon-theme (= 3.6.2-0ubuntu1)
hicolor-icon-theme
humanity-icon-theme
  Depends: gnome-icon-theme
  Depends: hicolor-icon-theme
libgtk-3-bin
  Depends: libgtk-3-0 (>= 3.6.2-0ubuntu1)
  Depends: libgtk-3-common (= 3.6.2-0ubuntu1)
libgtk-3-0
  Depends: at-spi2-core
  Depends: libatk-bridge2.0-0 (>= 2.5.3)
  Depends: libatk1.0-0 (>= 2.2.0)
  Depends: libc6 (>= 2.4)
  Depends: libcairo-gobject2 (>= 1.10.0)
  Depends: libcairo2 (>= 1.10.0)
  Depends: libcolord1 (>= 0.1.10)
  Depends: libcups2 (>= 1.6.0-1)
  Depends: libfontconfig1 (>= 2.9.0)
  Depends: libgdk-pixbuf2.0-0 (>= 2.25.2)
  Depends: libglib2.0-0 (>= 2.33.14)
  Depends: libgtk-3-common (= 3.6.2-0ubuntu1)
  Depends: libpango1.0-0 (>= 1.30.0)
  Depends: libx11-6 (>= 2:1.4.99.1)
  Depends: libxcomposite1 (>= 1:0.3-1)
  Depends: libxcursor1 (>> 1.1.2)
  Depends: libxdamage1 (>= 1:1.1)
  Depends: libxext6
  Depends: libxfixes3
  Depends: libxi6 (>= 2:1.2.99.4)
  Depends: libxinerama1
  Depends: libxrandr2 (>= 2:1.2.99.3)
  Depends: shared-mime-info
  PreDepends: multiarch-support
at-spi2-core
  Depends: libatspi2.0-0
  Depends: libc6 (>= 2.7)
  Depends: libdbus-1-3 (>= 1.0.2)
  Depends: libglib2.0-0 (>= 2.26.0)
  Depends: libx11-6
  Depends: libxtst6
libatspi2.0-0
  Depends: libc6 (>= 2.7)
  Depends: libdbus-1-3 (>= 1.1.1)
  Depends: libglib2.0-0 (>= 2.22.0)
  Depends: libx11-6
  PreDepends: multiarch-support
libdbus-1-3
  Depends: libc6 (>= 2.10)
  PreDepends: multiarch-support
libx11-6
  Depends: libc6 (>= 2.15)
  Depends: libx11-data
  Depends: libxcb1 (>= 1.2)
  PreDepends: multiarch-support
libx11-data
libxcb1
  Depends: libc6 (>= 2.4)
  Depends: libxau6
  Depends: libxdmcp6
  PreDepends: multiarch-support
libxau6
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libxdmcp6
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libxtst6
  Depends: libc6 (>= 2.4)
  Depends: libx11-6 (>= 2:1.4.99.1)
  Depends: libxext6
  Depends: x11-common
  PreDepends: multiarch-support
libxext6
  Depends: libc6 (>= 2.4)
  Depends: libx11-6 (>= 2:1.4.99.1)
  PreDepends: multiarch-support
x11-common
  Depends: debconf (>= 0.5)
  Depends: debconf-2.0
  Depends: lsb-base (>= 1.3-9ubuntu2)
lsb-base
  Depends: ncurses-bin
  Depends: sed
ncurses-bin
  PreDepends: libc6 (>= 2.4)
  PreDepends: libtinfo5 (>= 5.9-3~)
libtinfo5
  Depends: libc6 (>= 2.16)
  PreDepends: multiarch-support
sed
  Depends: dpkg (>= 1.15.4)
  Depends: install-info
  PreDepends: libc6 (>= 2.4)
  PreDepends: libselinux1 (>= 1.32)
install-info
  Depends: libc6 (>= 2.4)
libatk-bridge2.0-0
  Depends: libatk1.0-0 (>= 1.32.0)
  Depends: libatspi2.0-0 (>= 1.91.92)
  Depends: libc6 (>= 2.4)
  Depends: libdbus-1-3 (>= 1.0.2)
  Depends: libglib2.0-0 (>= 2.31.8)
  PreDepends: multiarch-support
libatk1.0-0
  Depends: libatk1.0-data (= 2.7.3-0ubuntu1)
  Depends: libc6 (>= 2.2)
  Depends: libglib2.0-0 (>= 2.31.2)
  PreDepends: multiarch-support
libatk1.0-data
libcairo-gobject2
  Depends: libc6 (>= 2.1.3)
  Depends: libcairo2 (>= 1.10.0)
  Depends: libglib2.0-0 (>= 2.14.0)
  PreDepends: multiarch-support
libcairo2
  Depends: libc6 (>= 2.11)
  Depends: libfontconfig1 (>= 2.9.0)
  Depends: libfreetype6 (>= 2.3.5)
  Depends: libpixman-1-0 (>= 0.21.6)
  Depends: libpng12-0 (>= 1.2.13-4)
  Depends: libx11-6
  Depends: libxcb-render0
  Depends: libxcb-shm0
  Depends: libxcb1 (>= 1.6)
  Depends: libxext6
  Depends: libxrender1
  Depends: zlib1g (>= 1:1.1.4)
  PreDepends: multiarch-support
libfontconfig1
  Depends: fontconfig-config (= 2.10.2-0ubuntu1)
  Depends: libc6 (>= 2.7)
  Depends: libexpat1 (>= 2.0.1)
  Depends: libfreetype6 (>= 2.2.1)
  PreDepends: multiarch-support
fontconfig-config
  Depends: gsfonts-x11
  Depends: ttf-bitstream-vera
  Depends: ttf-dejavu-core
  Depends: ttf-freefont
  Depends: ucf (>= 0.29)
  PreDepends: dpkg (>= 1.15.7.2)
gsfonts-x11
  Depends: gsfonts (>= 6.0-2)
  Depends: xfonts-utils (>= 1:7.5+2)
gsfonts
xfonts-utils
  Depends: libc6 (>= 2.8)
  Depends: libfontenc1
  Depends: libfreetype6 (>= 2.2.1)
  Depends: libxfont1 (>= 1:1.4.2)
  Depends: x11-common
  Depends: xfonts-encodings
  Depends: zlib1g (>= 1:1.1.4)
libfontenc1
  Depends: libc6 (>= 2.7)
  Depends: zlib1g (>= 1:1.1.4)
  PreDepends: multiarch-support
libfreetype6
  Depends: libc6 (>= 2.11)
  Depends: zlib1g (>= 1:1.1.4)
  PreDepends: multiarch-support
libxfont1
  Depends: libbz2-1.0
  Depends: libc6 (>= 2.15)
  Depends: libfontenc1
  Depends: libfreetype6 (>= 2.2.1)
  Depends: zlib1g (>= 1:1.1.4)
xfonts-encodings
  Depends: x11-common
ttf-bitstream-vera
ttf-dejavu-core
  PreDepends: dpkg (>= 1.15.6~)
ttf-freefont
  Depends: fonts-freefont-ttf
fonts-freefont-ttf
ucf
  Depends: coreutils (>= 5.91)
  Depends: debconf (>= 1.5.19)
coreutils
  Depends: dpkg (>= 1.15.4)
  Depends: install-info
  PreDepends: libacl1 (>= 2.2.51-8)
  PreDepends: libattr1 (>= 1:2.4.46-8)
  PreDepends: libc6 (>= 2.15)
  PreDepends: libselinux1 (>= 1.32)
libacl1
  Depends: libattr1 (>= 1:2.4.46-8)
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libattr1
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libexpat1
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libpixman-1-0
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libpng12-0
  Depends: libc6 (>= 2.11)
  Depends: zlib1g (>= 1:1.1.4)
  PreDepends: multiarch-support
libxcb-render0
  Depends: libc6 (>= 2.1.3)
  Depends: libxcb1 (>= 1.8)
  PreDepends: multiarch-support
libxcb-shm0
  Depends: libc6 (>= 2.1.3)
  Depends: libxcb1
  PreDepends: multiarch-support
libxrender1
  Depends: libc6 (>= 2.1.3)
  Depends: libx11-6 (>= 2:1.4.99.1)
  PreDepends: multiarch-support
libcolord1
  Depends: libc6 (>= 2.4)
  Depends: libglib2.0-0 (>= 2.28.0)
  Depends: liblcms2-2 (>= 2.2+git20110628)
  PreDepends: multiarch-support
liblcms2-2
  Depends: libc6 (>= 2.7)
  PreDepends: multiarch-support
libcups2
  Depends: libavahi-client3 (>= 0.6.16)
  Depends: libavahi-common3 (>= 0.6.16)
  Depends: libc6 (>= 2.4)
  Depends: libgnutls26 (>= 2.12.17-0)
  Depends: libgssapi-krb5-2 (>= 1.10+dfsg~)
  Depends: zlib1g (>= 1:1.1.4)
  PreDepends: multiarch-support
libavahi-client3
  Depends: libavahi-common3 (>= 0.6.22)
  Depends: libc6 (>= 2.4)
  Depends: libdbus-1-3 (>= 1.1.1)
  PreDepends: multiarch-support
libavahi-common3
  Depends: libavahi-common-data
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libavahi-common-data
libgnutls26
  Depends: libc6 (>= 2.8)
  Depends: libgcrypt11 (>= 1.4.5)
  Depends: libp11-kit0 (>= 0.11)
  Depends: libtasn1-3 (>= 1.6-0)
  Depends: zlib1g (>= 1:1.1.4)
  PreDepends: multiarch-support
libgcrypt11
  Depends: libc6 (>= 2.15)
  Depends: libgpg-error0 (>= 1.10)
  PreDepends: multiarch-support
libgpg-error0
  Depends: libc6 (>= 2.1.3)
  PreDepends: multiarch-support
libp11-kit0
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libtasn1-3
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libgssapi-krb5-2
  Depends: libc6 (>= 2.7)
  Depends: libcomerr2 (>= 1.34)
  Depends: libk5crypto3 (>= 1.8+dfsg)
  Depends: libkrb5-3 (= 1.10.1+dfsg-3)
  Depends: libkrb5support0 (>= 1.7dfsg~beta2)
  PreDepends: multiarch-support
libcomerr2
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libk5crypto3
  Depends: libc6 (>= 2.4)
  Depends: libkrb5support0 (>= 1.7dfsg~beta2)
  PreDepends: multiarch-support
libkrb5support0
  Depends: libc6 (>= 2.3.4)
  PreDepends: multiarch-support
libkrb5-3
  Depends: libc6 (>= 2.16)
  Depends: libcomerr2 (>= 1.34)
  Depends: libk5crypto3 (>= 1.9+dfsg~beta1)
  Depends: libkeyutils1
  Depends: libkrb5support0 (= 1.10.1+dfsg-3)
  PreDepends: multiarch-support
libkeyutils1
  Depends: libc6 (>= 2.7)
  PreDepends: multiarch-support
libgdk-pixbuf2.0-0
  Depends: libc6 (>= 2.11)
  Depends: libgdk-pixbuf2.0-common (= 2.26.5-0ubuntu3)
  Depends: libglib2.0-0 (>= 2.34.0)
  Depends: libjasper1
  Depends: libjpeg8 (>= 8c)
  Depends: libpng12-0 (>= 1.2.13-4)
  Depends: libtiff5 (>> 4.0.0-1~)
  Depends: libx11-6
  PreDepends: multiarch-support
libgdk-pixbuf2.0-common
libjasper1
  Depends: libc6 (>= 2.7)
  Depends: libjpeg8 (>= 8c)
  PreDepends: multiarch-support
libjpeg8
  Depends: libjpeg-turbo8 (>= 1.1.90+svn722-1ubuntu6)
libjpeg-turbo8
  Depends: libc6 (>= 2.7)
  PreDepends: multiarch-support
libtiff5
  Depends: libc6 (>= 2.11)
  Depends: libjbig0
  Depends: libjpeg8 (>= 8c)
  Depends: liblzma5 (>= 5.1.1alpha+20120614)
  Depends: zlib1g (>= 1:1.1.4)
  PreDepends: multiarch-support
libjbig0
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libgtk-3-common
  Depends: dconf-gsettings-backend
  Depends: gsettings-backend
libpango1.0-0
  Depends: fontconfig (>= 2.1.91)
  Depends: libc6 (>= 2.4)
  Depends: libcairo2 (>= 1.8.10-3)
  Depends: libfontconfig1 (>= 2.9.0)
  Depends: libfreetype6 (>= 2.2.1)
  Depends: libglib2.0-0 (>= 2.31.8)
  Depends: libthai0 (>= 0.1.12)
  Depends: libx11-6
  Depends: libxft2 (>> 2.1.1)
  Depends: libxrender1
  PreDepends: multiarch-support
fontconfig
  Depends: fontconfig-config
  Depends: libc6 (>= 2.3.4)
  Depends: libfontconfig1 (>= 2.9.0)
libthai0
  Depends: libc6 (>= 2.4)
  Depends: libdatrie1 (>= 0.2.0)
  Depends: libthai-data (>= 0.1.10)
  PreDepends: multiarch-support
libdatrie1
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libthai-data
libxft2
  Depends: libc6 (>= 2.4)
  Depends: libfontconfig1 (>= 2.8.0)
  Depends: libfreetype6 (>= 2.3.5)
  Depends: libx11-6
  Depends: libxrender1
  PreDepends: multiarch-support
libxcomposite1
  Depends: libc6 (>= 2.1.3)
  Depends: libx11-6 (>= 2:1.4.99.1)
  PreDepends: multiarch-support
libxcursor1
  Depends: libc6 (>= 2.4)
  Depends: libx11-6 (>= 2:1.4.99.1)
  Depends: libxfixes3
  Depends: libxrender1
  PreDepends: multiarch-support
libxfixes3
  Depends: libc6 (>= 2.1.3)
  Depends: libx11-6 (>= 2:1.4.99.1)
  PreDepends: multiarch-support
libxdamage1
  Depends: libc6 (>= 2.1.3)
  Depends: libx11-6 (>= 2:1.4.99.1)
  PreDepends: multiarch-support
libxi6
  Depends: libc6 (>= 2.4)
  Depends: libx11-6 (>= 2:1.4.99.1)
  Depends: libxext6
  PreDepends: multiarch-support
libxinerama1
  Depends: libc6 (>= 2.1.3)
  Depends: libx11-6 (>= 2:1.4.99.1)
  Depends: libxext6
  PreDepends: multiarch-support
libxrandr2
  Depends: libc6 (>= 2.1.3)
  Depends: libx11-6 (>= 2:1.4.99.1)
  Depends: libxext6
  Depends: libxrender1
  PreDepends: multiarch-support
shared-mime-info
  Depends: libc6 (>= 2.3)
  Depends: libglib2.0-0 (>= 2.24.0)
  Depends: libxml2 (>= 2.7.4)
libxml2
  Depends: libc6 (>= 2.15)
  Depends: liblzma5 (>= 5.1.1alpha+20120614)
  Depends: zlib1g (>= 1:1.2.3.3)
  PreDepends: multiarch-support
librsvg2-common
  Depends: libc6 (>= 2.3.6-6~)
  Depends: libgdk-pixbuf2.0-0 (>= 2.22.0)
  Depends: libglib2.0-0 (>= 2.24.0)
  Depends: librsvg2-2 (= 2.36.4-1)
librsvg2-2
  Depends: libc6 (>= 2.7)
  Depends: libcairo2 (>= 1.2.4)
  Depends: libcroco3 (>= 0.6.2)
  Depends: libgdk-pixbuf2.0-0 (>= 2.22.0)
  Depends: libglib2.0-0 (>= 2.24.0)
  Depends: libpango1.0-0 (>= 1.18.0)
  Depends: libxml2 (>= 2.8.0)
  PreDepends: multiarch-support
libcroco3
  Depends: libc6 (>= 2.4)
  Depends: libglib2.0-0 (>= 2.16.0)
  Depends: libxml2 (>= 2.7.4)
  PreDepends: multiarch-support
libevdocument3-4
  Depends: libc6 (>= 2.7)
  Depends: libcairo2 (>= 1.10.0)
  Depends: libdjvulibre21 (>= 3.5.25.3)
  Depends: libgdk-pixbuf2.0-0 (>= 2.22.0)
  Depends: libglib2.0-0 (>= 2.34)
  Depends: libgtk-3-0 (>= 3.0.2)
  Depends: libgxps2 (>= 0.2.1)
  Depends: libkpathsea6
  Depends: libpoppler-glib8 (>= 0.20.1)
  Depends: libspectre1 (>= 0.2.3)
  Depends: libt1-5 (>= 5.1.0)
  Depends: libtiff5 (>> 4.0.0-1~)
  Depends: libxml2 (>= 2.7.4)
  Depends: zlib1g (>= 1:1.1.4)
libdjvulibre21
  Depends: libc6 (>= 2.11)
  Depends: libdjvulibre-text (>= 3.5.25.3-3)
  Depends: libgcc1 (>= 1:4.1.1)
  Depends: libjpeg8 (>= 8c)
  Depends: libstdc++6 (>= 4.1.1)
  PreDepends: multiarch-support
libdjvulibre-text
libstdc++6
  Depends: gcc-4.7-base (= 4.7.2-17ubuntu2)
  Depends: libc6 (>= 2.11)
  Depends: libgcc1 (>= 1:4.1.1)
  PreDepends: multiarch-support
libgxps2
  Depends: libarchive12
  Depends: libc6 (>= 2.11)
  Depends: libcairo2 (>= 1.10.0)
  Depends: libfreetype6 (>= 2.2.1)
  Depends: libglib2.0-0 (>= 2.24.0)
  Depends: libjpeg8 (>= 8c)
  Depends: liblcms2-2 (>= 2.2+git20110628-2)
  Depends: libtiff5 (>> 4.0.0-1~)
  PreDepends: multiarch-support
libarchive12
  Depends: libacl1 (>= 2.2.51-8)
  Depends: libattr1 (>= 1:2.4.46-8)
  Depends: libbz2-1.0
  Depends: libc6 (>= 2.16)
  Depends: liblzma5 (>= 5.1.1alpha+20120614)
  Depends: libnettle4 (>= 2.3)
  Depends: libxml2 (>= 2.7.4)
  Depends: zlib1g (>= 1:1.1.4)
  PreDepends: multiarch-support
libnettle4
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libkpathsea6
  Depends: libc6 (>= 2.4)
libpoppler-glib8
  Depends: libc6 (>= 2.4)
  Depends: libcairo2 (>= 1.12.0)
  Depends: libfreetype6 (>= 2.2.1)
  Depends: libgcc1 (>= 1:4.1.1)
  Depends: libglib2.0-0 (>= 2.24.0)
  Depends: libpoppler28 (>= 0.20.5)
  Depends: libstdc++6 (>= 4.1.1)
  PreDepends: multiarch-support
libpoppler28
  Depends: libc6 (>= 2.11)
  Depends: libfontconfig1 (>= 2.9.0)
  Depends: libfreetype6 (>= 2.2.1)
  Depends: libgcc1 (>= 1:4.1.1)
  Depends: libjpeg8 (>= 8c)
  Depends: liblcms2-2 (>= 2.2+git20110628)
  Depends: libpng12-0 (>= 1.2.13-4)
  Depends: libstdc++6 (>= 4.1.1)
  Depends: libtiff5 (>> 4.0.0-1~)
  PreDepends: multiarch-support
libspectre1
  Depends: libc6 (>= 2.8)
  Depends: libgs9 (>= 8.61.dfsg.1)
  PreDepends: multiarch-support
libgs9
  Depends: gs-cjk-resource
  Depends: libc6 (>= 2.11)
  Depends: libcups2 (>= 1.4.0)
  Depends: libcupsimage2 (>= 1.4.0)
  Depends: libfontconfig1 (>= 2.9.0)
  Depends: libfreetype6 (>= 2.2.1)
  Depends: libgs9-common (= 9.06~dfsg-0ubuntu4)
  Depends: libidn11 (>= 1.13)
  Depends: libijs-0.35 (>= 0.35)
  Depends: libjbig2dec0 (>= 0.11-1)
  Depends: libjpeg8 (>= 8c)
  Depends: liblcms2-2 (>= 2.2+git20110628-2)
  Depends: libpaper1
  Depends: libpng12-0 (>= 1.2.13-4)
  Depends: libtiff5 (>> 4.0.0-1~)
  Depends: poppler-data (>= 0.4.5-3~)
  Depends: zlib1g (>= 1:1.1.4)
gs-cjk-resource
  Depends: ghostscript (>= 8.70~dfsg-2.1)
ghostscript
  Depends: debconf
  Depends: debconf-2.0
  Depends: debianutils (>= 1.6)
  Depends: gsfonts (>= 6.0-1)
  Depends: libc6 (>= 2.0)
  Depends: libgs9 (= 9.06~dfsg-0ubuntu4)
debianutils
  Depends: sensible-utils
  PreDepends: libc6 (>= 2.15)
sensible-utils
libcupsimage2
  Depends: libc6 (>= 2.4)
  Depends: libcups2 (>= 1.4.0)
  PreDepends: multiarch-support
libgs9-common
libidn11
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libijs-0.35
  Depends: libc6 (>= 2.4)
libjbig2dec0
  Depends: libc6 (>= 2.7)
libpaper1
  Depends: debconf (>= 0.5)
  Depends: debconf-2.0
  Depends: libc6 (>= 2.3)
  Depends: ucf (>= 0.28)
  PreDepends: multiarch-support
poppler-data
  PreDepends: dpkg (>= 1.15.6~)
libt1-5
  Depends: libc6 (>= 2.11)
  Depends: libx11-6
libevview3-3
  Depends: libatk1.0-0 (>= 1.12.4)
  Depends: libc6 (>= 2.3.6-6~)
  Depends: libcairo2 (>= 1.10.0)
  Depends: libevdocument3-4 (>= 3.5.3)
  Depends: libgail-3-0 (>= 3.0.0)
  Depends: libglib2.0-0 (>= 2.34)
  Depends: libgrip0
  Depends: libgtk-3-0 (>= 3.0.2)
  Depends: libpango1.0-0 (>= 1.14.0)
libgail-3-0
  Depends: libatk1.0-0 (>= 1.12.4)
  Depends: libc6 (>= 2.3.6-6~)
  Depends: libglib2.0-0 (>= 2.33.10)
  Depends: libgtk-3-0 (= 3.6.2-0ubuntu1)
  Depends: libpango1.0-0 (>= 1.30.0)
  PreDepends: multiarch-support
libgrip0
  Depends: libc6 (>= 2.1.3)
  Depends: libgeis1 (>= 1.0.8)
  Depends: libglib2.0-0 (>= 2.28.6)
  Depends: libgtk-3-0 (>= 3.0.8-0ubuntu1)
libgeis1
  Depends: libc6 (>= 2.15)
  Depends: libdbus-1-3 (>= 1.1.1)
  Depends: libframe6 (>= 2.2.4)
  Depends: libgrail6 (>= 3.0.8)
  Depends: libx11-6 (>= 2:1.2.99.901)
  Depends: libxext6
  Depends: libxi6 (>= 2:1.5.99.2)
  PreDepends: multiarch-support
libframe6
  Depends: libc6 (>= 2.7)
  Depends: libgcc1 (>= 1:4.1.1)
  Depends: libstdc++6 (>= 4.6)
  Depends: libx11-6
  Depends: libxi6 (>= 2:1.5.99.2)
  PreDepends: multiarch-support
libgrail6
  Depends: libc6 (>= 2.7)
  Depends: libframe6 (>= 2.5.0)
  Depends: libgcc1 (>= 1:4.1.1)
  Depends: libstdc++6 (>= 4.6)
  PreDepends: multiarch-support
libgnome-keyring0
  Depends: libc6 (>= 2.3.6-6~)
  Depends: libdbus-1-3 (>= 1.1.1)
  Depends: libgcrypt11 (>= 1.4.5)
  Depends: libglib2.0-0 (>= 2.31.8)
  Depends: libgnome-keyring-common (= 3.6.0-1)
  PreDepends: multiarch-support
libgnome-keyring-common
libice6
  Depends: libc6 (>= 2.11)
  Depends: x11-common
  PreDepends: multiarch-support
libnautilus-extension1a
  Depends: libc6 (>= 2.1.3)
  Depends: libglib2.0-0 (>= 2.33.13)
  Depends: libgtk-3-0 (>= 3.0.0)
libsm6
  Depends: libc6 (>= 2.4)
  Depends: libice6 (>= 1:1.0.0)
  Depends: libuuid1 (>= 2.16)
  PreDepends: multiarch-support
libuuid1
  Depends: libc6 (>= 2.4)
  Depends: passwd
  PreDepends: multiarch-support
passwd
  Depends: debianutils (>= 2.15.2)
  Depends: libc6 (>= 2.8)
  Depends: libpam-modules
  Depends: libpam0g (>= 0.99.7.1)
  Depends: libselinux1 (>= 1.32)
  Depends: libsemanage1 (>= 2.0.3)
  Depends: upstart-job
libpam-modules
  PreDepends: debconf (>= 0.5)
  PreDepends: debconf-2.0
  PreDepends: libc6 (>= 2.8)
  PreDepends: libdb5.1
  PreDepends: libpam-modules-bin (= 1.1.3-7ubuntu4)
  PreDepends: libpam0g (>= 1.1.3-2)
  PreDepends: libselinux1 (>= 2.0.85)
libdb5.1
  Depends: libc6 (>= 2.15)
  PreDepends: multiarch-support
libpam-modules-bin
  Depends: libc6 (>= 2.4)
  Depends: libpam0g (>= 0.99.7.1)
  Depends: libselinux1 (>= 1.32)
libpam0g
  Depends: debconf (>= 0.5)
  Depends: debconf-2.0
  Depends: libc6 (>= 2.8)
  PreDepends: multiarch-support
libsemanage1
  Depends: libbz2-1.0
  Depends: libc6 (>= 2.8)
  Depends: libselinux1 (>= 1.32)
  Depends: libsemanage-common (= 2.1.6-6)
  Depends: libsepol1 (>= 2.1.4)
  Depends: libustr-1.0-1 (>= 1.0.4)
  PreDepends: multiarch-support
libsemanage-common
libsepol1
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
libustr-1.0-1
  Depends: libc6 (>= 2.4)
  PreDepends: multiarch-support
upstart-job




I don't know how to check the hash code, sorry. The debug output shows nothing, I have followed the instructions.
Comment 15 Germán Poo-Caamaño 2013-01-08 18:51:28 UTC
(In reply to comment #13)
> Actually, after looking at the code... It is doing more weird things. My guess
> is that the code is failing when copying the gvfs-metadata... Setting to NEW
> since germán can reproduce it at least on 3.6. Although, it is probably a bug
> on Gio...

FWIW, I can only reproduce it with Evince 3.4.0.  (I am stuck in Ubuntu 12.04).
However, I can *not* reproduce it with Evince master.
Comment 16 entropy 2013-01-08 19:26:48 UTC
Look, I'm not using any Evince master. I'm using Evince from ppa:gnome3-team/gnome3-staging

evince --version
GNOME Document Viewer 3.7.1
Comment 17 Germán Poo-Caamaño 2013-01-08 21:28:53 UTC
It is not an evince bug.  This is an apparmor's policy which is located in
/etc/apparmor.d/usr.bin.evince:

/usr/bin/evince {
  [...]
  # This is need for saving files in your home directory without an extension.
  # Changing this to '@{HOME}/** r' makes it require an extension and more
  # secure (but with 'rw', we still have abstractions/private-files-strict in
  # effect).
  [...]
}

I just tried:
$ cd /usr/bin
$ sudo mv evince evince-test
$ evince-test

And I could save the file without extension in an external disk without problem.

I changed the name back and removed temporarily the evince's apparmor profile,
reloaded apparmor and it also worked.

I changed everything back to its original state, reload apparmor and it failed as
expected.

So, I am closing this bug as NOTGNOME.
Comment 18 Germán Poo-Caamaño 2013-01-08 21:40:44 UTC
Just for the record (after reading the documentation), the way to disable the
profile to test it is:

$ sudo ln -s /etc/apparmor.d/usr.bin.evince /etc/apparmor.d/disable/
$ sudo apparmor_parser -R /etc/apparmor.d/usr.bin.evince
$ /usr/bin/evince

To bring the profile back:

$ sudo rm /etc/apparmor.d/disable/usr.bin.evince
$ sudo apparmor_parser -r /etc/apparmor.d/usr.bin.evince

So, "It's clearly a bug in Evince, please fix it, it actually scared the guys on 
the #linux IRC channel, irc.freenode.org, due to its dumbness." was an
overstatement.
Comment 19 entropy 2013-01-09 00:02:17 UTC
> So, "It's clearly a bug in Evince, please fix it, it actually scared the guys
> on 
> the #linux IRC channel, irc.freenode.org, due to its dumbness." was an
> overstatement.

No, that's what I was told about "that dumbass software"...Sorry about it and thanks for the fix.
Comment 20 José Aliste 2013-01-09 13:32:08 UTC
*** Bug 688840 has been marked as a duplicate of this bug. ***