View Single Post
Old 12-27-2015, 11:43 AM   #37
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,741
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by exaltedwombat View Post
But I'm trying to get my head round the concept that a validation utility has any business being able to do anything except look at a file, display a report and maybe write a log file.
The problem was that I took a shortcut; I processed the files in the scratchpad temp folder created by Sigil instead of copying them to a separate temp folder.
However, since epubcheck requires a mimetype file (which Sigil never wrote to the temp folder), I wrote a mimetype file in the temp folder (nothing else was touched), because I erroneously assumed that Sigil would do the same before saving the file thus overwriting my file. I had also checked all files after running the plugin and saving them with a standalone epubcheck version, which didn't report any errors. It had also never occurred to me that Sigil would add another mimetype upon saving the .epub file. I actually thought it was impossible that a .zip could contain the same file twice.
As I've already mentioned, the epubcheck plugin only caused the double mimetype problem if you ran the plugin, corrected reported errors and immediately saved it afterwards.
If you ran the epubcheck plugin and closed the file after it reported no errors there shouldn't be any mimetype problems.
Like I've said, I'm really sorry that my shortcut caused you all these problems, had it not been for your bug report and DiapDealer's superior sleuthing skills I would have never noticed it.

@DiapDealer
& KevinH: I'm curious: is having two files with the exact same file name and content in the same location of a .zip file a standard .zip file feature or did Sigil save the .ePub file in a special non-standard .zip file format?
Doitsu is offline   Reply With Quote