geometer / FBReaderJ

Official FBReaderJ project repository
http://www.fbreader.org/FBReaderJ/
1.83k stars 801 forks source link

reader shows part of book as "encrypted" though it isn't #411

Open malenki opened 8 years ago

malenki commented 8 years ago

The introduction of the epub version of this book the android FBReader shows as encrypted (German: verschlüsselt) though it isn't. The Linux FBreader has no problems displaying it.

ghost commented 7 years ago

I noticed that this happens when chapter has strange characters in its (file)name (long dash '–' or ellipsis '…'). As in: <item id="chapter14" href="chaptername….html" media-type="application/xhtml+xml" />

geometer commented 7 years ago

Which file do you download? I downloaded ePub from the link, there is no id="chapter14" inside.

ghost commented 7 years ago

Let me provide this example: https://ulozto.net/!h5fbtcQRW0eF/epub-zip (I tried uploading it here but github had problems with it). There is a zip file with two epubs that are almost identical. When I open one, I can read all (four) chapters. When I open the other it says Encrypted section instead of last chapter in FBReader on Android (from F-droid). Linux FBReader displays last chapter in both files just fine.

geometer commented 7 years ago

F-Droid :( I tried with the latest version (2.8 beta 21) of official FBReader, everything looks good. I afraid F-Droid is based on very old sources.

ildar commented 7 years ago

There is a reason for that: https://github.com/geometer/FBReaderJ/issues/398