Actions
Bug #4476
closedNewline characters may be missing from archived files in configuration repository
Status:
Released
Priority:
1 (highest)
Assignee:
Category:
Web - Config management
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
Some characters are not saved in archive file ...
This is due to scala xml pretty printer which remove those newline characters ...
if content of my directive is:
# Rudder manage this file 173.143.102.0/24
what is acutally saved in my file is :
# Rudder manage this file 173.143.102.0/24
In Scala code it occurs on line 166 of GitArchiverUtils.scala:
FileUtils.writeStringToFile(fileName, xmlPrettyPrinter.format(elem), encoding)
Actions