Hello there,

I installed ReviewBoard for a demo in my company, when I tried to declare 
an smtp email server, with a specific password (a paste from windows to 
UNIX added an infortunate \u200b char at the end of my password, crashing 
Python scripts...

I would like to reset the user/password or any field via the prompt line on 
my server, but I cannot find any file where the variables EMAIL_HOST_USER 
or EMAIL_HOST_PASSWORD are defined.
 
Thanks in advance for your help !

PS : I get this exception :

UnicodeEncodeError at /admin/db/auth/user/

'ascii' codec can't encode character u'\u200b' in position 8: ordinal not in 
range(128)

Request Method:GETRequest URL:http://172.16.25.209/admin/db/auth/user/Django 
Version:1.4.10Exception Type:UnicodeEncodeErrorException Value:

'ascii' codec can't encode character u'\u200b' in position 8: ordinal not in 
range(128)

Exception 
Location:/usr/local/lib/python2.7/dist-packages/Djblets-0.7.28-py2.7.egg/djblets/siteconfig/django_settings.py
 
in apply_django_settings, line 205Python Executable:/usr/bin/pythonPython 
Version:2.7.3Python Path:

['/var/www/reviewboard/conf',
 '/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/recaptcha_client-1.0.6-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/pytz-2013.9-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/python_memcached-1.53-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/python_dateutil-1.5-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Pygments-1.6-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/paramiko-1.12.2-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/mimeparse-0.1.3-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Markdown-2.4-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/docutils-0.11-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_pipeline-1.2.24-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Djblets-0.7.28-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_evolution-0.6.9-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Django-1.4.10-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/ecdsa-0.10-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/pycrypto-2.6.1-py2.7-linux-x86_64.egg',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PIL',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7']

Server time:Tue, 25 Feb 2014 12:33:56 +0000
Unicode error hint

The string that could not be encoded/decoded was: *?PdhW​*
Traceback Switch to copy-and-paste 
view<http://172.16.25.209/admin/db/auth/user/#>

   - 
   
/usr/local/lib/python2.7/dist-packages/Django-1.4.10-py2.7.egg/django/core/handlers/base.py
    in get_response
   1. 
      
                          response = middleware_method(request)
      
      ...
   ▶ Local vars <http://172.16.25.209/admin/db/auth/user/#>
   - 
   
/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/admin/middleware.py
    in process_request
   1. 
      
              load_site_config()
      
      ...
   ▼ Local vars <http://172.16.25.209/admin/db/auth/user/#>
   VariableValueself
   
   <reviewboard.admin.middleware.LoadSettingsMiddleware object at 
0x7f6ebce03490>
   
   request
   
   '<ModPythonRequest\npath:/admin/db/auth/user/,\nGET:<QueryDict: 
{}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{\'csrftoken\': 
\'tYOBXU9wwpNKcnzJ50QZItCSLXpbM0QE\',\n \'messages\': 
\'c9d17e8c1907c7c6ea016a2c7ce309d36981ed86$[["__json_message",20,"The user 
\\\\"ac.femia\\\\" was added successfully. You may add another user 
below."],["__json_message",20,"The user \\\\"p.jullin\\\\" was added 
successfully. You may edit it again below."],["__json_message",20,"The review 
group \\\\"PDM\\\\" was changed successfully."],["__json_message",20,"The user 
\\\\"s.bennetau\\\\" was added successfully. You may edit it again 
below."],["__json_message",20,"The review group \\\\"PDM\\\\" was changed 
successfully."],["__json_message",20,"The user \\\\"m.sinama-pongolle-ex\\\\" 
was added successfully. You may edit it again 
below."],["__json_message",20,"The review group \\\\"PDM\\\\" was changed 
successfully."]]\',\n \'rbsessionid\': 
\'7201e22ee250877308336bee3962d5ec\'},\nMETA:{\'AUTH_TYPE\': None,\n 
\'CONTENT_LENGTH\': 0,\n \'CONTENT_TYPE\': None,\n \'GATEWAY_INTERFACE\': 
\'CGI/1.1\',\n \'HTTP_ACCEPT\': 
\'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\',\n
 \'HTTP_ACCEPT_ENCODING\': \'gzip,deflate,sdch\',\n \'HTTP_ACCEPT_LANGUAGE\': 
\'fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4\',\n \'HTTP_CONNECTION\': 
\'keep-alive\',\n \'HTTP_COOKIE\': 
\'rbsessionid=7201e22ee250877308336bee3962d5ec; 
messages="c9d17e8c1907c7c6ea016a2c7ce309d36981ed86$[[\\\\"__json_message\\\\"\\\\05420\\\\054\\\\"The
 user \\\\\\\\\\\\"ac.femia\\\\\\\\\\\\" was added successfully. You may add 
another user 
below.\\\\"]\\\\054[\\\\"__json_message\\\\"\\\\05420\\\\054\\\\"The user 
\\\\\\\\\\\\"p.jullin\\\\\\\\\\\\" was added successfully. You may edit it 
again below.\\\\"]\\\\054[\\\\"__json_message\\\\"\\\\05420\\\\054\\\\"The 
review group \\\\\\\\\\\\"PDM\\\\\\\\\\\\" was changed 
successfully.\\\\"]\\\\054[\\\\"__json_message\\\\"\\\\05420\\\\054\\\\"The 
user \\\\\\\\\\\\"s.bennetau\\\\\\\\\\\\" was added successfully. You may edit 
it again below.\\\\"]\\\\054[\\\\"__json_message\\\\"\\\\05420\\\\054\\\\"The 
review group \\\\\\\\\\\\"PDM\\\\\\\\\\\\" was changed 
successfully.\\\\"]\\\\054[\\\\"__json_message\\\\"\\\\05420\\\\054\\\\"The 
user \\\\\\\\\\\\"m.sinama-pongolle-ex\\\\\\\\\\\\" was added successfully. You 
may edit it again 
below.\\\\"]\\\\054[\\\\"__json_message\\\\"\\\\05420\\\\054\\\\"The review 
group \\\\\\\\\\\\"PDM\\\\\\\\\\\\" was changed successfully.\\\\"]]"; 
csrftoken=tYOBXU9wwpNKcnzJ50QZItCSLXpbM0QE\',\n \'HTTP_HOST\': 
\'172.16.25.209\',\n \'HTTP_IF_MODIFIED_SINCE\': \'Tue, 25 Feb 2014 09:31:05 
GMT\',\n \'HTTP_USER_AGENT\': \'Mozilla/5.0 (Windows NT 6.1; WOW64) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36\',\n 
\'PATH_INFO\': u\'/admin/db/auth/user/\',\n \'PATH_TRANSLATED\': None,\n 
\'QUERY_STRING\': None,\n \'REMOTE_ADDR\': \'172.16.25.91\',\n \'REMOTE_HOST\': 
None,\n \'REMOTE_IDENT\': None,\n \'REMOTE_USER\': None,\n \'REQUEST_METHOD\': 
\'GET\',\n \'SCRIPT_NAME\': \'\',\n \'SERVER_NAME\': \'localhost\',\n 
\'SERVER_PORT\': 80,\n \'SERVER_PROTOCOL\': \'HTTP/1.1\',\n 
\'SERVER_SOFTWARE\': \'mod_python\'}>'
   
   - 
   
/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/admin/siteconfig.py
    in load_site_config
   1. 
      
          apply_django_settings(siteconfig, settings_map)
      
      ...
   ▼ Local vars <http://172.16.25.209/admin/db/auth/user/#>
   VariableValuesite_media_root
   
   u'/var/www/reviewboard/htdocs/media'
   
   site_static_root
   
   u'/var/www/reviewboard/htdocs/static'
   
   mail_default_from
   
   u'nore...@lectra-reviewboard.com'
   
   apply_setting
   
   <function apply_setting at 0x7f6ebcdba758>
   
   siteconfig
   
   <SiteConfiguration: localhost (version 1.7.21)>
   
   site_media_url
   
   u'/media/'
   
   site_static_url
   
   u'/static/'
   
   - 
   
/usr/local/lib/python2.7/dist-packages/Djblets-0.7.28-py2.7.egg/djblets/siteconfig/django_settings.py
    in apply_django_settings
   1. 
      
                      setting_key = setting_data['key']
      
      2. 
      
      3. 
      
                      if 'setter' in setting_data:
      
      4. 
      
                          setter = setting_data['setter']
      
      5. 
      
      6. 
      
                      if ('deserialize_func' in setting_data and
      
      7. 
      
                          callable(setting_data['deserialize_func'])):
      
      1. 
      
                          value = setting_data['deserialize_func'](value)
      
      ...
   1. 
      
                  else:
      
      2. 
      
                      setting_key = setting_data
      
      3. 
      
      4. 
      
                  setter(settings, setting_key, value)
      
      ▼ Local vars <http://172.16.25.209/admin/db/auth/user/#>
   VariableValuesetter
   
   <built-in function setattr>
   
   siteconfig
   
   <SiteConfiguration: localhost (version 1.7.21)>
   
   settings_map
   
   {'auth_ad_domain_controller': 'AD_DOMAIN_CONTROLLER',
    'auth_ad_domain_name': 'AD_DOMAIN_NAME',
    'auth_ad_find_dc_from_dns': 'AD_FIND_DC_FROM_DNS',
    'auth_ad_group_name': 'AD_GROUP_NAME',
    'auth_ad_ou_name': 'AD_OU_NAME',
    'auth_ad_recursion_depth': 'AD_RECURSION_DEPTH',
    'auth_ad_search_root': 'AD_SEARCH_ROOT',
    'auth_ad_use_tls': 'AD_USE_TLS',
    'auth_ldap_anon_bind_passwd': 'LDAP_ANON_BIND_PASSWD',
    'auth_ldap_anon_bind_uid': 'LDAP_ANON_BIND_UID',
    'auth_ldap_base_dn': 'LDAP_BASE_DN',
    'auth_ldap_email_attribute': 'LDAP_EMAIL_ATTRIBUTE',
    'auth_ldap_email_domain': 'LDAP_EMAIL_DOMAIN',
    'auth_ldap_full_name_attribute': 'LDAP_FULL_NAME_ATTRIBUTE',
    'auth_ldap_given_name_attribute': 'LDAP_GIVEN_NAME_ATTRIBUTE',
    'auth_ldap_surname_attribute': 'LDAP_SURNAME_ATTRIBUTE',
    'auth_ldap_tls': 'LDAP_TLS',
    'auth_ldap_uid_mask': 'LDAP_UID_MASK',
    'auth_ldap_uri': 'LDAP_URI',
    'auth_nis_email_domain': 'NIS_EMAIL_DOMAIN',
    'auth_x509_autocreate_users': 'X509_AUTOCREATE_USERS',
    'auth_x509_username_field': 'X509_USERNAME_FIELD',
    'auth_x509_username_regex': 'X509_USERNAME_REGEX',
    'aws_access_key_id': 'AWS_ACCESS_KEY_ID',
    'aws_calling_format': 'AWS_CALLING_FORMAT',
    'aws_default_acl': 'AWS_DEFAULT_ACL',
    'aws_headers': 'AWS_HEADERS',
    'aws_querystring_active': 'AWS_QUERYSTRING_ACTIVE',
    'aws_querystring_auth': 'AWS_QUERYSTRING_AUTH',
    'aws_querystring_expire': 'AWS_QUERYSTRING_EXPIRE',
    'aws_s3_bucket_name': 'AWS_STORAGE_BUCKET_NAME',
    'aws_s3_secure_urls': 'AWS_S3_SECURE_URLS',
    'aws_secret_access_key': 'AWS_SECRET_ACCESS_KEY',
    'cache_backend': {'key': 'CACHES',
                      'setter': <function _set_cache_backend at 
0x7f6ebbf035f0>},
    'cache_expiration_time': 'CACHE_EXPIRATION_TIME',
    'couchdb_default_server': 'COUCHDB_DEFAULT_SERVER',
    'couchdb_storage_options': 'COUCHDB_STORAGE_OPTIONS',
    'locale_date_format': 'DATE_FORMAT',
    'locale_datetime_format': 'DATETIME_FORMAT',
    'locale_default_charset': {'deserialize_func': <type 'str'>,
                               'key': 'DEFAULT_CHARSET'},
    'locale_language_code': 'LANGUAGE_CODE',
    'locale_month_day_format': 'MONTH_DAY_FORMAT',
    'locale_time_format': 'TIME_FORMAT',
    'locale_timezone': {'deserialize_func': <type 'str'>,
                        'key': 'TIME_ZONE',
                        'setter': <function _set_timezone at 0x7f6ebbf036e0>},
    'locale_year_month_format': 'YEAR_MONTH_FORMAT',
    'logging_allow_profiling': 'LOGGING_ALLOW_PROFILING',
    'logging_directory': 'LOGGING_DIRECTORY',
    'logging_enabled': 'LOGGING_ENABLED',
    'logging_level': 'LOGGING_LEVEL',
    'mail_default_from': 'DEFAULT_FROM_EMAIL',
    'mail_host': 'EMAIL_HOST',
    'mail_host_password': {'deserialize_func': <type 'str'>,
                           'key': 'EMAIL_HOST_PASSWORD'},
    'mail_host_user': {'deserialize_func': <type 'str'>,
                       'key': 'EMAIL_HOST_USER'},
    'mail_port': 'EMAIL_PORT',
    'mail_server_address': 'SERVER_EMAIL',
    'mail_use_tls': 'EMAIL_USE_TLS',
    'site_domain_method': 'DOMAIN_METHOD',
    'site_media_root': 'MEDIA_ROOT',
    'site_media_url': 'MEDIA_URL',
    'site_prepend_www': 'PREPEND_WWW',
    'site_static_root': 'STATIC_ROOT',
    'site_static_url': {'key': 'STATIC_URL',
                        'setter': <function _set_static_url at 0x7f6ebbf03668>},
    'site_upload_max_memory_size': 'FILE_UPLOAD_MAX_MEMORY_SIZE',
    'site_upload_temp_dir': 'FILE_UPLOAD_TEMP_DIR'}
   
   value
   
   u'9+1?PdhW\u200b'
   
   key
   
   'mail_host_password'
   
   setting_key
   
   'EMAIL_HOST_PASSWORD'
   
   setting_data
   
   {'deserialize_func': <type 'str'>, 'key': 'EMAIL_HOST_PASSWORD'}
   
   

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to