Copilot commented on code in PR #14958:
URL: https://github.com/apache/gravitino/pull/14958#discussion_r4559626412


##########
web-v2/web/src/lib/utils/axios/index.js:
##########
@@ -175,6 +175,12 @@ const transform = {
   requestInterceptors: async (config, options) => {
     // ** Pre-Request Configuration Handling
 
+    if (config.url === '/configs') {
+      config.headers.delete('Authorization')

Review Comment:
   Please add an automated regression test for the `/configs` credential 
bypass: the clean-storage manual check does not exercise header removal or 
skipping OAuth token retrieval. Follow the adapter-based tests in 
`web-v2/web/src/lib/api/github/index.test.js`, calling `getAuthConfigsApi()` 
with persisted Basic, Simple, and OAuth sessions to verify that Authorization 
is absent and the OAuth provider is not called. Also verify that ordinary API 
requests still receive credentials.



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