Bug 408774

Summary: Okular refuses to save document when original file has been (re)moved or changed
Product: [Applications] okular Reporter: grmat
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: nate
Priority: NOR    
Version: 1.7.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description grmat 2019-06-16 11:22:02 UTC
SUMMARY

An opened file can't be saved to a new location once the original file has been (re)moved or changed.

This often happens for "temporary" files directly opened from a web browser or mail client.



STEPS TO REPRODUCE
1. Browse the web, open a PDF file in Okular directly from the browser (which usually results in the file stored into /tmp)
2. Fill a form or annotate the file
2. Close the browser (which results in deletion of the file*)
4. try to save the annotated file to a new location (save-as)

*as opposed to overwriting the original file, this doesn't even trigger a warning inside Okular



OBSERVED RESULT
Okular shows a pop-up:

The file 'test.pdf' has been modified by another program, which means it can no longer be saved.

and refuses to save the file. The work is lost, even though it's still there, right in front of the user's eyes.



EXPECTED RESULT
The modified file can still be saved to a new location


SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
KDE Plasma Version: 5.16.0-1
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.3

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2019-06-16 22:29:23 UTC

*** This bug has been marked as a duplicate of bug 402017 ***