You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Rano, Didier" <Di...@fr.michelin.com> on 2002/12/05 11:45:45 UTC

Bug in LDAPTransformer


Hello,

I am a Cocoon beginner, and I need to user LDAPTransformer. But, I have seen a
mistake in this node:

In inner class LDAPQuery, method execute(), before:

if (showAttribute) {
    transformer.start(attrID, attr);
}                               
String attrVal = (String)vals.nextElement();
...
if (showAttribute) {
    transformer.end(attrID);
}

After:

while( vals.hasMoreElements()) {

if (showAttribute) {
    transformer.start(attrID, attr);
}                               
String attrVal = (String)vals.nextElement();
...
if (showAttribute) {
    transformer.end(attrID);
}

}

vals is an Enumeration, and some values don't display if this loop doesn't
exists.

Thank you to valid this change, or explain my error.

Didier Rano
Serv'N Data

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org