Actions
Bug #27035
openReportType json serialization in base is incorrect
Status:
Pending release
Priority:
N/A
Assignee:
Category:
Architecture - Code maintenance
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
When we serialize ReportType in base, for last node compliance for ex, we get:
"rt" : { "EnforceRepaired" : {} },
But we really want:
"rt" : "EnforceRepaired",
We do have the first case tested in JsonPostresqlSerializationTest because it was dump from base, and we missed that bit.
Ideally, a correction would be able to deserialize both case and produce only the second.
WARNING: the automatic derivation changes in Scala3 to match what we want, but it means that we need to check all our sealed trait auto-derived encoder (I think it's the only one, but hard to grep)
Updated by François ARMAND 15 days ago
- Status changed from New to In progress
- Assignee set to François ARMAND
Updated by Vincent MEMBRÉ 15 days ago
- Target version changed from 8.3.2 to 8.3.3
Updated by François ARMAND 15 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/6423
Updated by Anonymous 13 days ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder|812a4a4a8ee4335dbe88b5c3010a6f3fe45694f1.
Actions