Project

General

Profile

Actions

Bug #18777

closed

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

Added by François ARMAND almost 4 years ago. Updated almost 4 years ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
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" 
}


Related issues 1 (0 open1 closed)

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

Updated by François ARMAND almost 4 years ago

  • Status changed from New to In progress
Actions #2

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
Actions #3

Updated by François ARMAND almost 4 years ago

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

Updated by François ARMAND almost 4 years ago

Actions #5

Updated by François ARMAND almost 4 years ago

  • Fix check changed from To do to Error - Fixed
Actions #6

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

Also available in: Atom PDF