Re: Unable to access the root /api/ URL on the server.

2012-10-30 Thread Alvin NG
Exactly. It works now. Thanks a lot.
By the way, I could not attach the difference when posting a review.
I have created another post for this problem.

On 10月30日, 下午3時39分, Christian Hammond chip...@chipx86.com wrote:
 Do you generally use a proxy server? It could be that you're going through
 the proxy, which means you're not accessing what you expect.

 You could try using --disable-proxy to check.

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.reviewboard.org
 VMware, Inc. -http://www.vmware.com







 On Mon, Oct 29, 2012 at 9:45 PM, Alvin NG asang...@gmail.com wrote:
  Hi,

  I'm trying to create a review on top of a commit in a svn repository.
  However, I got the following error.
  But if I accesshttp://127.0.0.1/reviewboard/api/directly via
  browser, I could get the file.

  --- 
  ---
  [Error]

  post-review --server=http://127.0.0.1/reviewboard--debug RBTools
  0.4.2
   Python 2.6 (r26:66714, May  6 2011, 15:21:49)
  [GCC 4.3.4 [gcc-4_3-branch revision 152973]]
   Running on Linux-3.0.13-0.27-default-i686-with-SuSE-11-i586
   Home = /root
   Current Directory = /usr/proj
   Checking the repository type. Errors shown below are mostly harmless.
  DEBUG:root:Checking for a CVS repository...
  DEBUG:root:Checking for a ClearCase repository...
  DEBUG:root:Checking for a Git repository...
  DEBUG:root:Running: git rev-parse --git-dir
  DEBUG:root:Command exited with rc 128: ['git', 'rev-parse', '--git-
  dir']
  fatal: Not a git repository (or any of the parent directories): .git
  ---
  DEBUG:root:Checking for a Mercurial repository...
  DEBUG:root:Checking for a Perforce repository...
  DEBUG:root:Checking for a Plastic repository...
  DEBUG:root:Checking for a Subversion repository...
  DEBUG:root:Running: svn info
  DEBUG:root:Running: diff --version
  DEBUG:root:repository info: Path: svn://127.0.0.1, Base path: /,
  Supports changesets: False
   Finished checking the repository type.
   HTTP GETting api/
   Got HTTP error: 400: HTMLHEAD
  TITLERequest Error/TITLE
  /HEAD
  BODY
  FONT face=Helvetica
  bigstrong/strong/bigBR
  /FONT
  blockquote
  TABLE border=0 cellPadding=1 width=80%
  TRTD
  FONT face=Helvetica
  bigRequest Error (invalid_request)/big
  BR
  BR
  /FONT
  /TD/TR
  TRTD
  FONT face=Helvetica
  Your request could not be processed. Request could not be handled
  /FONT
  /TD/TR
  TRTD
  FONT face=Helvetica
  This could be caused by a misconfiguration, or possibly a malformed
  request.
  /FONT
  /TD/TR
  TRTD
  FONT face=Helvetica SIZE=2
  BR
  For assistance, contact your network support team.
  /FONT
  /TD/TR
  /TABLE
  /blockquote
  /FONT
  /BODY/HTML

  Unable to access the root /api/ URL on the server.

  --- 
  ---
  [http://127.0.0.1/reviewboard/api/]

  ?xml version=1.0 encoding=utf-8?
  rsp
   statok/stat
   uri_templates
    diff_commentshttp://127.0.0.1/reviewboard/api/review-requests/
  {review_request_id}/reviews/{review_id}/replies/{reply_id}/diff-
  comments//diff_comments
    watched_review_groupshttp://127.0.0.1/reviewboard/api/users/
  {username}/watched/review-groups//watched_review_groups
    sessionhttp://127.0.0.1/reviewboard/api/session//session
    file_attachmentshttp://127.0.0.1/reviewboard/api/review-requests/
  {review_request_id}/file-attachments//file_attachments
    filehttp://127.0.0.1/reviewboard/api/review-requests/
  {review_request_id}/diffs/{diff_revision}/files/{filediff_id}//file
    replieshttp://127.0.0.1/reviewboard/api/review-requests/
  {review_request_id}/reviews/{review_id}/replies//replies
    diffhttp://127.0.0.1/reviewboard/api/review-requests/
  {review_request_id}/diffs/{diff_revision}//diff
    screenshotshttp://127.0.0.1/reviewboard/api/review-requests/
  {review_request_id}/screenshots//screenshots
    watched_review_requesthttp://127.0.0.1/reviewboard/api/users/
  {username}/watched/review-requests/{watched_obj_id}//
  watched_review_request
    grouphttp://127.0.0.1/reviewboard/api/groups/{group_name}//group
    screenshothttp://127.0.0.1/reviewboard/api/review-requests/
  {review_request_id}/screenshots/{screenshot_id}//screenshot
    reviewhttp://127.0.0.1/reviewboard/api/review-requests/
  {review_request_id}/reviews/{review_id}//review
    watched_review_grouphttp://127.0.0.1/reviewboard/api/users/
  {username}/watched/review-groups/{watched_obj_id}//
  watched_review_group
    last_updatehttp://127.0.0.1/reviewboard/api/review-requests/
  {review_request_id}/last-update//last_update
    diff_commenthttp://127.0.0.1/reviewboard/api/review-requests/
  {review_request_id}/reviews/{review_id}/replies/{reply_id}/diff-
  comments/{comment_id}//diff_comment
    drafthttp://127.0.0.1/reviewboard/api/review-requests/
  {review_request_id}/draft//draft

post-review: Error uploading diff

2012-10-30 Thread Alvin NG
Hi,

I could not attach the difference between revisions to my review.
It gives me the error Got API Error 105 (HTTP code 400): One or more
fields had errors.
I have also tried to output the difference by using svn diff and
attach the file to my review, but it still gives me the same error.

My command: post-review --server=http://localhost/reviewboard --debug
--disable-proxy --target-group=proj_test -- revision=0:11 --diff-
filename=diff.txt

(I'm not sure if this would also help) The repository server of my
Reviewboard is like this svn://localhost/test_proj but not the local
path to the reviewboard server

Many thanks,
Alvin

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
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




Re: post-review: Error uploading diff

2012-10-30 Thread Alvin NG
test_proj is the root of the SVN server.
I kick my SVN server by
svnserve -d -r /svn/test_proj/

On 10月30日, 下午4時47分, Christian Hammond chip...@chipx86.com wrote:
 Make sure Review Board is configured to point to the root of the SVN
 server, not a subdirectory within. I'm assuming test_proj is a subdirectory
 inside the repo?

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.reviewboard.org
 VMware, Inc. -http://www.vmware.com







 On Tue, Oct 30, 2012 at 1:44 AM, Alvin NG asang...@gmail.com wrote:
  Hi,

  I could not attach the difference between revisions to my review.
  It gives me the error Got API Error 105 (HTTP code 400): One or more
  fields had errors.
  I have also tried to output the difference by using svn diff and
  attach the file to my review, but it still gives me the same error.

  My command: post-review --server=http://localhost/reviewboard--debug
  --disable-proxy --target-group=proj_test -- revision=0:11 --diff-
  filename=diff.txt

  (I'm not sure if this would also help) The repository server of my
  Reviewboard is like this svn://localhost/test_proj but not the local
  path to the reviewboard server

  Many thanks,
  Alvin

  --
  Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
  Happy user? Let us know athttp://www.reviewboard.org/users/
  -~--~~~~--~~--~--~---
  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

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
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




Re: post-review: Error uploading diff

2012-10-30 Thread Alvin NG
FYI, here is the setting in my reviewboard
Path: svn://localhost
Mirror path: (empty)

I saw a post which is talking about the same problem (I think) here
https://groups.google.com/group/reviewboard/browse_thread/thread/d770407ab6d34fb8/923d3f8b7de4d85a

I followed the setting suggested by the above post and set
Path: /svn/test_proj
Mirror path: svn@server:localhost

But it still doesn't work. Hope this would help.

On 10月30日, 下午4時47分, Christian Hammond chip...@chipx86.com wrote:
 Make sure Review Board is configured to point to the root of the SVN
 server, not a subdirectory within. I'm assuming test_proj is a subdirectory
 inside the repo?

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.reviewboard.org
 VMware, Inc. -http://www.vmware.com







 On Tue, Oct 30, 2012 at 1:44 AM, Alvin NG asang...@gmail.com wrote:
  Hi,

  I could not attach the difference between revisions to my review.
  It gives me the error Got API Error 105 (HTTP code 400): One or more
  fields had errors.
  I have also tried to output the difference by using svn diff and
  attach the file to my review, but it still gives me the same error.

  My command: post-review --server=http://localhost/reviewboard--debug
  --disable-proxy --target-group=proj_test -- revision=0:11 --diff-
  filename=diff.txt

  (I'm not sure if this would also help) The repository server of my
  Reviewboard is like this svn://localhost/test_proj but not the local
  path to the reviewboard server

  Many thanks,
  Alvin

  --
  Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
  Happy user? Let us know athttp://www.reviewboard.org/users/
  -~--~~~~--~~--~--~---
  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

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
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




Unable to access the root /api/ URL on the server.

2012-10-29 Thread Alvin NG
Hi,

I'm trying to create a review on top of a commit in a svn repository.
However, I got the following error.
But if I access http://127.0.0.1/reviewboard/api/ directly via
browser, I could get the file.

--
[Error]

post-review --server=http://127.0.0.1/reviewboard --debug RBTools
0.4.2
 Python 2.6 (r26:66714, May  6 2011, 15:21:49)
[GCC 4.3.4 [gcc-4_3-branch revision 152973]]
 Running on Linux-3.0.13-0.27-default-i686-with-SuSE-11-i586
 Home = /root
 Current Directory = /usr/proj
 Checking the repository type. Errors shown below are mostly harmless.
DEBUG:root:Checking for a CVS repository...
DEBUG:root:Checking for a ClearCase repository...
DEBUG:root:Checking for a Git repository...
DEBUG:root:Running: git rev-parse --git-dir
DEBUG:root:Command exited with rc 128: ['git', 'rev-parse', '--git-
dir']
fatal: Not a git repository (or any of the parent directories): .git
---
DEBUG:root:Checking for a Mercurial repository...
DEBUG:root:Checking for a Perforce repository...
DEBUG:root:Checking for a Plastic repository...
DEBUG:root:Checking for a Subversion repository...
DEBUG:root:Running: svn info
DEBUG:root:Running: diff --version
DEBUG:root:repository info: Path: svn://127.0.0.1, Base path: /,
Supports changesets: False
 Finished checking the repository type.
 HTTP GETting api/
 Got HTTP error: 400: HTMLHEAD
TITLERequest Error/TITLE
/HEAD
BODY
FONT face=Helvetica
bigstrong/strong/bigBR
/FONT
blockquote
TABLE border=0 cellPadding=1 width=80%
TRTD
FONT face=Helvetica
bigRequest Error (invalid_request)/big
BR
BR
/FONT
/TD/TR
TRTD
FONT face=Helvetica
Your request could not be processed. Request could not be handled
/FONT
/TD/TR
TRTD
FONT face=Helvetica
This could be caused by a misconfiguration, or possibly a malformed
request.
/FONT
/TD/TR
TRTD
FONT face=Helvetica SIZE=2
BR
For assistance, contact your network support team.
/FONT
/TD/TR
/TABLE
/blockquote
/FONT
/BODY/HTML

Unable to access the root /api/ URL on the server.
--
[http://127.0.0.1/reviewboard/api/ ]

?xml version=1.0 encoding=utf-8?
rsp
 statok/stat
 uri_templates
  diff_commentshttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/reviews/{review_id}/replies/{reply_id}/diff-
comments//diff_comments
  watched_review_groupshttp://127.0.0.1/reviewboard/api/users/
{username}/watched/review-groups//watched_review_groups
  sessionhttp://127.0.0.1/reviewboard/api/session//session
  file_attachmentshttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/file-attachments//file_attachments
  filehttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/diffs/{diff_revision}/files/{filediff_id}//file
  replieshttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/reviews/{review_id}/replies//replies
  diffhttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/diffs/{diff_revision}//diff
  screenshotshttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/screenshots//screenshots
  watched_review_requesthttp://127.0.0.1/reviewboard/api/users/
{username}/watched/review-requests/{watched_obj_id}//
watched_review_request
  grouphttp://127.0.0.1/reviewboard/api/groups/{group_name}//group
  screenshothttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/screenshots/{screenshot_id}//screenshot
  reviewhttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/reviews/{review_id}//review
  watched_review_grouphttp://127.0.0.1/reviewboard/api/users/
{username}/watched/review-groups/{watched_obj_id}//
watched_review_group
  last_updatehttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/last-update//last_update
  diff_commenthttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/reviews/{review_id}/replies/{reply_id}/diff-
comments/{comment_id}//diff_comment
  drafthttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/draft//draft
  replyhttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/reviews/{review_id}/replies/{reply_id}//reply
  review_requesthttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}//review_request
  fileshttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/diffs/{diff_revision}/files//files
  review_drafthttp://127.0.0.1/reviewboard/api/review-requests/
{review_request_id}/reviews/draft//review_draft
  usershttp://127.0.0.1/reviewboard/api/users//users
  repositoryhttp://127.0.0.1/reviewboard/api/repositories/
{repository_id}//repository
  file_attachment_commentshttp://127.0.0.1/reviewboard/api/review-
requests/{review_request_id}/file-attachments/{file_attachment_id}/
file-attachment-comments//file_attachment_comments
  watchedhttp://127.0.0.1/reviewboard/api/users/{username}/watched//