Open support-tt opened 1 month ago
also when I try to change the admin password with the UI I get:
cve_search-1 | Traceback (most recent call last):
cve_search-1 | File "/usr/local/lib/python3.10/site-packages/flask_login/utils.py", line 277, in decorated_view
cve_search-1 | return current_app.ensure_sync(func)(*args, **kwargs)
cve_search-1 | File "/app/web/../web/admin/views.py", line 69, in change_pass
cve_search-1 | if current_user.authenticate(current_pass):
cve_search-1 | File "/app/web/../lib/User.py", line 34, in authenticate
cve_search-1 | return self.authenticator.validateUser(self.id, password)
cve_search-1 | AttributeError: 'User' object has no attribute 'authenticator'
cve_search-1 |
cve_search-1 | During handling of the above exception, another exception occurred:
cve_search-1 |
cve_search-1 | Traceback (most recent call last):
cve_search-1 | File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2077, in wsgi_app
cve_search-1 | response = self.full_dispatch_request()
cve_search-1 | File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1525, in full_dispatch_request
cve_search-1 | rv = self.handle_user_exception(e)
cve_search-1 | File "/usr/local/lib/python3.10/site-packages/flask_restx/api.py", line 674, in error_router
cve_search-1 | return original_handler(e)
cve_search-1 | File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request
cve_search-1 | rv = self.dispatch_request()
cve_search-1 | File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request
cve_search-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
cve_search-1 | File "/usr/local/lib/python3.10/site-packages/flask_login/utils.py", line 279, in decorated_view
cve_search-1 | return func(*args, **kwargs)
cve_search-1 | File "/app/web/../web/admin/views.py", line 69, in change_pass
cve_search-1 | if current_user.authenticate(current_pass):
cve_search-1 | File "/app/web/../lib/User.py", line 34, in authenticate
cve_search-1 | return self.authenticator.validateUser(self.id, password)
cve_search-1 | AttributeError: 'User' object has no attribute 'authenticator'
Describe the bug
I try to add items to the whitelist (but blacklist has the same issue). I tried in the admin section under whitelist --> view --> Add CPE for example cpe:2.3:o:cisco:ios_xr: When I click on add the following error appears in the docker Logs:
cve_search-1 | Error inserting item in database: module 'lib.DatabaseLayer' has no attribute 'isInWhitelist'
When I try it with "browse" the following error appears on the webui:And in the Logs only the following message appears:
To Reproduce Steps to reproduce the behavior:
Expected behavior Normaly both ways should work for adding items to the whitelist
Desktop (please complete the following information if applicable):