incubator-allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cory Johns" <masterbunn...@users.sf.net>
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/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.
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message