hongkunxu commented on code in PR #17242:
URL: https://github.com/apache/pinot/pull/17242#discussion_r2544767780
##########
pinot-core/src/main/java/org/apache/pinot/core/auth/BasicAuthPrincipal.java:
##########
@@ -61,7 +62,7 @@ public String getToken() {
}
public boolean hasTable(String tableName) {
- return isTableIncluded(tableName) && isTableNotExcluded(tableName);
+ return StringUtils.isEmpty(tableName) || (isTableIncluded(tableName) &&
isTableNotExcluded(tableName));
Review Comment:
When a user logs in through the UI, this method is called with an empty
table name. This means that unless the user has permissions for all tables, the
method will fail.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]