mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
Caldav: iCal fails with CalDAVMultiGetOperation not a server error, but bad data
=> replaced & encoding with URIUtil.encodeWithinQuery git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@365 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
a21cfb1b8a
commit
23aa8311eb
@ -277,9 +277,9 @@ public class CaldavConnection extends AbstractConnection {
|
||||
}
|
||||
|
||||
protected void appendEventResponse(StringBuilder buffer, CaldavRequest request, ExchangeSession.Event event) throws IOException {
|
||||
String eventPath = event.getPath().replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
||||
String eventPath = event.getPath().replaceAll("<", "<").replaceAll(">", ">");
|
||||
buffer.append("<D:response>");
|
||||
buffer.append("<D:href>/users/").append(session.getEmail()).append("/calendar").append(URIUtil.encodePath(eventPath)).append("</D:href>");
|
||||
buffer.append("<D:href>/users/").append(session.getEmail()).append("/calendar").append(URIUtil.encodeWithinQuery(eventPath)).append("</D:href>");
|
||||
buffer.append("<D:propstat>");
|
||||
buffer.append("<D:prop>");
|
||||
if (request.hasProperty("calendar-data")) {
|
||||
@ -482,7 +482,7 @@ public class CaldavConnection extends AbstractConnection {
|
||||
// send not found events errors
|
||||
for (String href : notFound) {
|
||||
buffer.append("<D:response>");
|
||||
buffer.append("<D:href>").append(URIUtil.encodePath(href)).append("</D:href>");
|
||||
buffer.append("<D:href>").append(URIUtil.encodeWithinQuery(href)).append("</D:href>");
|
||||
buffer.append("<D:propstat>");
|
||||
buffer.append("<D:status>HTTP/1.1 404 Not Found</D:status>");
|
||||
buffer.append("</D:propstat>");
|
||||
|
Loading…
Reference in New Issue
Block a user