Octavi00 commented on code in PR #11812:
URL: https://github.com/apache/gravitino/pull/11812#discussion_r3592502996
##########
plugins/idp-basic/src/main/java/org/apache/gravitino/idp/IdpUserGroupManager.java:
##########
@@ -158,7 +158,7 @@ public IdpUser authenticate(String username, String
password) {
"Invalid username or password",
AuthConstants.AUTHORIZATION_BASIC_HEADER.trim());
}
return user;
- } catch (NotFoundException e) {
+ } catch (Exception e) {
throw new UnauthorizedException(
"Invalid username or password",
AuthConstants.AUTHORIZATION_BASIC_HEADER.trim());
}
Review Comment:
Not applicable, I was directly requested to swap into Exception from
previous NFE to strengthen catch.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]