Allow for empty body in certain REST requests

XMLWordPrintable

    • Type: Feature Request
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.7.0, 7.7.0-alpha2
    • Affects Version/s: 7.7.0-alpha1, 7.6.4
    • Component/s: None
    • None

      I want to start a new process instance without providing variables.

      I do a POST at process-definition/key/interactive-lab-collector/start without body. This yields in an exception:

      java.lang.NullPointerException: null
      	at org.camunda.bpm.engine.rest.sub.repository.impl.ProcessDefinitionResourceImpl.startProcessInstanceAtActivities(ProcessDefinitionResourceImpl.java:140) ~[camunda-engine-rest-core-7.7.0-alpha1.jar:7.7.0-alpha1]
      	at org.camunda.bpm.engine.rest.sub.repository.impl.ProcessDefinitionResourceImpl.startProcessInstance(ProcessDefinitionResourceImpl.java:106) ~[camunda-engine-rest-core-7.7.0-alpha1.jar:7.7.0-alpha1]
      

      So you have to provide a body with an empty JSON object:

      {}

      I stumble over that very regularly. It would be nicer for the user to allow that empty body as non-experienced people might not guess what the problem exactly is.

            Assignee:
            Thorben Lindhauer
            Reporter:
            Bernd Ruecker
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: