From 0847630d826b070399c8fdf7da4ab2f0e954fbaf Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 3 Aug 2009 20:55:08 +0000 Subject: [PATCH] Caldav: fix bug 2819028, case insensitive email in sendPrincipal test git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@640 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/caldav/CaldavConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java index 3b4cf27d..6d822df0 100644 --- a/src/java/davmail/caldav/CaldavConnection.java +++ b/src/java/davmail/caldav/CaldavConnection.java @@ -629,7 +629,8 @@ public class CaldavConnection extends AbstractConnection { } // no inbox/outbox for delegated/shared calendars - if ("users".equals(prefix) && session.getEmail().equals(principal)) { + // case insensitive to avoir "response..*::["schedule-inbox-URL"]..*::href[0] is undefined" error in Lightning + if ("users".equals(prefix) && session.getEmail().equalsIgnoreCase(principal)) { if (request.hasProperty("schedule-inbox-URL")) { response.appendHrefProperty("C:schedule-inbox-URL", "/users/" + actualPrincipal + "/inbox"); }