This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch branch-0.6
in repository https://gitbox.apache.org/repos/asf/celeborn.git


The following commit(s) were added to refs/heads/branch-0.6 by this push:
     new 8e8c45b90 [CELEBORN-2165] Fix endless swagger openapi.json security 
items
8e8c45b90 is described below

commit 8e8c45b9084f4c9920f26451e85f007a6f3f1cb2
Author: Wang, Fei <[email protected]>
AuthorDate: Thu Oct 9 21:22:05 2025 +0800

    [CELEBORN-2165] Fix endless swagger openapi.json security items
    
    ### What changes were proposed in this pull request?
    
    Fix endless swagger openapi.json security items
    
    ### Why are the changes needed?
    Refer https://github.com/apache/kyuubi/pull/7219
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    Integration testing, looks good after this PR.
    
    Closes #3495 from turboFei/fix_security_items.
    
    Authored-by: Wang, Fei <[email protected]>
    Signed-off-by: SteNicholas <[email protected]>
    (cherry picked from commit ba6450c48baccda667ed638ed605fc071b7bd1b6)
    Signed-off-by: SteNicholas <[email protected]>
---
 .../celeborn/server/common/http/api/CelebornOpenApiResource.scala     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/service/src/main/scala/org/apache/celeborn/server/common/http/api/CelebornOpenApiResource.scala
 
b/service/src/main/scala/org/apache/celeborn/server/common/http/api/CelebornOpenApiResource.scala
index ef3766541..6de314d64 100644
--- 
a/service/src/main/scala/org/apache/celeborn/server/common/http/api/CelebornOpenApiResource.scala
+++ 
b/service/src/main/scala/org/apache/celeborn/server/common/http/api/CelebornOpenApiResource.scala
@@ -106,9 +106,9 @@ class CelebornOpenApiResource extends BaseOpenApiResource 
with ApiRequestContext
             .`type`(SecurityScheme.Type.HTTP)
             .scheme("Bearer")
             .bearerFormat("JWT")))
-      .addSecurityItem(new SecurityRequirement()
+      .security(List(new SecurityRequirement()
         .addList("BasicAuth")
-        .addList("BearerAuth"))
+        .addList("BearerAuth")).asJava)
   }
 }
 

Reply via email to