1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

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
This commit is contained in:
mguessan 2009-08-03 20:55:08 +00:00
parent 119fa81a9a
commit 0847630d82

View File

@ -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");
}