Skip to content

Commit 270e644

Browse files
authored
Remove readEntity() call (#3111)
Calling readEntity() is not allowed server-side by some HTTP servers.
1 parent 54ae7ab commit 270e644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/service/src/main/java/org/apache/polaris/service/catalog/iceberg/IcebergRestConfigurationEventServiceDelegator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public Response getConfig(
4646
new IcebergRestCatalogEvents.BeforeGetConfigEvent(warehouse));
4747
Response resp = delegate.getConfig(warehouse, realmContext, securityContext);
4848
polarisEventListener.onAfterGetConfig(
49-
new IcebergRestCatalogEvents.AfterGetConfigEvent(resp.readEntity(ConfigResponse.class)));
49+
new IcebergRestCatalogEvents.AfterGetConfigEvent((ConfigResponse) resp.getEntity()));
5050
return resp;
5151
}
5252
}

0 commit comments

Comments
 (0)