Actions
Bug #27953
openIf we give the same rules id two times in export API, it's included two time in archive
Bug #27953:
If we give the same rules id two times in export API, it's included two time in archive
Status:
Pending release
Priority:
N/A
Assignee:
Category:
Web - Maintenance
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No
Description
For ex,
curl -k -H "X-API-Token: xxxx -H "Content-Type: application/json" -X GET 'http://localhost:8082/rudder-web/api/latest/archives/export?rules=eff9e40d-5ccf-450a-801a-d4432a7592e4,eff9e40d-5ccf-450a-801a-d4432a7592e4' --output archive.zip
Leads to archive:
#in rudder/archives/archive ❯ ls rules 050__Test_grouping_by_value.json 050__Test_grouping_by_value.json_1
Updated by François ARMAND 9 days ago
- Status changed from New to In progress
Updated by François ARMAND 9 days ago
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Clark ANDRIANASOLO
- Pull Request set to https://github.com/Normation/rudder/pull/6752
Updated by Anonymous 6 days ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|7175be6b06546537780773f6bc0f54e00cf0c9f2.
Updated by Clark ANDRIANASOLO 3 days ago
- Fix check changed from To do to Checked
✓ in the Archive I got only a single occurrence
curl --silent -k -H @/var/rudder/run/api-token-header 'https://localhost/rudder/api/latest/archives/export?rules=c976f1c5-3088-4482-87b4-361e17e0a21f,c976f1c5-3088-4482-87b4-361e17e0a21f' --output export-duplicate-rule.zip
ends up with a single entry :
>>> unzip export-duplicate-rule.zip >>> ls archive/rules/ Test_linked_directive_enable_disable.json >>> ls -A archive/rules/ | wc -l 1
Updated by Félix DALLIDET 3 days ago
- Subject changed from If we give the same category id two times in export API, it's included two time in archive to If we give the same rules id two times in export API, it's included two time in archive
- Fix check changed from Checked to To do
Updated by Clark ANDRIANASOLO 3 days ago
- Fix check changed from To do to Checked
Actions