Project

General

Profile

Actions

Bug #11348

closed

Impossible to save a new technique when last char in a parameter is a backslash

Added by Alexis Mousset about 7 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
N/A
Category:
Web - Technique editor
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

I get a generic error message in the interface, which is not helpful, and in the logs:

[Tue Sep 12 10:25:25.930461 2017] [wsgi:error] [pid 19007:tid 139863704770304] ERROR: Could not write technique 'toto' from path /var/rudder/configuration-repository/ncf, cause is: Error while running post-hook command /var/rudder/configuration-repository/ncf/ncf-hooks.d/post.write_technique.50_rudderify.sh /var/rudder/configuration-repository/ncf toto
[Tue Sep 12 10:25:25.930807 2017] [wsgi:error] [pid 19007:tid 139863704770304] INFO: Alternative source path added: /var/rudder/configuration-repository/ncf
[Tue Sep 12 10:25:25.930840 2017] [wsgi:error] [pid 19007:tid 139863704770304] ERROR: Could not parse Technique 'toto'
[Tue Sep 12 10:25:25.930844 2017] [wsgi:error] [pid 19007:tid 139863704770304]  caused by : Error while running post-hook command cf-promises -pjson -f /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf
[Tue Sep 12 10:25:25.930848 2017] [wsgi:error] [pid 19007:tid 139863704770304] /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf:9:92: error: syntax error
[Tue Sep 12 10:25:25.930865 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "method_call" usebundle => command_execution("dir C:\\"),
[Tue Sep 12 10:25:25.930868 2017] [wsgi:error] [pid 19007:tid 139863704770304]                                                                                            ^
[Tue Sep 12 10:25:25.930896 2017] [wsgi:error] [pid 19007:tid 139863704770304] /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf:9:92: error: Expected ',', wrong input 'any'
[Tue Sep 12 10:25:25.930901 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "method_call" usebundle => command_execution("dir C:\\"),
[Tue Sep 12 10:25:25.930905 2017] [wsgi:error] [pid 19007:tid 139863704770304]                                                                                            ^
[Tue Sep 12 10:25:25.930920 2017] [wsgi:error] [pid 19007:tid 139863704770304] /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf:10:101: error: Invalid function argument, wrong input '");
[Tue Sep 12 10:25:25.930931 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "'
[Tue Sep 12 10:25:25.930936 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "method_call" usebundle => command_execution("dir C:\\"),
[Tue Sep 12 10:25:25.930939 2017] [wsgi:error] [pid 19007:tid 139863704770304]                                                                                                     ^
[Tue Sep 12 10:25:25.930942 2017] [wsgi:error] [pid 19007:tid 139863704770304] /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf:10:112: error: Expected ',', wrong input 'method_call'
[Tue Sep 12 10:25:25.931016 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "method_call" usebundle => command_execution("dir C:\\"),
[Tue Sep 12 10:25:25.931028 2017] [wsgi:error] [pid 19007:tid 139863704770304]                                                                                                                ^
[Tue Sep 12 10:25:25.931036 2017] [wsgi:error] [pid 19007:tid 139863704770304] /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf:10:145: error: Invalid function argument, wrong input '" usebundle => directory_absent("'
[Tue Sep 12 10:25:25.931055 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "method_call" usebundle => command_execution("dir C:\\"),
[Tue Sep 12 10:25:25.931062 2017] [wsgi:error] [pid 19007:tid 139863704770304]                                                                                                                                                 ^
[Tue Sep 12 10:25:25.931066 2017] [wsgi:error] [pid 19007:tid 139863704770304] /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf:10:147: error: Expected ',', wrong input 'C:'
[Tue Sep 12 10:25:25.931072 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "method_call" usebundle => command_execution("dir C:\\"),
[Tue Sep 12 10:25:25.931083 2017] [wsgi:error] [pid 19007:tid 139863704770304]                                                                                                                                                   ^
[Tue Sep 12 10:25:25.931090 2017] [wsgi:error] [pid 19007:tid 139863704770304] /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf:10:148: error: Invalid function argument, wrong input '\\'
[Tue Sep 12 10:25:25.931094 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "method_call" usebundle => command_execution("dir C:\\"),
[Tue Sep 12 10:25:25.931098 2017] [wsgi:error] [pid 19007:tid 139863704770304]                                                                                                                                                    ^
[Tue Sep 12 10:25:25.931103 2017] [wsgi:error] [pid 19007:tid 139863704770304] /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf:10:152: error: Expected ',', wrong input 'toto'
[Tue Sep 12 10:25:25.931106 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "method_call" usebundle => command_execution("dir C:\\"),
[Tue Sep 12 10:25:25.931110 2017] [wsgi:error] [pid 19007:tid 139863704770304]                                                                                                                                                        ^
[Tue Sep 12 10:25:25.931114 2017] [wsgi:error] [pid 19007:tid 139863704770304] /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf:10:156: error: Invalid function argument, wrong input '", "'
[Tue Sep 12 10:25:25.931117 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "method_call" usebundle => command_execution("dir C:\\"),
[Tue Sep 12 10:25:25.931121 2017] [wsgi:error] [pid 19007:tid 139863704770304]                                                                                                                                                            ^
[Tue Sep 12 10:25:25.931128 2017] [wsgi:error] [pid 19007:tid 139863704770304] /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf:11:188: error: Expected ',', wrong input '"),
[Tue Sep 12 10:25:25.931140 2017] [wsgi:error] [pid 19007:tid 139863704770304]       ifvarclass => concat("'
[Tue Sep 12 10:25:25.931150 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "method_call" usebundle => command_execution("dir C:\\"),
[Tue Sep 12 10:25:25.931205 2017] [wsgi:error] [pid 19007:tid 139863704770304]                                                                                                                                                                                            ^
[Tue Sep 12 10:25:25.931228 2017] [wsgi:error] [pid 19007:tid 139863704770304] /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf:11:191: error: Invalid function argument, wrong input 'any'
[Tue Sep 12 10:25:25.931254 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "method_call" usebundle => command_execution("dir C:\\"),
[Tue Sep 12 10:25:25.931269 2017] [wsgi:error] [pid 19007:tid 139863704770304]                                                                                                                                                                                               ^
[Tue Sep 12 10:25:25.931283 2017] [wsgi:error] [pid 19007:tid 139863704770304] /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf:12:200: error: Expected ',', wrong input '");
[Tue Sep 12 10:25:25.931289 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "'
[Tue Sep 12 10:25:25.931293 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "method_call" usebundle => command_execution("dir C:\\"),
[Tue Sep 12 10:25:25.931304 2017] [wsgi:error] [pid 19007:tid 139863704770304]                                                                                                                                                                                                        ^
[Tue Sep 12 10:25:25.931319 2017] [wsgi:error] [pid 19007:tid 139863704770304] /var/rudder/configuration-repository/ncf/50_techniques/toto/toto.cf:12:211: error: Invalid function argument, wrong input 'method_call'
[Tue Sep 12 10:25:25.931322 2017] [wsgi:error] [pid 19007:tid 139863704770304]     "method_call" usebundle => command_execution("dir C:\\"),
[Tue Sep 12 10:25:25.931326 2017] [wsgi:error] [pid 19007:tid 139863704770304]                                                                                                                                                                                                                   ^
[Tue Sep 12 10:25:25.931330 2017] [wsgi:error] [pid 19007:tid 139863704770304] Too many errors
[Tue Sep 12 10:25:25.931335 2017] [wsgi:error] [pid 19007:tid 139863704770304] 
[Tue Sep 12 10:25:25.931337 2017] [wsgi:error] [pid 19007:tid 139863704770304] Error: Unable to create Rudder Technique files related to ncf Technique toto, cannot find ncf Technique toto
[Tue Sep 12 10:25:25.931338 2017] [wsgi:error] [pid 19007:tid 139863704770304] None
[Tue Sep 12 10:25:25.931340 2017] [wsgi:error] [pid 19007:tid 139863704770304] 


Related issues 2 (0 open2 closed)

Related to Rudder - Bug #13890: Constant error message in Technique Editor when an invalid technique as been createdResolvedVincent MEMBRÉActions
Is duplicate of Rudder - Bug #7745: \ are not escaped in technique editorResolvedActions
Actions

Also available in: Atom PDF