raphaelauv opened a new issue, #27479:
URL: https://github.com/apache/airflow/issues/27479

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### What happened
   
   airflow 2.4.1
   
   a existing user only have the role Viewer
   I add with the UI the role Admin
   click on button save
   
   then error ->
   
   ```log
   
   [03/Nov/2022:01:28:08 +0000] "POST /XXXXXXXX/users/edit/2 HTTP/1.1" 302 307 
"https://XXXXXXXXXXXXX.net/XXXXXXXX/users/edit/2"; "Mozilla/5.0 (X11; Ubuntu; 
Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0"
   [2022-11-03T01:28:09.014+0000] {app.py:1742} ERROR - Exception on 
/users/show/1 [GET]
   Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 
2525, in wsgi_app
       response = self.full_dispatch_request()
     File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 
1822, in full_dispatch_request
       rv = self.handle_user_exception(e)
     File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 
1820, in full_dispatch_request
       rv = self.dispatch_request()
     File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 
1796, in dispatch_request
       return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
     File 
"/home/airflow/.local/lib/python3.7/site-packages/flask_appbuilder/security/decorators.py",
 line 133, in wraps
       return f(self, *args, **kwargs)
     File 
"/home/airflow/.local/lib/python3.7/site-packages/airflow/www/fab_security/views.py",
 line 222, in show
       widgets['show'].template_args['actions'].pop('userinfoedit')
   KeyError: 'userinfoedit'
   ```
   
   ### What you think should happen instead
   
   _No response_
   
   ### How to reproduce
   
   _No response_
   
   ### Operating System
   
   Ubuntu 20.04.4 LTS
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   1.7.0
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to