Skip to content

Readium is unable to open (guided navigation) files inside of an epub with a space in the title #94

Closed

Description

@tefkah

Readium-cli version: 0.6.1

This is related to this issue users from Storyteller experience: https://gitlab.com/storyteller-platform/storyteller/-/issues/376

For a file eg Death Masks_split_000.html, it seems impossible to request it from the readium server.

eg

GET http://localhost:9000/webpub/xxxxxx/Death%20Masks_split_000.html

returns

404 resource: error 404: file does not exist

Interestingly, the twice encoded version Death%2520Masks_split_000.html does not return the error message, but does return a 404

The same is true for guided navigation documents.

I do know that in the Epub 3.3 spec section 4.2.3 it says

For compatibility with older reading systems, file names SHOULD NOT contain SPACE (U+0020) characters.

See discussion: w3c/epub-specs#2458

But it's not a MUST, so I think it would be nice if this was possible! (im not a spec person, so if i'm interpreting the distinction between MUST and SHOULD here incorrectly, totally possible!)

It may also be possible that there is some way of encoding spaces that will make Readium accept them, but I haven't yet found it!

Activity

  1. self-assigned this
    on Jan 21, 2026
  2. added theissue type on Jan 21, 2026
  3. chocolatkey commented on Jan 21, 2026

    @chocolatkey
    Member

    @tefkah thanks for reporting this, I'll investigate. We didn't choose not to support spaces, it's more that we just haven't happened to test with EPUBs that have filenames with spaces, which is fairly rare from what I've seen. Are there any freely-available EPUBs you can point to with this problem?

  4. tefkah commented on Jan 23, 2026

    @tefkah
    ContributorAuthor

    Thanks! I'll have a look, or modify one to create this problem!

  5. tefkah commented on Jan 23, 2026

    @tefkah
    ContributorAuthor

    Here is a version of Moby Dick taken from Project Gutenberg that exhibits the issue

    (can't upload the epub directly here, it's in the zip)
    Moby Dick; Or, The Whale - Herman Melville.epub.zip

    After doing readium serve in the same directory as the epub

    This works:

    curl "http://localhost:9999/webpub/TW9ieSBEaWNrOyBPciwgVGhlIFdoYWxlIC0gSGVybWFuIE1lbHZpbGxlLmVwdWI/OEBPS/wrap0000.xhtml"

    But this does not

    curl "http://localhost:9999/webpub/TW9ieSBEaWNrOyBPciwgVGhlIFdoYWxlIC0gSGVybWFuIE1lbHZpbGxlLmVwdWI/OEBPS/7203976076982986561%202701-h-9.htm.xhtml"

    Whereas if I try this on the original file from Project Gutenberg (note the _2701-h-9.htm.xhtml instead of %202701-h-9.htm.xhtml above, I do get the correct output

    curl "http://localhost:9999/webpub/TW9ieSBEaWNrOyBPciwgVGhlIFdoYWxlIC0gSGVybWFuIE1lbHZpbGxlLmVwdWI/OEBPS/7203976076982986561_2701-h-9.htm.xhtml"
    Output of `readium manifest` ```json { "@context": "https://readium.org/webpub-manifest/context.jsonld", "metadata": { "accessibility": { "summary": "This publication may not have complete alternative text descriptions.", "accessMode": [ "textual" ], "accessModeSufficient": [ [ "textual", "visual" ] ], "feature": [ "readingOrder" ], "hazard": [ "none" ] }, "altIdentifier": [ "calibre:3", "uuid:f498e7c6-27f9-4cff-838d-dbb6ccefc5d8" ], "author": { "name": "Herman Melville", "sortAs": "Melville, Herman" }, "conformsTo": "https://readium.org/webpub-manifest/profiles/epub", "http://purl.org/dc/terms/rights": "Public domain in the USA.", "http://purl.org/dc/terms/source": "https://www.gutenberg.org/files/2701/2701-h/2701-h.htm", "http://purl.org/dc/terms/subject": [ "Whaling -- Fiction", "Sea stories", "Psychological fiction", "Ship captains -- Fiction", "Adventure stories", "Mentally ill -- Fiction", "Ahab", "Captain (Fictitious character) -- Fiction", "Whales -- Fiction", "Whaling ships -- Fiction" ], "http://www.idpf.org/2007/opf#version": "3.0", "https://github.com/readium/go-toolkit/releases": "v0.12.1", "identifier": "http://www.gutenberg.org/2701", "language": "en", "modified": "2026-01-23T11:19:23Z", "published": "2001-07-02T00:00:00Z", "sortAs": "Moby Dick; Or, The Whale", "subject": [ "Whaling -- Fiction", "Sea stories", "Psychological fiction", "Ship captains -- Fiction", "Adventure stories", "Mentally ill -- Fiction", "Ahab", "Captain (Fictitious character) -- Fiction", "Whales -- Fiction", "Whaling ships -- Fiction" ], "title": "Moby Dick; Or, The Whale" }, "readingOrder": [ { "href": "OEBPS/wrap0000.xhtml", "properties": { "contains": [ "svg" ] }, "type": "application/xhtml+xml" }, { "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml", "type": "application/xhtml+xml" }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml", "type": "application/xhtml+xml" }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml", "type": "application/xhtml+xml" }, { "href": "OEBPS/7203976076982986561%202701-h-3.htm.xhtml", "type": "application/xhtml+xml" }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml", "type": "application/xhtml+xml" }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml", "type": "application/xhtml+xml" }, { "href": "OEBPS/7203976076982986561%202701-h-6.htm.xhtml", "type": "application/xhtml+xml" }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml", "type": "application/xhtml+xml" }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml", "type": "application/xhtml+xml" }, { "href": "OEBPS/7203976076982986561%202701-h-9.htm.xhtml", "type": "application/xhtml+xml" }, { "href": "OEBPS/7203976076982986561%202701-h-10.htm.xhtml", "type": "application/xhtml+xml" } ], "resources": [ { "href": "OEBPS/4318954881170042010_cover.jpg", "rel": "cover", "type": "image/jpeg" }, { "href": "OEBPS/pgepub.css", "type": "text/css" }, { "href": "OEBPS/0.css", "type": "text/css" }, { "href": "OEBPS/1.css", "type": "text/css" }, { "href": "OEBPS/toc.xhtml", "rel": "contents", "type": "application/xhtml+xml" }, { "href": "OEBPS/toc.ncx", "type": "application/x-dtbncx+xml" } ], "toc": [ { "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00000", "title": "MOBY-DICK; or, THE WHALE." }, { "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00001", "title": "Original Transcriber’s Notes:" }, { "children": [ { "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00003", "title": "(Supplied by a Late Consumptive Usher to a Grammar School.)" } ], "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00002", "title": "ETYMOLOGY." }, { "children": [ { "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00005", "title": "EXTRACTS." } ], "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00004", "title": "EXTRACTS. (Supplied by a Sub-Sub-Librarian)." }, { "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00006", "title": "CHAPTER 1. Loomings." }, { "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00007", "title": "CHAPTER 2. The Carpet-Bag." }, { "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00008", "title": "CHAPTER 3. The Spouter-Inn." }, { "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00009", "title": "CHAPTER 4. The Counterpane." }, { "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00010", "title": "CHAPTER 5. Breakfast." }, { "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00011", "title": "CHAPTER 6. The Street." }, { "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00012", "title": "CHAPTER 7. The Chapel." }, { "href": "OEBPS/7203976076982986561%202701-h-0.htm.xhtml#pgepubid00013", "title": "CHAPTER 8. The Pulpit." }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml#pgepubid00014", "title": "CHAPTER 9. The Sermon." }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml#pgepubid00015", "title": "CHAPTER 10. A Bosom Friend." }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml#pgepubid00016", "title": "CHAPTER 11. Nightgown." }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml#pgepubid00017", "title": "CHAPTER 12. Biographical." }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml#pgepubid00018", "title": "CHAPTER 13. Wheelbarrow." }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml#pgepubid00019", "title": "CHAPTER 14. Nantucket." }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml#pgepubid00020", "title": "CHAPTER 15. Chowder." }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml#pgepubid00021", "title": "CHAPTER 16. The Ship." }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml#pgepubid00022", "title": "CHAPTER 17. The Ramadan." }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml#pgepubid00023", "title": "CHAPTER 18. His Mark." }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml#pgepubid00024", "title": "CHAPTER 19. The Prophet." }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml#pgepubid00025", "title": "CHAPTER 20. All Astir." }, { "href": "OEBPS/7203976076982986561%202701-h-1.htm.xhtml#pgepubid00026", "title": "CHAPTER 21. Going Aboard." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00027", "title": "CHAPTER 22. Merry Christmas." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00028", "title": "CHAPTER 23. The Lee Shore." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00029", "title": "CHAPTER 24. The Advocate." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00030", "title": "CHAPTER 25. Postscript." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00031", "title": "CHAPTER 26. Knights and Squires." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00032", "title": "CHAPTER 27. Knights and Squires." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00033", "title": "CHAPTER 28. Ahab." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00034", "title": "CHAPTER 29. Enter Ahab; to Him, Stubb." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00035", "title": "CHAPTER 30. The Pipe." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00036", "title": "CHAPTER 31. Queen Mab." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00037", "title": "CHAPTER 32. Cetology." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00038", "title": "CHAPTER 33. The Specksnyder." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00039", "title": "CHAPTER 34. The Cabin-Table." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00040", "title": "CHAPTER 35. The Mast-Head." }, { "href": "OEBPS/7203976076982986561%202701-h-2.htm.xhtml#pgepubid00041", "title": "CHAPTER 36. The Quarter-Deck." }, { "href": "OEBPS/7203976076982986561%202701-h-3.htm.xhtml#pgepubid00042", "title": "CHAPTER 37. Sunset." }, { "href": "OEBPS/7203976076982986561%202701-h-3.htm.xhtml#pgepubid00043", "title": "CHAPTER 38. Dusk." }, { "href": "OEBPS/7203976076982986561%202701-h-3.htm.xhtml#pgepubid00044", "title": "CHAPTER 39. First Night-Watch." }, { "href": "OEBPS/7203976076982986561%202701-h-3.htm.xhtml#pgepubid00045", "title": "CHAPTER 40. Midnight, Forecastle." }, { "href": "OEBPS/7203976076982986561%202701-h-3.htm.xhtml#pgepubid00046", "title": "CHAPTER 41. Moby Dick." }, { "href": "OEBPS/7203976076982986561%202701-h-3.htm.xhtml#pgepubid00047", "title": "CHAPTER 42. The Whiteness of the Whale." }, { "href": "OEBPS/7203976076982986561%202701-h-3.htm.xhtml#pgepubid00048", "title": "CHAPTER 43. Hark!" }, { "href": "OEBPS/7203976076982986561%202701-h-3.htm.xhtml#pgepubid00049", "title": "CHAPTER 44. The Chart." }, { "href": "OEBPS/7203976076982986561%202701-h-3.htm.xhtml#pgepubid00050", "title": "CHAPTER 45. The Affidavit." }, { "href": "OEBPS/7203976076982986561%202701-h-3.htm.xhtml#pgepubid00051", "title": "CHAPTER 46. Surmises." }, { "href": "OEBPS/7203976076982986561%202701-h-3.htm.xhtml#pgepubid00052", "title": "CHAPTER 47. The Mat-Maker." }, { "href": "OEBPS/7203976076982986561%202701-h-3.htm.xhtml#pgepubid00053", "title": "CHAPTER 48. The First Lowering." }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml#pgepubid00054", "title": "CHAPTER 49. The Hyena." }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml#pgepubid00055", "title": "CHAPTER 50. Ahab’s Boat and Crew. Fedallah." }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml#pgepubid00056", "title": "CHAPTER 51. The Spirit-Spout." }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml#pgepubid00057", "title": "CHAPTER 52. The Albatross." }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml#pgepubid00058", "title": "CHAPTER 53. The Gam." }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml#pgepubid00059", "title": "CHAPTER 54. The Town-Ho’s Story." }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml#pgepubid00060", "title": "CHAPTER 55. Of the Monstrous Pictures of Whales." }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml#pgepubid00061", "title": "CHAPTER 56. Of the Less Erroneous Pictures of Whales, and the True Pictures of Whaling Scenes." }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml#pgepubid00062", "title": "CHAPTER 57. Of Whales in Paint; in Teeth; in Wood; in Sheet-Iron; in Stone; in Mountains; in Stars." }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml#pgepubid00063", "title": "CHAPTER 58. Brit." }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml#pgepubid00064", "title": "CHAPTER 59. Squid." }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml#pgepubid00065", "title": "CHAPTER 60. The Line." }, { "href": "OEBPS/7203976076982986561%202701-h-4.htm.xhtml#pgepubid00066", "title": "CHAPTER 61. Stubb Kills a Whale." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00067", "title": "CHAPTER 62. The Dart." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00068", "title": "CHAPTER 63. The Crotch." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00069", "title": "CHAPTER 64. Stubb’s Supper." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00070", "title": "CHAPTER 65. The Whale as a Dish." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00071", "title": "CHAPTER 66. The Shark Massacre." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00072", "title": "CHAPTER 67. Cutting In." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00073", "title": "CHAPTER 68. The Blanket." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00074", "title": "CHAPTER 69. The Funeral." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00075", "title": "CHAPTER 70. The Sphynx." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00076", "title": "CHAPTER 71. The Jeroboam’s Story." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00077", "title": "CHAPTER 72. The Monkey-Rope." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00078", "title": "CHAPTER 73. Stubb and Flask kill a Right Whale; and Then Have a Talk over Him." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00079", "title": "CHAPTER 74. The Sperm Whale’s Head—Contrasted View." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00080", "title": "CHAPTER 75. The Right Whale’s Head—Contrasted View." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00081", "title": "CHAPTER 76. The Battering-Ram." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00082", "title": "CHAPTER 77. The Great Heidelburgh Tun." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00083", "title": "CHAPTER 78. Cistern and Buckets." }, { "href": "OEBPS/7203976076982986561%202701-h-5.htm.xhtml#pgepubid00084", "title": "CHAPTER 79. The Prairie." }, { "href": "OEBPS/7203976076982986561%202701-h-6.htm.xhtml#pgepubid00085", "title": "CHAPTER 80. The Nut." }, { "href": "OEBPS/7203976076982986561%202701-h-6.htm.xhtml#pgepubid00086", "title": "CHAPTER 81. The Pequod Meets The Virgin." }, { "href": "OEBPS/7203976076982986561%202701-h-6.htm.xhtml#pgepubid00087", "title": "CHAPTER 82. The Honor and Glory of Whaling." }, { "href": "OEBPS/7203976076982986561%202701-h-6.htm.xhtml#pgepubid00088", "title": "CHAPTER 83. Jonah Historically Regarded." }, { "href": "OEBPS/7203976076982986561%202701-h-6.htm.xhtml#pgepubid00089", "title": "CHAPTER 84. Pitchpoling." }, { "href": "OEBPS/7203976076982986561%202701-h-6.htm.xhtml#pgepubid00090", "title": "CHAPTER 85. The Fountain." }, { "href": "OEBPS/7203976076982986561%202701-h-6.htm.xhtml#pgepubid00091", "title": "CHAPTER 86. The Tail." }, { "href": "OEBPS/7203976076982986561%202701-h-6.htm.xhtml#pgepubid00092", "title": "CHAPTER 87. The Grand Armada." }, { "href": "OEBPS/7203976076982986561%202701-h-6.htm.xhtml#pgepubid00093", "title": "CHAPTER 88. Schools and Schoolmasters." }, { "href": "OEBPS/7203976076982986561%202701-h-6.htm.xhtml#pgepubid00094", "title": "CHAPTER 89. Fast-Fish and Loose-Fish." }, { "href": "OEBPS/7203976076982986561%202701-h-6.htm.xhtml#pgepubid00095", "title": "CHAPTER 90. Heads or Tails." }, { "href": "OEBPS/7203976076982986561%202701-h-6.htm.xhtml#pgepubid00096", "title": "CHAPTER 91. The Pequod Meets The Rose-Bud." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00097", "title": "CHAPTER 92. Ambergris." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00098", "title": "CHAPTER 93. The Castaway." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00099", "title": "CHAPTER 94. A Squeeze of the Hand." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00100", "title": "CHAPTER 95. The Cassock." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00101", "title": "CHAPTER 96. The Try-Works." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00102", "title": "CHAPTER 97. The Lamp." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00103", "title": "CHAPTER 98. Stowing Down and Clearing Up." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00104", "title": "CHAPTER 99. The Doubloon." }, { "children": [ { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00106", "title": "The Pequod, of Nantucket, Meets the Samuel Enderby, of London." } ], "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00105", "title": "CHAPTER 100. Leg and Arm." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00107", "title": "CHAPTER 101. The Decanter." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00108", "title": "CHAPTER 102. A Bower in the Arsacides." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00109", "title": "CHAPTER 103. Measurement of The Whale’s Skeleton." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00110", "title": "CHAPTER 104. The Fossil Whale." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00111", "title": "CHAPTER 105. Does the Whale’s Magnitude Diminish?—Will He Perish?" }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00112", "title": "CHAPTER 106. Ahab’s Leg." }, { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00113", "title": "CHAPTER 107. The Carpenter." }, { "children": [ { "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00115", "title": "The Deck—First Night Watch." } ], "href": "OEBPS/7203976076982986561%202701-h-7.htm.xhtml#pgepubid00114", "title": "CHAPTER 108. Ahab and the Carpenter." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00116", "title": "CHAPTER 109. Ahab and Starbuck in the Cabin." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00117", "title": "CHAPTER 110. Queequeg in His Coffin." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00118", "title": "CHAPTER 111. The Pacific." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00119", "title": "CHAPTER 112. The Blacksmith." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00120", "title": "CHAPTER 113. The Forge." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00121", "title": "CHAPTER 114. The Gilder." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00122", "title": "CHAPTER 115. The Pequod Meets The Bachelor." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00123", "title": "CHAPTER 116. The Dying Whale." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00124", "title": "CHAPTER 117. The Whale Watch." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00125", "title": "CHAPTER 118. The Quadrant." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00126", "title": "CHAPTER 119. The Candles." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00127", "title": "CHAPTER 120. The Deck Towards the End of the First Night Watch." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00128", "title": "CHAPTER 121. Midnight.—The Forecastle Bulwarks." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00129", "title": "CHAPTER 122. Midnight Aloft.—Thunder and Lightning." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00130", "title": "CHAPTER 123. The Musket." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00131", "title": "CHAPTER 124. The Needle." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00132", "title": "CHAPTER 125. The Log and Line." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00133", "title": "CHAPTER 126. The Life-Buoy." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00134", "title": "CHAPTER 127. The Deck." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00135", "title": "CHAPTER 128. The Pequod Meets The Rachel." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00136", "title": "CHAPTER 129. The Cabin." }, { "href": "OEBPS/7203976076982986561%202701-h-8.htm.xhtml#pgepubid00137", "title": "CHAPTER 130. The Hat." }, { "href": "OEBPS/7203976076982986561%202701-h-9.htm.xhtml#pgepubid00138", "title": "CHAPTER 131. The Pequod Meets The Delight." }, { "href": "OEBPS/7203976076982986561%202701-h-9.htm.xhtml#pgepubid00139", "title": "CHAPTER 132. The Symphony." }, { "href": "OEBPS/7203976076982986561%202701-h-9.htm.xhtml#pgepubid00140", "title": "CHAPTER 133. The Chase—First Day." }, { "href": "OEBPS/7203976076982986561%202701-h-9.htm.xhtml#pgepubid00141", "title": "CHAPTER 134. The Chase—Second Day." }, { "href": "OEBPS/7203976076982986561%202701-h-9.htm.xhtml#pgepubid00142", "title": "CHAPTER 135. The Chase.—Third Day." }, { "children": [ { "href": "OEBPS/7203976076982986561%202701-h-9.htm.xhtml#pgepubid00144", "title": "“AND I ONLY AM ESCAPED ALONE TO TELL THEE” Job." } ], "href": "OEBPS/7203976076982986561%202701-h-9.htm.xhtml#pgepubid00143", "title": "Epilogue" }, { "href": "OEBPS/7203976076982986561%202701-h-10.htm.xhtml#pg-footer-heading", "title": "THE FULL PROJECT GUTENBERG LICENSE" } ] } ```

    Note that according to the manifest the href should be encoded as OEBPS/7203976076982986561%202701-h-9.htm.xhtml, but using this exact href yields no results.

  6. tefkah commented on Jan 23, 2026

    @tefkah
    ContributorAuthor

    Also of interest is that something specific seems to be preventing space-including files from not being able to be found.

    looking for OEBPS/7203976076982986561%202701-h-9.htm.xhtml yields

    resource: error 404: file does not exist

    while looking for something random eg OEBPS/some-file.xhtml yields no error message, just an empty 404.

  7. tefkah commented on Jan 29, 2026

    @tefkah
    ContributorAuthor

    after looking into it a bit (i'm terrible at Go) i think the following patch to the go-toolkit fixes it

     git diff fetcher_archive.go 
    diff --git a/pkg/fetcher/fetcher_archive.go b/pkg/fetcher/fetcher_archive.go
    index 0b3f476..4ba4087 100644
    --- a/pkg/fetcher/fetcher_archive.go
    +++ b/pkg/fetcher/fetcher_archive.go
    @@ -44,7 +44,12 @@ func (f *ArchiveFetcher) Links(ctx context.Context) (manifest.LinkList, error) {
     
     // Get implements Fetcher
     func (f *ArchiveFetcher) Get(ctx context.Context, link manifest.Link) Resource {
    -       entry, err := f.archive.Entry(link.Href.String())
    +       // use decoded path for archive entry lookup to support files with spaces and special characters
    +       entryPath := link.Href.String()
    +       if hrefURL := link.Href.Resolve(nil, nil); hrefURL != nil {
    +               entryPath = hrefURL.Path()
    +       }
    +       entry, err := f.archive.Entry(entryPath)
            if err != nil {
                    return NewFailureResource(link, NotFound(err))
            }
  8. tefkah commented on Jan 29, 2026

    @tefkah
    ContributorAuthor

    I have opened a PR here: readium/go-toolkit#286

  9. chocolatkey commented on Feb 27, 2026

    @chocolatkey
    Member

    @tefkah really sorry about the delay on this, a new version of the CLI has been released with your fix and a couple other bugfixes

  10. tefkah commented on Feb 27, 2026

    @tefkah
    ContributorAuthor

    thank you @chocolatkey !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions