Bonita REST Connector PUT errors

Hi guys,

I’m trying to use the REST connector (Bonita 7.4.1) to call a PUT method.

I created a mock with SoapUI that just returns a Code200 response.

Connector config :
PUT URL : http://localhost:9080/ClientRequest/123
Type : application/json
Charset : UTF-8
Payload : {“status” : “TO_VALIDATE”, “tadkId” : “123”}

When I use the connector, I get a mapping error :
org.bonitasoft.engine.core.connector.exception.SConnectorException: PROCESS_DEFINITION_ID=6974204645539878708 | PROCESS_NAME=ZTMP_TEST_REST | PROCESS_VERSION=1.0 | PROCESS_INSTANCE_ID=3028 | ROOT_PROCESS_INSTANCE_ID=3028 | FLOW_NODE_DEFINITION_ID=7612372541343752276 | FLOW_NODE_INSTANCE_ID=60177 | FLOW_NODE_NAME=Étape1 | CONNECTOR_IMPLEMENTATION_CLASS_NAME=testPUTREST | CONNECTOR_INSTANCE_ID=60079 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input at [Source: ; line: 1, column: 1] at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:275) .... Caused by: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input at [Source: ; line: 1, column: 1] at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)

I have the same result when I use the old community connector (http://community.bonitasoft.com/project/rest-connector), so I think I might be missing something, maybe in my mock or in the connector paramters

And when I test a GET REST call, it works with the same mock project.
Any clue ?
Thanks

To complete, I also tried to call the Bonita REST services.

So if I perform a PUT, it doesn’t seem to use what I selected :

The test I did :

  • PUT URL : http://localhost:8080/bonita/API/identity/user/19 (to update Misa Kumagai)
  • Type : application/json
  • Charset : UTF-8
  • Payload : { “password”:“hello”, “title”:“Mrs”}
    Cookies :
  • Cookie : JSESSIONID=xxxxx
  • X-Bonita-API-Token : yyyyyy

And the test gives a 401 Unauthorized error code :
org.bonitasoft.engine.connector.ConnectorException: org.bonitasoft.engine.connector.ConnectorException: [PUT] http://localhost:8080/bonita/API/identity/user/19 response status is not successful: 401 - Non-Autorisé

Anyone managed to call a PUT REST service with the connector ?