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
@spencergibb we consider addressing this in UriTemplate itself for tomorrow's 6.1.5 release, and possibly also for a backport to the 6.0.18 and 5.3.33 releases.
If I set path prefixes dynamically using
PrefixPathGatewayFilterFactory
, and one of them happens to be an empty string, I get an exceptionIt's because its
apply()
method calls theUriTemplate
constructorwhich in turn checks the prefix for emptiness (not just nullness, as the exception message suggests)
It's super-easy to fix: simply replace
with
I want to point out that
RewritePathGatewayFilterFactory
does support empty replacements, for exampleMy Spring Cloud version is 2023.0.0, Spring Boot is at 3.2.1
The text was updated successfully, but these errors were encountered: