Issue #223 has been updated by Jonathan Clarke. Category set to Core Status changed from New to Feedback Assigned to set to Jonathan Clarke Target version set to 1.2.1 % Done changed from 0 to 100 Version set to 1.2.0
Raphaël Ouazana wrote: > In a Ldap2ldap synchronization, I use some Javascript to construct the new > dn. It seems that the function to construct the dn is called at least two > times in AbstractSynchronize : line 343 then line 372 (1.2.x branch). The > problem is that the second time the srcBean has been modified and > srcBean.getDistinguishName() contains the constructed dn instead of the > source dn. > As I use the source dn to construct the new dn, it causes some problems in my > scripts... Indeed, this is the case because the srcBean is cloned (to avoid changing the srcBean...). The JavaScript to set the DN is called during the clone. However, some historical change made it so that the clone happened twice for each synchronized entry (once to detect the modification type (add/delete/mod/modrdn), and once to calculate changes). I have written a patch to correct this: the clone happens only once, after reading the entry from the source. This should fix this problem, and provide a nice performance boost :-) Thanks for the report! I will commit this fix to branches 1.2, 1.3 and trunk. If you would like to test, please either use the patch (see revision in Redmine issue), use tomorrow's nightly build, or build your own from SVN. It will be released in LSC 1.2.1. ---------------------------------------- Bug #223: srcBean is not consistent http://tools.lsc-project.org/issues/223 Author: Raphaël Ouazana Status: Feedback Priority: Normal Assigned to: Jonathan Clarke Category: Core Target version: 1.2.1 Version: 1.2.0 In a Ldap2ldap synchronization, I use some Javascript to construct the new dn. It seems that the function to construct the dn is called at least two times in AbstractSynchronize : line 343 then line 372 (1.2.x branch). The problem is that the second time the srcBean has been modified and srcBean.getDistinguishName() contains the constructed dn instead of the source dn. As I use the source dn to construct the new dn, it causes some problems in my scripts... Regards, Raphaël Ouazana. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://tools.lsc-project.org/my/account
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-dev mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-dev

