We're updating the issue view to help you get more done. 

LDAP vcard errors if results contain $

Description

Reported by badriram in the forum:

http://www.igniterealtime.org/community/thread/33211

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));

Environment

None

Acceptance Test - Entry

None

Activity

Show:
Daniel Henninger
July 16, 2008, 1:12 AM

Same issue.

Assignee

Daniel Henninger

Reporter

Daryl Herzmann

Labels

None

Expected Effort

None

Ignite Forum URL

None

Fix versions

Affects versions

Priority

Major
Configure