Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-14100

kimIdentityDelegateService bean definition in KIMLdapSpringBeans.xml is broken

    Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.4.2, 2.5.1
    • Fix Version/s: 2.6
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Rice Module:
      KIM
    • KRAD Feature Area:
      KIM Integration
    • Sprint:
      Middleware 2.5.2 Sprint 5, Rice Sprint 2015-02-18
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes
    • Story Points:
      5

      Description

      The bean "kimIdentityDelegateService" is improperly defined in KIMLdapSpringBeans.xml

      <bean id="kimIdentityDelegateService" class="org.kuali.rice.kim.service.impl.LdapIdentityDelegateServiceImpl"
      p:businessObjectService-ref="rice.kim.import.businessObjectService"
      p:criteriaLookupService-ref="rice.kim.import.criteriaLookupService">
      <property name="principalDao" ref="ldapPrincipalDao" />
      </bean>

      Two problems here.

      • the property businessObjectService was changed to dataObjectService in Rice 2.4.
      • the property criteriaLookupService is obsolete

      I think the bean definition should be changed to:

      <bean id="kimIdentityDelegateService" class="org.kuali.rice.kim.service.impl.LdapIdentityDelegateServiceImpl"
      p:dataObjectService-ref="dataObjectService">
      <property name="principalDao" ref="ldapPrincipalDao" />
      </bean>

      The startup error when attempting to boot when using an ldap integration:

      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kimConfigurer' defined in class path resource [org/kuali/rice/config/RiceServiceSpringBeans.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kimIdentityDelegateService' defined in class path resource [org/kuali/rice/kim/config/KIMLdapSpringBeans.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'businessObjectService' of bean class [org.kuali.rice.kim.service.impl.LdapIdentityDelegateServiceImpl]: Bean property 'businessObjectService' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)

        Attachments

          Activity

          dsiebert Daniel Seibert (Inactive) created issue -
          dsiebert Daniel Seibert (Inactive) made changes -
          Field Original Value New Value
          Assignee Daniel Seibert [ dsiebert ]
          dsiebert Daniel Seibert (Inactive) made changes -
          Description The bean "kimIdentityDelegateService" is improperly defined in KIMLdapSpringBeans.xml

          <bean id="kimIdentityDelegateService" class="org.kuali.rice.kim.service.impl.LdapIdentityDelegateServiceImpl"
               p:businessObjectService-ref="rice.kim.import.businessObjectService"
                  p:criteriaLookupService-ref="rice.kim.import.criteriaLookupService">
                <property name="principalDao" ref="ldapPrincipalDao" />
           </bean>

          Two problems here.
          - the property businessObjectService was changed to dataObjectService in Rice 2.4.
          - the property criteriaLookupService is obsolete

          I think the bean definition should be changed to (untested):
          <bean id="kimIdentityDelegateService" class="org.kuali.rice.kim.service.impl.LdapIdentityDelegateServiceImpl"
               p:dataObjectService-ref="rice.kim.import.businessObjectService">
                <property name="principalDao" ref="ldapPrincipalDao" />
              </bean>



          The startup error when attempting to boot when using an ldap integration:

          org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kimConfigurer' defined in class path resource [org/kuali/rice/config/RiceServiceSpringBeans.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kimIdentityDelegateService' defined in class path resource [org/kuali/rice/kim/config/KIMLdapSpringBeans.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'businessObjectService' of bean class [org.kuali.rice.kim.service.impl.LdapIdentityDelegateServiceImpl]: Bean property 'businessObjectService' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)
          The bean "kimIdentityDelegateService" is improperly defined in KIMLdapSpringBeans.xml

          <bean id="kimIdentityDelegateService" class="org.kuali.rice.kim.service.impl.LdapIdentityDelegateServiceImpl"
               p:businessObjectService-ref="rice.kim.import.businessObjectService"
                  p:criteriaLookupService-ref="rice.kim.import.criteriaLookupService">
                <property name="principalDao" ref="ldapPrincipalDao" />
           </bean>

          Two problems here.
          - the property businessObjectService was changed to dataObjectService in Rice 2.4.
          - the property criteriaLookupService is obsolete

          I think the bean definition should be changed to:

          <bean id="kimIdentityDelegateService" class="org.kuali.rice.kim.service.impl.LdapIdentityDelegateServiceImpl"
               p:dataObjectService-ref="dataObjectService">
                <property name="principalDao" ref="ldapPrincipalDao" />
              </bean>



          The startup error when attempting to boot when using an ldap integration:

          org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kimConfigurer' defined in class path resource [org/kuali/rice/config/RiceServiceSpringBeans.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kimIdentityDelegateService' defined in class path resource [org/kuali/rice/kim/config/KIMLdapSpringBeans.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'businessObjectService' of bean class [org.kuali.rice.kim.service.impl.LdapIdentityDelegateServiceImpl]: Bean property 'businessObjectService' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)
          ewestfal Eric Westfall made changes -
          Labels LDAP LDAP NearTerm
          ewestfal Eric Westfall made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          ewestfal Eric Westfall made changes -
          Rank Ranked higher
          ewestfal Eric Westfall made changes -
          Rank Ranked higher
          ewestfal Eric Westfall made changes -
          Story Points 5
          cniesen Claus Niesen made changes -
          Sprint Middleware 2.5.2 Sprint 5 [ 451 ]
          cniesen Claus Niesen made changes -
          Rank Ranked lower
          sonam Sona Sona (Inactive) made changes -
          Assignee Daniel Seibert [ dsiebert ] Sona Sona [ sonam ]
          cniesen Claus Niesen made changes -
          Fix Version/s 2.6 [ 17820 ]
          sonam Sona Sona (Inactive) made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          sonam Sona Sona (Inactive) made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          cniesen Claus Niesen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          cniesen Claus Niesen made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          cniesen Claus Niesen made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          cniesen Claus Niesen made changes -
          Sprint Middleware 2.5.2 Sprint 5 [ 451 ] Middleware 2.5.2 Sprint 5, Rice 2.6.0-M1 Sprint 1 [ 451, 455 ]
          cniesen Claus Niesen made changes -
          Rank Ranked higher
          sonam Sona Sona (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          cniesen Claus Niesen made changes -
          Fix Version/s 2.5.3 [ 17927 ]
          Fix Version/s 2.6 [ 17820 ]
          cniesen Claus Niesen made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          sonam Sona Sona (Inactive) made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          sonam Sona Sona (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          cniesen Claus Niesen made changes -
          Fix Version/s 2.6 [ 17820 ]
          Fix Version/s 2.5.3 [ 17927 ]

            People

            • Assignee:
              sonam Sona Sona (Inactive)
              Reporter:
              dsiebert Daniel Seibert (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: