Project

General

Profile

Actions

Bug #22036

closed

Import directive API fail for user technique

Added by Elaad FURREEDAN about 2 years ago. Updated about 2 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:
Checked
Regression:
No

Description

How to reproduce

1. First, export the archive of a directive from user technique

curl --request GET \
  --url 'http://<rudderserveradress>/rudder/api/latest/archives/export?directives=<directiveId>&include=all' \
  --header 'content-type: application/json' \
  --header 'x-api-token: <tokenapi>' \
  - o /path/to/archive.zip

2. Try to import the archive
curl --request POST \
  --url https://<rudderserveradress>/rudder/api/latest/archives/import \
  --header 'content-type: multipart/form-data;' \
  --header 'x-api-token: <tokenAPI>' \
  --form archive=@/path/to/archive.zip

We have an error message:

{
  "action": "import",
  "result": "error",
  "errorDetails": "Accumulated: Inconsistency: Technique 'toto/1.0' from archive has category 'ncf_techniques' but a technique with that name already exists in category '//ncf_techniques': it must be imported in the same category, please update your archive." 
}


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #22314: Cannot list directives with APIReleasedFrançois ARMANDActions
Actions #1

Updated by Elaad FURREEDAN about 2 years ago

  • Status changed from New to In progress
Actions #2

Updated by Elaad FURREEDAN about 2 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Elaad FURREEDAN to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/4555
Actions #3

Updated by Anonymous about 2 years ago

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

Updated by François ARMAND about 2 years ago

  • Fix check changed from To do to Checked
Actions #5

Updated by Vincent MEMBRÉ about 2 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.2.2 which was released today.

Actions #6

Updated by Vincent MEMBRÉ almost 2 years ago

  • Related to Bug #22314: Cannot list directives with API added
Actions

Also available in: Atom PDF