mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
Caldav: workaround for Lightning 1.0b2 bug
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1345 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
2ceb323ab8
commit
c3c08afbfd
@ -681,7 +681,17 @@ public class CaldavConnection extends AbstractConnection {
|
||||
if (eventName != null && eventName.length() > 0
|
||||
&& !"inbox".equals(eventName) && !"calendar".equals(eventName)) {
|
||||
ExchangeSession.Item item;
|
||||
item = session.getItem(folderPath, eventName);
|
||||
try {
|
||||
item = session.getItem(folderPath, eventName);
|
||||
} catch (HttpNotFoundException e) {
|
||||
// workaround for Lightning bug
|
||||
if (request.isBrokenLightning() && eventName.indexOf('%') >= 0) {
|
||||
item = session.getItem(folderPath, URIUtil.decode(eventName));
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
|
||||
}
|
||||
appendItemResponse(response, request, item);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
Loading…
Reference in New Issue
Block a user