Actions
Bug #22208
closedDirectives cannot be deleted because change request say state diverged even when there are no change request activated
Status:
Resolved
Priority:
N/A
Assignee:
Category:
Web - Config management
Target version:
Pull Request:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
Some directives cannot be deleted, with amessage saying the state diverged
The log say
[2022-12-21 09:43:45+0100] INFO changeRequest - Saving and deploying change request 0 [2022-12-21 09:43:45+0100] DEBUG changeRequest - CR #0: Attempt to merge Change Request (CR) failed because initial state could not be rebased on current state. [2022-12-21 09:43:45+0100] DEBUG changeRequest - CR #0: Directive ID XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX parameter GENERIC_FILE_CONTENT_PAYLOAD has changed : original state from CR: ArraySeq(### Beginning of file some content here ### End of File), current value: List(Beginning of file some content here ### End of File) [2022-12-21 09:43:45+0100] DEBUG changeRequest - Can not merge change request <- Directive [Name] [Files] Directive name (id: XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX) has diverged since change request creation [2022-12-21 09:43:45+0100] ERROR com.normation.rudder.web.components.popup.ModificationValidationPopup - Error when trying to save your modification <- The change request can not be merge because current item state diverged since its creation
I'm unsure why it considers one part to be a list and the other an arrayseq, but that should be easy to fix
Actions