Actions
Bug #22036
closedImport directive API fail for user technique
Pull Request:
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." }
Updated by Elaad FURREEDAN about 2 years ago
- Status changed from New to In progress
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
Updated by Anonymous about 2 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|c30abd65afe2380f0d9573909491983df6c9530a.
Updated by François ARMAND almost 2 years ago
- Fix check changed from To do to Checked
Updated by Vincent MEMBRÉ almost 2 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.2.2 which was released today.
Updated by Vincent MEMBRÉ almost 2 years ago
- Related to Bug #22314: Cannot list directives with API added
Actions