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

Credential replacement in settings.xml losts configuration, filePermissions and directoryPermissions elements

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi, I have enhanced our maven settings.xml for distributionManagement (deploy of maven site).
      I've create credential and bind them with a server id "docserver".
      The settings.xml text contains that server node because the configuration element needed to configure wagon protocol.
      When the file is generated any attribute that is not username, password, privateKey, passphrase are lost.

        Attachments

          Issue Links

            Activity

            Hide
            nfalco Nikolas Falco added a comment -

            I proposed a PR#23 on github

            Show
            nfalco Nikolas Falco added a comment - I proposed a PR#23 on github
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nikolas Falco
            Path:
            src/main/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelper.java
            src/test/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelperTest.java
            src/test/resources/settings_test.xml
            http://jenkins-ci.org/commit/config-file-provider-plugin/67572c0f535307f831daab9aaec5c2a6c323376d
            Log:
            [FIXED JENKINS-39991] Fix the settings.xml credential replacement where some configuration elements as filePermissions, configuration and directoryPermissions were loosed.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nikolas Falco Path: src/main/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelper.java src/test/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelperTest.java src/test/resources/settings_test.xml http://jenkins-ci.org/commit/config-file-provider-plugin/67572c0f535307f831daab9aaec5c2a6c323376d Log: [FIXED JENKINS-39991] Fix the settings.xml credential replacement where some configuration elements as filePermissions, configuration and directoryPermissions were loosed.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: imod
            Path:
            src/main/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelper.java
            src/test/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelperTest.java
            src/test/resources/settings_test.xml
            http://jenkins-ci.org/commit/config-file-provider-plugin/31c76f8ba9aabda128145d31e464e095ac397259
            Log:
            Merge branch 'feature/JENKINS-39991' of https://github.com/nfalco79/config-file-provider-plugin into nfalco79-feature/JENKINS-39991

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelper.java src/test/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelperTest.java src/test/resources/settings_test.xml http://jenkins-ci.org/commit/config-file-provider-plugin/31c76f8ba9aabda128145d31e464e095ac397259 Log: Merge branch 'feature/ JENKINS-39991 ' of https://github.com/nfalco79/config-file-provider-plugin into nfalco79-feature/ JENKINS-39991
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: imod
            Path:
            src/main/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelper.java
            src/test/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelperTest.java
            src/test/resources/settings_test.xml
            http://jenkins-ci.org/commit/config-file-provider-plugin/d1599bf72b906e2e81bc4f7551da0d76ac10b3f7
            Log:
            Merge branch 'nfalco79-feature/JENKINS-39991'

            Compare: https://github.com/jenkinsci/config-file-provider-plugin/compare/58c5aedc9d22...d1599bf72b90

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: imod Path: src/main/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelper.java src/test/java/org/jenkinsci/plugins/configfiles/maven/security/CredentialsHelperTest.java src/test/resources/settings_test.xml http://jenkins-ci.org/commit/config-file-provider-plugin/d1599bf72b906e2e81bc4f7551da0d76ac10b3f7 Log: Merge branch 'nfalco79-feature/ JENKINS-39991 ' Compare: https://github.com/jenkinsci/config-file-provider-plugin/compare/58c5aedc9d22...d1599bf72b90

              People

              • Assignee:
                domi Dominik Bartholdi
                Reporter:
                nfalco Nikolas Falco
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: