Actions
Bug #18777
closedClone rule API fails with "rule already exists with that id"
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Error - Fixed
Regression:
Description
If you want to clone a rule, giving a source
rule to copy, you get an error:
curl -k -X PUT -H "X-API-TOKEN: xxxxxxx" -H "Content-Type: application/json" 'https://rudder/rudder/api/latest/rules' -d '{"source": "7eaff01b-7440-49be-a727-c7115a6897ce", "displayName":"copy by rest api" }' | jq '.' { "action": "cloneRule", "id": "5d67313f-db54-4702-872d-8569e687c333", "result": "error", "errorDetails": "Could not create Rule <- Consistancy: Cannot create a rule with ID '7eaff01b-7440-49be-a727-c7115a6897ce' : there is already a rule with the same id" }
Updated by François ARMAND almost 4 years ago
- Status changed from New to In progress
Updated by François ARMAND almost 4 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Elaad FURREEDAN
- Pull Request set to https://github.com/Normation/rudder/pull/3451
Updated by François ARMAND almost 4 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|92ccce4b769665e57dde9c284afb079ee0e0032d.
Updated by François ARMAND almost 4 years ago
- Related to Architecture #18770: Add API tests for rules added
Updated by François ARMAND almost 4 years ago
- Fix check changed from To do to Error - Fixed
Updated by Vincent MEMBRÉ almost 4 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 6.1.8 and 6.2.1 which were released today.
Actions