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

Spring Boot Starter Webapp filters cover Rest API

    XMLWordPrintable

    Details

    • Title Keywords:
      spring boot starter, rest, webapp

      Description

      Given:
      The following dependencies are used:

      • camunda-bpm-spring-boot-starter-webapp OR camunda-bpm-spring-boot-starter-webapp-ee
      • camunda-bpm-spring-boot-starter-rest

      When:
      A modifying HTTP Request (POST/PUT/DELETE) is sent through the Rest API.

      Then:
      An Internal Server Error is reported (500), with message: Cannot create a session after the response has been committed.

      Expected:
      The Rest API can be used together with the Webapps in the Spring Boot Starter.

      Hint:
      The reason for the bug is that all resources in the starter are put on the root context path. This creates an overlap for the url patterns of the Webapps and Rest API, causing CSRF validation of Rest requests.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            nikola.koevski Nikola Koevski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: