Issue #549 has been updated by Raphaël Ouazana.
Status changed from Assigned to Feedback
Assigned to changed from Raphaël Ouazana to Maxime Pelletier
I can't reproduce.
If I wrote this in my lsc.xml:
<pre>
java.lang.System.out.println("dstBean: " + dstBean);
</pre>
I get the content of dstBean on my console, with -n or without -n.
Please provide your complete lsc.xml file if you still think there is a bug.
----------------------------------------
Bug #549: dstBean not defined in dry-run mode
http://tools.lsc-project.org/issues/549
Author: Maxime Pelletier
Status: Feedback
Priority: Normal
Assigned to: Maxime Pelletier
Category: Core
Target version: 2.0.2
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