Issue Details (XML | Word | Printable)

Key: DIRSERVER-679
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Pierre-Arnaud Marcelot
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Tools improvement and add of Export Command and JUnit tests

Created: 21/Jul/06 01:24 PM   Updated: 02/Oct/06 12:51 PM
Return to search
Component/s: tools
Affects Version/s: 1.0-RC3
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
PDF File documentation.pdf 2006-07-21 01:26 PM Pierre-Arnaud Marcelot 200 kB
Text File Licensed for inclusion in ASF works new-patch.txt 2006-07-21 01:52 PM Pierre-Arnaud Marcelot 100 kB
Text File Licensed for inclusion in ASF works patch.txt 2006-07-21 01:25 PM Pierre-Arnaud Marcelot 107 kB

Resolution Date: 02/Oct/06 12:50 PM


 Description  « Hide
Working on a new plugin supporting LDIF Import/Export for LDAP Studio ( http://docs.safehaus.org/display/LDAPSTUDIO ), I wanted to use the Apache DS to import an LDIF file.
But the Import Command can only be accessed via a Command Line and don't give enough feedback for a front-end GUI (particularly to show the progress of the operation).

Emmanuel (Lécharny) also pointed out the fact that it may be interesting for future developments to be able to access the Tools in a "kind of" Client/Server way. The tools running on a the server's station, and the command launched from another machine.

So, he asked me to modify the tools to add this Client/Server feature and make them callable more easily from other application and give better feedback.

I made a small documentation on this on Safehaus : http://docs.safehaus.org/display/LDAPSTUDIO/Apache+DS+Tools+rewrite . It is also attached to this post as a PDF, since LDAPStudio's Confluence isn't accessible to everyone.

In the patch you'll find the tools with the new architecture (defined with Emmanuel).
I also added a new command that export entries as LDIF file, and some JUnit tests for the Import, Export and GracefulShutdown command.

Feel free to give me your feedback about this.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Pierre-Arnaud Marcelot added a comment - 21/Jul/06 01:25 PM
Here's the patch

Pierre-Arnaud Marcelot added a comment - 21/Jul/06 01:26 PM
Here's the documentation

Ersin Er added a comment - 21/Jul/06 01:51 PM
This patch, although a nice contribution, may need some reviewing. Here are a few points:

* The paths it updates are not relative to our repository but local file system.
* There are some lines prefixed with - (minus) which means they are to be excluded, but they do not even exist in the current code base.
* Although it is targeted at 1.0-RC3, it has some Stored Procedure related stuff.

Well, I may not be %100 correct about my concerns but a review would be good.

Thanks Pierre!

Pierre-Arnaud Marcelot added a comment - 21/Jul/06 01:52 PM
Here's a new patch, since there was a bug in previous generated by Subclipse in Eclipse.

Ersin Er added a comment - 21/Jul/06 01:57 PM
BTW, in my experience some best practives for creating and testing patches are as follows:

* Create a patch from command line or IDE, but be sure you do it with relative paths.
* svn checkout a complete new code repo.
* Apply the patch to the new downloaded code base.
* Build the patched code and run all unit and integration tests.

HTH.

Ersin Er added a comment - 21/Jul/06 02:07 PM
The new patch seems to be better but it should be clearified if it's for 1.1 or 1.0. As 1.0 does not have any Stored Procedure mechanism, this patch currently can only apply to 1.1.

Pierre-Arnaud Marcelot added a comment - 21/Jul/06 04:05 PM
Thanks Ersin.

I thought that trunks was version 1.0-RC3.

I'm going to post two patches, one for 1.0, another for 1.1.

Emmanuel Lecharny added a comment - 02/Oct/06 12:50 PM
Patch applied in september

Pierre-Arnaud Marcelot added a comment - 02/Oct/06 12:51 PM
Thanks Emmanuel.