Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primary owner can remove himself from application with management api #9171

Closed
exalate-issue-sync bot opened this issue Aug 7, 2023 · 0 comments
Closed

Comments

@exalate-issue-sync
Copy link

exalate-issue-sync bot commented Aug 7, 2023

Describe the bug :

When you are Primary owner of a group, you can remove yourself using the management api, deleting the Primary Owner from the application. Once that happens you can no longer see applications in the applications tab in the console from any user even Admin in memory user.

To Reproduce :

Steps to reproduce the behaviour:

  1. Create a user in console.
  2. Log in with the user in the console.
  3. Create application with that user.
  4. Use the management api to delete the user from primary owner from that application.

Expected behaviour :

Users should not be able to remove themselves off the applications as Primary owners.

Current behaviour :

User that is Primary owner of an application, can remove himself from the application membership using the management api. Further on that all the applications are not available in the list after this happens.

Useful information :

The following error shows in the management api logs after the deletion of the primary owner of an application.

10:44:44.897 [gravitee-listener-97] ERROR i.g.r.a.s.i.ApplicationServiceImpl - The Application 9d31c1cf-185e-4156-b1c1-cf185e7156ff doesn't have any primary owner. 10:44:55.236 [gravitee-listener-101] ERROR i.g.r.a.s.i.ApplicationServiceImpl - 1 applications has no identified primary owners in this list 9d31c1cf-185e-4156-b1c1-cf185e7156ff.

Desktop :

  • Environment: [3.20.14]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants