Aller au contenu

Featured Replies

Posté(e)

Bonjour,

Je suis entrain de m'amuser avec le serveur CalDav du Synology pour mettre en place Agendav (https://github.com/adobo/agendav).

L'installation s'est bien passé mais le logiciel rencontre des problèmes pour :

  • Récupérer le DisplayName des Calendriers
  • Mettre à jour le DisplayName et le Calendar-Color des calendriers

 

J'essaie d'aider le développeur de la solution à la rendre compatible avec nos NAS, et voici ce que j'ai constaté :

Tout d'abord, sous SSH, j'exécute la commande suivante :

curl -v -X PROPFIND -u user:password -H "Depth:0" -H "Content-Type: text/xml" -H "Brief:t" -d "<D:propfind xmlns:D='DAV:' xmlns:ns0='DAV:'><D:prop><ns0:displayname/></D:prop></D:propfind>" https://caldav.mondomaine.fr:5006/calendars/user

La commande me renvoie le résultat suivant :

* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
> PROPFIND /calendars/user HTTP/1.1
> Authorization: Basic c3lubzpsZ0BBZG1pbjIwMTU=
> User-Agent: curl/7.36.0
> Host: caldav.mondomaine.fr:5006
> Accept: */*
> Depth:0
> Content-Type: text/xml
> Brief:t
> Content-Length: 73
>
< HTTP/1.1 207 Multi-Status
< Date: Fri, 18 Dec 2015 14:46:46 GMT
< Server: Apache
< Location: https://caldav.mondomaine.fr:5006/calendars/user/
< Content-Length: 391
< Content-Type: application/xml; charset="utf-8"
<
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:" xmlns:ns0="DAV:">
<D:response xmlns:ns0="DAV:" xmlns:ns1="http://apple.com/ns/ical/" xmlns:ns2="urn:ietf:params:xml:ns:caldav">
<D:href>/calendars/user/</D:href>
<D:propstat>
<D:prop>
<ns0:displayname>User</ns0:displayname>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>

On voit que j'arrive bien à récupérer le DisplayName, pas de soucis. Cela devrait donc être corrigé.

En ce qui concerne par contre la mise à jour du DisplayName et du Calendar-Color, la commande suivante devrait fonctionner :

curl -v -X PROPPATCH -u user:pass -H "Depth:0" -H "Content-Type: text/xml" -d "<D:propertyupdate xmlns:D='DAV:' xmlns:ns0='DAV:'><D:set><D:prop><ns0:displayname>Toto</ns0:displayname><ns0:calendar-color>#FFFFF</ns0:calendar-color></D:prop></D:set></D:propertyupdate>" https://caldav.mondomaine.fr:5006/calendars/user

Le résultat est encourageant :

* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
> PROPPATCH /calendars/user HTTP/1.1
> Authorization: Basic dGVycmFubzpsZ0BTeW5vMjAxNQ==
> User-Agent: curl/7.36.0
> Host: caldav.mondomaine.fr:5006
> Accept: */*
> Depth:0
> Content-Type: text/xml
> Content-Length: 187
>
< HTTP/1.1 207 Multi-Status
< Date: Fri, 18 Dec 2015 16:03:25 GMT
< Server: Apache
< Location: https://caldav.mondomaine.fr:5006/calendars/user/
< Content-Length: 250
< Content-Type: application/xml; charset="utf-8"
<
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:" xmlns:ns0="DAV:">
<D:response>
<D:href>/calendars/user</D:href>
<D:propstat>
<D:prop>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>

 

Sauf que dans les faits, si je refais la première commande, rien n'a changé..... :(

Quelqu'un parmi vous s'y connait un peu pour m'aider à comprendre le problème ?

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.