shyjsarah opened a new pull request, #7641:
URL: https://github.com/apache/paimon/pull/7641

     ### Purpose
   
     Align view permission handling with table in RESTCatalog.
   
     Currently, table operations in `RESTCatalog` catch `ForbiddenException` 
and throw `TableNoPermissionException`, but view operations
     (`getView`, `createView`, `dropView`, `renameView`, `alterView`, 
`listViews`, etc.) do not handle `ForbiddenException` at all.
   
     This PR adds:
     - `ViewNoPermissionException` in `Catalog.java`, mirroring 
`TableNoPermissionException`
     - `ForbiddenException` handling for all view operations in `RESTCatalog`
     - `DatabaseNoPermissionException` handling for list view operations 
(consistent with list table behavior)
   
     ### Tests
   
     - Added `testApiWhenViewNoPermission` in `RESTCatalogTest` to verify that 
`getView`, `dropView`, `renameView`, and `alterView` throw
     `ViewNoPermissionException` when permission is revoked
     - Updated `RESTCatalogServer` to support `noPermissionViews` and return 
403 for forbidden view operations


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