Uploaded image for project: 'Identity Provider'
  1. Identity Provider
  2. IDP-1497

3.4 Template AttributeDefinition ignores error condition that the numbers of attribute values are different

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.4.4
    • Fix Version/s: None
    • Component/s: Attribute Resolver
    • Labels:
      None

      Description

      With the following code, the error condition is ignored with obviously non-existennt attribute mail2 and existent attribute uid.
      Then it produces "${mail2}" literally.

          <DataConnector id="staticAttributes" xsi:type="Static">
              <Attribute id="uid">
                  <Value>test001</Value>
              </Attribute>
              <Attribute id="mail">
                  <Value> </Value>
              </Attribute>
          </DataConnector>
           <AttributeDefinition xsi:type="Template" id="mail">
              <Dependency ref="staticAttributes"/>
              <AttributeEncoder xsi:type="SAML1String" name="urn:mace:dir:attribute-def:mail" encodeType="false" />
              <AttributeEncoder xsi:type="SAML2String" name="urn:oid:0.9.2342.19200300.100.1.3" friendlyName="mail" encodeType="false" />
              <Template>
                  <![CDATA[
      ${mail2}
                  ]]>
              </Template>
              <SourceAttribute>uid</SourceAttribute>
              <SourceAttribute>mail2</SourceAttribute>
          </AttributeDefinition>
      

      I think the 3.3.3 behavior that raises the error below must be expected.

      2019-09-14 01:06:56,916 - ERROR [net.shibboleth.idp.attribute.resolver.ad.impl.TemplateAttributeDefinition:299] - Attribute Definition 'mail': All source attributes used in TemplateAttributeDefinition must have the same number of values: 'mail2'
      

        Attachments

          Activity

            People

            Assignee:
            cantor.2@osu.edu Scott Cantor
            Reporter:
            takeshi@gakunin.nii.ac.jp Takeshi Nishimura
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: