mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-08 04:08:12 -05:00
Caldav: Ignore 401 unauthorized on public event, return 200
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2033 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
bb4fb34582
commit
d9966b77f0
@ -1674,8 +1674,11 @@ public class DavExchangeSession extends ExchangeSession {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 440 means forbidden on Exchange
|
// 440 means forbidden on Exchange
|
||||||
if (status == 440 || status == 401) {
|
if (status == 440) {
|
||||||
status = HttpStatus.SC_FORBIDDEN;
|
status = HttpStatus.SC_FORBIDDEN;
|
||||||
|
} else if (status == HttpStatus.SC_UNAUTHORIZED && getHref().startsWith("/public")) {
|
||||||
|
LOGGER.warn("Ignore 401 unauthorized on public event");
|
||||||
|
status = HttpStatus.SC_OK;
|
||||||
}
|
}
|
||||||
itemResult.status = status;
|
itemResult.status = status;
|
||||||
if (putMethod.getResponseHeader("GetETag") != null) {
|
if (putMethod.getResponseHeader("GetETag") != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user