|
Hi there,
we are using ApacheDS respectively the
Maven ApacheDS Plugin to run our integration tests against a clean LDAP
server instance and therefore populate it with the according
schema information and setup data on test startup. We have different ldif
files for schema and setup data especially named in alphabetical
order to ensure, that the schema information is loaded before
the setup data. Although this works fine for e.g. on MacOSX it does not
work on Linux due to the following Code Snippet from
class org.apache.directory.server.configuration.ApacheDS
According
to Javadoc of class java.io.File Returns an array of
abstract pathnames denoting the files in the directory denoted by this
abstract pathname. If this abstract
pathname does not denote a directory, then this method
returns -> There is no guarantee that the name strings in the resulting array will appear in any specific order; they are not, in particular, guaranteed to appear in alphabetical order. the
assumption stated in the code snippet above is not valid and depends on
the platform resp. Java implementation. In order
to be platform independent the retrieved array of ldif files should be
sorted in alphabetical order explicitly after
retrieval. Since I'm not a committer could
someone please provide a patch for this
problem? When will the next version of the maven
ApacheDS plugin be available depending on the most current ApacheDS
version (hopefully including a fix for this problem)? Currently it refers
to 1.5.5... Kind
regards, CAK Carsten Kaiser Principal Consultant [email protected] Mobile: +49 170 5270206 Valtech GmbH Werner-Heisenberg-Straße 2 63263 Neu-Isenburg Germany Phone: +49 6102 88468-0 Fax: +49 6102 88468-28 www.valtech.de Geschäftsführer: Ingo Kriescher Amtsgericht Düsseldorf HRB48672 |
Title: Valtech E-Mail Footer
- Problem with sorting of ldif files on Linux Carsten Kaiser
- Re: Problem with sorting of ldif files on Linu... Pierre-Arnaud Marcelot
- Re: Problem with sorting of ldif files on ... Carsten Kaiser
- Re: Problem with sorting of ldif files on Linu... Owen Jacobson
- Re: Problem with sorting of ldif files on ... Carsten Kaiser
- Re: Problem with sorting of ldif files on ... Pierre-Arnaud Marcelot
- Re: Problem with sorting of ldif files on Linu... Kiran Ayyagari
- Re: Problem with sorting of ldif files on ... Carsten Kaiser
