tooptoop4 opened a new issue #9925:
URL: https://github.com/apache/incubator-superset/issues/9925
auto ldap registration enabled, below error is first time a new user tried
to login to superset. 2nd login worked
Error adding new user to database. (raised as a result of Query-invoked
autoflush; consider using a session.no_autoflush block if this flush is
occurring prematurely)
(MySQLdb._exceptions.IntegrityError) (1062, "Duplicate entry
'secretusername' for key 'username'")
[SQL: INSERT INTO ab_user (first_name, last_name, username, password,
active, email, last_login, login_count, fail_login_count, created_on,
changed_on, created_by_fk, changed_by_fk) VALUES (%s, %s, %s, %s, %s, %s, %s,
%s, %s, %s, %s, %s, %s)]
[parameters: ('f', 'l', 'secretusername', None, 1,
'[email protected]', None, None, None, datetime.datetime(2020, 5, 27,
9, 4, 7, 357169), datetime.datetime(2020, 5, 27, 9, 4, 7, 357177), None, None)]
(Background on this error at: http://sqlalche.me/e/gkpj)
Exception on /login/ [POST]
Traceback (most recent call last):
File "/usr/local/lib64/python3.6/site-packages/flask/app.py", line 2447,
in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib64/python3.6/site-packages/flask/app.py", line 1952,
in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib64/python3.6/site-packages/flask/app.py", line 1821,
in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib64/python3.6/site-packages/flask/_compat.py", line 39,
in reraise
raise value
File "/usr/local/lib64/python3.6/site-packages/flask/app.py", line 1950,
in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib64/python3.6/site-packages/flask/app.py", line 1936,
in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File
"/usr/local/lib/python3.6/site-packages/flask_appbuilder/security/views.py",
line 515, in login
form.username.data, form.password.data
File
"/usr/local/lib/python3.6/site-packages/flask_appbuilder/security/manager.py",
line 941, in auth_user_ldap
self.update_user_auth_stat(user)
File
"/usr/local/lib/python3.6/site-packages/flask_appbuilder/security/manager.py",
line 735, in update_user_auth_stat
if not user.login_count:
AttributeError: 'bool' object has no attribute 'login_count'
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]