- Create user, add authorization for user (permission.ACCESS to resourceId=“tasklist”)
- Delete user
- Recreate user (old username) will run into error: java.sql.BatchUpdateException: Duplicate entry ‘[username]-1-0-tasklist’ for key ‘ACT_UNIQ_AUTH_USER’
Is it a bug or a feature that deleting users do NOT delete his authorizations?
Is it by design, that I have to check for all existing autorizations and delete them when deleting a user?
And furthermore: Before adding a new user I have to not only to check if username already exist, but I have also to check if any authorization for this username is left over from old users?