incubator-allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cory Johns" <>
Subject [allura:tickets] #6817 Import mime-type detection error
Date Mon, 04 Nov 2013 21:22:26 GMT
- **status**: code-review --> closed


** [tickets:#6817] Import mime-type detection error**

**Status:** closed
**Labels:** import 
**Created:** Wed Oct 30, 2013 08:28 PM UTC by Dave Brondsema
**Last Updated:** Mon Nov 04, 2013 09:20 PM UTC
**Owner:** Dave Brondsema

Suspect this happens on urls that don't have a file extension in the last URL component.

  File "/var/local/allura/ForgeImporters/forgeimporters/forge/", line 148, in import_tool
    self.process_comments(ticket, ticket_json['discussion_thread']['posts'])
  File "/var/local/allura/ForgeImporters/forgeimporters/forge/", line 192, in process_comments
    p.add_multiple_attachments([File(a['url']) for a in comment_json['attachments']])
  File "/var/local/allura/ForgeImporters/forgeimporters/", line 521, in __init__
    self.type = guess_mime_type(filename)
  File "/var/local/allura/Allura/allura/lib/", line 63, in guess_mime_type
    content_type = mimetypes.guess_type(filename, strict=True)
  File "/usr/lib64/python2.7/", line 295, in guess_type
    return _db.guess_type(url, strict)
  File "/usr/lib64/python2.7/", line 114, in guess_type
    scheme, url = urllib.splittype(url)
  File "/usr/lib64/python2.7/", line 1070, in splittype
    match = _typeprog.match(url)
TypeError: expected string or buffer


Sent from because is subscribed to

To unsubscribe from further messages, a project admin can change settings at
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message