[okular] [Bug 472756] New: Infinite modal dialog in PDF form
Juan Navarro
bugzilla_noreply at kde.org
Fri Jul 28 18:17:51 BST 2023
https://bugs.kde.org/show_bug.cgi?id=472756
Bug ID: 472756
Summary: Infinite modal dialog in PDF form
Classification: Applications
Product: okular
Version: 23.04.3
Platform: Flatpak
OS: Linux
Status: REPORTED
Severity: major
Priority: NOR
Component: PDF backend
Assignee: okular-devel at kde.org
Reporter: oneorjuan at gmail.com
Target Milestone: ---
Created attachment 160593
--> https://bugs.kde.org/attachment.cgi?id=160593&action=edit
Sample PDF file
SUMMARY
A modal dialog is shown by the PDF form I'm trying to fill. It is just an
informative dialog. The problem is that once closed, it shows up immediately
again. This repeats indefinitely, which causes the form to be unfillable, and
what's worse, Okular is captive in this dialog-loop, so it cannot be even
closed by normal means.
Using Okular v23.04.3, the latest version available in Flathub
(https://flathub.org/apps/org.kde.okular) as of today. Underlying platform is
Ubuntu 20.04.
STEPS TO REPRODUCE
1. Open the PDF file that I'm attaching to this report.
2. A header bar shows up in Okular, saying that "This document has forms. Click
on the button to interact with them, or use View -> Show Forms."
Click the "Show Forms" button.
3. On the right-half of the document, on the first row that contains this text:
(2) Tipo de documento de identidad
DNI Pasaporte NIE T. Residencia
Click on any of the checkboxes. For example, click on the checkbox under "DNI".
4. A dialog appears with this text:
(1) En caso de Tarjeta de Residencia, indicar T (Temporal), P(Permanente),
C(Comunitaria)
And an OK button.
OBSERVED RESULT
Pressing the OK button closes the dialog, but it immediately appears again.
The application is then permanently captured by this modal dialog, and neither
of progressing with filling the form, or closing Okular, is possible.
EXPECTED RESULT
Pressing the OK button would close the dialog permanently.
IF the reappearance of the dialog is caused by bad viewer logic of Okular:
* Okular should be fixed to improve compatibility with documents like this one.
IF the issue is caused by faulty logic of the document itself, and is not an
issue in Okular itself, then:
* Okular might try to be useful: detect the case and inform the user about it.
* Okular ought to not allow a faulty document to make it into a dialog loop.
For this, a reappearance limit would be a good idea, either as a fixed limit or
as a UI checkbox in the dialog, giving the user the chance to silence future
instances of that dialog. This is a pattern that I have seen successfully
implemented in other software, such as web browsers.
SOFTWARE/OS VERSIONS
As per Flatpak package indicated above:
Name Description Application ID Version Branch
Remotes
Okular Document Viewer org.kde.okular 23.04.3 stable
flathub
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list