This is an automated email from the ASF dual-hosted git repository.
yashmayya pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new 8b3005e4cb Fix Swagger UI redirect issue by preserving Knox gateway
path in base URL (#15707)
8b3005e4cb is described below
commit 8b3005e4cbae461236015bf52698a7faa7fcdc8a
Author: Himanshu Verma <[email protected]>
AuthorDate: Sun May 4 18:31:49 2025 +0530
Fix Swagger UI redirect issue by preserving Knox gateway path in base URL
(#15707)
---
pinot-common/src/main/resources/swagger-ui/index.html | 2 +-
pinot-controller/src/main/resources/app/components/Layout.tsx | 2 +-
pinot-controller/src/main/resources/swagger/api/index.html | 2 +-
pinot-integration-tests/src/test/resources/index.html | 2 +-
pinot-server/src/main/resources/api/index.html | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/pinot-common/src/main/resources/swagger-ui/index.html
b/pinot-common/src/main/resources/swagger-ui/index.html
index ddd8802c13..33dd468967 100644
--- a/pinot-common/src/main/resources/swagger-ui/index.html
+++ b/pinot-common/src/main/resources/swagger-ui/index.html
@@ -62,7 +62,7 @@
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
- url = "/swagger.json";
+ url = "./swagger.json";
}
// Build a system
diff --git a/pinot-controller/src/main/resources/app/components/Layout.tsx
b/pinot-controller/src/main/resources/app/components/Layout.tsx
index af20b91def..09c640299b 100644
--- a/pinot-controller/src/main/resources/app/components/Layout.tsx
+++ b/pinot-controller/src/main/resources/app/components/Layout.tsx
@@ -32,7 +32,7 @@ let navigationItems = [
{ id: 1, name: 'Cluster Manager', link: '/', icon: <ClusterManagerIcon /> },
{ id: 2, name: 'Query Console', link: '/query', icon: <QueryConsoleIcon /> },
{ id: 3, name: 'Zookeeper Browser', link: '/zookeeper', icon: <ZookeeperIcon
/> },
- { id: 4, name: 'Swagger REST API', link: 'help', target: '_blank', icon:
<SwaggerIcon /> }
+ { id: 4, name: 'Swagger REST API', link: './help', target: '_blank', icon:
<SwaggerIcon /> }
];
const Layout = (props) => {
diff --git a/pinot-controller/src/main/resources/swagger/api/index.html
b/pinot-controller/src/main/resources/swagger/api/index.html
index ddd8802c13..33dd468967 100644
--- a/pinot-controller/src/main/resources/swagger/api/index.html
+++ b/pinot-controller/src/main/resources/swagger/api/index.html
@@ -62,7 +62,7 @@
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
- url = "/swagger.json";
+ url = "./swagger.json";
}
// Build a system
diff --git a/pinot-integration-tests/src/test/resources/index.html
b/pinot-integration-tests/src/test/resources/index.html
index 43ba8ae098..7831dd9712 100644
--- a/pinot-integration-tests/src/test/resources/index.html
+++ b/pinot-integration-tests/src/test/resources/index.html
@@ -61,7 +61,7 @@
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
- url = "/swagger.json";
+ url = "./swagger.json";
}
// Build a system
diff --git a/pinot-server/src/main/resources/api/index.html
b/pinot-server/src/main/resources/api/index.html
index ddd8802c13..33dd468967 100644
--- a/pinot-server/src/main/resources/api/index.html
+++ b/pinot-server/src/main/resources/api/index.html
@@ -62,7 +62,7 @@
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
- url = "/swagger.json";
+ url = "./swagger.json";
}
// Build a system
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]