[BUG] and [PATCH], LDAP vcard errors if results contain $

I do not know where to submit a bug report, so I am creating a thread in dev.

I had an issue with my openfire server showing errors everytime we would lookup a person’s profile. It turned out that since a few of ldap fields results contained $ it failed. So I changed the following

org.jivesoftware.openfire.ldap.LdapVCardProvider$VCard.treeWalk in file LdapVCardProvider.java at line 521

from

format = format.replaceFirst("({)(" + field + “)(})”, value);

to

format = format.replaceFirst("({)(" + field + “)(})”, java.util.regex.Matcher.quoteReplacement(value));

Hopefully someone can file commit this to the source so it can be fixed in a future release.

Please refer this thread for error details,

Hi,

I placed this in Jira so that the devels will be sure to see it.

http://www.igniterealtime.org/issues/browse/JM-1381

daryl