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

Custom Parsers appear to be provoking multiple Bean creation

    XMLWordPrintable

    Details

      Description

      I noted this in slack and others agreed its weird. This case it to track the time and to bottom out the issue.


      This is a simple unit test (for SourceValue. Running one test with this

      <AttributeDefinition xmlns="urn:mace:shibboleth:2.0:resolver" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          id="container" 
          xsi:schemaLocation="urn:mace:shibboleth:2.0:resolver http://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd"
          xsi:type="Mapped">
          <InputAttributeDefinition ref="TheOrphan" />                    
          <ValueMap>
              <ReturnValue>return</ReturnValue>
              <SourceValue caseSensitive="true" partialMatch="true">sourceValueAttributes1</SourceValue>
          </ValueMap>
      </AttributeDefinition>

      Causes {{ sourceValue#setcaseSensitive()}} to be called thrice on 3 different objects during DefaultListableBeanFactory.preInstantiateSingletons() Once for the SourceValue, once for the ValueMap and Once for root bean definition.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rdw@iay.org.uk Rod Widdowson
              Reporter:
              rdw@iay.org.uk Rod Widdowson
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 15 minutes
                  1h 15m