Sigil-Ebook / flightcrew

Automatically exported from code.google.com/p/flightcrew
GNU General Public License v3.0
34 stars 11 forks source link

Too-stringent check of mimetype file #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Test the attached EPUB file

What is the expected output? What do you see instead?

This file should not produce an error about bytes 30-60, but does.  According 
to:

    3.3 OCF ZIP Container Media Type Identification

the mimetype file may not contain *leading* whitespace.  The specification says 
nothing about *trailing* whitespace, and epubcheck agrees that this EPUB file 
is legal in that regard.

What version of the product are you using? On what operating system?

0.7.2/Mac OS X

Original issue reported on code.google.com by dgatwoo...@gmail.com on 24 Nov 2011 at 8:24

Attachments:

GoogleCodeExporter commented 9 years ago
You're referencing version 3 and FlightCrew only validates / implements version 
2.

OCF 2.0.1 Section 5 states:

"The first file in the ZIP Container MUST be a file by the ASCII name of 
‘mimetype’ which holds the MIME type for the ZIP Container (i.e., 
“application/epub+zip” as an ASCII string; no padding, white-space or case 
change)."

Whitespace and padding is prohibited by the spec version 2.0.1 which is what 
FlightCrew currently implements.

Original comment by john@nachtimwald.com on 24 Nov 2011 at 8:31