Skip to content

Fix regression on encrypted files being repaired

Some encrypted files which need repairing (see links below) failed to open due to a regression introduced in commit b3e86dbd where an 'if condition' was added that's hit by encrypted files which need repairing.

The removal of this 'if condition' does not affect the original buggy file that commit b3e86dbd targeted[1].

This commit also adds Qt5 and Qt6 tests for opening an encrypted pdf file affected by this issue.

Fixes #1447 (closed)
Fixes https://gitlab.gnome.org/GNOME/evince/-/issues/1889

Regression issue:
https://bugs.freedesktop.org/show_bug.cgi?id=14303

[1] which can be found in this duplicate:
https://bugs.freedesktop.org/show_bug.cgi?id=14399

Merge request reports