Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble connecting with Apple Calendar #954

Closed
jmfoleyjr opened this issue May 22, 2019 · 7 comments
Closed

Trouble connecting with Apple Calendar #954

jmfoleyjr opened this issue May 22, 2019 · 7 comments
Labels
client client related issue

Comments

@jmfoleyjr
Copy link

jmfoleyjr commented May 22, 2019

Is there something special that needs to be done for Apple Calendar? I have radicale clients working successfully on Linux, Windows and Mac using Thunderbird, but cannot get it working with Apple Calendar, even on the same computer where it does work with Thunderbird. I've run radicale in debug mode on the Mac for both Thunderbird and Apple Calendar. Results:

==> radical-labmacMacCal.out <==
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}
[7f0a991ed700] DEBUG: Sanitized script name: ''
[7f0a991ed700] DEBUG: Sanitized path: '/ConferenceCalendar/2c7a4b91-e0d9-6d05-d6ec-29112fec18ec/'
[7f0a991ed700] INFO: Successful login: 'mark'
[7f0a991ed700] DEBUG: Rule 'mark':'mark' doesn't match '.+':'ConferenceCalendar(/.*)?' from section 'conference'
[7f0a991ed700] INFO: Rights: 'mark':'mark' doesn't match any section
[7f0a991ed700] WARNING: Access to principal path '/mark/' denied by rights backend
[7f0a991ed700] INFO: OPTIONS response status for '/ConferenceCalendar/2c7a4b91-e0d9-6d05-d6ec-29112fec18ec/' in 0.002 seconds: 200 OK

==> radical-labmacTbird.out <==

[7ff194a42700] DEBUG: Rule 'mark':'ConferenceCalendar/2c7a4b91-e0d9-6d05-d6ec-29112fec18ec' matches '.+':'ConferenceCalendar(/.*)?' from section 'conference'
[7ff194a42700] DEBUG: Client provided sync token: 'http://radicale.org/ns/sync/86549883de7ef4f4a9f44710b7a6362d'
[7ff194a42700] DEBUG: Response content:
<?xml version="1.0"?>
<multistatus xmlns="DAV:">
  <sync-token>http://radicale.org/ns/sync/86549883de7ef4f4a9f44710b7a6362d</sync-token>
</multistatus>

[7ff194a42700] INFO: REPORT response status for '/ConferenceCalendar/2c7a4b91-e0d9-6d05-d6ec-29112fec18ec/' with depth '1' in 0.005 seconds: 207 Multi-Status

Note that on Apple Calendar I get "Rule 'mark':'mark' doesn't match '.+':'ConferenceCalendar(/.)?' from section 'conference'" whereas for Thunderbird I get, "DEBUG: Rule 'mark':'ConferenceCalendar/2c7a4b91-e0d9-6d05-d6ec-29112fec18ec' matches '.+':'ConferenceCalendar(/.)?' from section 'conference'". Why? Note further that on the Mac output, in the referenced debug line, it has "Rule 'mark':'mark'", whereas in the corresponding Thunderbird line it has "Rule 'mark':'ConferenceCalendar/2c7a4b91-e0d9-6d05-d6ec-29112fec18ec' ". So, the Mac line repeats the userId after the colon and the Thunderbird line has the path to the calendar after the colon.

