Hello everybody,

It's been a while that I'm having some trouble with the function
guid2string from the package NOVLLIBAJC-JS, even if the package is
present and has the pointed function

Code:
--------------------
function guid2string(s)
{
var bytes = Base64Codec.decode(s);
var s1 = encodeAsciiHex(bytes);
return s1.substring(0, 8) +
'-' +
s1.substring(8, 12) +
'-' +
s1.substring(12, 16).toLowerCase() +
'-' +
s1.substring(16, 20) +
'-' +
s1.substring(20);
}
--------------------


At the first time I have this problem when updating my AD driver
directly from the Designer. I solved the issue by taking a previous
driver that I had exported with iManager and then updating the AD
driver, but selecting only to update the NOVLLIBAJC-JS package at the
and of the updating process.

The issue is that I'm having the same problem with a LDAP driver:
> [02/03/15 11:32:43.180]:ConnecteurINT PT: Action:
> do-set-local-variable("driverGuid",scope="policy",token-xpath("es:guid2string($driver//attr[@attr-name='GUID']/value/text())")).
> [02/03/15 11:32:43.180]:ConnecteurINT PT:
> arg-string(token-xpath("es:guid2string($driver//attr[@attr-name='GUID']/value/text())"))
> [02/03/15 11:32:43.181]:ConnecteurINT PT:
> token-xpath("es:guid2string($driver//attr[@attr-name='GUID']/value/text())")
> [02/03/15 11:32:43.182]:ConnecteurINT PT:
> DirXML Log Event -------------------
> Driver: \IDV\system\DriverSet\ConnecteurINT
> Channel: Publisher
> Status: Error
> Message: Code(-9131) Error in
> vnd.nds.stream://IDV/system/DriverSet/ConnecteurINT/NOVLLDAPMSYS-itp-InitManagedSystemInfo#XmlData:91
> : Error evaluating XPATH expression
> 'token-xpath("es:guid2string($driver//attr[@attr-name='GUID']/value/text())")'
> : com.novell.xml.xpath.XPathEvaluationException: function
> 'es:guid2string' not found.
> [02/03/15 11:32:43.358]:ConnecteurINT PT:
> <nds dtdversion="4.0" ndsversion="8.x">
> <source>
> <product edition="Standard" version="4.0.1.0">DirXML</product>
> <contact>Novell, Inc.</contact>
> </source>
> <output>
> <status level="error">Code(-9131) Error in
> vnd.nds.stream://IDV/system/DriverSet/ConnecteurINT/NOVLLDAPMSYS-itp-InitManagedSystemInfo#XmlData:91
> : Error evaluating XPATH expression
> 'token-xpath("es:guid2string($driver//attr[@attr-name='GUID']/value/text())")'
> : com.novell.xml.xpath.XPathEvaluationException: function
> 'es:guid2string' not found.<application>DirXML</application>
> <module>ConnecteurINT</module>
> <object-dn></object-dn>
> <component>Publisher</component>
> </status>
> </output>
> </nds>


Here is the AD driver function call:

Code:
--------------------
<do-set-local-variable name="driverGuid" scope="policy">
<arg-string>
<token-xpath expression="es:guid2string($driver//attr[@attr-name='GUID']/value/text())"/>
</arg-string>
</do-set-local-variable>
--------------------


and the LDAP driver function call:

Code:
--------------------
<do-set-local-variable name="driverGuid" scope="policy">
<arg-string>
<token-xpath expression="es:guid2string($driver//attr[@attr-name='GUID']/value/text())"/>
</arg-string>
</do-set-local-variable>
--------------------


Knowing that the AD driver works well, what can be wrong with the LDAP
driver?


Thanks in advance,
Marc


--
MuadDib_II
------------------------------------------------------------------------
MuadDib_II's Profile: https://forums.netiq.com/member.php?userid=8754
View this thread: https://forums.netiq.com/showthread.php?t=52734