Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-399

Role attribute mapping for user mapping item doesn't result in a multivalue property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.2, 1.2.0-M1
    • Fix Version/s: 1.1.3, 1.2.0-M1
    • Component/s: core
    • Labels:
      None

      Description

      Role attribute mapping for user mapping item doesn't result in a multivalue property.

      Take a look at MappingUtil.prepareAttribute() method: at the end of this method the cardinality of the attribute to be propagated has been retrieved by the following code

      if (schema != null && schema.isMultivalue())

      { result = new AbstractMap.SimpleEntry<String, Attribute>(null, AttributeBuilder.build(extAttrName, objValues)); }

      else

      { result = new AbstractMap.SimpleEntry<String, Attribute>(null, objValues.isEmpty() ? AttributeBuilder.build(extAttrName) : AttributeBuilder.build(extAttrName, objValues.iterator().next())); }

      In case of user mapping item related to a merbership or role attribute (non multivalued) a single value will be propagated.

        Attachments

          Activity

            People

            • Assignee:
              fmartelli fabio martelli
              Reporter:
              fmartelli fabio martelli
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: