
andrew at morphoss
Sep 11, 2011, 4:49 AM
Post #3 of 4
(298 views)
Permalink
|
|
Re: Moving events between calendars in iCal
[In reply to]
|
|
On Sat, 2011-09-10 at 11:10 +0200, Martin wrote: > Hi Andrew > > Quoting Andrew McMillan <andrew [at] morphoss>, Sat, 10 Sep 2011 > 14:24:13 +1200: > > > because I'm pretty sure from other discussions with Cyrus > > Daboo that cross-host MOVE is neither recommended nor supported, and > > consequently it is kind of silly to provide protocol/host/port > > information with it. > > digging around in the CalDAV/WebDAV RFCs, I found the section below > covering destination URIs. Based on that, iCal5 seems to be conform > ("it _may_ name a different server"). > > Even if the destination URI is an absolute one, DAViCal could check if > the destination URI points to the same server instance and only fail > to execute the COPY/MOVE, if it is actually a remote URI. Yep, it's allowed according to DAV. Equally it's OK for the server to refuse it :-) Checking the protocol/host/port is the same is a more complex problem than you think, due to problems with multiple DNS names and default ports. I've committed a patch that just strips the hostname out. If it fails after that it's because a person didn't have the rights to write to that location on *this* server, and that's fine. http://repo.or.cz/w/davical.git/commit/6f8e2b1d6e591c5da87591b4b0c7191a7b8e09a1 And it's included in 0.9.9.5 :-) Cheers, Andrew. > > cheers > Martin > > ================= > > http://tools.ietf.org/html/rfc4918.html#section-10.3 > > 10.3 Destination Header > > The Destination request header specifies the URI that identifies a > destination resource for methods such as COPY and MOVE, which take > two URIs as parameters. > > Destination = "Destination" ":" Simple-ref > > > If the Destination value is an absolute-URI (Section 4.3 of > [RFC3986]), it may name a different server (or different port or > scheme). If the source server cannot attempt a copy to the remote > server, it MUST fail the request. Note that copying and moving > resources to remote servers is not fully defined in this > specification (e.g., specific error conditions). > > If the Destination value is too long or otherwise unacceptable, the > server SHOULD return 400 (Bad Request), ideally with helpful > information in an error body. > > ------------------------------------------------------------------------------ > Malware Security Report: Protecting Your Business, Customers, and the > Bottom Line. Protect your business and customers by understanding the > threat from malware and how it can impact your online business. > http://www.accelacomm.com/jaw/sfnl/114/51427462/ > _______________________________________________ > Davical-general mailing list > Davical-general [at] lists > https://lists.sourceforge.net/lists/listinfo/davical-general > -- ------------------------------------------------------------------------ andrew (AT) morphoss (DOT) com +64(272)DEBIAN Why be a man when you can be a success? -- Bertolt Brecht ------------------------------------------------------------------------
|