Perforce server security level error when post a review

2009-06-29 Thread Jason Lee

Hi guys,

I met another problem when post a perforce review.

I install the RB on Windows.
The command is : post-review.py -d 118527
And then I met a perforce exception.

The logs are below:

P4Exception at /api/json/reviewrequests/new/

[P4#run] Errors during command execution( "p4 describe -s 118527" )

[Error]: Password not allowed at this server security level, use 'p4
login'.


Request Method: POST
Request URL:http://127.0.0.1:80/api/json/reviewrequests/new/
Exception Type: P4Exception
Exception Value:

[P4#run] Errors during command execution( "p4 describe -s 118527" )

[Error]: Password not allowed at this server security level, use 'p4
login'.


Exception Location: C:\Python25\lib\site-packages\P4.py in run, line
284
Python Executable:  D:\Program Files\Apache Software Foundation
\Apache2.2\bin\httpd.exe
Python Version: 2.5.4
Python Path:
Server time:Fri, 26 Jun 2009 17:56:01 +0800
===

I think that's because of the higher P4 server security level. Because
when I use my own perforce server with default security level, I can
post the review successfully.

Anyone knows how to fix this problem?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Can not use post-review to post a perforce review

2009-06-25 Thread Jason Lee

Hi guys,

Two days ago, I followed the documentation on page of Review Board and
installed it.
Everything seemed great. The site was established successfully. I
could register, use admin, set repository. But when I tried to use
post-review to post a perforce review. I failed!

The command is: post-review.py 2 (perforce changeset no.).

The log is below:
=
>>> p4 info
>>> repository info: Path: yli-01-pc.com:1666, Base path: None, Suppor
ts changesets: True
>>> Generating diff for changenum 2
>>> p4 describe -s 2
>>> Processing edit of //depot/Readme.txt
>>> Writing "//depot/Readme.txt#1" to "c:\docume~1\jason\locals~1
\temp\tmpra6drg
"
>>> p4 print -q //depot/Readme.txt#1
>>> p4 where //depot/Readme.txt
>>> diff -urNp c:\docume~1\jason\locals~1\temp\tmpra6drg
E:\abcdefg\Readme.txt
>>> Looking for '127.0.0.1 /' cookie in C:\Documents and
Settings\Jason\Local Se
ttings\Application Data\.post-review-cookies.txt
>>> Loaded valid cookie -- no login required
>>> Attempting to create review request for 2
>>> HTTP POSTing to http://127.0.0.1:80/api/json/reviewrequests/new/:
{'reposito
ry_path': 'yli-01-pc.com:1666', 'changenum': '2'}
>>> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
 
  500 - Internal Server Error | Review Board
 
 
  Something broke! (Error 500)
  
   It appears something broke when you tried to go to here. This is
either
   a bug in Review Board or a server configuration error. Please
report
   this to your administrator.
  
 


Unable to access http://127.0.0.1:80/api/json/reviewrequests/new/ The
host path
 may be invalid
HTTP Error 500: Internal Server Error
==

It seems the diff file has been created,  but can not create a new
post on RB site.
I know nothing about Django and json.

my apache conf:
===

#   ServerName review.mybrion.net
DocumentRoot "E:/reviewboard_tmp3/htdocs"

# Error handlers
ErrorDocument 500 /errordocs/500.html

# Serve django pages

PythonPath "['E:/reviewboard_tmp3/conf'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
SetEnv PYTHON_EGG_CACHE "E:/reviewboard_tmp3/tmp/egg_cache"
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonAutoReload Off
PythonDebug On
# Used to run multiple mod_python sites in the same apache
PythonInterpreter reviewboard_reviewboard_tmp3


# Serve static media without running it through mod_python
# (overrides the above)

SetHandler None


SetHandler None



#   Options Indexes FollowSymLinks
#   AllowOverride all
Order Allow,Deny
Allow from all


# Alias static media requests to filesystem
Alias /media "E:/reviewboard_tmp3/htdocs/media"
Alias /errordocs "E:/reviewboard_tmp3/htdocs/errordocs"

===

Anyone knows how to fix it?  Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---