Bug#860778: okular: Often fails to open via symlinks
Package: okular
Version: 4:16.08.2-1+b1
Severity: normal
Dear Maintainer,
The following perfectly-legitimate, common, use of symlinks works with
*all* programs that don't go out of their way to *break* it.
Okular manages to do this wrong, presumably by trying to do filesystem
operations without, you know, talking to the filesystem.
#!/bin/sh
set -e
mkdir -p /tmp/okular-bug/
cd /tmp/okular-bug/
mkdir -p bar/baz
echo 'Hello, World!' > bar/hello.txt
ln -sf bar/baz foo
cat bar/hello.txt
okular bar/hello.txt
cat foo/../hello.txt
okular foo/../hello.txt
-Ben
-- System Information:
Debian Release: 9.0
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64
(x86_64)
Foreign Architectures: i386, x32, arm64
Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages okular depends on:
ii kde-runtime 4:16.08.3-2
ii libc6 2.24-10
ii libfreetype6 2.6.3-3.1
ii libjpeg62-turbo 1:1.5.1-2
ii libkdecore5 4:4.14.26-1
ii libkdeui5 4:4.14.26-1
ii libkexiv2-11 4:15.04.3-1
ii libkio5 4:4.14.26-1
ii libkparts4 4:4.14.26-1
ii libkprintutils4 4:4.14.26-1
ii libkpty4 4:4.14.26-1
ii libokularcore7 4:16.08.2-1+b1
ii libphonon4 4:4.9.0-4
ii libpoppler-qt4-4 0.48.0-2
ii libqca2 2.1.1-4+b2
ii libqimageblitz4 1:0.0.6-4+b2
ii libqmobipocket1 4:16.08.0-1
ii libqt4-dbus 4:4.8.7+dfsg-11
ii libqt4-declarative 4:4.8.7+dfsg-11
ii libqt4-svg 4:4.8.7+dfsg-11
ii libqt4-xml 4:4.8.7+dfsg-11
ii libqtcore4 4:4.8.7+dfsg-11
ii libqtgui4 4:4.8.7+dfsg-11
ii libsolid4 4:4.14.26-1
ii libspectre1 0.2.8-1
ii libstdc++6 7-20170407-1
ii phonon 4:4.9.0-4
ii zlib1g 1:1.2.8.dfsg-5
Versions of packages okular recommends:
ii cups-bsd 2.2.1-8
Versions of packages okular suggests:
ii ghostscript 9.20~dfsg-3
ii jovie 4:16.08.0-1+b1
ii okular-extra-backends 4:16.08.2-1+b1
ii poppler-data 0.4.7-8
ii texlive-binaries 2016.20160513.41080.dfsg-2
pn unrar <none>
-- no debconf information
Reply to: