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

envinject strips off "\" each time config page is opened

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: envinject-plugin
    • Labels:
      None
    • Environment:
      envinject 1.20
      Jenkins 1.424.1
      Windows XP
    • Similar Issues:

      Description

      I have previously used envinject versions 1.13 and 1.17.
      envinject always had problems with UNC paths in Windows.
      (ex. MY_SHARED_FOLDER=\\MYCOMPUTER\Shared)
      I previously was able to escape these directories by using double slashes
      (MY_SHARED_FOLDER=\\\\MYCOMPUTER\Shared).
      However, one of the updates between 1.17 and 1.20 introduced functionality that updates the the "Properties Content" each time the config page is saved. So after I set my value to "\\\\", and save. If I load the page again, the value is set to "
      ". If I save and load again, this becomes "\".
      This is a very serious issue that forced me to downgrade the plugin even though I really want the Mask Password fix.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesLoader.java
          http://jenkins-ci.org/commit/envinject-plugin/b183fac8743092f6b49e7313ae6353c35ee6ce82
          Log:
          Fix JENKINS-12746

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesLoader.java http://jenkins-ci.org/commit/envinject-plugin/b183fac8743092f6b49e7313ae6353c35ee6ce82 Log: Fix JENKINS-12746

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              rmyung Roger Myung
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: