Property replacement not working in springResources

Description

The RDBMS and LDAP DataConnectors support a property called springResources which allows configuration to be loaded from a file containing spring beans.

<resolver:DataConnector id="myLDAP" xsi:type="dc:LDAPDirectory" springResources="file:/some/path/ldap-attribute-resolver-context.xml"/>

This component uses the spring PathMatchingResourcePatternResolver and does not appear to be property aware.
Deployers will most likely want to use

%{idp.home}

Environment

None

Attachments

8
  • 10 Feb 2015, 07:45 PM
  • 10 Feb 2015, 07:45 PM
  • 10 Feb 2015, 07:45 PM
  • 10 Feb 2015, 07:45 PM
  • 05 Feb 2015, 09:18 PM
  • 05 Feb 2015, 09:18 PM
  • 05 Feb 2015, 09:18 PM
  • 05 Feb 2015, 09:18 PM

Activity

Marvin AddisonFebruary 11, 2015 at 11:44 AM

+1 to resolve. Thanks for your work on this Rod.

Rod WiddowsonFebruary 11, 2015 at 11:29 AM

Thanks Marvin.

Are you OK with me resolving this case now?

Marvin AddisonFebruary 10, 2015 at 7:45 PM

Attached working attribute-resolver.xml and dependent Spring context configs.

Marvin AddisonFebruary 10, 2015 at 7:41 PM

This is now working how I'd like: I can use %{idp.home} in the springResources value in attribute-resolver.xml and all my property replacements work in the imported Spring XML files like I want.

Rod WiddowsonFebruary 9, 2015 at 12:50 PM

That's the tests complete. Ready for external test now (thanks Marvin).

Documentation pending,

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Created February 5, 2015 at 5:58 PM
Updated May 25, 2021 at 10:46 PM
Resolved February 23, 2015 at 2:36 PM

Flag notifications