Mark Rohan (Migrated from SEC-1732) said:
When including multiple comma separated LDIF file resources, the ApacheDSContainer class is not looping over the LDIF file array and importing each one. Rather, it is only importing the first file in the array.
Luke Taylor said:
I've implemented looping over resources. However, the syntax supported is a Spring resource string, not comma-separated values.
If you are using multiple LDIF files then they need to be loaded in the correct order, and that isn't guaranteed if you are using classpath resources. So I'd recommend you stick to a single file. The current documentation only refers to a single resource unless you don't specify a value, in which case it scans the classpath.
I think this is actually a bad idea as the behaviour may be different on different VMs or Spring versions. I'd prefer a fail-fast option if more than one resource is located using the supplied pattern.
Reverted the original commit and the code now raises an IllegalArgumentException if multiple resources are found.