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

New issue 2280 by robert.munteanu: API: failure to update review request: AttributeError: 'NoneType' object has no attribute 'startswith'

What version are you running?


What's the URL of the page containing the problem?


What steps will reproduce the problem?
1. Post an update to the mentioned URL to change the status to 'submitted'.
2. An HTML page is returned (problem #1) and then the operation fails (problem #2)

What is the expected output? What do you see instead?

I would expect the operation to succeed and return a JSON reponses. Instead, it fails and returns a HTML page. I am not sure if this worked with 1.6.0, but it did work just fine with 1.5.x .

Please find the error email below

Traceback (most recent call last):

File "/usr/local/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/core/handlers/", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/views/decorators/", line 79, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)

File "/usr/local/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/views/decorators/", line 22, in inner_func
    response = func(*args, **kwargs)

File "/usr/local/lib/python2.6/site-packages/Djblets-0.6.11-py2.6.egg/djblets/webapi/", line 321, in __call__

File "/usr/local/lib/python2.6/site-packages/Django-1.3.1-py2.6.egg/django/http/", line 270, in _load_post_and_files
    if self.META.get('CONTENT_TYPE', '').startswith('multipart'):

AttributeError: 'NoneType' object has no attribute 'startswith'

GET:<QueryDict: {}>,
POST:<could not parse>,
COOKIES:{'rbsessionid': 'c09025ef7ebf4ad73b6a2b4916cf0868'},
'HTTP_COOKIE': '$Version=0; rbsessionid=c09025ef7ebf4ad73b6a2b4916cf0868; $Path=/reviewboard/',
 'HTTP_HOST': '',
'HTTP_USER_AGENT': 'Mylyn/3.6.0 eReviewBoard Eclipse/3.7.0 (org.eclipse.epp.package.jee.product) HttpClient/3.1 Java/1.6.0_26 (Sun) Linux/ (amd64; en_US)',
 'PATH_INFO': u'/reviewboard/api/review-requests/930/',
 'SERVER_SOFTWARE': 'mod_python'}>

What operating system are you using? What browser?

RB is hosted on Linux SLES 11 , x86.
Please provide any additional information below.

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to