mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
Fixes from audit
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1309 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
7222d08d44
commit
dd287e282a
@ -1187,7 +1187,7 @@ public class CaldavConnection extends AbstractConnection {
|
||||
|
||||
}
|
||||
|
||||
protected class CaldavRequest {
|
||||
protected static class CaldavRequest {
|
||||
protected final String command;
|
||||
protected final String path;
|
||||
protected final String[] pathElements;
|
||||
@ -1361,17 +1361,12 @@ public class CaldavConnection extends AbstractConnection {
|
||||
XMLStreamReader streamReader = null;
|
||||
try {
|
||||
XMLInputFactory inputFactory = XMLStreamUtil.getXmlInputFactory();
|
||||
inputFactory.setProperty(XMLInputFactory.IS_COALESCING, Boolean.TRUE);
|
||||
inputFactory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, Boolean.TRUE);
|
||||
|
||||
streamReader = inputFactory.createXMLStreamReader(new StringReader(body));
|
||||
boolean inElement = false;
|
||||
String tagLocalName = null;
|
||||
while (streamReader.hasNext()) {
|
||||
int event = streamReader.next();
|
||||
if (event == XMLStreamConstants.START_ELEMENT) {
|
||||
inElement = true;
|
||||
tagLocalName = streamReader.getLocalName();
|
||||
String tagLocalName = streamReader.getLocalName();
|
||||
if ("prop".equals(tagLocalName)) {
|
||||
handleProp(streamReader);
|
||||
} else if ("calendar-multiget".equals(tagLocalName)
|
||||
|
@ -2376,7 +2376,6 @@ public abstract class ExchangeSession {
|
||||
String boundary = UUID.randomUUID().toString();
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
MimeOutputStreamWriter writer = new MimeOutputStreamWriter(baos);
|
||||
int status = 0;
|
||||
String method = getICSMethod(itemBody);
|
||||
|
||||
writer.writeHeader("Content-Transfer-Encoding", "7bit");
|
||||
|
@ -713,7 +713,6 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
EWSMethod createOrUpdateItemMethod;
|
||||
|
||||
// first try to load existing event
|
||||
String urlcompname = convertItemNameToEML(itemName);
|
||||
String currentEtag = null;
|
||||
ItemId currentItemId = null;
|
||||
FileAttachment currentFileAttachment = null;
|
||||
@ -1048,7 +1047,6 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
|
||||
@Override
|
||||
public void processItem(String folderPath, String itemName) throws IOException {
|
||||
String urlcompname = convertItemNameToEML(itemName);
|
||||
EWSMethod.Item item = getEwsItem(folderPath, itemName);
|
||||
if (item != null) {
|
||||
HashMap<String, String> localProperties = new HashMap<String, String>();
|
||||
|
Loading…
Reference in New Issue
Block a user