mam-dev / cosmo

Cosmo Calendar Server implements the server side of the CalDAV protocol.
Apache License 2.0
77 stars 45 forks source link

Error on running curl -MKCALENDAR #81

Closed dyana0123 closed 3 months ago

dyana0123 commented 3 months ago

Hello when running ' curl -X"MKCALENDAR" -H"Content-Type:application/xml" -u${email}:${password} http://localhost:8080/cosmo/dav/{email}/calendar" ' I get the following error: <?xml version="1.0" ?>One or more intermediate collections must be created</C:calendar-collection-location-ok></D:error>

I'm running the application with a local instance of mariadb. Can you help me understand what can I do to make it work?

f1-outsourcing commented 3 months ago

Looks like there is nothing wrong with your request, I have been using the same for a while without issues.

curl -k -X "MKCALENDAR" -H "Content-Type:application/xml" -u "$user:$password" "$caldavurl/$user/calendar"

Maybe your databases is not properly initialized? Maybe delete everything of this user in the database?

danielgrigore commented 3 months ago

I ran the following command: curl -i -X"MKCALENDAR" -H"Content-Type:application/xml" -ujon.doe@some.dev:sample http://localhost:8080/cosmo/dav/jon.doe@some.dev/calendar

and i got a 201 status code

HTTP/1.1 201 Cache-control: no-cache