mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
Fix XMLStreamUtil regression
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1393 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
4962684d0f
commit
98ae8917c0
@ -1376,7 +1376,7 @@ public class CaldavConnection extends AbstractConnection {
|
||||
try {
|
||||
streamReader = XMLStreamUtil.createXMLStreamReader(body);
|
||||
while (streamReader.hasNext()) {
|
||||
streamReader.nextTag();
|
||||
streamReader.next();
|
||||
if (XMLStreamUtil.isStartTag(streamReader)) {
|
||||
String tagLocalName = streamReader.getLocalName();
|
||||
if ("prop".equals(tagLocalName)) {
|
||||
|
@ -1982,7 +1982,7 @@ public class DavExchangeSession extends ExchangeSession {
|
||||
try {
|
||||
reader = XMLStreamUtil.createXMLStreamReader(roamingdictionary);
|
||||
while (reader.hasNext()) {
|
||||
reader.nextTag();
|
||||
reader.next();
|
||||
if (XMLStreamUtil.isStartTag(reader, "e")
|
||||
&& "18-timezone".equals( XMLStreamUtil.getAttributeValue(reader, "k"))) {
|
||||
String value = XMLStreamUtil.getAttributeValue(reader, "v");
|
||||
|
@ -195,7 +195,7 @@ public class ExchangePropPatchMethod extends PostMethod {
|
||||
|
||||
});
|
||||
while (reader.hasNext()) {
|
||||
reader.nextTag();
|
||||
reader.next();
|
||||
if (XMLStreamUtil.isStartTag(reader, "response")) {
|
||||
handleResponse(reader);
|
||||
}
|
||||
|
@ -808,7 +808,7 @@ public abstract class EWSMethod extends PostMethod {
|
||||
try {
|
||||
reader = XMLStreamUtil.createXMLStreamReader(getResponseBodyAsStream());
|
||||
while (reader.hasNext()) {
|
||||
reader.nextTag();
|
||||
reader.next();
|
||||
handleErrors(reader);
|
||||
if (serverVersion == null && XMLStreamUtil.isStartTag(reader, "ServerVersionInfo")) {
|
||||
String majorVersion = getAttributeValue(reader, "MajorVersion");
|
||||
|
@ -47,7 +47,7 @@ public class ResolveNamesMethod extends EWSMethod {
|
||||
responseItem.type = "Contact";
|
||||
// skip to Contact
|
||||
while (reader.hasNext() && !XMLStreamUtil.isStartTag(reader, "Resolution")) {
|
||||
reader.nextTag();
|
||||
reader.next();
|
||||
}
|
||||
while (reader.hasNext() && !XMLStreamUtil.isEndTag(reader, "Resolution")) {
|
||||
reader.nextTag();
|
||||
|
Loading…
Reference in New Issue
Block a user