500 error when saving a profile

XMLWordPrintable

    • Severity 3 - Minor

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.

      To replicate this, edit and save your profile.

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

      Traceback (most recent call last):

      File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/core/handlers/base.py", line 100, in get_response
      response = callback(request, *callback_args, **callback_kwargs)

      File "/opt/python/domains/atlassian.com/answers/ADM-19602/forum/views/users.py", line 159, in edit_user
      user.date_of_birth = sanitize_html(form.cleaned_data['birthday'])

      File "/opt/python/domains/atlassian.com/answers/ADM-19602/forum/utils/html.py", line 43, in sanitize_html
      html = html.replace('<![CDATA[', '<![CDATA[')

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

      <WSGIRequest
      GET:<QueryDict: {}>,
      POST:<QueryDict:

      {u'username': [u'Dennis Benzinger [hybris GmbH]'], u'website': [u'http://www.hybris.com'], u'about': [u''], u'icon_type': [u'gravatar'], u'organisation': [u'hybris GmbH'], u'city': [u''], u'csrfmiddlewaretoken': [u'3126b0e2ef79ffd9caaee2e926149c7b'], u'email': [u'dennis.benzinger@hybris.de'], u'icon': [u'']}

      >,
      COOKIES:

      {'__utma': '215707591.1838191887.1311239572.1323796393.1326188853.45', '__utmb': '215707591.6.10.1326188853', '__utmc': '215707591', '__utmv': '80426056.|1=ft=google!organic!mod_jk-mod_proxy_ajp!!organic=1', '__utmz': '215707591.1323695798.43.38.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=jira%205.0%20rc%202%20plugin%20manager', 'atl_eula_30_agreed': 'true', 'csrftoken': '3126b0e2ef79ffd9caaee2e926149c7b', 'sessionid': '88944e482cfbf4dcb4b502bbe4e2ccd9'}

      ,
      META:

      {'CONTENT_LENGTH': '1251', 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------1406641500959948462056335507', 'CSRF_COOKIE': '3126b0e2ef79ffd9caaee2e926149c7b', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CONNECTION': 'close', 'HTTP_COOKIE': '__utma=80426056.127432726.1325761196.1326127994.1326188853.9; __utmz=80426056.1325782009.3.2.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=mod_jk%20mod_proxy_ajp; atl_eula_30_agreed=true; __utma=215707591.1838191887.1311239572.1323796393.1326188853.45; __utmz=215707591.1323695798.43.38.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=jira%205.0%20rc%202%20plugin%20manager; __utmv=215707591.|1=ft=google!organic!visibility-plugin!!organic=1; csrftoken=3126b0e2ef79ffd9caaee2e926149c7b; __utmv=80426056.|1=ft=google!organic!mod_jk-mod_proxy_ajp!!organic=1; sessionid=88944e482cfbf4dcb4b502bbe4e2ccd9; __utmb=80426056.6.10.1326188853; __utmc=80426056; __utmb=215707591.6.10.1326188853; __utmc=215707591', 'HTTP_HOST': 'answers.atlassian.com', 'HTTP_REFERER': 'https://answers.atlassian.com/users/983/edit/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 Iceweasel/9.0.1', 'HTTP_X_FORWARDED_FOR': '213.61.77.202, 172.16.3.45', 'HTTP_X_REAL_IP': '213.61.77.202', 'PATH_INFO': u'/users/983/edit/', 'QUERY_STRING': '', 'RAW_URI': '/users/983/edit/', 'REMOTE_ADDR': '172.16.3.45', 'REMOTE_PORT': '80', 'REQUEST_METHOD': 'POST', 'SCRIPT_NAME': u'', 'SERVER_NAME': 'answers.atlassian.com', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'SERVER_SOFTWARE': 'gunicorn/0.12.0', 'gunicorn.socket': <socket._socketobject object at 0x7d1abb0>, 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x2ba9c01c51e0>, 'wsgi.input': <gunicorn.http.body.Body object at 0x7bc50d0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}

      >

            Assignee:
            eternicode
            Reporter:
            Jeremy Largman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: