lasdf1234 opened a new pull request, #14653:
URL: https://github.com/apache/gravitino/pull/14653

   ### What changes were proposed in this pull request?
   
   Cherry-pick of #14628 onto `branch-1.3`, replacing bot PR #14651 (closed 
with conflicts).
   
   Convert Iceberg `NotFoundException` to `BadRequestException` (HTTP 400) in
   `IcebergCatalogWrapper.loadTableMetadataFromLocation`, used by the 
registerTable
   schema pre-check and by `RegisterTableAuthzHandler` when authorization is 
enabled.
   
   `registerTable` itself already had this conversion on branch-1.3 from earlier
   backports; the pre-read path did not.
   
   **branch-1.3 adaptation:** main also wrapped `registerView`; that API does 
not
   exist on branch-1.3, so only the table metadata pre-read path is backported.
   
   ### Why are the changes needed?
   
   Fixes #14302 on the 1.3 line. Without this, `POST 
.../namespaces/{ns}/register`
   with a missing `metadata-location` still returns 500 end-to-end.
   
   Supersedes #14651.
   
   ### Does this PR introduce _any_ user-facing change?
   
   - `POST .../namespaces/{ns}/register` with a missing `metadata-location` → 
400
     instead of 500.
   
   ### How was this patch tested?
   
   - Unit test: `testLoadTableMetadataFromMissingLocationIsBadRequest`
   
   
   Made with [Cursor](https://cursor.com)


-- 
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]

Reply via email to