mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
https://mailinabox.email/
Creative Commons Zero v1.0 Universal
13.99k stars 1.44k forks source link

Setting up CalDav on iPhone sets wrong Account URL #1756

Open dmitripr opened 4 years ago

dmitripr commented 4 years ago

I noticed an issue causing appointments not be sent when appointment is created on an iPhone. When appointment is created in Nextcloud or in Calendar app on Mac, the invite is sent fine, but not when appointment is created on the iPhone.

After doing some digging I noticed that default Account URL is incorrect.

iPhone sets the following Account URL by default: https://your.host.name/cloud/remote.php/caldav/principals/user@host.name/

However, when logging into Nextcloud and clicking settings on bottom left, it says to use the following URL for iOS/Mac OS: https://your.host.name/cloud/remote.php/dav/principals/users/user%40host.name/

After manually setting the Account URL on the iPhone to that of Nextcloud, the invites are working as expected.

dmitripr commented 4 years ago

Noticed the same thing in the Calendar app on a Mac. Had to manually fix the URL.

karlo1941 commented 4 years ago

hi here is solution. not the best, but some could rewrite it.

1597