Open f1-outsourcing opened 3 years ago
Hi @f1-outsourcing,
Judging by the tcpdump and by the 401 response I can speculate that the credentials are not sent with original request. I don't see a 'Authorization:Basic ****' header in the request. That looks like a client issue. Cheers,
I enabled the ssl frontend via haproxy and now it connected pffff. I guess it does not want to send plain text credentials, however it does not report that at all.
Hi @danielgrigore
Just to summarize, after getting a cert for the caldav.
When I do not have the redirection of /.well-known/caldav to /cosmo/dav/users/ I am getting the error "unable to verify account name or password". The proxy logs these urls
404 571 - - ---- 10/1/0/0/0 0/0 "PROPFIND /.well-known/caldav HTTP/1.1"
302 111 - - LR-- 10/1/0/0/0 0/0 "PROPFIND / HTTP/1.1"
401 120 - - ---- 10/1/0/0/0 0/0 "PROPFIND /cosmo/dav HTTP/1.1"
500 272 - - ---- 10/1/0/0/0 0/0 "PROPFIND /cosmo/dav HTTP/1.1"
404 571 - - ---- 10/1/0/0/0 0/0 "PROPFIND /caldav/v2 HTTP/1.1"
404 571 - - ---- 10/1/0/0/0 0/0 "PROPFIND /principals/users/test/ HTTP/1.1"
404 571 - - ---- 10/1/0/0/0 0/0 "PROPFIND /principals/ HTTP/1.1"
404 571 - - ---- 10/1/0/0/0 0/0 "PROPFIND /dav/principals/ HTTP/1.1"
404 571 - - ---- 10/1/0/0/0 0/0 "PROPFIND /.well-known/caldav HTTP/1.1"
302 111 - - LR-- 10/1/0/0/0 0/0 "PROPFIND / HTTP/1.1"
401 120 - - ---- 10/1/0/0/0 0/0 "PROPFIND /cosmo/dav HTTP/1.1"
404 261 - - ---- 10/1/0/0/0 0/0 "PROPFIND /cosmo/dav HTTP/1.1"
571 - - ---- 10/1/0/0/0 0/0 "PROPFIND /caldav/v2 HTTP/1.1"
404 571 - - ---- 10/1/0/0/0 0/0 "PROPFIND /principals/users/test%40xxxxxxx.xxx/ HTTP/1.1"
404 571 - - ---- 10/1/0/0/0 0/0 "PROPFIND /principals/ HTTP/1.1"
404 571 - - ---- 10/1/0/0/0 0/0 "PROPFIND /dav/principals/ HTTP/1.1"
When I enable the redirection /.well-known/caldav to /cosmo/dav/users/
302 118 - - LR-- 9/1/0/0/0 0/0 "PROPFIND /.well-known/caldav HTTP/1.1"
401 120 - - ---- 9/1/0/0/0 0/0 "PROPFIND /cosmo/dav/users/ HTTP/1.1"
500 279 - - ---- 9/1/0/0/0 0/0 "PROPFIND /cosmo/dav/users/ HTTP/1.1"
302 111 - - LR-- 9/1/0/0/0 0/0 "PROPFIND / HTTP/1.1"
401 120 - - ---- 9/1/0/0/0 0/0 "PROPFIND /cosmo/dav HTTP/1.1"
500 272 - - ---- 9/1/0/0/0 0/0 "PROPFIND /cosmo/dav HTTP/1.1"
404 571 - - ---- 9/1/0/0/0 0/0 "PROPFIND /caldav/v2 HTTP/1.1"
404 571 - - ---- 9/1/0/0/0 0/0 "PROPFIND /principals/users/test/ HTTP/1.1"
404 571 - - ---- 9/1/0/0/0 0/0 "PROPFIND /principals/ HTTP/1.1"
404 571 - - ---- 9/1/0/0/0 0/0 "PROPFIND /dav/principals/ HTTP/1.1"
302 118 - - LR-- 9/1/0/0/0 0/0 "PROPFIND /.well-known/caldav HTTP/1.1"
401 120 - - ---- 9/1/0/0/0 0/0 "PROPFIND /cosmo/dav/users/ HTTP/1.1"
207 610 - - ---- 9/1/0/0/0 0/0 "PROPFIND /cosmo/dav/users/ HTTP/1.1"
200 219 - - ---- 9/1/0/0/0 0/0 "OPTIONS /cosmo/dav/users/test%40xxxxxx.xxx/ HTTP/1.1"
401 120 - - ---- 11/2/0/0/0 0/0 "PROPFIND /cosmo/dav/users/test%40xxxxxx.xxx/ HTTP/1.1"
404 261 - - ---- 11/2/0/0/0 0/0 "PROPFIND /cosmo/dav/users/test%40xxxxxx.xxx/ HTTP/1.1"
404 261 - - ---- 11/2/0/0/0 0/0 "PROPFIND /cosmo/dav/users/test%40xxxxxx.xxx/ HTTP/1.1"
302 111 - - LR-- 11/2/0/0/0 0/0 "PROPFIND / HTTP/1.1"
401 120 - - ---- 13/3/0/0/0 0/0 "PROPFIND /cosmo/dav HTTP/1.1"
404 261 - - ---- 13/3/0/0/0 0/0 "PROPFIND /cosmo/dav HTTP/1.1"
404 571 - - ---- 13/3/0/0/0 0/0 "PROPFIND /principals/ HTTP/1.1"
404 261 - - ---- 13/3/0/0/0 0/0 "PROPFIND /cosmo/dav/users/test%40xxxxxx.xxx HTTP/1.1"
Apple creates the caldav account and shows it in the accounts section. However when I open the calendar application, and click the just created calendar. I am getting this error "the url https://cal.xxxxxx.xxx/dav/users/test@example.com encountered HTTP error 404. Make sure the url is correct."
Are you interested in resolving this or is this beyond the scope of cosmo?
Hi @f1-outsourcing
I'm not sure I understood the issue correctly, but using cosmo with the default authentication provider does not create any default calendars, but only creates the user account.
To create a calendar collection you need to perform a MKCALENDAR
request like below
curl -i -X"MKCALENDAR" -u"test_account@XXX.xx:*********" -H'Content-Type: application/xml;charset="UTF-8"' "http://localhost:8080/cosmo/dav/test_account@XXX.xx/MyNewCalendar"
Then to add an event to your collection you execute a PUT
request:
curl -i -X"PUT" -u"test_account@XXX.xx:*********" -H'Content-Type: text/calendar' -H"If-none-match:*" --data-binary @recurrent-event1.ics "http://localhost:8080/cosmo/dav/test_account@XXX.xx:*********/MyNewCalendar/rec1.ics"
Cheers,
Yes I did created the calendar like that, also tried just now to create a calendar named home. But apple calendar gui keeps complaining about "No calendar home was specified for the account test" after doing 3x request to "PROPFIND /cosmo/dav/test@xxxxxx.xxx/calendar/ HTTP/1.1"
curl -X"MKCALENDAR" -H"Content-Type:application/xml" -utest@xxxxxx.xxx:test321 http://192.168.143.22:8080/cosmo/dav/test@xxxxxx.xxx/calendar
curl -X"MKCALENDAR" -H"Content-Type:application/xml" -utest@xxxxxx.xxx:test321 http://192.168.143.22:8080/cosmo/dav/test@xxxxxx.xxx/home
Maybe it is something like this is missing? https://icalendar.org/CalDAV-Access-RFC-4791/6-2-1-caldav-calendar-home-set-property.html
This[1] is a similar issue with sabre-dav
I tried this url 'https://xxxxxx/cosmo/dav/principals/test@xxxxx.xxx' but gives auth error
https://github.com/sabre-io/dav/issues/983#issuecomment-316672128
Ok, let me ask differently, did you ever get it to work with macos? Is there some info available on what devices this has been tested?
Hi @f1-outsourcing
As far as we tested it our CalDAV server which is backed by Cosmo works fine with Apple clients. You can try it yourself by creating a free account at gmx.com or mail.com Maybe this way you will figure it out what the problem is.
Cheers,
Ok I will try this weekend (pffff, for the sixth time I am getting "A technical error has occurred. Error Code: b9688393-7898-47e0-8354-8a2b2c8e8a85", Even decided to disable ublock)
Looks more like fake websites or so again thechnical errors
Do you maybe have a test account I can use? Or you know some other domains that use this?
Are you messing with me? These sites do not seem to work.
Do you have some other environment to test on?
With the demo application, I have problems connecting the apple calendar (mojave vm). The same connect url just works fine in thunderbird.
Is this something that should be corrected on the proxy, or should the cosmo server support this client?
This is the tcpdump of the apple calender connection request.