API URLs - browser wants to download instead of display

2013-06-25 Thread Matthew Dawes
My Review Board 1.7.10 installation seems to be working for the most part. 
I can navigate and update all the admin pages and can view the dashboard, 
groups, submitters, etc but I am having an issue displaying any of the API 
url's. The browser wants to download them instead of display them. It sees 
them as type application/vnd.reviewboard.org.root+xml. When I download the 
files they are properly formatted XML.

On a possibly related note, when I am trying to use rbt post CHG# to post a 
review I am getting an HTTP 404. I set up my RB installation at 
/var/www/reviews with the site web root at /. I have installed a previous 
site with the site web root at /reviews/ but rbt still seems to be looking 
at http://my-ip/reviews/api/ instead of http://my-ip/api/. I changed my 
site web root to /reviews/ to try and match what it was looking for but I 
think the API URLs not displaying is still causing a problem.

Here is the output of my rbt post -d:

rbt post 9509 -d
DEBUG:root:Checking for a Subversion repository...
DEBUG:root:Checking for a Git repository...
DEBUG:root:Running: git.cmd rev-parse --git-dir
DEBUG:root:Command exited with rc 128: ['git.cmd', '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 CVS repository...
DEBUG:root:Checking for a Perforce repository...
DEBUG:root:Running: p4 info
DEBUG:root:Running: diff --version
DEBUG:root:repository info: Path: p4 server path, Base path: None, 
Supports changesets: True
DEBUG:root:Making HTTP GET request to http://my-ip/reviews/api/
Traceback (most recent call last):
  File C:\Python27\Scripts\rbt-script.py, line 9, in module
load_entry_point('RBTools==0.5.1', 'console_scripts', 'rbt')()
  File build/bdist.macosx-10.8-intel/egg/rbtools/commands/main.py, line 
99, in
 main
  File build/bdist.macosx-10.8-intel/egg/rbtools/commands/__init__.py, 
line 15
8, in run_from_argv
  File build/bdist.macosx-10.8-intel/egg/rbtools/commands/post.py, line 
448, i
n main
  File build/bdist.macosx-10.8-intel/egg/rbtools/commands/__init__.py, 
line 26
0, in get_api
rbtools.commands.CommandError: Unexpected API Error: HTTP 404

Thanks,

Matt

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: API URLs - browser wants to download instead of display

2013-06-25 Thread Matthew Dawes
That makes sense. I wanted to be sure that the APIs not displaying in the 
browser wasn't causing the 404 but it looks like that is not the case. My 
.reviewboardrc was still pointing at the /reviews/. Thanks again.

The last issue with my setup is that we are using a P4 proxy. I am getting 
to the Web API auth step and once I authenticate I am getting the HTTP 403, 
API Error 218 - Unable to authenticate with the repository using the 
provided credentials. I have tried putting the proxy as the Mirror and the 
P4 info server name as the Path as I saw recommended in an earlier thread. 
Is that still the way to go with a proxy setup for P4? I tried reversing it 
as well but I get the 403 either way. Here is the rbt post log:

DEBUG:root:Making HTTP GET request to http://my-ip/api/review-requests/
DEBUG:root:Making HTTP POST request to http://my-ip/api/review-requests/
== HTTP Authentication Required
Enter authorization information for Web API at my-ip
Username: admin
Password:
Traceback (most recent call last):
  File C:\Python27\Scripts\rbt-script.py, line 9, in module
load_entry_point('RBTools==0.5.1', 'console_scripts', 'rbt')()
  File build/bdist.macosx-10.8-intel/egg/rbtools/commands/main.py, line 
99, in
 main
  File build/bdist.macosx-10.8-intel/egg/rbtools/commands/__init__.py, 
line 15
8, in run_from_argv
  File build/bdist.macosx-10.8-intel/egg/rbtools/commands/post.py, line 
489, i
n main
  File build/bdist.macosx-10.8-intel/egg/rbtools/commands/post.py, line 
342, i
n post_request
rbtools.commands.CommandError: Error creating review request: Unable to 
authenti
cate with the repository using the provided credentials (HTTP 403, API 
Error 218
)


On Tuesday, June 25, 2013 11:23:09 AM UTC-7, Matthew Dawes wrote:

 My Review Board 1.7.10 installation seems to be working for the most part. 
 I can navigate and update all the admin pages and can view the dashboard, 
 groups, submitters, etc but I am having an issue displaying any of the API 
 url's. The browser wants to download them instead of display them. It sees 
 them as type application/vnd.reviewboard.org.root+xml. When I download the 
 files they are properly formatted XML.

 On a possibly related note, when I am trying to use rbt post CHG# to post 
 a review I am getting an HTTP 404. I set up my RB installation at 
 /var/www/reviews with the site web root at /. I have installed a previous 
 site with the site web root at /reviews/ but rbt still seems to be looking 
 at http://my-ip/reviews/api/ instead of http://my-ip/api/. I changed my 
 site web root to /reviews/ to try and match what it was looking for but I 
 think the API URLs not displaying is still causing a problem.

 Here is the output of my rbt post -d:

 rbt post 9509 -d
 DEBUG:root:Checking for a Subversion repository...
 DEBUG:root:Checking for a Git repository...
 DEBUG:root:Running: git.cmd rev-parse --git-dir
 DEBUG:root:Command exited with rc 128: ['git.cmd', '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 CVS repository...
 DEBUG:root:Checking for a Perforce repository...
 DEBUG:root:Running: p4 info
 DEBUG:root:Running: diff --version
 DEBUG:root:repository info: Path: p4 server path, Base path: None, 
 Supports changesets: True
 DEBUG:root:Making HTTP GET request to http://my-ip/reviews/api/
 Traceback (most recent call last):
   File C:\Python27\Scripts\rbt-script.py, line 9, in module
 load_entry_point('RBTools==0.5.1', 'console_scripts', 'rbt')()
   File build/bdist.macosx-10.8-intel/egg/rbtools/commands/main.py, line 
 99, in
  main
   File build/bdist.macosx-10.8-intel/egg/rbtools/commands/__init__.py, 
 line 15
 8, in run_from_argv
   File build/bdist.macosx-10.8-intel/egg/rbtools/commands/post.py, line 
 448, i
 n main
   File build/bdist.macosx-10.8-intel/egg/rbtools/commands/__init__.py, 
 line 26
 0, in get_api
 rbtools.commands.CommandError: Unexpected API Error: HTTP 404

 Thanks,

 Matt


-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.