jyotsa09 opened a new issue #18703:
URL: https://github.com/apache/airflow/issues/18703


   ### Apache Airflow version
   
   2.2.0b2 (beta snapshot)
   
   ### Operating System
   
   Debian buster
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Astronomer
   
   ### Deployment details
   
   Astro dev start
   
   ### What happened
   
   "Already exists." error message is missing while updating user email with 
existing email id through API.
   
   ### What you expected to happen
   
   "Email id already exists" error message should appear
   
   ### How to reproduce
   
   1. Use a patch request with the below URL.
   `{{url}}/users/{{username}}`
   2. In payload use an exiting email id 
   ```
    {
           "username": "{{username}}",
           "password": "password1",
           "email": "{{exiting_email}}@example.com",
           "first_name": "{{$randomFirstName}}",
           "last_name": "{{$randomLastName}}",
           "roles":[{ "name": "Op"}]
   }
   ```
   
   ### 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