-
-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trailing slash causes 500 when loading /swagger-ui/ #2235
Labels
bug
Something isn't working
Comments
I think 2203 and this one are related |
I am see the same bug. |
uc4w6c
added a commit
to uc4w6c/springdoc-openapi
that referenced
this issue
May 27, 2023
uc4w6c
added a commit
to uc4w6c/springdoc-openapi
that referenced
this issue
May 27, 2023
uc4w6c
added a commit
to uc4w6c/springdoc-openapi
that referenced
this issue
May 27, 2023
bnasslahsen
added a commit
that referenced
this issue
May 31, 2023
…tion_v2 fix StringIndexOutOfBoundsException when path is same webjar. #2235
bnasslahsen
added a commit
that referenced
this issue
May 31, 2023
…tion fix StringIndexOutOfBoundsException when path is same webjar. #2235
bnasslahsen
pushed a commit
that referenced
this issue
Jun 2, 2023
Resolved by #2235 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Given
springdoc.api-docs.enabled=true
springdoc.api-docs.path=/api/docs
springdoc.swagger-ui.enabled=true
springdoc.swagger-ui.path=/api/docs/swagger-ui
When
accessing swagger-ui using:
https://myhost/api/docs -> loads openapi json
https://myhost/api/docs/ -> 404 (expected)
https://myhost/api/docs/swagger-ui -> redirects to https://myhost/api/docs/swagger-ui/index.html, loads swagger-ui
https://myhost/api/docs/swagger-ui/ -> 500 (unexpected)
To Reproduce
See the webmvc demo site:
http://144.24.171.248:8081/ -> redirects to http://144.24.171.248:8081/swagger-ui/index.html, loads swagger-ui
http://144.24.171.248:8081/swagger-ui -> 500
http://144.24.171.248:8081/swagger-ui/ -> 500
Expected behavior
https://myhost/api/docs/ -> 404
https://myhost/api/docs/swagger-ui/ -> 404
Additional context
Might be related to Spring MVC and WebFlux URL Matching Changes which now sees /resources/ and /resources as separate endpoints.
The text was updated successfully, but these errors were encountered: