1
0
mirror of https://github.com/moparisthebest/davmail synced 2025-02-28 09:21:49 -05:00

Caldav: Send empty response instead of error on freebusy with unknown attendee

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@588 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-06-16 08:55:00 +00:00
parent 2ec5044b38
commit e5c1fcd807

View File

@ -617,7 +617,6 @@ public class CaldavConnection extends AbstractConnection {
freeBusyMap.put(attendee, freeBusy);
}
}
if (!freeBusyMap.isEmpty()) {
CaldavResponse response = new CaldavResponse(HttpStatus.SC_OK);
response.startScheduleResponse();
@ -646,14 +645,6 @@ public class CaldavConnection extends AbstractConnection {
}
response.endScheduleResponse();
response.close();
} else {
StringBuilder buffer = new StringBuilder("Unknown recipient(s): ");
for (String attendee : attendees) {
buffer.append(attendee);
buffer.append(' ');
}
sendHttpResponse(HttpStatus.SC_NOT_FOUND, null, "text/plain", buffer.toString(), true);
}
}