Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6052

add-identity-attribute operation persist same attribute more than once in the realm file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 19.0.0.Beta17
    • Security
    • None
    • Hide

      Run below add-identity-attribute operation twice or more.

      /subsystem=elytron/filesystem-realm=exampleFsRealm:add-identity-attribute(identity=user1, name=Roles, value=["Admin","Guest"])
      
      Show
      Run below add-identity-attribute operation twice or more. /subsystem=elytron/filesystem-realm=exampleFsRealm:add-identity-attribute(identity=user1, name=Roles, value=[ "Admin" , "Guest" ])

    Description

      If user add identity attribute with same value more than once, it persists multiple times in the realm file. For example:
       

      <?xml version="1.0" ?>
      <identity xmlns="urn:elytron:1.0">
          <attributes>
              <attribute name="Roles" value="Admin"></attribute>
              <attribute name="Roles" value="Guest"></attribute>
              <attribute name="Roles" value="Admin"></attribute>
              <attribute name="Roles" value="Guest"></attribute>
          </attributes>
          </identity>
      

      Attachments

        Activity

          People

            chaowan@redhat.com Chao Wang
            chaowan@redhat.com Chao Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: