Project

General

Profile

Actions

Bug #24295

closed

API export of groups doesn't export the categories as dependencies

Added by Michel BOUISSOU 3 months ago. Updated 20 days ago.

Status:
Released
Priority:
N/A
Category:
API
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No

Description

The attached file was exported from a Rudder 8.0.4 server using :

curl --insecure --header "X-API-Token: $(cat /var/rudder/run/api-token)" "https://localhost/rudder/api/latest/archives/export?rules=212b0264-0322-49dc-844a-55d1403d5780,3350312d-b790-4c5e-ada5-3b5eeb2d354c,212b0264-0322-49dc-844a-55d1403d5780,6545e355-4f51-4dbd-ac25-14b00c1e83b0,21c06767-92f7-4ecb-a4b1-68127531eff4&groups=e8c2c43a-520d-42a5-b5da-32e72b99128d,9f0442f9-b85d-4669-bc0c-d4af7ee60205&include=all" --output lab_test_2_server_archive_240228b.zip

After having fixed the technique importation issue referenced in bug #24294, importation still fails with :

{"action":"import","result":"error","errorDetails":"Inconsistency: Entry with ID '56929488-6012-423d-849a-7103d9d63b5e' was not found"}

This UUID corresponds to a category to whic a group present in the archive file belongs, but the category was not pulled as a dependancy when creating the achive.

The archive creation should pull as dependencies the categories to which groups belong.

Also, a workaround could be considered when importing a group for which the category doesn't exist on the destination server.


Files


Subtasks 1 (0 open1 closed)

Bug #24616: Upmerge of parent leads to compilation errorReleasedVincent MEMBRÉActions

Related issues 2 (2 open0 closed)

Related to Rudder - Bug #24294: API Import does not reload imported techniques before importing elements that rely on themNewActions
Related to Rudder - Bug #24789: Archive API for import/export doesn't know about technique or rule categoriesIn progressFrançois ARMANDActions
Actions

Also available in: Atom PDF