Project

General

Profile

Actions

Bug #24294

open

API Import does not reload imported techniques before importing elements that rely on them

Added by Michel BOUISSOU 9 months ago. Updated 14 days ago.

Status:
New
Priority:
2
Category:
API
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
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

Trying to import it on a Rudder 8.0.6-nightly with :

curl --insecure --header "X-API-Token: $(cat /var/rudder/run/api-token)" -X POST https://localhost/rudder/api/latest/archives/import --form "archive=@lab_test_2_server_archive_240228b.zip" --form "merge=keep-rule-groups"

fails with :

{"action":"import","result":"error","errorDetails":"Inconsistency: Technique 'inventory_hook__headers_w_o_generic' is used in imported directive Inventory hook: Headers w/o generic but is not in Rudder"}

Although said technique is present in the archive file.

It appears that the importation doesn't properly reload the techniques after import, so the technique is not available when referenced.


Files


Related issues 5 (4 open1 closed)

Related to Rudder - Bug #24295: API export of groups doesn't export the categories as dependenciesReleasedVincent MEMBRÉActions
Related to Rudder - Bug #24013: Cannot import via API an archive made from an UI export of an archive via APINewFrançois ARMANDActions
Related to Rudder - Architecture #7471: Techniques should be reloaded before importing an archiveNewActions
Related to Rudder - Bug #20520: Error while importing ncf techniques using the restore from latest commit featureNewActions
Related to Rudder - Enhancement #22342: Add a "all" keyword for export API in place of listing UUIDs of rule/directive/etcNewFrançois ARMANDActions
Actions

Also available in: Atom PDF