0
OCP API: Contacts photos format
Source: nextcloud/server#32520 · opened by @marcelklehr
Describe the bug I'm trying to process contact photos in an app. Sometimes the photos I get from OCP\IAddressBook#search are binary blobs, sometimes they are links, that are Basic Auth protected. Is this intended? Steps to reproduce 1. Write a Nextcloud App 2. OCP\Contacts\IManager#getUserAddressBooks() 3. $cards = OCP\IAddressBook#search() 4. file_get_contents($card['PHOTO']) Expected behavior Consistent data formatting, either all photos as blobs or all photos as URLs. Additionally it would be nice if those URLs didn't have Basic Auth protection, which makes it quite hard to process the photos on the server (I assume I would need to create an app password.) Actual behavior Sometimes PHOTO entries are URLs with Basic Auth protection, sometimes they are blobs. Contact version Not sure Operating system Not sure PHP engine version PHP 7.4 Web server Apache (supported) Database Other Operating system Not sure List of activated Apps Nextclo…
No pledges yet. Be the first to back this.
Comments
Similar requests
Create typed events for all remaining hooks used by admin_audit
1 vote · 0 comments
PHP Calendar API: Write support
3 votes · 0 comments
scope of the contacts menu is too broad
1 vote · 0 comments
Move core apps backgroudjobs to OCP
0 votes · 0 comments
Make failed login events (AnyLoginFailedEvent, TwoFactorProviderChallengeFailed) available to webhook_listeners
0 votes · 0 comments
No comments yet.