You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kyuubi.apache.org by GitBox <gi...@apache.org> on 2021/12/23 05:45:19 UTC
[GitHub] [incubator-kyuubi] yaooqinn opened a new issue #1611: [Bug] Swagger-ui may redirect wr
yaooqinn opened a new issue #1611:
URL: https://github.com/apache/incubator-kyuubi/issues/1611
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
### Search before asking
- [X] I have searched in the [issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and found no similar issues.
### Describe the bug
```scala
@GET
@Path("swagger-ui")
@Produces(Array(MediaType.TEXT_HTML))
def swaggerUi(): Response = {
val serverIP = KyuubiServer.kyuubiServer.frontendServices.head.connectionUrl
val swaggerUi =
s"http://$serverIP/swagger-ui-redirected/index.html?url=http://$serverIP/openapi.json"
Response.temporaryRedirect(new URI(swaggerUi)).build()
}
```
the server IP is not always the rest service IP if we configured Thrift or MySQL at the head
### Affects Version(s)
1.4.0
### Kyuubi Server Log Output
_No response_
### Kyuubi Engine Log Output
_No response_
### Kyuubi Server Configurations
_No response_
### Kyuubi Engine Configurations
_No response_
### Additional context
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
--
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: dev-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kyuubi] yaooqinn commented on issue #1611: [Bug] Swagger-ui may redirect wr
Posted by GitBox <gi...@apache.org>.
yaooqinn commented on issue #1611:
URL: https://github.com/apache/incubator-kyuubi/issues/1611#issuecomment-1000059113
cc @simon824 @cfmcgrady @pan3793 @yanghua
--
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: dev-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-kyuubi] ulysses-you closed issue #1611: [Bug] Swagger-ui may redirect wrong to other service address
Posted by GitBox <gi...@apache.org>.
ulysses-you closed issue #1611:
URL: https://github.com/apache/incubator-kyuubi/issues/1611
--
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: dev-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org