Authz-client: fix ClassCast Exception when getting resource permissions

(#27483)

Signed-off-by: Clemens Zagler <c.zagler@noi.bz.it>
This commit is contained in:
Clemens Zagler 2024-03-04 11:19:55 +01:00 committed by Pedro Igor
parent 4fc7e3d607
commit dca50bba3f

View file

@ -86,6 +86,7 @@ public class AuthorizationResource {
if (request.getMetadata() == null) { if (request.getMetadata() == null) {
metadata = new AuthorizationRequest.Metadata(); metadata = new AuthorizationRequest.Metadata();
request.setMetadata(metadata);
} else { } else {
metadata = request.getMetadata(); metadata = request.getMetadata();
} }