#2484 Error renaming milestone with no tickets in it

v1.0.0
closed
nobody
None
Tracker
nobody
2015-08-20
2011-07-19
Anonymous
No

Originally created by: takedap

When renaming milestone I get an error:

WebError Traceback:
⇝ AttributeError: 'NoneType' object has no attribute 'docs'

URL: http://192.168.10.175:8080/p/goah/tickets/update_milestones
File '/home/take/anvil/lib/python2.6/site-packages/WebError-0.10.3-py2.6.egg/weberror/evalexception.py', line 431 in respond
app_iter = self.application(environ, detect_start_response)
File '/home/take/anvil/lib/python2.6/site-packages/beaker/middleware.py', line 152 in __call__ return self.wrap_app(environ, session_start_response)
File '/home/take/anvil/lib/python2.6/site-packages/Routes-1.12.3-py2.6.egg/routes/middleware.py', line 131 in __call__ response = self.app(environ, start_response)
File '/home/take/anvil/lib/python2.6/site-packages/Pylons-0.9.7-py2.6.egg/pylons/wsgiapp.py', line 125 in __call__ response = self.dispatch(controller, environ, start_response)
File '/home/take/anvil/lib/python2.6/site-packages/Pylons-0.9.7-py2.6.egg/pylons/wsgiapp.py', line 324 in dispatch return controller(environ, start_response)
File '/home/take/src/forge/Allura/allura/lib/base.py', line 27 in __call__  response = super(WsgiDispatchController, self).__call__(environ, start_response)
File '/home/take/anvil/lib/python2.6/site-packages/Pylons-0.9.7-py2.6.egg/pylons/controllers/core.py', line 221 in __call__  response = self._dispatch_call()
File '/home/take/anvil/lib/python2.6/site-packages/Pylons-0.9.7-py2.6.egg/pylons/controllers/core.py', line 172 in _dispatch_call response = self._inspect_call(func)
File '/home/take/anvil/lib/python2.6/site-packages/Pylons-0.9.7-py2.6.egg/pylons/controllers/core.py', line 107 in _inspect_call result = self._perform_call(func, args)
File '/home/take/anvil/lib/python2.6/site-packages/TurboGears2-2.1b2-py2.6.egg/tg/controllers/dispatcher.py', line 254 in _perform_call r = self._call(func, params, remainder=remainder)
File '/home/take/anvil/lib/python2.6/site-packages/TurboGears2-2.1b2-py2.6.egg/tg/controllers/decoratedcontroller.py', line 107 in _call output = controller(*remainder, **dict(params))
File '/home/take/src/forge/ForgeTracker/forgetracker/tracker_main.py', line 392 in update_milestones ticket_numbers = [match['ticket_num_i'] for match in r.docs]
AttributeError: 'NoneType' object has no attribute 'docs'

I don't know if this is related to the fact that I'm still trying features at fresh installation without any tickets or other content.

Discussion

  • Anonymous - 2011-07-19

    Originally by: takedap

    And, even if the rename seems to go trough regardless of the error I get another error when trying to ie. open milestone:

     KeyError: 'closed'
    

    I've attached the error trace.

     
  • Anonymous - 2011-07-19

    Originally by: takedap

    A bit more details, I created an testing ticket to the system and the errors seem to get fixed. So, initial impression is that the bug only affects if you don't have any tickets in your system.

     
  • Dave Brondsema

    Dave Brondsema - 2011-07-20
    • milestone: limbo --> backlog
     
  • Dave Brondsema

    Dave Brondsema - 2011-08-12
    • summary: Renaming milestone --> Error renaming milestone with no tickets in it
     
  • Dave Brondsema

    Dave Brondsema - 2012-09-05
    • status: open --> closed
    • milestone: forge-backlog --> forge-sep-07
     
  • Dave Brondsema

    Dave Brondsema - 2012-09-05

    This is no longer an issue, I tested it and it works fine now.

     

Log in to post a comment.