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
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 the MetricsFilter 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).
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 occurThe text was updated successfully, but these errors were encountered: