1
Pick vCard version by url parameters
Source: nextcloud/server#16942 · opened by @MetaEntropy
[vcard-defaults-to-v4.patch.txt]( Describe the bug When downloading a VCF file from the CardDAV with the HTTP GET verb from a common web browser (Firefox, Chrome, Internet Explorer) one would expect to get a version 4.0 vCard, which is the best format supported by the CardDAV; nextcloud returns a version 3.0 vCard, downgrading the content. This is due to the fact that most browsers do not explicitly add "text/vcard; version=4.0" on their "Accept" HTTP header line; in place they use */*. Consequently, the negotiateVCard() function called by httpAfterGet() in the 3rdparty/sabre/dav/lib/CardDAV/Plugin.php script negotiates the content type as "text/vcard" then the text/vcard content type defaults to version 3.0. The same behavior is observed for a "Accept: text/vcard" header. To get a version 4.0 vCard, one has to set "Accept: text/vcard; version=4.0" explicitly in the header of the HTTP GET request. Actually, RFC…
No pledges yet. Be the first to back this.
Comments
Similar requests
show vcard qr code on user profile page
1 vote · 0 comments
Persist and display recently used directories in file picker
0 votes · 0 comments
Parameters for public share urls
2 votes · 0 comments
Expand CalDAVRemoveEmptyValue.php to fix additional 'Unsupported VALUE parameter for DTEND property' errors that cause sync issues
0 votes · 0 comments
Add color code field to background color picker
1 vote · 0 comments
No comments yet.