Project

General

Profile

Actions

Bug #6080

closed

When using invalid XML character in the technique parameters, the generated matadata.xml is invalid

Added by Nicolas CHARLES almost 10 years ago. Updated over 2 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Generic methods
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

If i create a meta technique with ncf builder, and put a & in it (like, command execution /path/to/command && /bin/true) then the generated xml file is invalid
rudder log shows the following message:

ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Ignoring technique '/ncf_techniques/Test/1.0/metadata.xml' because the descriptor file is malformed. Error message was: Unexpected issue with the descriptor file /ncf_techniques/Test/1.0/metadata.xml at line 14, column 27: The entity name must immediately follow the '&' in the entity reference.

and Techniques are not reloaded

The generated metadata.xml contains:

<SECTION component="true" multivalued="true" name="Command execution">
      <REPORTKEYS>
        <VALUE>/bin/true && /bin/true</VALUE>
      </REPORTKEYS>
    </SECTION>
  </SECTIONS>

Actions #1

Updated by Nicolas CHARLES almost 10 years ago

Using <![CDATA[xxx]]> solves the issue

Actions #2

Updated by Nicolas CHARLES almost 10 years ago

  • Status changed from New to Pending technical review
  • Assignee set to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/ncf/pull/165
Actions #3

Updated by Nicolas CHARLES almost 10 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #5

Updated by Vincent MEMBRÉ over 8 years ago

  • Status changed from Pending release to Released
Actions #6

Updated by Alexis Mousset over 2 years ago

  • Target version changed from 0.x to ncf-0.x
  • Priority set to 0
Actions #7

Updated by Alexis Mousset over 2 years ago

  • Project changed from 41 to Rudder
  • Category set to Generic methods
Actions

Also available in: Atom PDF