User story #1848

Escape special characters like ' " or ! in directive values

Added by Nicolas PERRON over 6 years ago. Updated almost 5 years ago.

Web - Config management
Target version (plugin):
Suggestion strength:
User visibility:
Effort required:
Pull Request:


I kept breaking my Rudder by setting a MOTD with double quotes in. We added a regex validator like "([^"]|(?<=\\)")*" to one PT to disallow quotes unless they're escaped, but it's a bit of a hack...

In a more global frame, this should probably be applied automatically to almost all input passed to CFEngine...

Related issues

Related to Rudder - Bug #2170: MOTD PT should validate the MOTD value with a regex Released 2012-01-12
Related to Rudder - Bug #3108: break rules generation using quotes in a "File content" in a directive like "Enforce a file content" Rejected 2012-12-27
Related to Rudder - User story #2887: Add a warning in the checkGenericFileContent Technique about quotes Released 2012-09-10
Duplicated by Rudder - Bug #2823: Some special characters seems to not be escaped in MOTD Technique Rejected 2012-08-17


#1 Updated by Jonathan CLARKE over 6 years ago

  • Target version changed from 23 to 18

#2 Updated by Fran├žois ARMAND about 6 years ago

  • Target version changed from 18 to 24

#3 Updated by Jonathan CLARKE over 5 years ago

  • Tracker changed from Bug to User story
  • Subject changed from MOTD Policy Instance can't escape characters like ' " or ! to Escape special characters like ' " or ! in directive values
  • Description updated (diff)
  • Priority changed from 4 to 3
  • Target version changed from 24 to Ideas (not version specific)

#4 Updated by Michael Gliwinski about 5 years ago

I just ran into this in checkGenericFileContent technique.

It appears #2947 is related too.

#5 Updated by Nicolas CHARLES almost 5 years ago

  • Status changed from New to Rejected

I'm rejecting as a duplicated of #2947

Also available in: Atom PDF