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

          abayer Andrew Bayer created issue -
          stephenconnolly Stephen Connolly made changes -
          Field Original Value New Value
          Remote Link This issue links to "PR#77 (Web Link)" [ 15304 ]
          stephenconnolly Stephen Connolly made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          stephenconnolly Stephen Connolly made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          stephenconnolly Stephen Connolly made changes -
          Remote Link This issue links to "cloudbees-folder-plugin#83 (Web Link)" [ 15305 ]
          stephenconnolly Stephen Connolly made changes -
          Status In Review [ 10005 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          cloudbees CloudBees Inc. made changes -
          Remote Link This issue links to "CloudBees Internal OSS-1837 (Web Link)" [ 18543 ]

            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: