Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 914 by ciaomary: API Broken Alpha2: api/json/reviewrequests/<rid>/reviews/ http://code.google.com/p/reviewboard/issues/detail?id=914
Making a request for reviews using the API results in the an exception. Full debug stack trace and post request provided below. This worked just fine prior to our upgrading to ReviewBoard Alpha ***** POST REQUEST **** POST https://reviewboard/api/json/reviewrequests/2938/reviews/ Content-Length: 0 Content-Type: multipart/form-data; boundary=none ****** DEBUG STACK TRACE ***** Environment: Request Method: POST Request URL: https://reviewboard/api/json/reviewrequests/2938/reviews/ Django Version: 1.0.2 final Python Version: 2.4.3 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.markup', 'django.contrib.sites', 'django.contrib.sessions', 'djblets.datagrid', 'djblets.feedview', 'djblets.siteconfig', 'djblets.util', 'djblets.webapi', 'reviewboard.accounts', 'reviewboard.admin', 'reviewboard.changedescs', 'reviewboard.diffviewer', 'reviewboard.iphone', 'reviewboard.reports', 'reviewboard.reviews', 'reviewboard.scmtools', 'reviewboard.webapi', 'django_evolution'] Installed Middleware: ('django.middleware.gzip.GZipMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.doc.XViewMiddleware', 'django.middleware.http.ConditionalGetMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'djblets.siteconfig.middleware.SettingsMiddleware', 'reviewboard.admin.middleware.LoadSettingsMiddleware', 'djblets.log.middleware.LoggingMiddleware', 'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware') Traceback: File "/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/handlers/base.py" in get_response 86. response = callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/views/decorators/cache.py" in _wrapped_view_func 44. response = view_func(request, *args, **kwargs) File "/usr/lib/python2.4/site-packages/Djblets-0.5alpha2-py2.4.egg/djblets/webapi/decorators.py" in _checklogin 32. response = view_func(request, *args, **kwargs) File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha2-py2.4.egg/reviewboard/webapi/json.py" in review_list 619. return WebAPIResponse(request, { File "/usr/lib/python2.4/site-packages/Djblets-0.5alpha2-py2.4.egg/djblets/webapi/core.py" in __init__ 186. if request.FILES: File "/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/handlers/modpython.py" in _get_files 129. self._load_post_and_files() File "/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/core/handlers/modpython.py" in _load_post_and_files 87. self._post, self._files = self.parse_file_upload(self.META, self._req) File "/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/http/__init__.py" in parse_file_upload 123. parser = MultiPartParser(META, post_data, self.upload_handlers, self.encoding) File "/usr/lib/python2.4/site-packages/Django-1.0.2_final-py2.4.egg/django/http/multipartparser.py" in __init__ 82. raise MultiPartParserError("Invalid content length: %r" % content_length) Exception Type: MultiPartParserError at /api/json/reviewrequests/2938/reviews/ Exception Value: Invalid content length: 0 -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "reviewboard-issues" group. To post to this group, send email to reviewboard-issues@googlegroups.com To unsubscribe from this group, send email to reviewboard-issues+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard-issues?hl=en -~----------~----~----~----~------~----~------~--~---