Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1352 by Uncaught TypeError when entering  
multiple lengthy bug #s for a review request

*NOTE: Do not post confidential information in this bug report.*

What version are you running?

What's the URL of the page containing the problem?

What steps will reproduce the problem?
1. Post a review for a repository that has an issue tracker assigned
2. Enter two lengthy numerical bug IDs, such as 012006153200030304432009,
3. Publish

What is the expected output? What do you see instead?

Sorting the bug #s fails with a TypeError, which is not anticipated by the

Request Method: POST
Request URL:  
Exception Type: TypeError
Exception Value: comparison function must return int
Exception Location: [...]\reviewboard\reviews\ in get_bug_list,
line 550

549 : try:
550 :   bugs.sort(cmp=lambda x,y: int(x) - int(y))
551 : except ValueError:
552 :   bugs.sort()

You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to