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

   ### What changes were proposed in this pull request?
   
   REST auth propagation was gated on the raw `catalog-backend` key while the 
JDBC branch used the normalized `catalog-type` key. Unified both to read 
`catalog-type`, and split the method into three named helpers for clarity.
   
   ### Why are the changes needed?
   
   `USE CATALOG ...` loads a catalog via the catalog store, which renames 
`catalog-backend` to `catalog-type` before this method runs — so 
`catalog-backend` is absent and REST auth propagation was silently skipped, 
causing `NotAuthorizedException` against IRC. `CREATE CATALOG` was unaffected 
since it still carries the raw key.
   
   Fix: #11601
   
   ### Does this PR introduce any user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   - Added a regression test simulating the catalog-store load path.
   - Ran the full deploy-mode Flink IT suite (Hive/JDBC/REST) — all passing.


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