Bug 302129 - Okular loses all of your revisions!
Summary: Okular loses all of your revisions!
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.14.3
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL: http://derp.co.uk/5383d
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-18 14:39 UTC by Danilo
Modified: 2018-07-06 13:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danilo 2012-06-18 14:39:23 UTC
I'm using Okular to read a book and I was using the revision tool (F6). But when I renamed the file, named `teoria dos numeros.pdf` to `Teoria dos Números.pdf`, my revisions disappeared.

I had notice if I return the name of the file to the originals the revisions came back, so, looks like the revisions are stored using the filename, but, if the filename is updated, the reference need to be updated too. How Okular don't do this, this is a bug.

Reproducible: Always

Steps to Reproduce:
1.Open a file (prefereable .pdf files) with Okular.
2.Do a revision on it (using the F6 tool or going to Tools->Revision).
3.Close the file.
4.Rename  the file.
5.Open the file again.
6.Your revisions probably disappeared!


Expected Results:  
Keep the revisions even if the file has its named updated.
Comment 1 Danilo 2012-06-18 14:43:03 UTC
Image before the problem
http://derp.co.uk/b6e1b

Image after the problem
http://derp.co.uk/5383d

OBS.: See in the image the filename on top of the screen.
Comment 2 Albert Astals Cid 2012-06-18 20:46:52 UTC
If you read the manual it clearly states annotations are not saved in the file but in an associated database, if you rename the file, obviously the link is lost because we can't know you renamed the file (we actually could, but it would be very power hungry since would need to monitor each and every rename on your computer).

For KDE >= 4.9 you can save annotations in the file, so this should not be a problem anymore.
Comment 3 Danilo 2012-06-18 21:23:20 UTC
(In reply to comment #2)
> If you read the manual it clearly states annotations are not saved in the
> file but in an associated database, if you rename the file, obviously the
> link is lost because we can't know you renamed the file (we actually could,
> but it would be very power hungry since would need to monitor each and every
> rename on your computer).
> 
> For KDE >= 4.9 you can save annotations in the file, so this should not be a
> problem anymore.

My kde version is the latest in Ubuntu (apt-get upgrade/dist-upgrade):
Qt: 4.8.1
Plataforma de desenvolvimento KDE: 4.8.3 (4.8.3)
I can't confirm that works in kde 4.9 as you says.  But I'm waiting for the official packages.

If someone post a answer proving (like I posted proving was wrong, using images) in KDE 4.9 I can change to solved. For while, edit the post as Invalid and Solved is wrong.

If not works well in KDE 4.9 is still a real open bug.
Comment 4 Albert Astals Cid 2012-06-18 21:46:02 UTC
Well, i'm the developer of the application, you don't play changing but permissions with me just because you feel like. If you have proof it's not fixed in KDE 4.9 with poppler >= 0.20 then reopen the bug, but until then there is no bug.

First because what you get is the *documented* behaviour, second because an alternative will be provided with KDE 4.9 and poppler >= 0.20
Comment 5 Danilo 2012-06-21 18:51:07 UTC
Can you point what file I need to change the filename and then get the revisions for my file with its new name? As you are a developer probably you will know this information.
Comment 6 Albert Astals Cid 2012-06-24 17:42:36 UTC
open a terminal
cd `kde4-config --localprefix`/share/apps/okular/docdata
rename the file of the old name to the one of the new name
Comment 7 Danilo 2012-06-24 20:16:46 UTC
It works. Thx a lot Albert! Cya.