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

New issue 1821 by sskrasnov: Error during uploading updated diff

*NOTE: Do not post confidential information in this bug report.*

What version are you running?

1.0.9 (updated from

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

Its confidentional information.

What steps will reproduce the problem?

1. Create some review.
2. Try to update diff with new patch (used update Diff button)

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

I expect to see updated diff info.
Instead of that I see error message on top of diff screen with text
Saving the form failed due to a server error: 0 n/a
Please try again later. If this continues to happen, please report it to your administrator." If I try to view details, Review Board show me screen with text "Something broke! (Error 500)".

What operating system are you using? What browser?

Windows XP
Firefox 3.6.9

Please provide any additional information below.

memcached restarted after Review Board update, used new installation of browser with clean cache.

Possible it same bug with next issue:

I can not provide patches before and after update, its confidentional information.

I can provide error logs with removed confidentional info:

ERROR:root:Exception thrown for user [confidentional] at http://[confidentional]/api/json/reviewrequests/2279/diff/new/

3516L is not XML serializable
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/core/handlers/", line 92, in get_respon
    response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/views/decorators/", line 45, in _wrapp
File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/utils/", line 119, in add_never_cache_
    patch_response_headers(response, cache_timeout=-1)
File "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/utils/", line 108, in patch_response_h
response['ETag'] = '"%s"' % md5_constructor(response.content).hexdigest() File "/usr/lib/python2.4/site-packages/Djblets-0.6.4-py2.4.egg/djblets/webapi/", line 273, in _get_content
    content = adapter.encode(self.api_data, request=self.request)
File "/usr/lib/python2.4/site-packages/Djblets-0.6.4-py2.4.egg/djblets/webapi/", line 119, in encode
    self.__encode(o, *args, **kwargs)
File "/usr/lib/python2.4/site-packages/Djblets-0.6.4-py2.4.egg/djblets/webapi/", line 136, in __encode
    self.__encode(value, *args, **kwargs)
File "/usr/lib/python2.4/site-packages/Djblets-0.6.4-py2.4.egg/djblets/webapi/", line 162, in __encode
    raise TypeError("%r is not XML serializable" % (o,))
TypeError: 3516L is not XML serializable

GET:<QueryDict: {}>,
POST:<QueryDict: {u'parent_diff_path': [u''], u'dummy': [u''], u'basedir': [u'[confidentional]']}>,
COOKIES:{'collapsediffs': 'True',
 'rbsessionid': '5a49c7c15879f3778032e122f42b66cb',
 's_cc': 'true',
 's_sq': '%5B%5BB%5D%5D'},
 'CONTENT_LENGTH': '60278',
'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------16216314501615',
 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.7',
 'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
 'HTTP_CONNECTION': 'keep-alive',
'HTTP_CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------16216314501615', 'HTTP_COOKIE': 'rbsessionid=5a49c7c15879f3778032e122f42b66cb; s_sq=%5B%5BB%5D%5D; s_cc=true; collapsediffs=True',
 'HTTP_HOST': '[confidentional]',
 'HTTP_KEEP_ALIVE': '115',
 'HTTP_REFERER': 'http://[confidentional]/r/2279/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv: Gecko/20100824 Firefox/3.6.9 ( .NET CLR 3.5.30729)',
 'PATH_INFO': u'/api/json/reviewrequests/2279/diff/new/',
 'REMOTE_ADDR': '[confidentional]',
 'SERVER_NAME': '[confidentional]',
 'SERVER_SOFTWARE': 'mod_python'}>

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