OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

`PUT` method for `/api/v1/users` gives `409`

Open darth-coder00 opened this issue 4 years ago • 1 comments

Affected module Does it impact the UI, backend or Ingestion Framework? - backend

Describe the bug PUT method for /api/v1/users gives 409 when username has . in it. For instance,

To Reproduce

  • Add user.name to adminPrinciples
  • Clear all cookies and localstorage
  • Start the server in secure mode
  • Try to login with user [email protected]
  • It gives error Entity already exists
  • Verify same in Network tab, users PUT api fails

Expected behavior It should have updated user profile for existing admin on first login

Version:

  • OS: [e.g. iOS]
  • Python version:
  • OpenMetadata version: [e.g. 0.8]
  • OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context Works as expected for username without . in it

darth-coder00 avatar Apr 25 '22 15:04 darth-coder00

@darth-coder00, this does not make sense. There are tests for this. Can you please post API responses?

sureshms avatar Apr 27 '22 15:04 sureshms