3450: Successful delete calls made through API throw ValueError

jtucho******@gmai***** (Google Code) (Is this you? Claim this profile.)
david
david
July 11, 2014
3646
What version are you running?
ReviewBoard 1.5, RBTools 0.6

What's the URL of the page containing the problem?
Confidential, cannot disclose

What steps will reproduce the problem?
1. Start up a python repl
2. Run the code below
rom rbtools.api.client import RBClient
# withholding server, username, and password for security reasons
client = RBClient('**************', username='******************', password='**************')
root = client.get_root()
repo_to_delete = root.get_repository(repository_id = ******)

What is the expected output? What do you see instead?
Expected: HTTP response confirming deletion
Instead:
*******************************************************
File "<stdin>", line 1, in <module>
  File "/opt/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/RBTools-0.6.1-py2.7.egg/rbtools/api/resource.py", line 130, in <lambda>
    meth(resource, **kwargs)))
  File "/opt/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/RBTools-0.6.1-py2.7.egg/rbtools/api/decorators.py", line 24, in request_method
    *args, **kwargs)
  File "/opt/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/RBTools-0.6.1-py2.7.egg/rbtools/api/transport/sync.py", line 61, in execute_request_method
    return self._execute_request(request)
  File "/opt/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/RBTools-0.6.1-py2.7.egg/rbtools/api/transport/sync.py", line 75, in _execute_request
    payload = decode_response(payload, mime_type)
  File "/opt/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/RBTools-0.6.1-py2.7.egg/rbtools/api/decode.py", line 49, in decode_response
    return decoder(payload)
  File "/opt/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/RBTools-0.6.1-py2.7.egg/rbtools/api/decode.py", line 29, in JsonDecoder
    return json.loads(payload)
  File "/opt/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/opt/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/opt/Cellar/python/2.7.7_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
*******************************************************
What operating system are you using? What browser?
Mac OS X, Chrome

Please provide any additional information below.
The deletion is successful, but ValueError is thrown.
david
#1 david
  • +Component-RBTools
    +Project-RBTools
david
#2 david
  • +PendingReview
  • +david
david
#3 david
Fixed in release-0.6.x (da7624b). Thanks!
  • -PendingReview
    +Fixed