Cannot delete OpenID Connect users
DrakezulsMinimalism opened this issue · comments
Current Behavior
- When browsing "OpenID Connect Users" in the admin interface, deleting a user is not possible, as a 500 status code is returned.
- Backend logs report a NPE:
java.lang.NullPointerException: Cannot invoke "alpine.model.OidcUser.getUsername()" because "jsonUser" is null
at org.dependencytrack.resources.v1.UserResource.deleteOidcUser(UserResource.java:580)
Steps to Reproduce
- Deployment via docker with
- OpenIDC Teams Claim = groups, OIDC User Provisioning = true and OIDC Team Synchronization = true
- Azure Tenant
- See current behavior for steps until error is encountered.
Tested with 4.9.1 and 4.10.1.
Also, while upgrading from an older version to a new one (not sure if it was 4.9.x -> 4.10.1 or 4.8.x -> 4.9.x) a non-admin SQL account was used without the ability to manipulate the database schema, therefore the deployment has to be temporarily restarted with an admin account.
Expected Behavior
Deleting and removing any user, permission or team without issues.
Dependency-Track Version
4.10.1
Dependency-Track Distribution
Container Image
Database Server
Microsoft SQL Server
Database Server Version
12.0
Browser
Microsoft Edge
Checklist
- I have read and understand the contributing guidelines
- I have checked the existing issues for whether this defect was already reported
I believe it's closely related, so I'm not opening multiple issues: Can also not remove permissions (see screenshot above) of OpenIDC Users AND cannot delete (normal/dependency track) Teams.