Error encountered REST API when BASIC AUTH is enabled

Hi

I’ve encountered error when I tried to enable HTTP BASIC AUTH for REST API. I am using standalone WAR deployment (camunda-webapp-tomcat-standalone-7.9.0.war)

In my web.xml, I enabled BASIC AUTH as recommended in Configure Authentication | docs.camunda.org

When I try to access my localhost camunda:
HTTP Status 500 – Internal Server Error
Type Exception Report

Message String index out of range: -10

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

java.lang.StringIndexOutOfBoundsException: String index out of range: -10
	java.lang.String.substring(String.java:1931)
	org.camunda.bpm.engine.rest.security.auth.ProcessEngineAuthenticationFilter.doFilter(ProcessEngineAuthenticationFilter.java:117)
Note The full stack trace of the root cause is available in the server logs.

Here’s my web.xml highlighting the BASIC AUTH filter:

1 Like