Bug 245243 - Okular fails to export "Document Archive" (with symbolic link)
Summary: Okular fails to export "Document Archive" (with symbolic link)
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.10.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-20 17:58 UTC by Vilius
Modified: 2010-08-11 01:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.5.1


Attachments
Corrupt document archive (2.75 KB, application/vnd.kde.okular-archive)
2010-07-20 18:05 UTC, Vilius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vilius 2010-07-20 17:58:58 UTC
Version:           0.10.2 (using KDE 4.4.2) 
OS:                Linux

When I open PDF document via symbolic link and export annotations as "Document Archive", Okular is unable to open the file I got in result.

Reproducible: Always

Steps to Reproduce:
1. Create a symbolic link (in Linux) for any PDF document.
2. Start Okular, open the link file (not the original PDF), add some annotations, highlights, etc.
3. Select Export As --> Document Archive, enter file name, click Save. Exporting completes with no messages.
4. Try to open the exported file.

Actual Results:  
The document fails to open with error message: "Could not open file:///path/link.okular"
Size of the exported file (couple of kilobytes) clearly shows that the original PDF is not included in the archive.

Expected Results:  
The exported archive should open normally. The original PDF document (not it's link) should be written into archive.

This bug may cause loss of all annotations if user decides to delete the link file (assuming that the annotations are saved in the archive).

Generally it's a bit confusing to have different sets of annotations when opening the same document via link and directly. What's exactly how I discovered this bug.
In my opinion, the way Okular handles linked documents should be reconsidered.
Comment 1 Vilius 2010-07-20 18:05:16 UTC
Created attachment 49344 [details]
Corrupt document archive
Comment 2 Pino Toscano 2010-08-11 01:47:15 UTC
SVN commit 1161859 by pino:

when archiving, resolve the symlink if the document path is that

CCBUG: 245243


 M  +6 -1      document.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1161859
Comment 3 Pino Toscano 2010-08-11 01:47:59 UTC
SVN commit 1161860 by pino:

when archiving, resolve the symlink if the document path is that

BUG: 245243
FIXED-IN: 4.5.1


 _M            . (directory)  
 M  +6 -1      core/document.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1161860