Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21148

Colon (separator) in properties file does not get unescaped

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • envinject-plugin
    • None

      Per .properties file format there are several separators possible:

      http://en.wikipedia.org/wiki/.properties :

      "Several formats are possible for each line, including key=value, key = value, key:value, and key value."

      Thus they should be escaped when used as not a separator. I faced a problem with colon. My properties file contains a json string:

      PARAMETERS=

      {"foo"\:"1","bar"\:"2"}

      it is generated by Groovy Properties and properly escaped. However when this gets injected using EnvInject plugin the colon sing is not unescaped back.

            gbois Gregory Boissinot
            martchukov Anton Martchukov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: