2033: System is broken after clicking save in "File Storage"

philipp*******@gmai***** (Google Code) (Is this you? Claim this profile.)
March 21, 2011
1888
I think this issue is critical because you can destroy Review Board installation with just one click :-(

* NOTE: Do not post confidential information in this bug report. *
*       If you need immediate support, please contact            *
*       reviewboard@googlegroups.com                             *

What version are you running?
1.5.4

What's the URL of the page containing the problem?
https://reviewboard.netviewer-it.net/admin/settings/storage/

What steps will reproduce the problem?
1. Go to Settings / File Storage
2. Do not change anything. "host file system" is active.
3. Just click save.


What is the expected output? What do you see instead?
Expected: System continues to work as before.
Problem: Installation is corrupted. Error 500 on all pages. Login not possible any longer.

What operating system are you using? What browser?
Debian 6. Chrome.

Please provide any additional information below.
I found out that the database is changed when clicking on save. This change leads to error log below. I attached the diff of the database.

Here's a log.

Django] Error (EXTERNAL IP): /

Traceback (most recent call last):

 File "/usr/local/lib/python2.6/dist-packages/Django-1.2.5-py2.6.egg/django/core/handlers/base.py", line 80, in get_response
   response = middleware_method(request)

 File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.5.4-py2.6.egg/reviewboard/admin/middleware.py", line 22, in process_request
   load_site_config()

 File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.5.4-py2.6.egg/reviewboard/admin/siteconfig.py", line 251, in load_site_config
   settings.AWS_CALLING_FORMAT = int(siteconfig.get('aws_calling_format'))

ValueError: invalid literal for int() with base 10: ''


<ModPythonRequest
path:/,
GET:<QueryDict: {}>,
POST:<QueryDict: {}>,
COOKIES:{'csrftoken': '9fd73e490bbc7deb4080213e36bc89f7',
'rbsessionid': '276be5afe69fbdcd0e9c6d42de8e9bd0'},
META:{'AUTH_TYPE': None,
'CONTENT_LENGTH': 0,
'CONTENT_TYPE': None,
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': 'application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, */*',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'de-DE',
'HTTP_CONNECTION': 'Keep-Alive',
'HTTP_COOKIE': 'rbsessionid=276be5afe69fbdcd0e9c6d42de8e9bd0; csrftoken=9fd73e490bbc7deb4080213e36bc89f7',
'HTTP_HOST': 'reviewboard.netviewer-it.net',
'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)',
'PATH_INFO': u'/',
'PATH_TRANSLATED': None,
'QUERY_STRING': None,
'REMOTE_ADDR': '10.10.1.89',
'REMOTE_HOST': None,
'REMOTE_IDENT': None,
'REMOTE_USER': None,
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': '',
'SERVER_NAME': 'reviewboard.netviewer-it.net',
'SERVER_PORT': 443,
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'mod_python'}>
1356c1356
< INSERT INTO `siteconfig_siteconfiguration` VALUES (1,1,'1.5.4','{\"mail_host_password\": \"\", \"cache_backend\": \"memcached://localhost:11211/\", \"aws_s3_secure_urls\": false, \"site_upload_temp_dir\": null, \"locale_datetime_format\": \"N j, Y, P\", \"aws_querystring_expire\": 60, \"auth_x509_username_regex\": \"\", \"auth_ldap_tls\": false, \"mail_host_user\": \"\", \"auth_ad_use_tls\": false, \"cache_expiration_time\": 2592000, \"locale_year_month_format\": \"F Y\", \"auth_ldap_uid_mask\": \"uid=%s,ou=users,dc=example,dc=com\", \"mail_server_address\": \"root@localhost\", \"auth_ldap_uri\": \"\", \"diffviewer_context_num_lines\": 5, \"diffviewer_paginate_orphans\": 10, \"site_upload_max_memory_size\": 2621440, \"auth_registration_show_captcha\": false, \"mail_send_review_mail\": true, \"aws_access_key_id\": \"\", \"diffviewer_syntax_highlighting_threshold\": null, \"aws_headers\": {}, \"site_media_root\": \"/var/www/reviewboard.netviewer-it.net/htdocs/media\", \"couch
david
#1 david