Fix: explicit contenttag PROPFIND instead of DAV:allprops
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@450 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
fd8c1eeaaa
commit
b8a93905f1
|
@ -61,6 +61,12 @@ public class ExchangeSession {
|
||||||
DISPLAY_NAME.add("DAV:displayname");
|
DISPLAY_NAME.add("DAV:displayname");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected static final Vector<String> CONTENT_TAG = new Vector<String>();
|
||||||
|
|
||||||
|
static {
|
||||||
|
CONTENT_TAG.add("http://schemas.microsoft.com/repl/contenttag");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public static final HashMap<String, String> PRIORITIES = new HashMap<String, String>();
|
public static final HashMap<String, String> PRIORITIES = new HashMap<String, String>();
|
||||||
|
|
||||||
|
@ -1641,7 +1647,7 @@ public class ExchangeSession {
|
||||||
|
|
||||||
public String getFolderCtag(String folderUrl) throws IOException {
|
public String getFolderCtag(String folderUrl) throws IOException {
|
||||||
String ctag = null;
|
String ctag = null;
|
||||||
Enumeration calendarEnum = wdr.propfindMethod(folderUrl, 0);
|
Enumeration calendarEnum = wdr.propfindMethod(folderUrl, 0, CONTENT_TAG);
|
||||||
if (!calendarEnum.hasMoreElements()) {
|
if (!calendarEnum.hasMoreElements()) {
|
||||||
throw new IOException("Unable to get folder object");
|
throw new IOException("Unable to get folder object");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue