mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 19:22:22 -05:00
LDAP: fix regression on OSX directory request on iCal start: filter invalid imapUid condition
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1307 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
2bfb33807a
commit
9e779b2826
@ -1091,7 +1091,15 @@ public class LdapConnection extends AbstractConnection {
|
||||
ExchangeSession.Condition condition = null;
|
||||
|
||||
if (operator == LDAP_FILTER_EQUALITY) {
|
||||
try {
|
||||
// check imapUid value
|
||||
if ("imapUid".equals(contactAttributeName)) {
|
||||
Integer.parseInt(value);
|
||||
}
|
||||
condition = session.isEqualTo(contactAttributeName, value);
|
||||
} catch (NumberFormatException e) {
|
||||
// ignore condition
|
||||
}
|
||||
} else if ("*".equals(value)) {
|
||||
condition = session.not(session.isNull(contactAttributeName));
|
||||
// do not allow substring search on integer field imapUid
|
||||
|
Loading…
Reference in New Issue
Block a user