Project

General

Profile

Bug #12101

Escaping issue in Users Technique Parameter

Added by Ilan COSTA over 1 year ago. Updated over 1 year ago.

Status:
Released
Priority:
N/A
Category:
Web - Technique editor
Target version:
Severity:
Critical - prevents main use of Rudder | no workaround | data loss | security
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
75
Tags:

Description

Hi,

There is a problem in the new Technique Parameters feature in version 4.3 beta

Parameters containing doublequote are not escaping and an error occured during policies regeneration.

For exemple parameter value = "myparam" cause this error :

⇨ Policy update error for process '56' at 2018-02-08 15:26:04
⇨ Cannot write configuration node
⇨ Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'.
stdout: error: There are syntax errors in policy files
stderr: '/var/rudder/share/759d2700-62f7-42bf-9dc6-7c2f846e63a2/rules.new/cfengine-community/rudder-directives.cf:38:69: error: syntax error "N1 - Linux/CMDB-N1-USERS" usebundle => CMDB_N1_USERS(""myparam"");

Related issues

Related to Rudder - Bug #12674: Policies regeneration error when using a parameters with " charReleasedActions

Associated revisions

Revision d8f7492b (diff)
Added by Vincent MEMBRÉ over 1 year ago

Fixes #12101: Escaping issue in Users Technique Parameter

Revision f3ec1959 (diff)
Added by Vincent MEMBRÉ over 1 year ago

Fixes #12101: Escaping issue in Users Technique Parameter

History

#1

Updated by François ARMAND over 1 year ago

  • Category set to Web - Technique editor
  • Target version set to 4.3.0~rc1
  • Severity set to Critical - prevents main use of Rudder | no workaround | data loss | security
  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Priority changed from 0 to 76

Thanks for reporting, we will look to it before final.

#3

Updated by François ARMAND over 1 year ago

  • Assignee set to Vincent MEMBRÉ
#4

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 4.3.0~rc1 to 4.3.0~rc2
  • Priority changed from 76 to 75
#5

Updated by François ARMAND over 1 year ago

  • Tags set to Blocking 4.3
#6

Updated by Vincent MEMBRÉ over 1 year ago

  • Status changed from New to In progress
#7

Updated by Vincent MEMBRÉ over 1 year ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/1875
#8

Updated by Vincent MEMBRÉ over 1 year ago

  • Status changed from Pending technical review to Pending release
#9

Updated by Vincent MEMBRÉ over 1 year ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.3.0~rc2 which was released today.

#10

Updated by Alexis MOUSSET over 1 year ago

  • Related to Bug #12674: Policies regeneration error when using a parameters with " char added

Also available in: Atom PDF