Openfire (ARCHIVED)

LDAP vcard errors if results contain $

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.5.1
  • Fix Version/s: 3.6.0
  • Component/s: None
  • Labels:
    None
  • Acceptance Test - Add?:
    No

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

Issue Links

Activity

Hide
Daniel Henninger added a comment -

Same issue.

Show
Daniel Henninger added a comment - Same issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: