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

Show remote user's avatar for server to server shares #14564

Closed
PVince81 opened this issue Feb 27, 2015 · 22 comments
Closed

Show remote user's avatar for server to server shares #14564

PVince81 opened this issue Feb 27, 2015 · 22 comments

Comments

@PVince81
Copy link
Contributor

PVince81 commented Feb 27, 2015

Share a folder with a remote user, for example "remoteuser@remotehost.com/owncloud".

Now that there are avatars in the share dropdown, it would be nice to be able to show avatars from remote users.

For this, we need to add a OCS Share API to allow retrieving remote user avatars

I'd say this API should only work once the share was accepted, for security purposes (CC @LukasReschke)

The remote avatars could be cached locally too in case some are used often.

@owncloud/designers @rullzer

@rullzer
Copy link
Contributor

rullzer commented Mar 3, 2015

So I have been thinking about this.

  1. We can just send the share token along. So the url would be something like... avatar/remote/{user}/{size}/{token}. Now this would require passing the share token around.
  2. We can send the requesting user. So the url then becomes something like: avatar/remote/{user}/{size}/{remoteUser}.

I think option 2 is better.
However both would reqruire an extention to the OCP Share Class, or direct calls to the OC Share class. Since we need to obtain the list of remote shares for {user} and then find the share with {token} or a share with {remoteUser}. The share might have to be accepted but a check for that should not be to hard, and of course only required in case of a call from the sharer..

This seems like a good first step. Caching can then be added later. I'll see if i can come up with a PR somewhere this week.

@rullzer
Copy link
Contributor

rullzer commented Mar 3, 2015

On a (somewhat) unrelated note: it seems like converting the avatar stuff to the AppFramework is non trivial because of the imagejpeg call in $image->show().

I'll look into this since it would be nice to do that right away.

@rullzer rullzer self-assigned this Mar 3, 2015
@rullzer rullzer mentioned this issue Mar 13, 2015
3 tasks
@rullzer
Copy link
Contributor

rullzer commented Mar 13, 2015

Initial PR at #14856

@jancborchardt
Copy link
Member

@rullzer @MorrisJobke can this be closed now that #14856 has been merged?

@DeepDiver1975
Copy link
Member

@rullzer @MorrisJobke can this be closed now that #14856 has been merged?

it was wrong to merge the pr - will revert - issue goes to 9.0

@rullzer
Copy link
Contributor

rullzer commented Feb 11, 2016

We should rethink this now that we can sync federated address books.
But is not going to be 9.0.. @PVince81 @cmonteroluque

@MorrisJobke
Copy link
Contributor

But is not going to be 9.0.. @PVince81 @cmonteroluque

Updating milestone

@MorrisJobke MorrisJobke modified the milestones: 9.1-next, 9.0-current Feb 12, 2016
@ghost
Copy link

ghost commented Feb 13, 2016

@MorrisJobke agreed

@AndyScherzinger
Copy link

Can we commit on 9.1 in some way since we, android app, want to integrate this :)
owncloud/android-library#107

@rullzer
Copy link
Contributor

rullzer commented Mar 7, 2016

@MTRichards FYI

@rullzer
Copy link
Contributor

rullzer commented Mar 7, 2016

Also related to #22414

@MTRichards
Copy link
Contributor

Will take it into account when planning - short answer is maybe! It is all a matter of priorities...

@guruz
Copy link
Contributor

guruz commented Mar 21, 2016

Desktop is also looking forward to it for activity list, share dialog and maybe even account toolbar in settings dialog.

@AndyScherzinger
Copy link

@rullzer any news on avatars? :)

@rullzer
Copy link
Contributor

rullzer commented May 9, 2016

not yet. We have to rethink how we handle avatars. Since they are now stored in the systems address book. So we could fetch them there. But then again we want to cache them resized as well and all. But that will take time...

@AndyScherzinger
Copy link

Thanks for the update! On the Android side we would and do a caching of the avatars too :)

@rullzer
Copy link
Contributor

rullzer commented Jun 9, 2016

I see no way this makes it into 9.1. CC: @PVince81

@PVince81
Copy link
Contributor Author

PVince81 commented Jun 9, 2016

Yeah, we're past feature freeze and this needs some new APIs.
Moving to 9.2

@PVince81 PVince81 modified the milestones: 9.2-next, 9.1-current Jun 9, 2016
@daorte
Copy link

daorte commented Aug 30, 2016

Hi,
About the ubication of the OCS API and how the calls are made in the android library, i ask some questions on owncloud/android-library#132 and owncloud/android-library#107 (comment) but apparently it is related to server side and how the services are exposed

@PVince81
Copy link
Contributor Author

@DeepDiver1975 is the DAV resource available publicly or needs auth ? #26872

If no auth then it would be possible to use it for federated shares.
If auth, then it needs to somehow use the fed shares tokens to access a specific avatar for the sharer or all share participants.

@PVince81
Copy link
Contributor Author

PVince81 commented Apr 7, 2017

moving to backlog, but would be good to schedule this at some point @pmaier1

@DeepDiver1975 any estimate on difficulty ? if we can reuse the new avatar retrieval endpoint from 10.0 ?

@PVince81 PVince81 modified the milestones: backlog, 10.0 Apr 7, 2017
@DeepDiver1975 DeepDiver1975 removed their assignment Sep 16, 2020
@stale
Copy link

stale bot commented Sep 21, 2021

This issue has been automatically closed.

@stale stale bot closed this as completed Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants