Skip to content

Core, Open-API: Add server-side warehouse validation for /v1/config endpoint#16247

Draft
kevinjqliu wants to merge 4 commits intoapache:mainfrom
kevinjqliu:kevinjqliu/config-404-server
Draft

Core, Open-API: Add server-side warehouse validation for /v1/config endpoint#16247
kevinjqliu wants to merge 4 commits intoapache:mainfrom
kevinjqliu:kevinjqliu/config-404-server

Conversation

@kevinjqliu
Copy link
Copy Markdown
Contributor

@kevinjqliu kevinjqliu commented May 7, 2026

This PR adds server-side warehouse validation to the REST catalog test fixture server, complementing the client-side changes in #16059.

When a warehouse query parameter is provided to /v1/config that doesn't match the configured warehouse, the server returns a 404 NoSuchWarehouseException.

Testing

Build and run the REST catalog server locally:

./gradlew :iceberg-open-api:shadowJar -x test
CATALOG_WAREHOUSE=mywarehouse java -jar open-api/build/libs/iceberg-open-api-test-fixtures-runtime-1.12.0-SNAPSHOT.jar

http://localhost:8181/v1/config -> 200
http://localhost:8181/v1/config?warehouse=mywarehouse -> 200, matches CATALOG_WAREHOUSE
http://localhost:8181/v1/config?warehouse=thisdoesntexist -> 404

kevinjqliu and others added 2 commits May 7, 2026 13:46
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
@kevinjqliu kevinjqliu marked this pull request as draft May 8, 2026 16:46
Co-authored-by: Copilot <copilot@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant