Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-10187

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

    XMLWordPrintable

Details

    Description

      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 embedded forms in the application resources 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?

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          1. screenshot-1.png
            28 kB
            Dietrich Schulten

          Activity

            People

              nikola.koevski Nikola Koevski
              dschulten Dietrich Schulten
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce