Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3450 by jtuchols...@gmail.com: Successful delete calls made through API throw ValueError
http://code.google.com/p/reviewboard/issues/detail?id=3450

*** READ THIS BEFORE POSTING!
***
*** You must complete this form in its entirety, or your bug report will be
*** rejected.
***
*** If you have a security issue to report, please send it confidentially
to
*** secur...@reviewboard.org. Posting security-related issues to this bug
*** tracker causes us to have to do an emergency release.
***
*** For customer support, please post to reviewbo...@googlegroups.com
***
*** If you have a patch, please submit it to
http://reviews.reviewboard.org/
***
*** This bug tracker is public. Please check that any logs or other
information
*** that you include has been stripped of confidential information.


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.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.

Reply via email to