-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF66, 2021.27
-
Component/s: Automation, Streams
-
Release Notes Summary:setProperties Bulk action handles constraint violations.
-
Tags:
-
Backlog priority:800
-
Sprint:nxplatform #70
-
Story Points:5
The setProperties bulk action should handle a constraint violation as a normal error instead of terminate.
Passing an invalid value to a setProperties command using theĀ api/v1/automation/Bulk.RunAction endpoint causes its consumer group to empty, after which subsequent setProperties commands fail silently.
Steps to Reproduce:
- Configure a Nuxeo instance to leverage Kafka (using Nuxeo Kafka documentation, tested with Kafka 2.13-2.8.0)
- Create a File document with some value for dc:nature (e.g. 'Article')
- Attempt to set dc:nature to an invalid value (e.g 'm123') using the following curl:
curl -X POST 'http://localhost:8080/nuxeo/api/v1/automation/Bulk.RunAction' -u ${USER}:${PASS} -H 'content-type: application/json' -d '{"params":{"query":"SELECT * FROM Document WHERE ecm:uuid = \"${DOCUMENT_UID_HERE}\"","action":"setProperties","parameters":"{\"dc:nature\":\"m123\"}"}}'
- Observe DocumentValidationException in server.log (expected)
- Check consumer group status with following command from Kafka /bin directory:
kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe -group nuxeo-bulk-setProperties
Expected behavior: consumers are attached to group; subsequent setProperties commands run successfully.
Actual behavior: 'nuxeo-bulk-setProperties' group is empty, subsequent setProperties commands fail silently.
- is related to
-
NXP-31256 setProperties Bulk action should report errors
- Resolved