Project

General

Profile

Actions

Bug #8667

closed

Randomly appearing "\" character in long string parameters

Added by Anthony Lapenna about 10 years ago. Updated about 10 years ago.

Status:
Rejected
Priority:
High
Assignee:
-
Category:
External Nodes
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

This issue is happening with long string puppet class parameter.

Here is the string I'm trying to set in a parameter:

  <logger name="com.workit" additivity="false">
    <level value="DEBUG" />
    <appender-ref ref="APPLICATION_LOG_FILE" />
  </logger>

I'm using space indentation there (note that it's important).

Here is the result in the host yaml:

logback:
    configuration: ! "<logger name=\"com.workit\" additivity=\"false\">\r\n    <level
      value=\"DEBUG\" />\r\n    <appender-ref ref=\"APPLICATION_LOG_FILE\" />\r\n
      \ </logger>" 

See the "\" before the </logger>? Breaking the configuration.

Now, if I try with tab-indentation the same parameter, here is the host yaml output:

  logback:
    configuration: ! "<logger name=\"com.workit\" additivity=\"false\">\r\n\t\t<level
      value=\"DEBUG\" />\r\n\t\t<appender-ref ref=\"APPLICATION_LOG_FILE\" />\r\n\t</logger>" 

I've setup the priority to HIGH as it's a breaking service configuration issue.

Actions

Also available in: Atom PDF