Project

General

Profile

Actions

Bug #10946

closed

User story #8438: Log check-rudder-agent cron job output

Error at generation because of unescaped & in rudder_agent_community_cron.st

Added by Nicolas CHARLES over 7 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

Parent ticket introduced a typo in rudder_agent_community_cron.st, with an unescaped &

error is

problem parsing template 'anonymous'
line 9:1: expecting '&', found '<EOF>'
        at com.normation.stringtemplate.language.NormationAmpersandTemplateLexer.nextToken(NormationAmpersandTemplateLexer.java:144)
        at antlr.TokenBuffer.fill(TokenBuffer.java:69)
        at antlr.TokenBuffer.LA(TokenBuffer.java:80)
        at antlr.LLkParser.LA(LLkParser.java:52)
        at org.antlr.stringtemplate.language.TemplateParser.template(TemplateParser.java:103)
        at org.antlr.stringtemplate.StringTemplate.breakTemplateIntoChunks(StringTemplate.java:850)
        at org.antlr.stringtemplate.StringTemplate.setTemplate(StringTemplate.java:441)
        at org.antlr.stringtemplate.StringTemplate.<init>(StringTemplate.java:299)
        at com.normation.cfclerk.services.impl.Cf3PromisesFileWriterServiceImpl$$anonfun$writePromisesFiles$1.apply(Cf3PromisesFileWriterServiceImpl.scala:211)
...


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #11044: Wrong stderr / stdout redirection of logs from rudder agent check in 4.1ReleasedBenoît PECCATTEActions
Actions #1

Updated by Nicolas CHARLES over 7 years ago

  • Status changed from New to In progress
Actions #2

Updated by Nicolas CHARLES over 7 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1154
Actions #3

Updated by Alexis Mousset over 7 years ago

  • Target version changed from 3.1.22 to 3.1.21
Actions #4

Updated by Alexis Mousset over 7 years ago

  • Subject changed from Error at generation because of unescaped & in rdder_agent_community_cron.st to Error at generation because of unescaped & in rudder_agent_community_cron.st
Actions #5

Updated by Nicolas CHARLES over 7 years ago

  • Status changed from Pending technical review to Pending release
Actions #6

Updated by Alexis Mousset over 7 years ago

  • Status changed from Pending release to Released

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

Actions #7

Updated by Nicolas CHARLES over 7 years ago

Interrestingly, the behavior is not the same in 3.1 and 4.1:
- in 3.1, the \ is mandatory
- in 4.1, \& appear in the cron template file

Actions #8

Updated by Nicolas CHARLES over 7 years ago

  • Related to Bug #11044: Wrong stderr / stdout redirection of logs from rudder agent check in 4.1 added
Actions

Also available in: Atom PDF