When issuing such curl request:
curl 'http://localhost:8080/nuxeo/api/v1/search/pp/default_search/bulk/csvExport' -X POST -u Administrator:Administrator -H 'Content-Type: application/json' --compressed
to export the default search result set in CSV, I got the following response:
{ "action": "csvExport", "commandId": "cb501c1d-309c-4cd1-90b6-0a6b8055ee1d", "completed": null, "entity-type": "bulkStatus", "processed": 0, "scrollEnd": null, "scrollStart": null, "state": "SCHEDULED", "submitted": "2018-10-31T15:14:31.755Z", "total": 0, "username": "Administrator" }
Then I keep GET on http://localhost:8080/nuxeo/api/v1/bulk/cb501c1d-309c-4cd1-90b6-0a6b8055ee1d
and the answer is:
{ "action": "csvExport", "commandId": "cb501c1d-309c-4cd1-90b6-0a6b8055ee1d", "completed": null, "entity-type": "bulkStatus", "processed": 0, "scrollEnd": "2018-10-31T15:14:31.813Z", "scrollStart": "2018-10-31T15:14:31.811Z", "state": "RUNNING", "submitted": "2018-10-31T15:14:31.755Z", "total": 8, "username": "Administrator" }
which seems normal but the command stays in RUNNING state forever :/
EDIT the above occurs with a bare nuxeo with h2/no redis, restarting the server with a nxserver/data/stream deletion solves the issue