Ticket #3842 (closed defect: invalid)

Opened 1 year ago

Last modified 2 weeks ago

Error calculating changeset size? TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'

Reported by: mculbert AT gemstoneDOTcom Assigned to: hvr
Priority: high Component: GitPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11

Description

We are getting the following exception for some of our changesets. I don't have a lot of info on the changeset itself, but I do know that "old_node.get_content_length()" is returning None when it should be an int.

We do have the Python 2.4 backport installed, but it's pretty much vanilla aside from that.

File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/web/main.py", line 423, in _dispatch_request
  dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/web/main.py", line 197, in dispatch
  resp = chosen_handler.process_request(req)
File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/versioncontrol/web_ui/changeset.py", line 323, in process_request
  self._render_html(req, repos, chgset, restricted, xhr, data)
File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/versioncontrol/web_ui/changeset.py", line 545, in _render_html
  diff_bytes += _estimate_changes(old_node, new_node)
File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/versioncontrol/web_ui/changeset.py", line 501, in _estimate_changes
  return old_size + new_size

User Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008071420 Firefox/2.0.0.3 (X11; U; Linux x86_64; en-US; rv:1.8.1.1)
Trac: 	0.11.1
Python: 	2.4.4 (#1, Apr 5 2007, 18:41:00) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]
setuptools: 	0.6c3
pyPgSQL: 	2.5.1
Genshi: 	0.5.1
mod_python: 	3.2.10
GIT: 	1.5.6.2
jQuery:	1.2.6

Attachments

gitplugin-traceback.txt (7.5 kB) - added by mike on 10/01/08 19:51:34.
Full trac traceback

Change History

10/01/08 19:51:34 changed by mike

  • attachment gitplugin-traceback.txt added.

Full trac traceback

10/09/08 09:05:41 changed by anonymous

sounds like #3141

02/23/09 03:41:02 changed by thatch

Does changeset 82a7ea9a2073fadf8c310edd6ed8b3961d50aa36 contain anything interesting (like only directory changes or something)? I'm not sure there's enough here to reproduce the issue.

03/07/10 15:49:12 changed by hvr

  • status changed from new to closed.
  • resolution set to invalid.

since there isn't enough information to reproduce this problem, I'll have to close this ticket; feel free to reopen it when more information can be provided


Add/Change #3842 (Error calculating changeset size? TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType')




Change Properties
Action