incubator-allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brondsema" <>
Subject [allura:tickets] #6949 Error on export: artifact ref and cleanup
Date Thu, 05 Dec 2013 04:47:17 GMT


** [tickets:#6949] Error on export: artifact ref and cleanup**

**Status:** open
**Created:** Thu Dec 05, 2013 04:47 AM UTC by Dave Brondsema
**Last Updated:** Thu Dec 05, 2013 04:47 AM UTC
**Owner:** nobody

Traceback (most recent call last):
  File "/var/local/allura/Allura/allura/tasks/", line 68, in _bulk_export
  File "/var/local/allura/ForgeTracker/forgetracker/", line 424, in bulk_export
    json.dump(ticket, f, cls=jsonify.GenericJSON, indent=2)
  File "/usr/lib64/python2.7/json/", line 181, in dump
    for chunk in iterable:
  File "/var/local/env-allura/lib/python2.7/site-packages/simplejson-2.2.1-py2.7-linux-x86_64.egg/simplejson/",
line 528, in _iterencode
    o = _default(o)
  File "/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/",
line 37, in default
    return obj.__json__()
  File "/var/local/allura/ForgeTracker/forgetracker/model/", line 1009, in __json__
  File "/var/local/allura/Allura/allura/model/", line 104, in __json__
    related_artifacts=[a.url() for a in self.related_artifacts()],
  File "/var/local/allura/Allura/allura/model/", line 179, in related_artifacts
    if artifact.type_s == 'Commit' and not artifact.repo:
AttributeError: 'NoneType' object has no attribute 'type_s'

This must occur when `artifact.primary()` returns a None, and that is only possible in ``
 And that must mean `` is returning a None.  We should
handle that situation.

Also, when an error like this happens, we log it ("Something went wrong during export of...")
but the partial file is left there, and it gets zipped up.  This means we're delivering a
partial file to the project admin.  I think it'd be better if we removed the file at that
point, so it doesn't get zipped and shipped.


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