Closed ghenadiibatalski closed 3 weeks ago
The error occurs within the class ResteasyReactiveRequestContext here
This is broken for me as well. I rolled back to the 18.3.2 bitnami helm chart.
is it fixed in combination of 24.0.1 and metrics-spi-5.0.0?
Description
I'm facing an StringIndexOutOfBoundsException in ResourceExtractor .
The problem occurs only in case of KC_HTTP_RELATIVE_PATH and only if the path was entered without the trailing /.
Expected Behavior
Should work as excpected also if KC_HTTP_RELATIVE_PATH is configured.
Actual Behavior
Eg: localhost/auth causes the exception while localhost/auth/ looks good. Internally redirects keycloak from
/auth
to/auth/
but with theMetricsFilter
enabled it ends up in an exception.We could redirect
/auth$
to/auth/
on a reverse proxy, but it would be a strange workaround.Without
KC_HTTP_RELATIVE_PATH
the filter works as expected (at least there is no exception).Environment
Latest Keycloak: 23.0.5 keycloak-metrics-spi: 5.0.0
Configured via docker-compose
Steps to reproduce
KC_HTTP_RELATIVE_PATH=/auth
and keycloak-metrics-spi enabledlocalhost:8080/auth
- an error should occur