Custom contextPath no longer working in SpringBootProcessApplication 3.2.0 with Spring Boot 2.1.1.RELEASE


#1

I am trying to upgrade to the camunda spring boot starter 3.2.0 with Camunda 7.10.0 and Spring 2.1.1.RELEASE, according to https://docs.camunda.org/manual/latest/user-guide/spring-boot-integration/version-compatibility/

I have a custom server.servlet.contextPath setting in application.yml, but that does not seem to work anymore - while the web application still comes up at that contextPath, the Tasklist doesn’t find its forms with the new version.

Reason: The contextPath is / because this code in SpringBootProcessApplication no longer gets invoked:

@ConditionalOnWebApplication
@Configuration
class WebApplicationConfiguration implements ServletContextAware {

  @Override
  public void setServletContext(ServletContext servletContext) {
    if (!StringUtils.isEmpty(servletContext.getContextPath())) {
      contextPath = servletContext.getContextPath();
    }
  }
}

Do I miss something obvious? Have I found a bug?


#2

created https://app.camunda.com/jira/browse/CAM-10187