Project

General

Profile

Actions

Bug #22036

closed

Import directive API fail for user technique

Added by Elaad FURREEDAN over 1 year ago. Updated over 1 year 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

Also available in: Atom PDF