Closed enricovianello closed 8 months ago
PR #689
The origin of this issue is not clear. No further investigations are necessary because in any case, since v1.8.3 the involved tables of database are now linked by a foreign key constraint. Then, it's no more possible to have an auth_holder_id into access_token which is missing from authentication_holder.
All started from getting this error:
The code lines that raise this exception are: https://github.com/indigo-iam/iam/blob/master/iam-login-service/src/main/java/it/infn/mw/iam/api/client/service/DefaultClientService.java#L148
Probably switching from
a.getAuthenticationHolder().getScope()
toa.getScope()
should fix but we need to understand how this status has been reached.We know that the token that cannot be deleted is a Registration Access Token that has a reference to an AutenticationHolderEntity that doesn't exists:
Error observed on IAM v1.8.2p2 but potentially all IAM >= 1.8.0 are involved. Needs further investigations.