Project

General

Profile

Actions

Bug #17141

closed

When we add a multiline description in a technique, it breaks policy generation and technique loadingg

Added by Nicolas CHARLES over 4 years ago. Updated over 2 years ago.

Status:
Released
Priority:
N/A
Category:
Web - Technique editor
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
Checked
Regression:

Description

if we set a multiline description in technique, only the first line is correctly escaped, resulting in an error

⇨ Policy update error for process '27' at 2020-04-16 18:03:04 
⇨  Cannot write nodes configuration 
⇨  Unexpected: Error when executing hooks:
 Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. [stdout:][stderr:/var/rudder/cfengine-community/inputs.new/plugin_openscap_policies/1.0/technique.cf:4:5: error: syntax error
This Technique takes 2 parameters:
    ^

indeed, text is not correctly escaped

Happens in 6.0 and master, 5.0 is safe from that

Actions #1

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ
Actions #2

Updated by Vincent MEMBRÉ over 4 years ago

  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/2902
Actions #3

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from In progress to Pending release
Actions #4

Updated by Nicolas CHARLES over 4 years ago

  • Fix check changed from To do to Checked
Actions #5

Updated by Alexis Mousset over 4 years ago

  • Subject changed from when we add a multiline description in Technique, it breaks policy generation and technique loading to When we add a multiline description in a technique, it breaks policy generation and technique loadingg
  • Name check changed from To do to Reviewed
Actions #6

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.0.5 which was released today.

Actions #7

Updated by Alexis Mousset over 2 years ago

  • Project changed from 41 to Rudder
  • Category changed from Technique editor - UI/UX to Web - Technique editor
Actions

Also available in: Atom PDF