mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -05:00
Dav: fix regression in new Stax implementation
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1869 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
1258e82b35
commit
a5400d9a5f
@ -128,6 +128,7 @@ public abstract class ExchangeDavMethod extends PostMethod {
|
||||
}
|
||||
|
||||
protected void handleResponse(XMLStreamReader reader) throws XMLStreamException {
|
||||
MultiStatusResponse multiStatusResponse = null;
|
||||
String href = null;
|
||||
String responseStatus = "";
|
||||
while (reader.hasNext() && !XMLStreamUtil.isEndTag(reader, "response")) {
|
||||
@ -139,13 +140,16 @@ public abstract class ExchangeDavMethod extends PostMethod {
|
||||
} else if ("status".equals(tagLocalName)) {
|
||||
responseStatus = reader.getElementText();
|
||||
} else if ("propstat".equals(tagLocalName)) {
|
||||
MultiStatusResponse multiStatusResponse = new MultiStatusResponse(href, responseStatus);
|
||||
handlePropstat(reader, multiStatusResponse);
|
||||
responses.add(multiStatusResponse);
|
||||
if (multiStatusResponse == null) {
|
||||
multiStatusResponse = new MultiStatusResponse(href, responseStatus);
|
||||
}
|
||||
handlePropstat(reader, multiStatusResponse);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (multiStatusResponse != null) {
|
||||
responses.add(multiStatusResponse);
|
||||
}
|
||||
}
|
||||
|
||||
protected void handlePropstat(XMLStreamReader reader, MultiStatusResponse multiStatusResponse) throws XMLStreamException {
|
||||
|
Loading…
Reference in New Issue
Block a user