You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SOGo: /.well-known/caldav and /.well-known/carddav redirect to http://, so iOS CalDAV/CardDAV setup fails #8297
Install SOGo with DAV enabled, published through Traefik at https://sogo.example.com.
Send PROPFIND https://sogo.example.com/.well-known/caldav, for example by adding a CalDAV account on an iPhone (Settings → Apps → Calendar → Calendar Accounts → Add Account → Other → Add CalDAV Account), or with:
The redirect drops to plain HTTP. iOS doesn't follow it and goes on to PROPFIND /, which ends at SOGo's web login page (200, not DAV), then tries /principals/ and /calendar/dav/<user>/ (both 405). Setup fails with "The operation could not be completed. (DAAccountValidationDomain error 100.)". Credentials are never sent. This also happens when the account comes from a configuration profile whose CalDAVPrincipalURL is https://sogo.example.com/SOGo/dav/: iOS still goes to the well-known path first.
Apache receives plain HTTP from Traefik, so it makes the relative target an absolute http:// URL. The same template already hard-codes HTTPS for SOGo itself (x-webobjects-server-url "https://%{HTTP_HOST}e", server port 443), so an absolute HTTPS target matches it:
Tested on a production node: with this change applied to the generated state/config/SOGo.conf and Apache reloaded, the redirect goes to https://…/SOGo/dav/, the next PROPFIND /SOGo/dav/ returns 207, and both the CalDAV and the CardDAV account validate on the iPhone.
Verified on ghcr.io/nethserver/sogo:2.3.2-dev.1 (updated from 2.3.1 on a Rocky 9 node behind Traefik). Before the update, PROPFIND /.well-known/caldav and /.well-known/carddav returned 301 -> http://<host>/SOGo/dav; after it, both return 301 -> https://<host>/SOGo/dav/, and the generated SOGo.conf has the new rules. On an iPhone (iOS 26), a configuration profile whose CalDAV/CardDAV accounts point at https://<host>/SOGo/dav/ now installs and both accounts validate; events and contacts sync in both directions with SOGo.
Activity
stephdl commentedon Nov 30, 2026
QA
test on
ghcr.io/nethserver/sogo:2.3.2-dev.1verifiy the bug is not more reproducible
@danb35 could you verify the bug ?
danb35 commentedon Nov 30, 2026
Verified on
ghcr.io/nethserver/sogo:2.3.2-dev.1(updated from 2.3.1 on a Rocky 9 node behind Traefik). Before the update,PROPFIND /.well-known/caldavand/.well-known/carddavreturned301 -> http://<host>/SOGo/dav; after it, both return301 -> https://<host>/SOGo/dav/, and the generatedSOGo.confhas the new rules. On an iPhone (iOS 26), a configuration profile whose CalDAV/CardDAV accounts point athttps://<host>/SOGo/dav/now installs and both accounts validate; events and contacts sync in both directions with SOGo.