Name of linked file containing semicolon

Bug #1598719 reported by leastcommonancestor on 2016-07-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

If the name of a linked file contains a semicolon, ebook-convert will not add the target file. Example:

<p><a href="test0;.html">foobar</a></p>

However, the result of ebook-convert will have the filename in toc.ncx (as <content src="test0%3b.html"/>) and content.opf will have an erroneous entry with unknown id.
This is shown after opening the result with ebook-edit and checking.

"Try to correct automatically all fixable errors" then raises the following exception:

calibre, version 2.61.0
ERROR: Unhandled exception: <b>OSError</b>:[Errno 2] No such file or directory

calibre 2.61 embedded-python: True is64bit: False
Linux-4.2.0-41-generic-i686-with-debian-jessie-sid Linux ('32bit', 'ELF')
('Linux', '4.2.0-41-generic', '#48-Ubuntu SMP Fri Jun 24 11:26:31 UTC 2016')
Python 2.7.9
Linux: ('debian', 'jessie/sid', '')
Successfully initialized third party plugins: […]
Traceback (most recent call last):
  File "site-packages/calibre/gui2/tweak_book/", line 67, in ans
  File "site-packages/calibre/gui2/tweak_book/", line 1201, in fix_requested
  File "site-packages/calibre/gui2/tweak_book/", line 223, in fix_errors
  File "site-packages/calibre/ebooks/oeb/polish/check/", line 102, in fix_errors
  File "site-packages/calibre/ebooks/oeb/polish/check/", line 131, in __call__
  File "site-packages/calibre/ebooks/oeb/polish/", line 196, in rename_files
  File "site-packages/calibre/ebooks/oeb/polish/", line 1081, in rename
  File "site-packages/calibre/ebooks/oeb/polish/", line 370, in rename
OSError: [Errno 2] No such file or directory

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments