Issue #549 has been updated by Raphaƫl Ouazana. Status changed from Feedback to Rejected Target version deleted (2.0.2)
Thank you for your feedback. After reading intensively the concerned piece of code, it appears that it is by design. I.e. if you put a condition to false, but the matching dry-run option is set, then the modifications it still evaluated (even if nothing will occur as you are in dry-run). So for the moment I will close this issue. But you are welcome to open a feature request if you think this behavior should be changed, or discuss it on the mailing list. ---------------------------------------- Bug #549: dstBean not defined in dry-run mode http://tools.lsc-project.org/issues/549 Author: Maxime Pelletier Status: Rejected Priority: Normal Assigned to: Maxime Pelletier Category: Core Target version: Problem in version: 2.0.1 When running a task in dry-run mode, the dstBean object is not defined: <pre> Execution de /LSC/bin/lsc -n -f /LSC/task/eleves-openldap/etc -s ElevesAccount Nov 23 14:11:15 - DEBUG - Loading XML configuration from: /LSC/task/eleves-openldap/etc/lsc.xml Nov 23 14:11:16 - INFO - Reflections took 410 ms to scan 1 urls, producing 60 keys and 226 values Nov 23 14:11:16 - DEBUG - Importing XML schema file: schemas/lsc-core-2.0.xsd Nov 23 14:11:16 - INFO - Logging configuration successfully loaded from /LSC/task/eleves-openldap/etc/logback.xml Nov 23 14:11:16 - INFO - LSC configuration successfully loaded from /LSC/task/eleves-openldap/etc/ Nov 23 14:11:16 - INFO - Connecting to LDAP server ldap://ldap.myldap.com:389/dc=myldap,dc=com as uid=admin,dc=myldap,dc=com Nov 23 14:11:17 - INFO - Starting sync for ElevesAccount Nov 23 14:11:18 - ERROR - javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "dstBean" is not defined. (<Unknown source>#3) in <Unknown source> at line number 3 Nov 23 14:11:18 - ERROR - javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "dstBean" is not defined. (<Unknown source>#3) in <Unknown source> at line number 3 Nov 23 14:11:18 - ERROR - javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "dstBean" is not defined. (<Unknown source>#3) in <Unknown source> at line number 3 Nov 23 14:11:18 - DEBUG - Create condition false. Should have added object uid=0313478,ou=PERSONNE,dc=myldap,dc=com </pre> When running the same task without dry-run mode, I don't have this problem. -- 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

