sabre-io / Baikal

Baïkal is a Calendar+Contacts server
https://sabre.io/baikal/
GNU General Public License v3.0
2.46k stars 284 forks source link

Adding VCARD VERSION:4.0 but GET/REPORT comes back with VERSION:3.0 #1152

Closed reiffert2 closed 1 year ago

reiffert2 commented 1 year ago

Baikal version: 0.9.3

Expected behaviour: Adding VCARDs with VERSION:4.0 and GET/REPORT'ing them back in VERSION:4.0

Current behaviour: When adding VCARDs with VERSION:4.0 they show as quote: "BEGIN:VCARD VERSION:4.0 UID:9c53a8ff-4b00-96d9-5d1e-f2dc23110014..." at dav.php/addressbooks/user/test40/9c53a8ff-4b00-96d9-5d1e-f2dc23110014.vcf?sabreAction=info but when downloading the .vcf with a GET request or when issuing a REPORT then the VERSION is 3.0

Steps to reproduce:

  1. Add a VCARD with VERSION:4.0,
  2. download it,
  3. compare the VERSION.
reiffert2 commented 1 year ago

When body is '

' it actually comes back with VERSION:4.0 vcards for the REPORT method.