Fixes url whitespaces in epub documents
ClosedPublic

Authored by gassaf on Jul 23 2018, 9:28 PM.

Details

Summary

libepub can't handle whitespace url encodings. This is why epub documents containing whitespaces urls aren't
displayed correctly. Since libepub doesn't seem to be maintained anymore, it might be better to fix this issue here.

BUG: 334711

Test Plan

Example epubs are in the ticket.

Diff Detail

Repository
R223 Okular
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
gassaf created this revision.Jul 23 2018, 9:28 PM
Restricted Application added a project: Okular. · View Herald TranscriptJul 23 2018, 9:28 PM
Restricted Application added a subscriber: okular-devel. · View Herald Transcript
gassaf requested review of this revision.Jul 23 2018, 9:28 PM
aacid added a subscriber: aacid.Jul 28 2018, 8:50 PM

Are we sure this won't break something else?

How hard would be to have an autotest (with files that are not copyrighted/tainted) ?

gassaf updated this revision to Diff 39469.Aug 11 2018, 6:10 PM

epub generator unit test added

Here you go. I created this epub document via a free software tool called sigil.

aacid accepted this revision.Aug 11 2018, 8:21 PM
This revision is now accepted and ready to land.Aug 11 2018, 8:21 PM

Can you commit this yourself, @gassaf?

aacid added a comment.Aug 13 2018, 3:56 PM

Yes he can.

@ngraham when you want to check if someone has commit rights you can check https://websvn.kde.org/trunk/kde-common/accounts?view=markup

Yes he can.

@ngraham when you want to check if someone has commit rights you can check https://websvn.kde.org/trunk/kde-common/accounts?view=markup

Thanks Albert! And I see you're right on top. :)

This revision was automatically updated to reflect the committed changes.