To set up the account on the Mac, I selected, "Other CalDAV Account". I selected Account Type = "Advanced". I entered my user Id and password as configured in the htpasswd file. Server address = "host.mydom.org" (should it be https://host.mydom.org?). Server path = "/ConferenceCalendar/2c7a4b91-e0d9-6d05-d6ec-29112fec18ec/" -- same as with Thunderbird. Port = 5232. SSL checked. All these are exactly the same as Thunderbird settings as far as I know.

After doing this, the calendar name "host.mydom.org" does appear on the list of calendars, but no calendar appears. Instead, there is a small gray triangle beside the calendar name. Clicking on it gives the message: The server specified an invalid calendar home. No calendar home was specified for the account "host.mydom.org".

Does anyone have an idea of what could be wrong?

@jmfoleyjr
Copy link
Author

jmfoleyjr commented May 29, 2019

No one has any insight on this? Here is some more information ...

Mac/Calendar still not working. Output of -D below. After configuring this calendar on Mac Calendar, the server host name (not the calendar name) appears on the Calendar app with a gray triangle. Clicking on that says, "The server specified an invalid calendar home. No calendar home was specified for the account "mail.ohprs.org".

My Mac/Calendar account setup is:
User Name: mark
Password: *******
Server Address: mail.ohprs.org
Server Path: /ConferenceCalendar/2c7a4b91-e0d9-6d05-d6ec-29112fec18ec/
Port: 5232
Use SSL, checked
Use Kerberos, not checked

output from radicale -D:

[7f580e54a700] DEBUG: Sanitized script name: ''
[7f580e54a700] DEBUG: Sanitized path: '/ConferenceCalendar/2c7a4b91-e0d9-6d05-d6ec-29112fec18ec/'
[7f580e54a700] INFO: Successful login: 'mark'
[7f580e54a700] DEBUG: Rule 'mark':'mark' doesn't match '.+':'ConferenceCalendar(/.*)?' from section 'conference'
[7f580e54a700] INFO: Rights: 'mark':'mark' doesn't match any section
[7f580e54a700] WARNING: Access to principal path '/mark/' denied by rights backend
[7f580e54a700] INFO: OPTIONS response status for '/ConferenceCalendar/2c7a4b91-e0d9-6d05-d6ec-29112fec18ec/' in 0.003 seconds: 200 OK

I think it must have something to do with the rights file, which is:

[conference]
user = .+
collection = ConferenceCalendar(/.*)?
permission = rw

This rights file works for Thunderbird on Linux, Mac and Windows 7, and for caldavsynchronizer with Outlook on Windows 7 and Windows 10. Only the Mac Calendar is giving me trouble. Any insight greatly appreciated (has anyone implement this with rights for Mac Calendar?). If I don't come up with a solution in the next week or so we will abandon the idea of using radicale for Mac Calendar clients.

@return42
Copy link

Server Path: /ConferenceCalendar/2c7a4b91-e0d9-6d05-d6ec-29112fec18ec/

My iOS & macOS experience is very old, but shouldn't it be:

Server Path: /<user>/

@jmfoleyjr
Copy link
Author

Well, clearly something is wrong, but not sure it's the server path. Thunderbird CalDav clients on Mac, Linux and Windows, and CalDavSynchronizer (Windows) connect just fine with the server path as shown. The actual Real path on the server is:

/home/radicale/collections/collection-root/ConferenceCalendar/2c7a4b91-e0d9-6d05-d6ec-29112fec18ec/

I don't see where would fit in that path.

@return42
Copy link

No, you misunderstood me. What I mean is; the setup of the clients (e.g. thunderbird and Apple's Calendar) are totally different .. while you have to enter the full path

My Mac/Calendar account setup is:
User Name: mark
Password: *******
Server Address: mail.ohprs.org

this server path might be OK in thunderbird ..

Server Path: /ConferenceCalendar/2c7a4b91-e0d9-6d05-d6ec-29112fec18ec/

In Apple calendar it is simply

Server Path: /mark/
Port: 5232
Use SSL, checked
Use Kerberos, not checked

this is what I have setup in Apples Calendar V 9.0

@return42
Copy link

return42 commented May 30, 2019

Or even try:

Server Path: /ConferenceCalendar/

@jmfoleyjr
Copy link
Author

Well, hallelujah! The /user/ path didn't work, but /ConferenceCalendar/ did! I'll do some testing on this to make sure everything is working.

@jonassmedegaard
Copy link

jonassmedegaard commented May 31, 2019 via email

@Kozea Kozea locked and limited conversation to collaborators Mar 14, 2024
@pbiering pbiering converted this issue into discussion #1442 Mar 14, 2024
@pbiering pbiering added the client client related issue label Sep 18, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
client client related issue
Projects
None yet
Development

No branches or pull requests

4 participants