Re: Problem using the webapi
A broken link message? So, what is the root of the Review Board install? Also, what version of Review Board? I think I need to know those before I can really dive into this more. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:01 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi Christian, I tried both of them http://gitdepot:8088/r/api/review-requests/28/reviews/28/ and http://gitdepot:8088/api/review-requests/28/reviews/28/http://gitdepot:8088/r/api/review-requests/28/reviews/28/ I get a 404 with the first one (as served by the ReviewBoard) and with the second a broken link message on my browser (i was using chrome). With wget i get 404 with both. Both the review and the review request are published. And I own that review. Best regards, Vivek On Fri, Mar 18, 2011 at 1:11 PM, Christian Hammond chip...@chipx86.comwrote: Hi Vivek, Am I right in assuming that the root of your Review Board install is http://gitdepot:8088/r/ ? I ask because /r/ is what usually precedes a review request ID, so I want to make sure you're using the right path. The API should be at /api/, respective of the root of the Review Board install. Given that you got the page you did when pasting in a web browser, it sounds like it's just a wrong path. That page is a 404, just like what wget is returning. If the path is indeed correct, make sure both the review request and review are published. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Thu, Mar 17, 2011 at 11:19 PM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi, We are using review board and I am looking to enforce a policy wherein a topic that has not been marked as ship-it may not be pushed to the central git repository. I was trying to use the webAPI and I keep getting a HTTP 404 error. I have tried the following: a) through my browser which is logged in to my account on Reviewboard, I try pasting the following link into the address bar http://gitdepot:8088/r/api/review-requests/28/reviews/28/ http://gitdepot:8088/r/api/review-requests/28/reviews/28/but I get a page from ReviewBoard that says that this page does not exist and I should try logging in if I really think this topic exists. b) using wget from command line, I ran this: [viveks@localghost scripts]$ wget http://gitdepot:8088/r/api/review-requests/28/reviews/28/ --2011-03-18 11:45:36-- http://gitdepot:8088/r/api/review-requests/28/reviews/28/ Resolving gitdepot... 192.168.55.90 Connecting to gitdepot|192.168.55.90|:8088... connected. HTTP request sent, awaiting response... 404 Not Found 2011-03-18 11:45:36 ERROR 404: Not Found. Am I doing something wrong or missing something out? Please help. http://gitdepot:8088/r/api/review-requests/28/reviews/28/ Best regards, Vivek -- 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 -- 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: Problem using the webapi
Okay, then the API path should be /api/ and not /r/api/. Can you show me exactly what's said when you access /api/ in your browser? It should be an XML file. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:08 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: I am using version 1.5.4. and the site is installed at /var/www/html/ gitreview...com here is a snippet from the conf/settings_local.py # Extra site information. SITE_ID = 1 SITE_ROOT = '/' FORCE_SCRIPT_NAME = '' DEBUG = False Here is the configuration for the virtual host in my httpd.conf file VirtualHost *:8088 ServerName gitdepot...com:8088 DocumentRoot /var/www/html/gitreview...com/htdocs # Error handlers ErrorDocument 500 /errordocs/500.html # Serve django pages Location / PythonPath ['/var/www/html/gitreview...com/conf'] + sys.path SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings SetEnv PYTHON_EGG_CACHE /var/www/html/ gitreview...com/tmp/egg_cache SetEnv HOME /var/www/html/gitreview...com/data SetHandler mod_python PythonHandler django.core.handlers.modpython PythonAutoReload Off PythonDebug Off # Used to run multiple mod_python sites in the same apache PythonInterpreter reviewboard_rev___com /Location # Serve static media without running it through mod_python # (overrides the above) Location /media SetHandler None /Location Location /errordocs SetHandler None /Location Directory /var/www/html/gitreview...com/htdocs AllowOverride All /Directory # Alias static media requests to filesystem Alias /media /var/www/html/gitreview...com/htdocs/media Alias /errordocs /var/www/html/ gitreview...com/htdocs/errordocs /VirtualHost Best regards, Vivek On Fri, Mar 18, 2011 at 1:32 PM, Christian Hammond chip...@chipx86.comwrote: A broken link message? So, what is the root of the Review Board install? Also, what version of Review Board? I think I need to know those before I can really dive into this more. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:01 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi Christian, I tried both of them http://gitdepot:8088/r/api/review-requests/28/reviews/28/ and http://gitdepot:8088/api/review-requests/28/reviews/28/http://gitdepot:8088/r/api/review-requests/28/reviews/28/ I get a 404 with the first one (as served by the ReviewBoard) and with the second a broken link message on my browser (i was using chrome). With wget i get 404 with both. Both the review and the review request are published. And I own that review. Best regards, Vivek On Fri, Mar 18, 2011 at 1:11 PM, Christian Hammond chip...@chipx86.comwrote: Hi Vivek, Am I right in assuming that the root of your Review Board install is http://gitdepot:8088/r/ ? I ask because /r/ is what usually precedes a review request ID, so I want to make sure you're using the right path. The API should be at /api/, respective of the root of the Review Board install. Given that you got the page you did when pasting in a web browser, it sounds like it's just a wrong path. That page is a 404, just like what wget is returning. If the path is indeed correct, make sure both the review request and review are published. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Thu, Mar 17, 2011 at 11:19 PM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi, We are using review board and I am looking to enforce a policy wherein a topic that has not been marked as ship-it may not be pushed to the central git repository. I was trying to use the webAPI and I keep getting a HTTP 404 error. I have tried the following: a) through my browser which is logged in to my account on Reviewboard, I try pasting the following link into the address bar http://gitdepot:8088/r/api/review-requests/28/reviews/28/ http://gitdepot:8088/r/api/review-requests/28/reviews/28/but I get a page from ReviewBoard that says that this page does not exist and I should try logging in if I really think this topic exists. b) using wget from command line, I ran this: [viveks@localghost scripts]$ wget http://gitdepot:8088/r/api/review-requests/28/reviews/28/ --2011-03-18 11:45:36--
Re: Problem using the webapi
Best way is to browse to it. Go to /api/review-requests/28/reviews/ and find the review you're looking for there. There will be links to the review you care about. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:35 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi, I was just fiddling with the URLs to see what would work. Looks like http://gitdepot:8088/api/review-requests/28/ works. I get some response which contains most of the stuff But http://gitdepot:8088/api/review-requests/28/reviews/28/ gives me a 404. I guess the review is not published then. so I clicked on the Review tab in the topic and then marked it as ship-it and added some comment in the box and hit Publish review. Now post doing that the second request still gives me a 404. I am guessing i got the review id wrong. How do i figure out the review id? Best regards, Vivek On Fri, Mar 18, 2011 at 1:54 PM, Christian Hammond chip...@chipx86.comwrote: Okay, then the API path should be /api/ and not /r/api/. Can you show me exactly what's said when you access /api/ in your browser? It should be an XML file. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:08 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: I am using version 1.5.4. and the site is installed at /var/www/html/ gitreview...com here is a snippet from the conf/settings_local.py # Extra site information. SITE_ID = 1 SITE_ROOT = '/' FORCE_SCRIPT_NAME = '' DEBUG = False Here is the configuration for the virtual host in my httpd.conf file VirtualHost *:8088 ServerName gitdepot...com:8088 DocumentRoot /var/www/html/gitreview...com/htdocs # Error handlers ErrorDocument 500 /errordocs/500.html # Serve django pages Location / PythonPath ['/var/www/html/gitreview...com/conf'] + sys.path SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings SetEnv PYTHON_EGG_CACHE /var/www/html/ gitreview...com/tmp/egg_cache SetEnv HOME /var/www/html/gitreview...com/data SetHandler mod_python PythonHandler django.core.handlers.modpython PythonAutoReload Off PythonDebug Off # Used to run multiple mod_python sites in the same apache PythonInterpreter reviewboard_rev___com /Location # Serve static media without running it through mod_python # (overrides the above) Location /media SetHandler None /Location Location /errordocs SetHandler None /Location Directory /var/www/html/gitreview...com/htdocs AllowOverride All /Directory # Alias static media requests to filesystem Alias /media /var/www/html/gitreview...com/htdocs/media Alias /errordocs /var/www/html/ gitreview...com/htdocs/errordocs /VirtualHost Best regards, Vivek On Fri, Mar 18, 2011 at 1:32 PM, Christian Hammond chip...@chipx86.comwrote: A broken link message? So, what is the root of the Review Board install? Also, what version of Review Board? I think I need to know those before I can really dive into this more. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:01 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi Christian, I tried both of them http://gitdepot:8088/r/api/review-requests/28/reviews/28/ and http://gitdepot:8088/api/review-requests/28/reviews/28/http://gitdepot:8088/r/api/review-requests/28/reviews/28/ I get a 404 with the first one (as served by the ReviewBoard) and with the second a broken link message on my browser (i was using chrome). With wget i get 404 with both. Both the review and the review request are published. And I own that review. Best regards, Vivek On Fri, Mar 18, 2011 at 1:11 PM, Christian Hammond chip...@chipx86.com wrote: Hi Vivek, Am I right in assuming that the root of your Review Board install is http://gitdepot:8088/r/ ? I ask because /r/ is what usually precedes a review request ID, so I want to make sure you're using the right path. The API should be at /api/, respective of the root of the Review Board install. Given that you got the page you did when pasting in a web browser, it sounds like it's just a wrong path. That page is a 404, just like what wget is returning. If the path is indeed correct, make sure both the review request and review are published. Christian
Re: Problem using the webapi
I am using version 1.5.4. and the site is installed at /var/www/html/ gitreview...com here is a snippet from the conf/settings_local.py # Extra site information. SITE_ID = 1 SITE_ROOT = '/' FORCE_SCRIPT_NAME = '' DEBUG = False Here is the configuration for the virtual host in my httpd.conf file VirtualHost *:8088 ServerName gitdepot...com:8088 DocumentRoot /var/www/html/gitreview...com/htdocs # Error handlers ErrorDocument 500 /errordocs/500.html # Serve django pages Location / PythonPath ['/var/www/html/gitreview...com/conf'] + sys.path SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings SetEnv PYTHON_EGG_CACHE /var/www/html/ gitreview...com/tmp/egg_cache SetEnv HOME /var/www/html/gitreview...com/data SetHandler mod_python PythonHandler django.core.handlers.modpython PythonAutoReload Off PythonDebug Off # Used to run multiple mod_python sites in the same apache PythonInterpreter reviewboard_rev___com /Location # Serve static media without running it through mod_python # (overrides the above) Location /media SetHandler None /Location Location /errordocs SetHandler None /Location Directory /var/www/html/gitreview...com/htdocs AllowOverride All /Directory # Alias static media requests to filesystem Alias /media /var/www/html/gitreview...com/htdocs/media Alias /errordocs /var/www/html/ gitreview...com/htdocs/errordocs /VirtualHost Best regards, Vivek On Fri, Mar 18, 2011 at 1:32 PM, Christian Hammond chip...@chipx86.comwrote: A broken link message? So, what is the root of the Review Board install? Also, what version of Review Board? I think I need to know those before I can really dive into this more. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:01 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi Christian, I tried both of them http://gitdepot:8088/r/api/review-requests/28/reviews/28/ and http://gitdepot:8088/api/review-requests/28/reviews/28/http://gitdepot:8088/r/api/review-requests/28/reviews/28/ I get a 404 with the first one (as served by the ReviewBoard) and with the second a broken link message on my browser (i was using chrome). With wget i get 404 with both. Both the review and the review request are published. And I own that review. Best regards, Vivek On Fri, Mar 18, 2011 at 1:11 PM, Christian Hammond chip...@chipx86.comwrote: Hi Vivek, Am I right in assuming that the root of your Review Board install is http://gitdepot:8088/r/ ? I ask because /r/ is what usually precedes a review request ID, so I want to make sure you're using the right path. The API should be at /api/, respective of the root of the Review Board install. Given that you got the page you did when pasting in a web browser, it sounds like it's just a wrong path. That page is a 404, just like what wget is returning. If the path is indeed correct, make sure both the review request and review are published. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Thu, Mar 17, 2011 at 11:19 PM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi, We are using review board and I am looking to enforce a policy wherein a topic that has not been marked as ship-it may not be pushed to the central git repository. I was trying to use the webAPI and I keep getting a HTTP 404 error. I have tried the following: a) through my browser which is logged in to my account on Reviewboard, I try pasting the following link into the address bar http://gitdepot:8088/r/api/review-requests/28/reviews/28/ http://gitdepot:8088/r/api/review-requests/28/reviews/28/but I get a page from ReviewBoard that says that this page does not exist and I should try logging in if I really think this topic exists. b) using wget from command line, I ran this: [viveks@localghost scripts]$ wget http://gitdepot:8088/r/api/review-requests/28/reviews/28/ --2011-03-18 11:45:36-- http://gitdepot:8088/r/api/review-requests/28/reviews/28/ Resolving gitdepot... 192.168.55.90 Connecting to gitdepot|192.168.55.90|:8088... connected. HTTP request sent, awaiting response... 404 Not Found 2011-03-18 11:45:36 ERROR 404: Not Found. Am I doing something wrong or missing something out? Please help. http://gitdepot:8088/r/api/review-requests/28/reviews/28/ Best regards, Vivek -- Want to help the Review Board project? Donate today at
Re: Problem using the webapi
I think what I am getting is the application/json version that is there is the examples section. Best regards, Vivek On Fri, Mar 18, 2011 at 2:16 PM, Vivek Subramanian subramanian.vi...@gmail.com wrote: If I am using wget, the file that i get is not in the nice pretty XML format that is shown in the documentation. Is it possible to get it in that manner using wget? Best regards, Vivek On Fri, Mar 18, 2011 at 2:12 PM, Vivek Subramanian subramanian.vi...@gmail.com wrote: I think I figured it out and it seems to be working for me now: If i got to http://gitdepot:8088/api/review-requests/28/reviews/ http://gitdepot:8088/api/review-requests/28/reviews/I get a bunch of the reviews that are associated with that review-request and in the links there i get hold of the review_id. I think the field 0/1 right after the comment would be the ship-it status. Thanks again. Best regards, Vivek On Fri, Mar 18, 2011 at 2:07 PM, Christian Hammond chip...@chipx86.comwrote: Best way is to browse to it. Go to /api/review-requests/28/reviews/ and find the review you're looking for there. There will be links to the review you care about. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:35 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi, I was just fiddling with the URLs to see what would work. Looks like http://gitdepot:8088/api/review-requests/28/ works. I get some response which contains most of the stuff But http://gitdepot:8088/api/review-requests/28/reviews/28/ gives me a 404. I guess the review is not published then. so I clicked on the Review tab in the topic and then marked it as ship-it and added some comment in the box and hit Publish review. Now post doing that the second request still gives me a 404. I am guessing i got the review id wrong. How do i figure out the review id? Best regards, Vivek On Fri, Mar 18, 2011 at 1:54 PM, Christian Hammond chip...@chipx86.com wrote: Okay, then the API path should be /api/ and not /r/api/. Can you show me exactly what's said when you access /api/ in your browser? It should be an XML file. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:08 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: I am using version 1.5.4. and the site is installed at /var/www/html/ gitreview...com here is a snippet from the conf/settings_local.py # Extra site information. SITE_ID = 1 SITE_ROOT = '/' FORCE_SCRIPT_NAME = '' DEBUG = False Here is the configuration for the virtual host in my httpd.conf file VirtualHost *:8088 ServerName gitdepot...com:8088 DocumentRoot /var/www/html/gitreview...com/htdocs # Error handlers ErrorDocument 500 /errordocs/500.html # Serve django pages Location / PythonPath ['/var/www/html/ gitreview...com/conf'] + sys.path SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings SetEnv PYTHON_EGG_CACHE /var/www/html/ gitreview...com/tmp/egg_cache SetEnv HOME /var/www/html/ gitreview...com/data SetHandler mod_python PythonHandler django.core.handlers.modpython PythonAutoReload Off PythonDebug Off # Used to run multiple mod_python sites in the same apache PythonInterpreter reviewboard_rev___com /Location # Serve static media without running it through mod_python # (overrides the above) Location /media SetHandler None /Location Location /errordocs SetHandler None /Location Directory /var/www/html/gitreview...com/htdocs AllowOverride All /Directory # Alias static media requests to filesystem Alias /media /var/www/html/ gitreview...com/htdocs/media Alias /errordocs /var/www/html/ gitreview...com/htdocs/errordocs /VirtualHost Best regards, Vivek On Fri, Mar 18, 2011 at 1:32 PM, Christian Hammond chip...@chipx86.com wrote: A broken link message? So, what is the root of the Review Board install? Also, what version of Review Board? I think I need to know those before I can really dive into this more. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:01 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi Christian, I tried both of them http://gitdepot:8088/r/api/review-requests/28/reviews/28/ and
Re: Problem using the webapi
Hi Christian, I tried both of them http://gitdepot:8088/r/api/review-requests/28/reviews/28/ and http://gitdepot:8088/api/review-requests/28/reviews/28/http://gitdepot:8088/r/api/review-requests/28/reviews/28/ I get a 404 with the first one (as served by the ReviewBoard) and with the second a broken link message on my browser (i was using chrome). With wget i get 404 with both. Both the review and the review request are published. And I own that review. Best regards, Vivek On Fri, Mar 18, 2011 at 1:11 PM, Christian Hammond chip...@chipx86.comwrote: Hi Vivek, Am I right in assuming that the root of your Review Board install is http://gitdepot:8088/r/ ? I ask because /r/ is what usually precedes a review request ID, so I want to make sure you're using the right path. The API should be at /api/, respective of the root of the Review Board install. Given that you got the page you did when pasting in a web browser, it sounds like it's just a wrong path. That page is a 404, just like what wget is returning. If the path is indeed correct, make sure both the review request and review are published. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Thu, Mar 17, 2011 at 11:19 PM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi, We are using review board and I am looking to enforce a policy wherein a topic that has not been marked as ship-it may not be pushed to the central git repository. I was trying to use the webAPI and I keep getting a HTTP 404 error. I have tried the following: a) through my browser which is logged in to my account on Reviewboard, I try pasting the following link into the address bar http://gitdepot:8088/r/api/review-requests/28/reviews/28/ http://gitdepot:8088/r/api/review-requests/28/reviews/28/but I get a page from ReviewBoard that says that this page does not exist and I should try logging in if I really think this topic exists. b) using wget from command line, I ran this: [viveks@localghost scripts]$ wget http://gitdepot:8088/r/api/review-requests/28/reviews/28/ --2011-03-18 11:45:36-- http://gitdepot:8088/r/api/review-requests/28/reviews/28/ Resolving gitdepot... 192.168.55.90 Connecting to gitdepot|192.168.55.90|:8088... connected. HTTP request sent, awaiting response... 404 Not Found 2011-03-18 11:45:36 ERROR 404: Not Found. Am I doing something wrong or missing something out? Please help. http://gitdepot:8088/r/api/review-requests/28/reviews/28/ Best regards, Vivek -- 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 -- 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: Problem using the webapi
Hi, I was just fiddling with the URLs to see what would work. Looks like http://gitdepot:8088/api/review-requests/28/ works. I get some response which contains most of the stuff But http://gitdepot:8088/api/review-requests/28/reviews/28/ gives me a 404. I guess the review is not published then. so I clicked on the Review tab in the topic and then marked it as ship-it and added some comment in the box and hit Publish review. Now post doing that the second request still gives me a 404. I am guessing i got the review id wrong. How do i figure out the review id? Best regards, Vivek On Fri, Mar 18, 2011 at 1:54 PM, Christian Hammond chip...@chipx86.comwrote: Okay, then the API path should be /api/ and not /r/api/. Can you show me exactly what's said when you access /api/ in your browser? It should be an XML file. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:08 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: I am using version 1.5.4. and the site is installed at /var/www/html/ gitreview...com here is a snippet from the conf/settings_local.py # Extra site information. SITE_ID = 1 SITE_ROOT = '/' FORCE_SCRIPT_NAME = '' DEBUG = False Here is the configuration for the virtual host in my httpd.conf file VirtualHost *:8088 ServerName gitdepot...com:8088 DocumentRoot /var/www/html/gitreview...com/htdocs # Error handlers ErrorDocument 500 /errordocs/500.html # Serve django pages Location / PythonPath ['/var/www/html/gitreview...com/conf'] + sys.path SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings SetEnv PYTHON_EGG_CACHE /var/www/html/ gitreview...com/tmp/egg_cache SetEnv HOME /var/www/html/gitreview...com/data SetHandler mod_python PythonHandler django.core.handlers.modpython PythonAutoReload Off PythonDebug Off # Used to run multiple mod_python sites in the same apache PythonInterpreter reviewboard_rev___com /Location # Serve static media without running it through mod_python # (overrides the above) Location /media SetHandler None /Location Location /errordocs SetHandler None /Location Directory /var/www/html/gitreview...com/htdocs AllowOverride All /Directory # Alias static media requests to filesystem Alias /media /var/www/html/gitreview...com/htdocs/media Alias /errordocs /var/www/html/ gitreview...com/htdocs/errordocs /VirtualHost Best regards, Vivek On Fri, Mar 18, 2011 at 1:32 PM, Christian Hammond chip...@chipx86.comwrote: A broken link message? So, what is the root of the Review Board install? Also, what version of Review Board? I think I need to know those before I can really dive into this more. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:01 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi Christian, I tried both of them http://gitdepot:8088/r/api/review-requests/28/reviews/28/ and http://gitdepot:8088/api/review-requests/28/reviews/28/http://gitdepot:8088/r/api/review-requests/28/reviews/28/ I get a 404 with the first one (as served by the ReviewBoard) and with the second a broken link message on my browser (i was using chrome). With wget i get 404 with both. Both the review and the review request are published. And I own that review. Best regards, Vivek On Fri, Mar 18, 2011 at 1:11 PM, Christian Hammond chip...@chipx86.com wrote: Hi Vivek, Am I right in assuming that the root of your Review Board install is http://gitdepot:8088/r/ ? I ask because /r/ is what usually precedes a review request ID, so I want to make sure you're using the right path. The API should be at /api/, respective of the root of the Review Board install. Given that you got the page you did when pasting in a web browser, it sounds like it's just a wrong path. That page is a 404, just like what wget is returning. If the path is indeed correct, make sure both the review request and review are published. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Thu, Mar 17, 2011 at 11:19 PM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi, We are using review board and I am looking to enforce a policy wherein a topic that has not been marked as ship-it may not be pushed to the central git repository. I was trying
Re: Problem using the webapi
If I am using wget, the file that i get is not in the nice pretty XML format that is shown in the documentation. Is it possible to get it in that manner using wget? Best regards, Vivek On Fri, Mar 18, 2011 at 2:12 PM, Vivek Subramanian subramanian.vi...@gmail.com wrote: I think I figured it out and it seems to be working for me now: If i got to http://gitdepot:8088/api/review-requests/28/reviews/ http://gitdepot:8088/api/review-requests/28/reviews/I get a bunch of the reviews that are associated with that review-request and in the links there i get hold of the review_id. I think the field 0/1 right after the comment would be the ship-it status. Thanks again. Best regards, Vivek On Fri, Mar 18, 2011 at 2:07 PM, Christian Hammond chip...@chipx86.comwrote: Best way is to browse to it. Go to /api/review-requests/28/reviews/ and find the review you're looking for there. There will be links to the review you care about. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:35 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi, I was just fiddling with the URLs to see what would work. Looks like http://gitdepot:8088/api/review-requests/28/ works. I get some response which contains most of the stuff But http://gitdepot:8088/api/review-requests/28/reviews/28/ gives me a 404. I guess the review is not published then. so I clicked on the Review tab in the topic and then marked it as ship-it and added some comment in the box and hit Publish review. Now post doing that the second request still gives me a 404. I am guessing i got the review id wrong. How do i figure out the review id? Best regards, Vivek On Fri, Mar 18, 2011 at 1:54 PM, Christian Hammond chip...@chipx86.comwrote: Okay, then the API path should be /api/ and not /r/api/. Can you show me exactly what's said when you access /api/ in your browser? It should be an XML file. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:08 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: I am using version 1.5.4. and the site is installed at /var/www/html/ gitreview...com here is a snippet from the conf/settings_local.py # Extra site information. SITE_ID = 1 SITE_ROOT = '/' FORCE_SCRIPT_NAME = '' DEBUG = False Here is the configuration for the virtual host in my httpd.conf file VirtualHost *:8088 ServerName gitdepot...com:8088 DocumentRoot /var/www/html/gitreview...com/htdocs # Error handlers ErrorDocument 500 /errordocs/500.html # Serve django pages Location / PythonPath ['/var/www/html/ gitreview...com/conf'] + sys.path SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings SetEnv PYTHON_EGG_CACHE /var/www/html/ gitreview...com/tmp/egg_cache SetEnv HOME /var/www/html/ gitreview...com/data SetHandler mod_python PythonHandler django.core.handlers.modpython PythonAutoReload Off PythonDebug Off # Used to run multiple mod_python sites in the same apache PythonInterpreter reviewboard_rev___com /Location # Serve static media without running it through mod_python # (overrides the above) Location /media SetHandler None /Location Location /errordocs SetHandler None /Location Directory /var/www/html/gitreview...com/htdocs AllowOverride All /Directory # Alias static media requests to filesystem Alias /media /var/www/html/ gitreview...com/htdocs/media Alias /errordocs /var/www/html/ gitreview...com/htdocs/errordocs /VirtualHost Best regards, Vivek On Fri, Mar 18, 2011 at 1:32 PM, Christian Hammond chip...@chipx86.com wrote: A broken link message? So, what is the root of the Review Board install? Also, what version of Review Board? I think I need to know those before I can really dive into this more. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:01 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi Christian, I tried both of them http://gitdepot:8088/r/api/review-requests/28/reviews/28/ and http://gitdepot:8088/api/review-requests/28/reviews/28/http://gitdepot:8088/r/api/review-requests/28/reviews/28/ I get a 404 with the first one (as served by the ReviewBoard) and with the second a broken link message on my browser (i was using
Re: Problem using the webapi
I think I figured it out and it seems to be working for me now: If i got to http://gitdepot:8088/api/review-requests/28/reviews/ http://gitdepot:8088/api/review-requests/28/reviews/I get a bunch of the reviews that are associated with that review-request and in the links there i get hold of the review_id. I think the field 0/1 right after the comment would be the ship-it status. Thanks again. Best regards, Vivek On Fri, Mar 18, 2011 at 2:07 PM, Christian Hammond chip...@chipx86.comwrote: Best way is to browse to it. Go to /api/review-requests/28/reviews/ and find the review you're looking for there. There will be links to the review you care about. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:35 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi, I was just fiddling with the URLs to see what would work. Looks like http://gitdepot:8088/api/review-requests/28/ works. I get some response which contains most of the stuff But http://gitdepot:8088/api/review-requests/28/reviews/28/ gives me a 404. I guess the review is not published then. so I clicked on the Review tab in the topic and then marked it as ship-it and added some comment in the box and hit Publish review. Now post doing that the second request still gives me a 404. I am guessing i got the review id wrong. How do i figure out the review id? Best regards, Vivek On Fri, Mar 18, 2011 at 1:54 PM, Christian Hammond chip...@chipx86.comwrote: Okay, then the API path should be /api/ and not /r/api/. Can you show me exactly what's said when you access /api/ in your browser? It should be an XML file. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:08 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: I am using version 1.5.4. and the site is installed at /var/www/html/ gitreview...com here is a snippet from the conf/settings_local.py # Extra site information. SITE_ID = 1 SITE_ROOT = '/' FORCE_SCRIPT_NAME = '' DEBUG = False Here is the configuration for the virtual host in my httpd.conf file VirtualHost *:8088 ServerName gitdepot...com:8088 DocumentRoot /var/www/html/gitreview...com/htdocs # Error handlers ErrorDocument 500 /errordocs/500.html # Serve django pages Location / PythonPath ['/var/www/html/ gitreview...com/conf'] + sys.path SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings SetEnv PYTHON_EGG_CACHE /var/www/html/ gitreview...com/tmp/egg_cache SetEnv HOME /var/www/html/gitreview...com/data SetHandler mod_python PythonHandler django.core.handlers.modpython PythonAutoReload Off PythonDebug Off # Used to run multiple mod_python sites in the same apache PythonInterpreter reviewboard_rev___com /Location # Serve static media without running it through mod_python # (overrides the above) Location /media SetHandler None /Location Location /errordocs SetHandler None /Location Directory /var/www/html/gitreview...com/htdocs AllowOverride All /Directory # Alias static media requests to filesystem Alias /media /var/www/html/ gitreview...com/htdocs/media Alias /errordocs /var/www/html/ gitreview...com/htdocs/errordocs /VirtualHost Best regards, Vivek On Fri, Mar 18, 2011 at 1:32 PM, Christian Hammond chip...@chipx86.com wrote: A broken link message? So, what is the root of the Review Board install? Also, what version of Review Board? I think I need to know those before I can really dive into this more. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Fri, Mar 18, 2011 at 1:01 AM, Vivek Subramanian subramanian.vi...@gmail.com wrote: Hi Christian, I tried both of them http://gitdepot:8088/r/api/review-requests/28/reviews/28/ and http://gitdepot:8088/api/review-requests/28/reviews/28/http://gitdepot:8088/r/api/review-requests/28/reviews/28/ I get a 404 with the first one (as served by the ReviewBoard) and with the second a broken link message on my browser (i was using chrome). With wget i get 404 with both. Both the review and the review request are published. And I own that review. Best regards, Vivek On Fri, Mar 18, 2011 at 1:11 PM, Christian Hammond chip...@chipx86.com wrote: Hi Vivek, Am I right in assuming that the root of your Review