flyrain commented on code in PR #4383:
URL: https://github.com/apache/polaris/pull/4383#discussion_r3203072975
##########
runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergCatalogAdapter.java:
##########
@@ -439,7 +439,7 @@ public Response renameTable(
prefix,
catalog -> {
catalog.renameTable(renameTableRequest);
- return Response.ok(Response.Status.NO_CONTENT).build();
+ return Response.status(Response.Status.NO_CONTENT).build();
Review Comment:
Correct fix — `Response.ok(...)` always sets 200 and treats the arg as
entity body. `Response.status(NO_CONTENT)` is the right builder for 204 with
empty body.
--
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]