Skip to content

Conversation

@bryanck
Copy link
Contributor

@bryanck bryanck commented Jun 21, 2022

This PR adds checks for valid identifiers before performing certain catalog operations in the REST catalog. Currently, the pathing for most REST requests includes the namespace as part of the path. This adds checks that the namespace is not empty to prevent the REST catalog from building a path with //. Using double slashes in the path is considered a security vulnerability by some frameworks so seems best to avoid.

@github-actions github-actions bot added the core label Jun 21, 2022
Copy link
Contributor

@danielcweeks danielcweeks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bryanck

@danielcweeks danielcweeks merged commit e335086 into apache:master Jun 21, 2022
namrathamyske pushed a commit to namrathamyske/iceberg that referenced this pull request Jul 10, 2022
* Shutdown refresh token thread during REST catalog client close

* Improved shutdown of token refresh executor during REST catalog close

* REST: Set table format version for create table transactions

* add test for creating v2 table via transaction

* Core: Check for valid identifiers in REST catalog
namrathamyske pushed a commit to namrathamyske/iceberg that referenced this pull request Jul 10, 2022
* Shutdown refresh token thread during REST catalog client close

* Improved shutdown of token refresh executor during REST catalog close

* REST: Set table format version for create table transactions

* add test for creating v2 table via transaction

* Core: Check for valid identifiers in REST catalog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants