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

Credentials Binding does not guarantee folder credential with a given ID will be returned over global credential with same ID

    Details

    • Similar Issues:

      Description

      So starting with credentials 1.28 and https://github.com/jenkinsci/credentials-plugin/commit/68dc8c9607ec66f474824ec0489a38c205bfdd18, the list of credentials returned by CredentialsProvider.lookupCredentials is now sorted alphabetically. That means that if you've got multiple providers supplying different credentials for the same ID, CredentialsProvider.findCredentialsById will return the first of those in alphabetical order. The result of this is that you don't necessarily get, say, the folder credential instead of the global credential, if the names are different. This...seems wrong to me.

        Attachments

          Activity

            People

            • Assignee:
              stephenconnolly Stephen Connolly
              Reporter:
              abayer Andrew Bayer
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: