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.
Created attachment 49344 [details] Corrupt document archive
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
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