- **Size**: --> 1
--- ** [tickets:#6817] Import mime-type detection error** **Status:** open **Labels:** import **Created:** Wed Oct 30, 2013 08:28 PM UTC by Dave Brondsema **Last Updated:** Wed Oct 30, 2013 08:28 PM UTC **Owner:** nobody Suspect this happens on urls that don't have a file extension in the last URL component. ~~~~ File "/var/local/allura/ForgeImporters/forgeimporters/forge/tracker.py", line 148, in import_tool self.process_comments(ticket, ticket_json['discussion_thread']['posts']) File "/var/local/allura/ForgeImporters/forgeimporters/forge/tracker.py", line 192, in process_comments p.add_multiple_attachments([File(a['url']) for a in comment_json['attachments']]) File "/var/local/allura/ForgeImporters/forgeimporters/base.py", line 521, in __init__ self.type = guess_mime_type(filename) File "/var/local/allura/Allura/allura/lib/utils.py", line 63, in guess_mime_type content_type = mimetypes.guess_type(filename, strict=True) File "/usr/lib64/python2.7/mimetypes.py", line 295, in guess_type return _db.guess_type(url, strict) File "/usr/lib64/python2.7/mimetypes.py", line 114, in guess_type scheme, url = urllib.splittype(url) File "/usr/lib64/python2.7/urllib.py", line 1070, in splittype match = _typeprog.match(url) TypeError: expected string or buffer ~~~~ --- Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.