Bug #5866
closed
ncf API hooks don't always fail on errors
Added by Nicolas CHARLES almost 10 years ago.
Updated almost 10 years ago.
Category:
Web - Technique editor
Description
When we create a new technique with ncf-builder, there may be some errors with the post commit hook, that generates the Technique part
However, error there a never caught, so it silently fails, and create a non usable technique into Rudder.
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Jonathan CLARKE
- Pull Request set to https://github.com/Normation/rudder-packages/pull/544
- Subject changed from Error on Techniques creation may not be reported to ncf API hooks don't always fail on errors
- Status changed from Pending technical review to 8
- Assignee changed from Jonathan CLARKE to Benoît PECCATTE
All the hooks we run from the ncf API should be set -e and report pertinent error messages on failure:
The initial PR presented here is too simple: it only adresses one error case. We should extend this principle.
- Target version changed from 2.11.5 to 2.11.6
- Status changed from 8 to Pending technical review
- Assignee changed from Benoît PECCATTE to Jonathan CLARKE
- Pull Request changed from https://github.com/Normation/rudder-packages/pull/544 to https://github.com/Normation/rudder-packages/pull/567
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset packages:rudder-packages|commit:b70e9879fe5f565d856439159869776c84dfd185.
Applied in changeset packages:rudder-packages|commit:c19c64ae14e94848c9f41d87f0b693ffe3ecc20c.
- Target version changed from 2.11.6 to 2.11.7
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.11.7, which was released these days.
Also available in: Atom
PDF