Project

General

Profile

Actions

Bug #3768

closed

Restoring Rules with old fileFormat version does not work

Added by Vincent MEMBRÉ almost 11 years ago. Updated over 10 years ago.

Status:
Released
Priority:
1
Category:
Web - Maintenance
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

Restoring and archive starts by getting all xml files in /var/rudder/configuration-repository.

If one of those xml file has an old fileFormat, rudder migrates it to the latest version.

But this is not working for Rules : The migration is done, but it still uses the old wml file to unserialise

 for {
   ruleXml <- xmlMigration.getUpToDateXml(xml)
   rule    <- ruleUnserialisation.unserialise(xml)
 } yield {
   rule
 }

ruleXML should be used instead of rule

Actions #1

Updated by Vincent MEMBRÉ almost 11 years ago

  • Status changed from New to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/272
Actions #2

Updated by François ARMAND over 10 years ago

  • Status changed from Pending technical review to Pending release

It was merged, but the commit message was erroneous and should have been "fixed"

Actions #3

Updated by Nicolas PERRON over 10 years ago

  • Subject changed from restoring Rule with old fileFormat is not working to Restoring Rules with old fileFormat version does not work
Actions #4

Updated by Nicolas PERRON over 10 years ago

  • Status changed from Pending release to Released
Actions #5

Updated by Nicolas PERRON over 10 years ago

This bug has been fixed in Rudder 2.4.7, which was released today.
Check out:

Actions

Also available in: Atom PDF