readium / readium-sdk

A C++ ePub renderer SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Load failure for encrypted EPUB3 Navigation Document, Content Filter Chain out of date with late registration of Content Module

danielweck opened this issue · comments

Support for encrypted NavDoc was introduced here:
bdcbdc6#diff-db92dd69cdd7ce3a59e70ae293050d98
...but this only works for EPUB Containers/Packages loaded (unpacked) after the Content Filter registration. Unfortunately the LCP Content Module sub-system requires loading of the License which occurs after the EPUB is opened, so the Content Filter registration occurs too late. As a result the Nav Doc cannot be parsed because of its scrambled encrypted byte stream. LibXml does not crash (fails silently).

I am fixing this now (update: fixed, see comment below)

Also see:
#221

Fixed in feature/lsd branch:
d42485f

On the client side (LCP content module): readium/readium-lcp-client@d354426

@mmenu-mantano @jmgeffroy CC-ing you guys as I know you looked into the encrypted NavDoc issue :)

Reminder, fixed in feature/lcp:
d42485f

...and recently API slightly changed to address the same problem with Media Overlays (encrypted SMIL files):
24e004a

See related issue:
#272