RussellSpitzer commented on code in PR #264:
URL: https://github.com/apache/polaris/pull/264#discussion_r1744531914
##########
polaris-service/src/main/java/org/apache/polaris/service/catalog/BasePolarisCatalog.java:
##########
@@ -1144,7 +1148,7 @@ private void validateNoLocationOverlap(
URI existing = URI.create(siblingLocation);
if (isUnderParentLocation(target, existing)
|| isUnderParentLocation(existing, target)) {
- throw new org.apache.iceberg.exceptions.BadRequestException(
+ throw new org.apache.iceberg.exceptions.ForbiddenException(
"Unable to create table at location '%s' because it
conflicts with existing table or namespace at location '%s'",
Review Comment:
I know this isn't in scope here, and we probably talked about it already but
doesn't this check essentially let any user with table create permissions find
out the table location of every other table in the namespace regardless of
permissions?
--
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]