2488: Occured 500 error when some Web API invoke Anonymous user.

Fuy****@gmai***** (Google Code) (Is this you? Claim this profile.)
chipx86
chipx86
March 1, 2012
What version are you running?
1.6.1

What's the URL of the page containing the problem?
An example of the API
ex) 
/api/review-requests/{review_request_id}/reviews/{review_id}/diff-comments/
/api/users/{username}/

What steps will reproduce the problem?
1.Authentication Settings > Allow anonymous read-only access:enabled
2.Invoke Web API (do not auth)
 ex)Review Diff Comment List Resource, User Resource

What is the expected output? What do you see instead?
I expected list of replies to Diff response, but occurred 500 error, and error mail send.

What operating system are you using? What browser?
Server:Windows XP SP3,Apache+mod_python
Client:Windows7 32bit, IE8

Please provide any additional information below.
Calling the API with authentication does not occur 500. I can take expected output.
Most of the API is operating properly.
Only some API has this issue.
david
#1 david
Can you give us the traceback from the error email/log?
  • +NeedInfo
#2 Fuy****@gmai***** (Google Code) (Is this you? Claim this profile.)
Thank you for reply.
I'm sorry the late.
Please see the attach log.
  • +
    int() argument must be a string or a number, not 'AnonymousUser'
    Traceback (most recent call last):
      File "c:\traclight\python\lib\site-packages\django-1.3.1-py2.5.egg\django\core\handlers\base.py", line 111, in get_response
        response = callback(request, *callback_args, **callback_kwargs)
      File "c:\traclight\python\lib\site-packages\django-1.3.1-py2.5.egg\django\views\decorators\cache.py", line 79, in _wrapped_view_func
        response = view_func(request, *args, **kwargs)
      File "c:\traclight\python\lib\site-packages\django-1.3.1-py2.5.egg\django\views\decorators\vary.py", line 22, in inner_func
        response = func(*args, **kwargs)
      File "c:\traclight\python\lib\site-packages\Djblets-0.6.11-py2.5.egg\djblets\webapi\resources.py", line 338, in __call__
        result = view(request, api_format=api_format, *args, **kwargs)
      File "c:\traclight\python\lib\site-packages\ReviewBoard-1.6.1-py2.5.egg\reviewboard\webapi\decorators.py", line 127, in _check
        return view_func(*args,
david
#3 david
  • -NeedInfo
    +New
chipx86
#4 chipx86
  • -New
    +PendingReview
  • -Priority-Medium
    +Priority-High
    +Milestone-Release1.6.x
    +Component-API
  • +chipx86
chipx86
#5 chipx86
Fixed on release-1.6.x (44ac3ef).

This will be in 1.6.5.
  • -PendingReview
    +Fixed