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

Realms plugin does not work with Artifactory 5.x on HA environment

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.4.4
    • Fix Version/s: 5.11.1, 6.0.1
    • Component/s: Plugins
    • Labels:
      None

      Description

      When creating a user plugin with Realms, Artifactory 5.x fails to log in with the user upon using the plugin.

      Steps to reproduce:
      1. Start Artifactory as HA
      2. Create a simple user plugin with realms:

      realms {
          test(autoCreateUsers: false) {
      
              authenticate { String username, String credentials ->
                  return true
              }
      
              /**
               * Implementation should return true if the user is found in the realm.
               * Closure parameters:
               * username (java.lang.String) - The username
               */
              userExists { String username ->
                  return true
              }
          }
      }
      

      3. After the plugin loaded, try to enter with a user. You will not be able to login to Artifactory. No exception is being thrown. In the developer console you can see a 500 error with the user scope.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                galba Gal Ben Ami
                Reporter:
                alexeiv Alexei Vainshtein
                Assigned QA:
                Gilad Kalchheim (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: