Closed Bug 1726346 Opened 3 years ago Closed 3 years ago

[XFA] Data saved with Firefox won't display in Adobe Reader

Categories

(Firefox :: PDF Viewer, defect, P1)

Desktop
All
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox91 --- disabled
firefox92 --- unaffected
firefox93 --- unaffected

People

(Reporter: danibodea, Unassigned)

References

Details

Attachments

(1 file, 2 obsolete files)

Note

  • When the user opens a specific PDF file in Firefox, inputs some data, saves it and opens it in Adobe Reader, he will notice that the data input using the browser is NOT displayed in Adobe Reader.

Affected versions

  • Beta v92.0b5

Affected platforms

  • all

Steps to reproduce

  1. Launch browser.
  2. Flip "pdfjs.enableXfa" to true.
  3. Load the attached PDF file.
  4. Input some data in any field.
  5. Save the document (CTRL+S)
  6. Open the document in Adobe Reader

Expected result

  • The data input using the browser is displayed in Adobe Reader.

Actual result

  • The data input using the browser is NOT displayed in Adobe Reader.

Regression range

  • Not a regression.

Additional Information:

  • The input data is properly displayed if opened in Firefox again.
  • I do not know whether this should block bug 1706133. Remove the block if not necessary.
Attached file 609-General-Photography-Release-2.pdf (obsolete) —

This issue is also observed in this PDF; Saving it with input information from Firefox and opening it in Adobe won't show the previously input information; The saving is not processed here since opening it in Firefox won't show the previously input information either.
This issue does not happen when savin input information from Adobe Reader.

Saving this PDF with Firefox after inputting data will incorrectly show it in Adobe Reader, show errors, and making it somewhat unusable.
There is no issue the other way around.

QA Whiteboard: [pdf_xfa_generic]
Severity: S3 → S2
Priority: -- → P1

About FormSolicitudDerechosRGPD-PURE-XFA.pdf:

  • I can open the pdf in Acrobat Reader (free version) but I get a purple bar to warn me that data cannot be saved but I can see the values in the 2 first fields: I've no idea why I get this warning.
  • no problem at all with Acrobat Pro or FoxIt.
    :danibodea, could you update your acrobat version and check again if data are displayed or not ?

About 609-General-Photography-Release-2.pdf, I can reproduce the issue and it's definitly a bug in pdf.js: I'll fix it.
About 4571aef8-c10f-47a6-9db0-34cc3bdf39bc-2.pdf: it's in fact an acroform but data are saved in a xfa dataset. The file is encrypted and consequently, saved data are encrypted too. For any reason there is something wrong here: I can successfully open a saved pdf in pdf.js or evince but not with chrome or masterpdf or acrobat... so something is likely wrong with our way to encrypt data when saving.

I filed bug for 609-General-Photography-Release-2.pdf: https://bugzilla.mozilla.org/show_bug.cgi?id=1728568
and for 4571aef8-c10f-47a6-9db0-34cc3bdf39bc-2.pdf: https://bugzilla.mozilla.org/show_bug.cgi?id=1728572.

No longer blocks: 1728572

:danibodea, could you answer the question from comment 3?

Flags: needinfo?(daniel.bodea)
No longer blocks: 1728568

Comment on attachment 9237639 [details]
609-General-Photography-Release-2.pdf

The bug related to this PDF is tracked in bug 1728568.

Attachment #9237639 - Attachment is obsolete: true

Comment on attachment 9237660 [details]
4571aef8-c10f-47a6-9db0-34cc3bdf39bc-2.pdf

The bug related to this PDF is tracked in bug 1728572.

Attachment #9237660 - Attachment is obsolete: true

(In reply to Calixte Denizet (:calixte) from comment #3)

About FormSolicitudDerechosRGPD-PURE-XFA.pdf:

  • I can open the pdf in Acrobat Reader (free version) but I get a purple bar to warn me that data cannot be saved but I can see the values in the 2 first fields: I've no idea why I get this warning.
  • no problem at all with Acrobat Pro or FoxIt.
    :danibodea, could you update your acrobat version and check again if data are displayed or not ?

My version is the latest (Adobe Acrobat Reader 21.005.20060) and I can confirm the behavior you see. This PDF is not supposed to be saved with data in it, still, it contains saved data. Most probably because I've tested saving data in it and for some reason, it failed.
I had to search for the original PDF and it appears that the data was saved with Firefox because the original does not contain any data.

This being considered, the real issue about this specific PDF might be the fact that Firefox allows saving data, while Adobe does not.

Still, the originally reported issue remains and I'm confused as to how it reproduced because I can no longer reproduce in the latest or older versions (Nightly v93.0a1 from 2021-08-18 and 2021-08-30, Beta v92.0b4, v92.0b5, v92.0b9 and v92.0RC). The data introduced using these versions can be saved and will be properly opened and displayed in Adobe.

I think it could be closed as Worksforme, but this worries me as to why did it fail in the past or how could I have gone wrong (I always double/triple check my bugs before logging them.)

Flags: needinfo?(daniel.bodea) → needinfo?(cdenizet)
See Also: → 1720179

Closing this as worksforme based on the above comments.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
Flags: needinfo?(cdenizet)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: