Repository navigation
[Server] Reject cloud storage roots for external data - #1726
Merged
yili-db merged 3 commits intoJul 29, 2026
Merged
Conversation
Signed-off-by: Timothy Wang <[email protected]>
yili-db
reviewed
Jul 28, 2026
| storageLocation = NormalizedURL.from(createTable.getStorageLocation()); | ||
| ValidationUtils.checkArgument( | ||
| !storageLocation.isCloudStorageRoot(), | ||
| "External table storage location must include a non-empty path prefix"); |
Collaborator
There was a problem hiding this comment.
consider echoing back the input location to help debugging.
Collaborator
|
As defense-in-depth, I think it should also check when vending a storage credential. |
Signed-off-by: Timothy Wang <[email protected]>
timothyw553
force-pushed
the
fix/reject-root-data-locations
branch
from
July 29, 2026 06:42
db3f1cd to
93b9221
Compare
yili-db
approved these changes
Jul 29, 2026
3 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
docsis updated. (Not applicable: validation-only bug fix.)Description of changes
Reject bucket- or container-root storage locations when creating external tables and volumes. Cloud roots remain valid for external-location coverage and server storage configuration.
The validation operates on the decoded normalized path, so equivalent root forms such as trailing slashes, normalized dot segments, and encoded slashes are handled consistently across S3, GCS, ABFS, and ABFSS.
Testing
build/sbt "server/Compile/javafmtAll" "server/Test/javafmtAll"build/sbt "server/testOnly io.unitycatalog.server.utils.NormalizedURLTest io.unitycatalog.server.sdk.tables.SdkTableCRUDTest io.unitycatalog.server.sdk.volume.SdkVolumeCRUDTest" "server/checkstyle" "server/Test/checkstyle"