mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-07 03:38:05 -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 {
|
protected void handleResponse(XMLStreamReader reader) throws XMLStreamException {
|
||||||
|
MultiStatusResponse multiStatusResponse = null;
|
||||||
String href = null;
|
String href = null;
|
||||||
String responseStatus = "";
|
String responseStatus = "";
|
||||||
while (reader.hasNext() && !XMLStreamUtil.isEndTag(reader, "response")) {
|
while (reader.hasNext() && !XMLStreamUtil.isEndTag(reader, "response")) {
|
||||||
@ -139,13 +140,16 @@ public abstract class ExchangeDavMethod extends PostMethod {
|
|||||||
} else if ("status".equals(tagLocalName)) {
|
} else if ("status".equals(tagLocalName)) {
|
||||||
responseStatus = reader.getElementText();
|
responseStatus = reader.getElementText();
|
||||||
} else if ("propstat".equals(tagLocalName)) {
|
} else if ("propstat".equals(tagLocalName)) {
|
||||||
MultiStatusResponse multiStatusResponse = new MultiStatusResponse(href, responseStatus);
|
if (multiStatusResponse == null) {
|
||||||
handlePropstat(reader, multiStatusResponse);
|
multiStatusResponse = new MultiStatusResponse(href, responseStatus);
|
||||||
responses.add(multiStatusResponse);
|
}
|
||||||
|
handlePropstat(reader, multiStatusResponse);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (multiStatusResponse != null) {
|
||||||
|
responses.add(multiStatusResponse);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void handlePropstat(XMLStreamReader reader, MultiStatusResponse multiStatusResponse) throws XMLStreamException {
|
protected void handlePropstat(XMLStreamReader reader, MultiStatusResponse multiStatusResponse) throws XMLStreamException {
|
||||||
|
Loading…
Reference in New Issue
Block a user