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

Update Group REST API doesn’t update the realmAttributes parameter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: REST API
    • Labels:
      None
    • Severity:
      Medium
    • Location:
      External

      Description

      Problem description:

      When executing the Update Group REST API with payload as below, it doesn’t update the realmAttributes as expected.

      {
          "name": "support",
          "autoJoin": false,
          "realm": "ldap",
          "realmAttributes": "ldapGroupName=support;groupsStrategy=STATIC;groupDn=cn=support,ou=groups,dc=example,dc=org",
          "adminPrivileges": false,
          "policyManager": false,
          "watchManager": false,
          "reportsManager": false
      }
       

      Expected behavior:

      Executing the Update Group REST API with new realmAttributes value should update the realmAttributes as expected.

      Steps to reproduce:

      1. Create a group using Create or Replace Group as below or import an LDAP group:

      curl -uadmin:password -XPUT  -H "Content-Type:application/json" 'http://test.jfrog.info:8081/artifactory/api/security/groups/supporttest' -d '{
          "name": "supporttest",
          "autoJoin": false,
          "realm": "ldap",
          "realmAttributes": "ldapGroupName=support;groupsStrategy=STATIC;groupDn=cn=supporttest,ou=groups,dc=example,dc=org",
          "adminPrivileges": false,
          "policyManager": false,
          "watchManager": false,
          "reportsManager": false
      }'
      

      2. Execute the Update Group REST API with the updated realmAttributes parameter in the payload

       curl -uadmin:password -XPOST  -H "Content-Type:application/json"
      'http://test.jfrog.info:8081/artifactory/api/security/groups/supporttest' -d '{
          "name": "supporttest",
          "autoJoin": false,
          "realm": "ldap",
          "realmAttributes": "ldapGroupName=support;groupsStrategy=STATIC;groupDn=cn=supporttest-new,ou=groups,dc=example,dc=org",
          "adminPrivileges": false,
          "policyManager": false,
          "watchManager": false,
          "reportsManager": false
      }'
      

      3. Execute the Get Group Details REST API and we could observe that the realmAttributes are not being updated as expected. 

      curl -uadmin:Password1 'http://test.jfrog.info:8081/artifactory/api/security/groups/supporttest'
      {
        "name" : "supporttest",
        "autoJoin" : false,
        "realm" : "ldap",
        "realmAttributes" : "ldapGroupName=support;groupsStrategy=STATIC;groupDn=cn=supporttest,ou=groups,dc=example,dc=org",
        "adminPrivileges" : false,
        "policyManager" : false,
        "watchManager" : false,
        "reportsManager" : false
      }
      
      

      Possible workaround: No

       

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              vigneshc Vignesh C
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Sync Status

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