<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body smarttemplateinserted="true" text="#000000" bgcolor="#FFFFFF">
<div id="smartTemplate4-quoteHeader">
<div style="font-size:10.0pt;font-family:Verdana,Arial">Hi Ken,<br>
<br>
Below goes the telemetry for the relevant part. What I see here
is that Cyrus correctly answers to the "principal?" question and
then the iOS asks for calendars of the principal (telemetry
included in the attached file) and there Cyrus only returns the
personal calendars, but IMO the shared folder should be somehow
taken into account, either responding differently to the
"principal?" question or including the shared calendar when
queried for available calendars (IMO the best solution (no need
to create separate accounts on the phone with different URLs).<br>
<br>
Please let me know if you need additional details.<br>
<br>
Regards,<br>
Anatoli<br>
<br>
<br>
<font face="Courier New">---------- <a class="moz-txt-link-abbreviated" href="mailto:t3@domain.com">t3@domain.com</a> Sun Mar 25
06:05:36 2018<br>
<br>
<1521968736<<b>PROPFIND</b> <b>/dav/calendars/shared/</b>
HTTP/1.1<br>
Accept: */*<br>
Content-type: text/xml<br>
Connection: keep-alive<br>
Content-length: 181<br>
Host: mail.domain.com<br>
User-agent: iOS/11.2.6 (15D100) accountsd/1.0<br>
Prefer: return=minimal<br>
Depth: 0<br>
Brief: t<br>
Accept-language: en-us<br>
Authorization: Basic ...<br>
Accept-encoding: br, gzip, deflate<br>
<br>
<1521968736<<?xml version="1.0" encoding="UTF-8"?><br>
<A:propfind xmlns:A="DAV:"><br>
<A:prop><br>
<A:current-user-principal/><br>
<A:principal-URL/><br>
<A:resourcetype/><br>
</A:prop><br>
</A:propfind><br>
<br>
<br>
>1521968736>HTTP/1.1 207 Multi-Status<br>
Date: Sun, 25 Mar 2018 09:05:36 GMT<br>
Strict-Transport-Security: max-age=600<br>
Vary: Accept-Encoding, Brief, Prefer<br>
Preference-Applied: return=minimal<br>
Content-Type: application/xml; charset=utf-8<br>
Content-Length: 546<br>
<br>
<?xml version="1.0" encoding="utf-8"?><br>
<A:multistatus xmlns:A="DAV:"
xmlns:C="urn:ietf:params:xml:ns:caldav"><br>
<A:response><br>
<A:href><b>/dav/calendars/shared/</b></A:href><br>
<A:propstat><br>
<A:prop><br>
<A:current-user-principal><br>
<A:href><b>/dav/principals/user/t3@domain.com/</b></A:href><br>
</A:current-user-principal><br>
<A:resourcetype><br>
<A:collection/><br>
<C:calendar/><br>
</A:resourcetype><br>
</A:prop><br>
<A:status>HTTP/1.1 200 OK</A:status><br>
</A:propstat><br>
</A:response><br>
</A:multistatus><br>
<br>
<1521968736<OPTIONS
/dav/principals/user/t3%40domain.com/ HTTP/1.1<br>
Host: mail.domain.com<br>
Connection: keep-alive<br>
Accept: */*<br>
User-Agent: iOS/11.2.6 (15D100) accountsd/1.0<br>
Accept-Language: en-us<br>
Content-Length: 0<br>
Accept-Encoding: br, gzip, deflate<br>
<br>
>1521968736>HTTP/1.1 200 OK<br>
Date: Sun, 25 Mar 2018 09:05:36 GMT<br>
Strict-Transport-Security: max-age=600<br>
Cache-Control: no-cache<br>
Link: </dav/principals/.server-info>; rel="server-info";
token="80769c2c66d340ecd178710db26d56b9c4699e3e"<br>
DAV: 1, 2, 3, access-control, extended-mkcol, resource-sharing<br>
DAV: calendar-access, calendar-auto-schedule<br>
DAV: calendar-query-extended, calendar-availability,
calendar-managed-attachments<br>
DAV: calendarserver-sharing, inbox-availability<br>
DAV: addressbook<br>
Allow: OPTIONS, GET, HEAD<br>
Allow: PROPFIND, REPORT, COPY<br>
Content-Length: 0<br>
</font><br>
<br>
</div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm
0cm;font-size:10.0pt;font-family:"Tahoma","sans-serif""><b>From:</b>
Ken Murchison<br>
<b>Sent:</b> Monday, March 19, 2018 09:24<br>
<b>To:</b> Info-cyrus<br>
<b>Subject:</b> Re: xDAV and shared namespaces<br>
</div>
<br>
</div>
<span type="cite"
cite="mid:dff3d9b2-a5c0-1813-3c73-e5590660d535@fastmail.com"
style="display: block; word-break: break-all; margin: 7px 0 0 0;
padding: 0; line-height:0"></span>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p>Can you capture telemetry for the PROPFIND and OPTIONS requests
on the shared calendar?<br>
</p>
<br>
<div class="moz-cite-prefix">On 03/19/2018 02:55 AM, Anatoli wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1ee17005-b30f-646a-3cc3-07f3910c2840@anatoli.ws">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div id="smartTemplate4-quoteHeader">
<div style="font-size:10.0pt;font-family:Verdana,Arial">Hi Ken,<br>
<br>
Basically, the shared calendar is working fine in Thunderbird,
where I can specify the exact URL. But I can't make it work on
iPhone as it only takes the server and later resolves the
exact URL via /.well-known/caldav which points to the personal
calendar for the same user. Though, if I specify on iPhone the
exact URL in the settings, it queries it:<br>
<br>
<font face="Courier New">Mar 19 03:27:42 l https[18199]:
[10.1.1.100] with "iOS/11.2.6 (15D100) dataaccessd/1.0";
"PROPFIND /dav/calendars/shared/ HTTP/1.1" (depth=0) =>
"HTTP/1.1 401 Unauthorized" (error=Must authenticate to
access the specified target)<br>
Mar 19 03:27:42 l https[18199]: login: [10.1.1.100] <a
class="moz-txt-link-abbreviated" href="mailto:t2@xxx.com"
moz-do-not-send="true">t2@xxx.com</a> Basic+TLS User
logged in
SESSIONID=<xxx.com-18199-1521440862-1-11826509860795088158><br>
Mar 19 03:27:42 l https[18199]: [10.1.1.100] as <a
class="moz-txt-link-rfc2396E" href="mailto:t2@xxx.com"
moz-do-not-send="true">"t2@xxx.com"</a> with "iOS/11.2.6
(15D100) dataaccessd/1.0"; "PROPFIND /dav/calendars/shared/
HTTP/1.1" (type=prop; depth=0) => "HTTP/1.1 207
Multi-Status"<br>
Mar 19 03:27:42 l https[18199]: login: [10.1.1.100] <a
class="moz-txt-link-abbreviated" href="mailto:t2@xxx.com"
moz-do-not-send="true">t2@xxx.com</a> Basic+TLS User
logged in
SESSIONID=<xxx.com-18199-1521440862-1-11826509860795088158><br>
Mar 19 03:27:42 l https[18199]: [10.1.1.100] as <a
class="moz-txt-link-rfc2396E" href="mailto:t2@xxx.com"
moz-do-not-send="true">"t2@xxx.com"</a> with "iOS/11.2.6
(15D100) dataaccessd/1.0"; "OPTIONS /dav/calendars/shared/
HTTP/1.1" => "HTTP/1.1 200 OK"<br>
</font><br>
But finally, iPhone Calendar app doesn't show events from the
shared calendar and in the Accounts the URL resets to the
naked domain (i.e. without the <font face="Courier New">/dav/calendars/shared/</font>
part). What could be done to make it work?<br>
<br>
Thanks,<br>
Anatoli<br>
<br>
</div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm
0cm;font-size:10.0pt;font-family:"Tahoma","sans-serif""><b>From:</b>
Ken Murchison<br>
<b>Sent:</b> Tuesday, March 13, 2018 14:09<br>
<b>To:</b> Info-cyrus<br>
<b>Subject:</b> Re: xDAV and shared namespaces<br>
</div>
<br>
</div>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 03/13/2018 12:50 PM, Anatoli
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:8d500135-766f-1b0c-02aa-0ec6d8e4ae77@anatoli.ws">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<div id="smartTemplate4-quoteHeader">
<div style="font-size:10.0pt;font-family:Verdana,Arial">Ken,<br>
<br>
Thanks a lot! After creating the <font face="Courier New">shared</font>
folder under the root hierarchy (with <font face="Courier
New">imtest -a admin</font> and the command you provided),
setting the corresponding ACLs for the users that have to
have access to the folder (with <font face="Courier New">cyradm
sam</font>) and creating a new connection in each WebDAV
client for <font face="Courier New"><a
class="moz-txt-link-freetext"
href="https://domain.com/dav/drive/shared/"
moz-do-not-send="true">https://domain.com/dav/drive/shared/</a></font>,
everything worked fine!<br>
<br>
I'll try to test the same with CalDAV / CardDAV and report
it here.<br>
</div>
</div>
</blockquote>
<br>
Its entirely possible that the URL parsing code for CalDAV and
CardDAV will not resolve to a shared folder. Let me know.<br>
<br>
<br>
<br>
<blockquote type="cite"
cite="mid:8d500135-766f-1b0c-02aa-0ec6d8e4ae77@anatoli.ws">
<div id="smartTemplate4-quoteHeader">
<div style="font-size:10.0pt;font-family:Verdana,Arial"> <br>
Regards,<br>
Anatoli<br>
<br>
</div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm
0cm;font-size:10.0pt;font-family:"Tahoma","sans-serif""><b>From:</b>
Ken Murchison<br>
<b>Sent:</b> Tuesday, March 13, 2018 12:55<br>
<b>To:</b> Info-cyrus<br>
<b>Subject:</b> Re: xDAV and shared namespaces<br>
</div>
<br>
</div>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 03/13/2018 11:48 AM, Anatoli
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:bc58bcd8-fb47-031d-1210-0ac707474757@anatoli.ws">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<div id="smartTemplate4-quoteHeader">
<div style="font-size:10.0pt;font-family:Verdana,Arial">Hi
Ken,<br>
<br>
Thanks for your quick reply. Yes, I'm willing to test it
and if needed I can also apply patches (I build Cyrus from
sources).<br>
<br>
> x CREATE shared (TYPE COLLECTION)<br>
<br>
What does this command is supposed to do and under what
user should I execute it (I mean <font face="Courier New">imtest
-a <user></font>)? I tried to run it under admin
user (it creates a "shared" folder at the root hierarchy)
and under a normal user that already has a shared folder
(in this case the folder is created under the user
hierarchy), but in both cases the folder stays empty (with
only cyrus.header and cyrus.index inside) and is not
visible under a WebDAV client. Am I missing something?<br>
</div>
</div>
</blockquote>
<br>
Definitely do this as an admin (e.g. 'cyrus') that DOES NOT have
their own user hierarchy.<br>
<br>
Its been so long since I wrote and played with the WebDAV module
that I forgot how it works. Try:<br>
<br>
x CREATE #drive/shared (TYPE COLLECTION)<br>
<br>
Use whatever you have set for the davdriveprefix option and the
proper hierarchy ('.' if you have disabled unixhierarchysep)<br>
<br>
<br>
<blockquote type="cite"
cite="mid:bc58bcd8-fb47-031d-1210-0ac707474757@anatoli.ws">
<div id="smartTemplate4-quoteHeader">
<div style="font-size:10.0pt;font-family:Verdana,Arial"> <br>
Regards,<br>
Anatoli<br>
<br>
</div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm
0cm;font-size:10.0pt;font-family:"Tahoma","sans-serif""><b>From:</b>
Ken Murchison<br>
<b>Sent:</b> Tuesday, March 13, 2018 12:18<br>
<b>To:</b> Info-cyrus<br>
<b>Subject:</b> Re: xDAV and shared namespaces<br>
</div>
<br>
</div>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<p>xDAV hasn't had much development or testing in the shared
namespace and there isn't any tooling to create such
mailboxes.</p>
<p>If you wanted to do some testing, you'd have to create the
mailboxes by hand and set the mailbox type accordingly. To
do so, you can connect to the server as an admin using
imtest and enter the following command:</p>
<p>x CREATE shared (TYPE COLLECTION)</p>
<p>to create a WebDAV collection. Or set the TYPE to CALENDAR
or ADDRESSBOOK<br>
</p>
<br>
<div class="moz-cite-prefix">On 03/13/2018 11:08 AM, Anatoli
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5416b7bb-bd10-7e4f-ffed-8a47c343bcf2@anatoli.ws">
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
<div id="smartTemplate4-template">Hi All,<br>
<br>
I'm experimenting with xDav (CalDAV, CardDAV and WebDAV)
in Cyrus 3.0.5. All xDAV services in user namespaces work
as expected, but I can't figure out how to setup them for
shared namespaces.<br>
<br>
The most important service for me to setup for shared
namespaces is WebDAV. I'd like to have a shared folder
accessible to multiple users based on their ACLs. I know
how to setup a shared folder for IMAP:<br>
<br>
<font face="Courier New">cyradm> cm <a
class="moz-txt-link-abbreviated"
href="mailto:shared1@domain.com"
moz-do-not-send="true">shared1@domain.com</a><br>
cyradm> sam <a class="moz-txt-link-abbreviated"
href="mailto:shared1@domain.com"
moz-do-not-send="true">shared1@domain.com</a> <a
class="moz-txt-link-abbreviated"
href="mailto:user1@domain.com" moz-do-not-send="true">user1@domain.com</a>
write<br>
</font><br>
In the mail client I see the shared1 folder under "shared
folders". But I can't see it in a WebDAV client. At the
server the shared1 folder doesn't have the autocreated
xDAV structure as it normally autocreates for individual
users, and I don't know how to create it manually.<br>
<br>
Does anybody know how to configure WebDAV shared folders?
I'm also interested in creating shared calendars (CalDAV)
and addressbooks (CardDAV), but I suppose they are managed
the same way as WebDAV.<br>
<br>
Thanks in advance,<br>
Anatoli<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/" moz-do-not-send="true">http://www.cyrusimap.org/</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" moz-do-not-send="true">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" moz-do-not-send="true">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ken Murchison
Cyrus Development Team
FastMail US LLC</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/" moz-do-not-send="true">http://www.cyrusimap.org/</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" moz-do-not-send="true">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" moz-do-not-send="true">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/" moz-do-not-send="true">http://www.cyrusimap.org/</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" moz-do-not-send="true">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" moz-do-not-send="true">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ken Murchison
Cyrus Development Team
FastMail US LLC</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/" moz-do-not-send="true">http://www.cyrusimap.org/</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" moz-do-not-send="true">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" moz-do-not-send="true">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/" moz-do-not-send="true">http://www.cyrusimap.org/</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" moz-do-not-send="true">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" moz-do-not-send="true">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ken Murchison
Cyrus Development Team
FastMail US LLC</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/" moz-do-not-send="true">http://www.cyrusimap.org/</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" moz-do-not-send="true">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" moz-do-not-send="true">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/" moz-do-not-send="true">http://www.cyrusimap.org/</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" moz-do-not-send="true">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" moz-do-not-send="true">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ken Murchison
Cyrus Development Team
FastMail US LLC</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://www.cyrusimap.org/">http://www.cyrusimap.org/</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a>
To Unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a></pre>
<br>
</body>
</html>