mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 17:36:01 +03:00
[GH-ISSUE #370] not possible to edit users #352
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#352
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/370
Originally assigned to: @tonioo on GitHub.
Originally created by Dalnix AB on 2013-02-20T10:32:42Z
When trying to change password for users we end up with 500 error for the ajax call saving the information.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Dalnix AB on 2013-02-20T10:40:17Z
AttributeError at /admin/accounts/edit/1/
'NoneType' object has no attribute 'group'
Request Method: POST
Request URL: https://83.209.243.166/admin/accounts/edit/1/
Django Version: 1.4.4
Python Executable: /usr/bin/python
Python Version: 2.6.6
Python Path: ['/var/www/mailadmin/mailadmin', '/var/www/mailadmin', '/usr/local/bin', '/usr/local/lib/python2.6/dist-packages/gunicorn-0.17.2-py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages', '/usr/lib/pymodules/python2.6']
Server time: Wed, 20 Feb 2013 04:39:34 -0600
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'south',
'modoboa',
'modoboa.auth',
'modoboa.lib',
'modoboa.admin',
'modoboa.userprefs',
'modoboa.extensions.limits',
'modoboa.extensions.postfix_autoreply',
'modoboa.extensions.webmail',
'modoboa.extensions.stats',
'modoboa.extensions.amavis',
'modoboa.extensions.sievefilters')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'modoboa.lib.middleware.AjaxLoginRedirect',
'modoboa.lib.middleware.CommonExceptionCatcher',
'modoboa.lib.middleware.ExtControlMiddleware')
Traceback:
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py" in get_response
Exception Type: AttributeError at /admin/accounts/edit/1/
Exception Value: 'NoneType' object has no attribute 'group'
Request information:
GET: No GET data
POST:
username = u'admin'
password1 = u'test'
first_name = u''
last_name = u''
is_active = u'on'
password2 = u'test'
quota = u''
role = u'SuperAdmins'
email = u''
aliases = u''
FILES: No FILES data
COOKIES:
sessionid = '014786c8c9df3124e75ec34628fc9aaa'
META:
CONTENT_LENGTH = '120'
HTTP_PRAGMA = 'no-cache'
SERVER_PORT = '443'
HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
SERVER_PROTOCOL = 'HTTP/1.0'
SERVER_SOFTWARE = 'gunicorn/0.17.2'
SCRIPT_NAME = u''
REMOTE_PORT = '80'
wsgi.input = <gunicorn.http.body.Body object at 0x3972750>
REQUEST_METHOD = 'POST'
HTTP_HOST = '83.209.243.166'
PATH_INFO = u'/admin/accounts/edit/1/'
wsgi.multithread = False
QUERY_STRING = ''
HTTP_CONNECTION = 'close'
HTTP_CACHE_CONTROL = 'no-cache'
HTTP_ACCEPT = '/'
HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0'
wsgi.version =
HTTP_REFERER = 'https://83.209.243.166/admin/identities/'
RAW_URI = '/admin/accounts/edit/1/'
REMOTE_ADDR = '83.209.243.222'
wsgi.run_once = False
wsgi.errors = <open file '', mode 'w' at 0x7f959fcd91e0>
wsgi.multiprocess = True
HTTP_ACCEPT_LANGUAGE = 'en-US,en;q=0.5'
HTTP_ACCEPT_ENCODING = 'gzip, deflate'
wsgi.url_scheme = 'https'
gunicorn.socket = <socket._socketobject object at 0x38f7520>
SERVER_NAME = '83.209.243.166'
CONTENT_TYPE = 'application/x-www-form-urlencoded; charset=UTF-8'
HTTP_X_FORWARDED_FOR = '83.209.243.222'
wsgi.file_wrapper = ''
HTTP_X_FORWARDED_PROTOCOL = 'ssl'
HTTP_COOKIE = 'sessionid=014786c8c9df3124e75ec34628fc9aaa'
Settings:
Using settings module mailadmin.settings
USE_L10N = True
USE_THOUSAND_SEPARATOR = False
CSRF_COOKIE_SECURE = False
LANGUAGE_CODE = 'en-us'
ROOT_URLCONF = 'mailadmin.urls'
MANAGERS =
DEFAULT_CHARSET = 'utf-8'
STATIC_ROOT = '/var/www/mailadmin/mailadmin/sitestatic'
ALLOWED_HOSTS = ['']
MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
EMAIL_SUBJECT_PREFIX = '[Django] '
FILE_UPLOAD_PERMISSIONS = None
URL_VALIDATOR_USER_AGENT = 'Django/1.4.4 (https://www.djangoproject.com)'
STATICFILES_FINDERS =
SESSION_COOKIE_DOMAIN = None
SESSION_COOKIE_NAME = 'sessionid'
ADMIN_FOR =
TIME_INPUT_FORMATS =
DATABASES = {'default': {'ENGINE': 'django.db.backends.mysql', 'TEST_MIRROR': None, 'NAME': 'modoboa', 'TEST_CHARSET': None, 'TIME_ZONE': 'UTC', 'TEST_COLLATION': None, 'PORT': '', 'HOST': 'localhost', 'USER': 'modoboa', 'TEST_NAME': None, 'PASSWORD': u'_', 'OPTIONS': {'init_command': 'SET foreign_key_checks = 0;'}}, 'amavis': {'ENGINE': 'django.db.backends.mysql', 'TEST_MIRROR': None, 'NAME': 'amavis', 'TEST_CHARSET': None, 'TIME_ZONE': 'UTC', 'TEST_COLLATION': None, 'PORT': '', 'HOST': 'localhost', 'USER': 'amavis', 'TEST_NAME': None, 'PASSWORD': u'_', 'OPTIONS': {'init_command': 'SET foreign_key_checks = 0;'}}}
SERVER_EMAIL = 'root@localhost'
FILE_UPLOAD_HANDLERS =
DEFAULT_CONTENT_TYPE = 'text/html'
APPEND_SLASH = True
FIRST_DAY_OF_WEEK = 0
DATABASE_ROUTERS = ['modoboa.extensions.amavis.dbrouter.AmavisRouter']
YEAR_MONTH_FORMAT = 'F Y'
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES = {'default': {'LOCATION': '', 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
SESSION_COOKIE_PATH = '/'
USE_X_FORWARDED_HOST = False
MIDDLEWARE_CLASSES =
USE_I18N = True
THOUSAND_SEPARATOR = ','
SECRET_KEY = u'**'
LANGUAGE_COOKIE_NAME = 'django_language'
DEFAULT_INDEX_TABLESPACE = ''
TRANSACTIONS_MANAGED = False
LOGGING_CONFIG = 'django.utils.log.dictConfig'
SEND_BROKEN_LINK_EMAILS = False
TEMPLATE_LOADERS =
WSGI_APPLICATION = 'mailadmin.wsgi.application'
TEMPLATE_DEBUG = True
X_FRAME_OPTIONS = 'SAMEORIGIN'
AUTHENTICATION_BACKENDS = 'modoboa.lib.authbackends.SimpleBackend'
FORCE_SCRIPT_NAME = None
CACHE_BACKEND = 'locmem://'
SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
SESSION_COOKIE_SECURE = False
CSRF_COOKIE_DOMAIN = None
FILE_CHARSET = 'utf-8'
DEBUG = True
SESSION_FILE_PATH = None
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS =
LANGUAGES =
COMMENTS_ALLOW_PROFANITIES = False
STATICFILES_DIRS =
PREPEND_WWW = False
SECURE_PROXY_SSL_HEADER = None
SESSION_COOKIE_HTTPONLY = True
DEBUG_PROPAGATE_EXCEPTIONS = False
MONTH_DAY_FORMAT = 'F j'
LOGIN_URL = '/accounts/login/'
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
MODOBOA_DIR = '/var/www/mailadmin/mailadmin'
TIME_FORMAT = 'P'
DATE_INPUT_FORMATS =
CSRF_COOKIE_NAME = 'csrftoken'
EMAIL_HOST_PASSWORD = u'**'
PASSWORD_RESET_TIMEOUT_DAYS = u'**'
CACHE_MIDDLEWARE_ALIAS = 'default'
SESSION_SAVE_EVERY_REQUEST = False
NUMBER_GROUPING = 0
SESSION_ENGINE = 'django.contrib.sessions.backends.db'
CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
CSRF_COOKIE_PATH = '/'
LOGIN_REDIRECT_URL = '/accounts/profile/'
LOGGING = {'loggers': {'django.request': {'handlers': ['mail_admins'], 'propagate': True, 'level': 'ERROR'}}, 'version': 1, 'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}}
IGNORABLE_404_URLS =
LOCALE_PATHS =
TEMPLATE_STRING_IF_INVALID = ''
LOGOUT_URL = '/accounts/logout/'
EMAIL_USE_TLS = False
FIXTURE_DIRS =
EMAIL_HOST = 'localhost'
DATE_FORMAT = 'N j, Y'
MEDIA_ROOT = '/var/www/mailadmin/mailadmin/media'
DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
ADMINS =
FORMAT_MODULE_PATH = None
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
MEDIA_URL = '/media/'
DATETIME_FORMAT = 'N j, Y, P'
TEMPLATE_DIRS =
SITE_ID = 1
DISALLOWED_USER_AGENTS =
ALLOWED_INCLUDE_ROOTS =
DECIMAL_SEPARATOR = '.'
SHORT_DATE_FORMAT = 'm/d/Y'
TEST_RUNNER = 'django.test.simple.DjangoTestSuiteRunner'
CACHE_MIDDLEWARE_KEY_PREFIX = u'**'
TIME_ZONE = 'America/Chicago'
FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
DEFAULT_TABLESPACE = ''
TEMPLATE_CONTEXT_PROCESSORS =
SESSION_COOKIE_AGE = 1209600
SETTINGS_MODULE = 'mailadmin.settings'
USE_ETAGS = False
LANGUAGES_BIDI =
FILE_UPLOAD_TEMP_DIR = None
INTERNAL_IPS =
STATIC_URL = '/sitestatic/'
EMAIL_PORT = 25
USE_TZ = True
SHORT_DATETIME_FORMAT = 'm/d/Y P'
PASSWORD_HASHERS = u'******************'
ABSOLUTE_URL_OVERRIDES = {}
CACHE_MIDDLEWARE_SECONDS = 600
DATETIME_INPUT_FORMATS =
EMAIL_HOST_USER = ''
PROFANITIES_LIST = u'*******************'
You're seeing this error because you have DEBUG = True in your
Django settings file. Change that to False, and Django will
display a standard 500 page.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2013-02-23T16:31:20Z
Hi,
this issue is only happening with the default super admin. and if the limits extension is enabled. If you encounter it with other accounts (imported ones), you may want to delete your database and start again with latest modoboa version.
Regards.