Hi,

I want to test if an attribute has a value which I store in a GCV list
variable. The separator is the pipe-symbol, because I want to use regex
to test the attribute.

GCV:

<definition critical-change="true" display-name="List of values"
item-separator="|" name="gcvlist" type="list">
<description/>
<value>
<item>abc</item>
<item>def</item>
</value>
</definition>


Rule:

<rule>
<conditions>
<and>
<if-op-attr mode="regex" name="myattribute"
op="equal">$gcvlist$</if-op-attr>
</and>
</conditions>
[...]


In Designer everything looked fine. If I added the GCV to the rule it
displayed the value as "abc|def". Unfortunately, it did not work as I
expected. The trace showed the following:

[...]
Expanded variable reference '$gcvlist$' to 'abcdef'.
(if-op-attr 'myattribute' match "$gcvlist$") = FALSE.
[...]

So the pipe symbol is replaced by 0x01.
Somehow the variable expansion works different as I expected. If I
enter the string directly into the rule it works fine.

I am using IdM 3.5.1 and eDir 8.8.5.

Thanks,

Andreas


--
hechfellner
------------------------------------------------------------------------
hechfellner's Profile: http://forums.novell.com/member.php?userid=44203
View this thread: http://forums.novell.com/showthread.php?t=417414