You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@GetMapping("/xxx/{id}")
fun retrieveXxxById(@PathVariable id: String)
And when we call this api using /xxx and not give the PathVariable id, we'll get 500 error, this issue happens when we update our org.springdoc:springdoc-openapi-kotlin from 1.6.15 to 1.7.0, it used to throw 404 from our logic.
Our configuration of springdoc is
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Original Stack Trace:
at java.lang.String.substring(Unknown Source)
at org.springdoc.ui.AbstractSwaggerResourceResolver.path(AbstractSwaggerResourceResolver.java:71)
at org.springdoc.ui.AbstractSwaggerResourceResolver.findWebJarResourcePath(AbstractSwaggerResourceResolver.java:42)
at org.springdoc.webflux.ui.SwaggerResourceResolver.resolveResource(SwaggerResourceResolver.java:35)
at org.springframework.web.reactive.resource.DefaultResourceResolverChain.resolveResource(DefaultResourceResolverChain.java:75)
... 148 frames truncated
To Reproduce
Steps to reproduce the behavior:
What version of spring-boot you are using? 2.7.10
What modules and versions of springdoc-openapi are you using? org.springdoc:springdoc-openapi-webflux-ui:1.7.0, org.springdoc:springdoc-openapi-kotlin:1.7.0
Expected behavior
Not return 500
The text was updated successfully, but these errors were encountered:
Describe the bug
We have an api like
And when we call this api using
/xxx
and not give the PathVariable id, we'll get 500 error, this issue happens when we update our org.springdoc:springdoc-openapi-kotlin from 1.6.15 to 1.7.0, it used to throw 404 from our logic.Our configuration of springdoc is
And the exception detail is
To Reproduce
Steps to reproduce the behavior:
2.7.10
org.springdoc:springdoc-openapi-webflux-ui:1.7.0
,org.springdoc:springdoc-openapi-kotlin:1.7.0
Expected behavior
Not return 500
The text was updated successfully, but these errors were encountered: