Rest API GET returns 200 OK when a parameter value is invalid but around double quotes

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.15.0-alpha1, 7.15.0
    • Affects Version/s: None
    • Component/s: engine
    • None

      Steps to reproduce:

      • Use default camunda-bpm-ee-tomcat-7.10.0-ee
      • Send the following GET request: localhost:8080/engine-rest/history/process-instance?startedAfter="makepizza"

      Expected behaviour:

          "type": "InvalidRequestException",
          "message": "Cannot set query parameter 'startedAfter' to value ''makepizza'': Cannot convert value \"'makepizza'\" to java type java.util.Date"
      

      Actual result:
      The parameter is excluded / ignored from the filter and a 200 OK is returned if the rest of the query parameters are valid.

      This has been tested with the startedAfter and startedBefore parameters of the following endpoint: https://docs.camunda.org/manual/7.10/reference/rest/history/process-instance/get-process-instance-query/ but it may affect other parameters / endpoints too.

      Root cause

      Solution ideas

      • Validate that the submitted value does not start or end with double quotes

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Ilias
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: