3621: Review Board Web API: error on GET draft

Taras*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Dec. 12, 2014
What version are you running?
1.7.17

What's the URL of the page containing the problem?
https://{my-server}/{my-repo}/api/review-requests/43/draft/

What steps will reproduce the problem?
1. GET draft method of rbtools api
2.
3.

What is the expected output? What do you see instead?
When I try to get draft using rbtools api, I receive error: "rbtools.api.errors.APIError: Object does not exist (HTTP 404, API Error 100)". 

What operating system are you using? What browser?
Windows 7, Chrome 36.0.1985.143, IE8.

Please provide any additional information below.
david
#1 david
Are you sure that there's a draft for that review request, owned by the user that you're connecting as?
  • +NeedInfo
chipx86
#2 chipx86
It's totally fine for that resource to return a 404. That means there's no draft. It's then up to the caller to check for this and create one if needed.
david
#3 david
  • -NeedInfo
    +NotABug