[okular] [Bug 436738] docdata duplicated each time pdf is edited

Albert Astals Cid bugzilla_noreply at kde.org
Sat May 15 21:42:27 BST 2021


https://bugs.kde.org/show_bug.cgi?id=436738

--- Comment #13 from Albert Astals Cid <aacid at kde.org> ---
(In reply to David Hurka from comment #12)
> Every time I open a document, Okular checks whether the file
> “<size>,<filename>.xml” exists. Is that different to checking whether the
> file “<hash>.xml” exists?
> 
> Or do I understand something wrong?

My answer was to pbs3141 that was suggesting something different as far as I
understand.

I don't like the idea of identifying the docdata exclusively by hash.

Hashes by definition will have collisions, so will have filenames+filesize, but
it's much easier to explain that two documents "share" their docdata because of
that (and if the user actually has two files with the same filename and size
and are not the same, she can rename one of the files) than the fact that if
they share the hash of the first N bytes, which is something that no one
"normal" can really understand and if even they understand they can't fix it.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list