#3287: crash while trying to view a changeset
-----------------------------+----------------------------------------------
Reporter: anonymous | Owner: cboos
Type: defect | Status: new
Priority: normal | Milestone:
Component: version control | Version: devel
Severity: normal | Resolution:
Keywords: svn |
-----------------------------+----------------------------------------------
Changes (by cboos):
* component: general => version control
* keywords: => svn
* owner: jonas => cboos
Old description:
> http://trac.foo.bar/trac/efg/changeset/3267
>
> Traceback (most recent call last):
> File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 314, in
> dispatch_request
> dispatcher.dispatch(req)
> File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 199, in
> dispatch
> resp = chosen_handler.process_request(req)
> File "/usr/lib/python2.4/site-
> packages/trac/versioncontrol/web_ui/changeset.py", line 255, in
> process_request
> diff_args, diff_options)
> File "/usr/lib/python2.4/site-
> packages/trac/versioncontrol/web_ui/changeset.py", line 480, in
> _render_html
> diff_bytes += _estimate_changes(old_node, new_node)
> File "/usr/lib/python2.4/site-
> packages/trac/versioncontrol/web_ui/changeset.py", line 434, in
> _estimate_changes
> return old_size + new_size
> TypeError: unsupported operand type(s) for +: 'NoneType' and 'long'
New description:
http://trac.foo.bar/trac/efg/changeset/3267
{{{
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 314, in
dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 199, in
dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python2.4/site-
packages/trac/versioncontrol/web_ui/changeset.py", line 255, in
process_request
diff_args, diff_options)
File "/usr/lib/python2.4/site-
packages/trac/versioncontrol/web_ui/changeset.py", line 480, in
_render_html
diff_bytes += _estimate_changes(old_node, new_node)
File "/usr/lib/python2.4/site-
packages/trac/versioncontrol/web_ui/changeset.py", line 434, in
_estimate_changes
return old_size + new_size
TypeError: unsupported operand type(s) for +: 'NoneType' and 'long'
}}}
Comment:
Interesting, this would correspond to an `EDIT` change for a `FILE`
with the `old_node` returning `None` for `get_content_length`...
but this should only happen for a `DIRECTORY`...
Can you provide me with some more informations, like
the file ''types'' and ''sizes'' from the files involved in the changeset,
before and after the changeset?
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/3287>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets