Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#10588 closed defect (cantfix)

ZeroDivisionError: float division by zero

Reported by: d.dobma@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.7
Severity: normal Keywords:
Cc: support@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /agilo-pro/sprints/WEB Sprint 0/whiteboard, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'sprint': u'WEB Sprint 0'}

User Agent was: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7

System Information

Trac 0.11.7
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:37:12)
[GCC 4.5.2]
setuptools 0.6c11
MySQL server: "5.1.54-1ubuntu4", client: "5.1.54", thread-safe: 0
MySQLdb 1.2.2
Genshi 0.6
mod_python 3.3.1
Agilo 1.3.6.2-PRO
Pygments 1.4
Subversion 1.6.12 (r955767)
jQuery: 1.3.2

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 206, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.6.2_PRO-py2.7.egg/agilo/api/view.py", line 155, in process_request
    return self._call_filters_and_handler(req, handler)
  File "/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.6.2_PRO-py2.7.egg/agilo/api/view.py", line 143, in _call_filters_and_handler
    data = handler(req) or {}
  File "build/bdist.linux-i686/egg/agilo_pro/web_ui.py", line 141, in do_get
  File "build/bdist.linux-i686/egg/agilo_pro/web_ui.py", line 121, in get_and_prepare_burndown_chart
  File "/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.6.2_PRO-py2.7.egg/agilo/scrum/burndown/charts.py", line 166, in prepare_rendering
    self._populate_with_sprint_and_viewer_timezone(self.data['sprint_name'], req.tz)
  File "/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.6.2_PRO-py2.7.egg/agilo/scrum/burndown/charts.py", line 193, in _populate_with_sprint_and_viewer_timezone
    utc_ideal_data = self._calculate_ideal_burndown(utc_capacity_data, first_remaining_time, sprint)
  File "/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.6.2_PRO-py2.7.egg/agilo/scrum/burndown/charts.py", line 322, in _calculate_ideal_burndown
    return calculate_ideal_burndown(utc_capacity_data, first_remaining_time, sprint)
  File "/usr/local/lib/python2.7/dist-packages/binary_agilo-1.3.6.2_PRO-py2.7.egg/agilo/scrum/burndown/charts.py", line 108, in calculate_ideal_burndown
    ideal_burndown_proportion = 1 + (first_remaining_time.remaining_time - first_capacity) / first_capacity
ZeroDivisionError: float division by zero

Attachments (0)

Change History (2)

comment:1 by Remy Blank, 13 years ago

Cc: support@… added
Resolution: cantfix
Status: newclosed

comment:2 by stefano.rago@…, 13 years ago

@rblank: thanks for the cc @d.dobma: thanks for reporting this issue, I have created a ticket here: https://dev.agile42.com/ticket/1123

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.