Overwriting document with itself breaks document
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qpdfview |
Fix Released
|
Critical
|
Adam Reichold | ||
qpdfview (Ubuntu) |
Fix Released
|
Undecided
|
Benjamin Eltzner |
Bug Description
Steps to reproduce:
1. Open some test.pdf or test.ps (or better a security copy of it) in qpdfview.
2. Choose "save copy" or "save as" from the menu (or by shortcut) and save the file with unchanged name, confirm to overwrite.
3. If you chose "save as", qpdfview will immediately try to load the saved file, fail, pop up an error message and keep the cached file in the tab. The file on disk is now 0 bytes in size and void of content.
I have not tested this with DjVu, but as behaviour for ps and pdf is identical, I assume this bug is in qpdfview.
Using:
Ubuntu 12.04 (Precise)
Poppler 0.18.4
libspectre 0.2.6
qpdfview 0.4.0.99~
It would be good if someone tested this with the 0.3.7 (the one to be in Ubuntu 13.04) and 0.4 releases, because if the bug is present there, it should urgently be fixed as it potentially deletes files unexpectedly and without backup. (I therefore take the liberty to claim the bug priority "critical".)
description: | updated |
Changed in qpdfview: | |
status: | Fix Committed → Fix Released |
Changed in qpdfview (Ubuntu): | |
status: | New → Confirmed |
I am not sure I agree with the "critical" nomination since this is well-known behavior. One could argue that it is badly documented, but that is a different question.