Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-26854

Conan authentication fails after updating group in UI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 7.31.10, 7.33.6
    • Fix Version/s: 7.37.13, 7.38.0
    • Component/s: UI
    • Labels:
      None
    • Location:
      External

      Description

      Problem Description: If we update a group by adding a user in the UI that gives permissions to the conan repository, we then need to re-add the credentials to the conan client.

      What is the impact:  The build jobs will fail until the password/API-Key is re-entered.

      What is the expected behavior: Updating the group should not remove credentials on conan client when the group is updated.

      Steps to Reproduce:

      1. create conan-user, group and permission to deploy/resolve from Conan remote repository
      2. Add the remote to conan client and add authentication

            conan remote add conan-remote http://jfrog-url.com/artifactory/api/conan/conan-remote

            conan user --password API-Key --remote conan-remote conan-user

             3. Download conan artifact in loop with the following conanfile.py:

      from conan import ConanFile

      from conan.tools.cmake import cmake_layout 

      class compressorRecipe(ConanFile):

          # Binary configuration

          settings = "os", "compiler", "build_type", "arch"

          generators = "CMakeToolchain", "CMakeDeps"

       

          def requirements(self):

              self.requires("zlib/1.2.11")

       

      while conan install . -r conan-remote; sleep 2s; conan remove zlib --force; do true; done

       

             4. This will loop through the downloads and we can see as soon as we update the group by adding an additional user in the UI, we are then again prompted to add password

      Please enter a password for "conan-user" account:.....

       

      Environment Details: Artifactory 7.33 with psql

      Possible Workaround: none

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              scottm Scott Mosher
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-26864 -
                  SYNCHRONIZED
                  • Last Sync Date: