Project

General

Profile

Actions

Bug #18777

closed

Clone rule API fails with "rule already exists with that id"

Added by François ARMAND 5 months ago. Updated 4 months ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
User visibility:
Effort required:
Priority:
0

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" 
}


Related issues

Related to Rudder - Architecture #18770: Add API tests for rulesPending releaseElaad FURREEDANActions
Actions #1

Updated by François ARMAND 5 months ago

  • Status changed from New to In progress
Actions #2

Updated by François ARMAND 5 months 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
Actions #3

Updated by François ARMAND 5 months ago

  • Status changed from Pending technical review to Pending release
Actions #4

Updated by François ARMAND 4 months ago

Actions #6

Updated by Vincent MEMBRÉ 4 months 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

Also available in: Atom PDF