Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAV app returns raw contact image instead of URL #23345

Closed
ChristophWurst opened this issue Mar 17, 2016 · 13 comments · Fixed by #25081
Closed

DAV app returns raw contact image instead of URL #23345

ChristophWurst opened this issue Mar 17, 2016 · 13 comments · Fixed by #25081

Comments

@ChristophWurst
Copy link
Contributor

Steps to reproduce

  1. Use OCP\Contacts\IManager::search
  2. Use the 'PHOTO' attribute as url for the contacts image

Expected behaviour

'PHOTO' should be a valid URL for an image that can be used in the browser, e.g. contact images in the mail app.

Actual behaviour

'PHOTO' contains the raw image.

ownCloud version: (see ownCloud admin page)
9

That behavior changed when switching from the old contacts app to the new dav app and therefore breaks mail on oc9, see owncloud-archive/mail#1352 for a quick fix.

@DeepDiver1975 as discussed

@DeepDiver1975 DeepDiver1975 added this to the 9.1-current milestone Mar 17, 2016
@DeepDiver1975
Copy link
Member

The old contacts app was returning a url - yes - here is the code

https://github.com/owncloudarchive/contacts/blob/master/lib/addressbookprovider.php#L162-L169

@DeepDiver1975
Copy link
Member

I need to think about on how to fix this in the future.

@ChristophWurst with respect to the mail app as of today: as you can see there used to be a prefix given to the photo element:

$j['data']['PHOTO'] = "VALUE=uri:$url";

The mail app code should check for this and only use the url is given

@jancborchardt
Copy link
Member

And this is definitely something we should backport, right? @karlitschek

@karlitschek
Copy link
Contributor

yes. backport please

@DeepDiver1975
Copy link
Member

And this is definitely something we should backport,

once there is anything to be backported ...

@jancborchardt
Copy link
Member

@DeepDiver1975 get to work ;)

@PVince81
Copy link
Contributor

PVince81 commented Jun 8, 2016

@DeepDiver1975 any update ?

@DeepDiver1975
Copy link
Member

no time to look at this - sorry 😢

@ChristophWurst
Copy link
Contributor Author

9.2 then?

@PVince81
Copy link
Contributor

PVince81 commented Jun 9, 2016

@georgehrke can you help with this ?

@georgehrke
Copy link
Contributor

sure :)
@DeepDiver1975 Do you have any requirements where in the DAV app this image endpoint should be?

@georgehrke
Copy link
Contributor

@DeepDiver1975 One note about https://github.com/owncloud/core/blob/master/apps/dav/lib/CardDAV/AddressBookImpl.php

Right now you assume that the URI is always $UID.vcf, but this is only optional behavior and not required.

@lock
Copy link

lock bot commented Aug 4, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants