Bug 821135 - ebook-viewer modifies the ebook it reads
Summary: ebook-viewer modifies the ebook it reads
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: calibre
Version: 15
Hardware: i686
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-12 11:17 UTC by Andras Simon
Modified: 2012-05-25 09:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-15 19:33:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 858957 0 None None None Never

Description Andras Simon 2012-05-12 11:17:01 UTC
Description of problem:

ebook-viewer modifies the epub files it reads

Version-Release number of selected component (if applicable):

calibre-0.8.0-1.fc15.1.i686

How reproducible:

always

Steps to Reproduce:
1. cp some.epub original.epub
2. ebook-viewer some.epub
3. cmp original.epub some.epub
  
Actual results:

cmp reports a difference

Expected results:

original.epub and some.epub should stay identical

Additional info:

The difference between the two epub files can be seen after unzipping them:

diff -r m/META-INF/calibre_bookmarks.txt m1/META-INF/calibre_bookmarks.txt
1c1
< calibre_current_page_bookmark^7# *:eq(0)  > *:eq(1)  > *:eq(0)  >
*:eq(4)  > *:eq(6) |0.19047619047619047
---
> calibre_current_page_bookmark^15# *:eq(0)  > *:eq(1)  > *:eq(0)  > *:eq(8)  > *:eq(43) |0.3619791666666667

So what happens is that ebook-viewer probably annotates the epub file so it can remember the current page after quitting. But it should put this information in some file that it owns, not the epub itself.

Comment 1 Kevin Fenzi 2012-05-12 17:25:16 UTC
Would you be willing to file this request upstream?

https://bugs.launchpad.net/calibre

Or would you prefer I do so? I'd be happy to, but you are closer to the issue and have data at hand and a stake in solving it.

Comment 2 Andras Simon 2012-05-15 17:03:54 UTC
(In reply to comment #1)
> Would you be willing to file this request upstream?

Sure, but I can't log in to my newly created launchpad account. I end up on a page that says

Sign in

If you proceed, the following information will be available to Launchpad: 

Full name: Andras Simon
Email address: szajmi

Yes, sign me in/Cancel

Why I should sign in when I already seem to be signed in is a mystery, but never mind. Whatever I do, I get back to this same page. Yes, I tried this with cookies removed, but to no avail.


> Or would you prefer I do so? I'd be happy to, but you are closer to the issue
> and have data at hand and a stake in solving it.

In light of the above, I'd appreciate it if you did...

Thanks!

Comment 3 Kevin Fenzi 2012-05-15 19:33:57 UTC
Ah, seems it was already reported in the past: 

https://bugs.launchpad.net/calibre/+bug/858957

So, options seem to be: 

a) disable "remeber last page when closing" 

b) use a different format from epub

c) live with the files changing. 

Sorry.

Comment 4 Andras Simon 2012-05-25 09:41:26 UTC
(In reply to comment #3)
> Ah, seems it was already reported in the past: 
> 
> https://bugs.launchpad.net/calibre/+bug/858957
> 
> So, options seem to be: 
> 
> a) disable "remeber last page when closing" 
> 
> b) use a different format from epub
> 
> c) live with the files changing. 

d) not using ebook-viewer

> Sorry.

Thanks for looking into this!


Note You need to log in before you can comment on or make changes to this bug.