HTML convert crashes with " Invalid IPv6 URL" error

Bug #902372 reported by Woodrow Hill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Calibre versions: 0.8.28 and 0.8.30
OS: Windows 7

Tried to convert the attached file into HTML, and came up with an error (full error as attachment):
------
  Invalid IPv6 URL (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 132, in main
  File "site.py", line 109, in run_entry_point
  File "site-packages\calibre\utils\ipc\worker.py", line 187, in main
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 31, in gui_convert_override
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 959, in run
  File "site-packages\calibre\customize\conversion.py", line 204, in __call__
  File "site-packages\calibre\ebooks\html\input.py", line 296, in convert
  File "site-packages\calibre\ebooks\html\input.py", line 345, in create_oebbook
  File "site-packages\calibre\ebooks\html\input.py", line 231, in get_filelist
  File "site-packages\calibre\ebooks\html\input.py", line 191, in traverse
  File "site-packages\calibre\ebooks\html\input.py", line 132, in __init__
  File "site-packages\calibre\ebooks\html\input.py", line 151, in find_links
  File "site-packages\calibre\ebooks\html\input.py", line 156, in resolve
  File "site-packages\calibre\ebooks\html\input.py", line 54, in __init__
  File "urlparse.py", line 134, in urlparse
  File "urlparse.py", line 182, in urlsplit
ValueError: Invalid IPv6 URL
------
A look at some of the many URLs in the document shows they appear not to match the specs I can find for v6 URLs.

Related branches

Revision history for this message
Woodrow Hill (wjhill) wrote :
Revision history for this message
Woodrow Hill (wjhill) wrote :

Adding full text of error generation as attachment.

description: updated
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in lp:calibre

Fixed in branch lp:calibre. 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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.