Closed myrho closed 1 year ago
duplicate of https://github.com/nextcloud/server/issues/20143
Why do you think this issue is a duplicate #20143?
I don't think it's a duplicate of #20143 either :)
But using a file as photo thats stored in a users Nextcloud account is also not supported. Actually only embedded images as base64 or binary possible: https://github.com/nextcloud/server/blob/192cf12440cdca9f5c044b84a9187605a58d7707/apps/dav/lib/CardDAV/PhotoCache.php#L207
Ah, I think it was because I was very tired and it was very late for me :grin: :see_no_evil: Sorryyy :hugs:
Just to add: I'm fine with the current implementation. Adding the opportunity to embed external or internal resources by uri adds a lot of complexity. Think about all those security checks for such a feature.
It is already possible to create vcards with photo URIs and the Contacts app already displays the referenced image (at least in the contact view).
Maybe redirecting a vcf?photo url to the referenced uri would be the easiest solution? So not handling the external resource on the server at all.
Maybe redirecting a vcf?photo url to the referenced uri would be the easiest solution? So not handling the external resource on the server at all.
That's a fair idea actually! Can you open a pr for it? :)
Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!
How to use GitHub
Steps to reproduce
testbook
.http://nextcloud/remote.php/dav/addressbooks/users/username/testbook/xyz.vcf?photo
Expected behaviour
The image should be loaded.
Actual behaviour
404 HTTP Status code is returned.
Server configuration
From the latest nextcloud docker image:
Operating system: Debian Buster
Web server: Apache
Database: Sqlite
PHP version: PHP 7.3
Nextcloud version: 18.0.4
Updated from an older Nextcloud/ownCloud or fresh install: Fresh
Where did you install Nextcloud from: Docker
List of activated apps: Contacts
Client configuration
Browser: Latest Chrome/Firefox
Logs
No error messages appear related to the
...vcf?photo
request in the nextcloud logs (loglevel 0).