878: reviewboard pass user 'SYSTEM' to perforce

mw44****@gmai***** (Google Code) (Is this you? Claim this profile.)
Feb. 12, 2009
What's the URL of the page containing the problem?


What steps will reproduce the problem?
1. view diff or post-review
2.
3.

What is the expected output? What do you see instead?
Wrong:
P4Exception "Errors during command execution p4 describe -s 433859
Correct:
==> Review Board Login Required
Enter username and password for Review Board at http://127.0.0.1:8000/
Username: dpi08
Password:
>>> Logging in with username "dpi08"
>>> HTTP POSTing to http://127.0.0.1:8000/api/json/accounts/login/: 
{'username': 'dpi08', 'password': '**************'}
>>> Logged in.
>>> Attempting to create review request for 433859
>>> HTTP POSTing to http://127.0.0.1:8000/api/json/reviewrequests/new/: 
{'repository_path': 'P3G:1666', 'changenum': '433859'}
>>> Review request created
>>> Uploading diff, size: 336
>>> HTTP POSTing to 
http://127.0.0.1:8000/api/json/reviewrequests/11/diff/new/: {}
Review request #11 posted.

http://127.0.0.1:8000/r/11

What operating system are you using? What browser?
Windows. IE

Please provide any additional information below.

It works well using "python manage.py runserver" in the local

but, using apache, reviewboard pass
"p4 -p mirror -u SYSTEM print -q changes#8"
to perforce and p4 protect reject.

why the reviewboard pass the 'SYSTEM' instead of user name 'mw44.lee'
chipx86
#1 chipx86
It should use whatever user is configured in Review Board for that repository. It
might default to the user that the server is run by. Since Apache runs as a service
on Windows, I suppose it's using SYSTEM. But this is configurable.
#2 mw44****@gmai***** (Google Code) (Is this you? Claim this profile.)
thx I changed in service 'Apache2.2' login account
david
#3 david
  • +UserError