This is an automated email from the ASF dual-hosted git repository.
nicholasjiang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/celeborn.git
The following commit(s) were added to refs/heads/main by this push:
new ba6450c48 [CELEBORN-2165] Fix endless swagger openapi.json security
items
ba6450c48 is described below
commit ba6450c48baccda667ed638ed605fc071b7bd1b6
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]>
---
.../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)
}
}