Skip to content

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

Closed

Description

@PVince81

Share a folder with a remote user, for example "[email protected]/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

Activity

  1. rullzer commented on Mar 3, 2015

    @rullzer
    Contributor

    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.

  2. rullzer commented on Mar 3, 2015

    @rullzer
    Contributor

    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.

  3. self-assigned this
    on Mar 3, 2015
  4. rullzer commented on Mar 13, 2015

    @rullzer
    Contributor

    Initial PR at #14856

  5. added this to the milestone on May 1, 2015
  6. jancborchardt commented on Sep 15, 2015

    @jancborchardt
    Contributor

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

  7. DeepDiver1975 commented on Sep 15, 2015

    @DeepDiver1975
    Contributor

    @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

  8. modified the milestones: , on Sep 15, 2015
  9. 15 remaining items

  10. rullzer commented on Jun 9, 2016

    @rullzer
    Contributor

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

  11. PVince81 commented on Jun 9, 2016

    @PVince81
    ContributorAuthor

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

  12. modified the milestones: , on Jun 9, 2016
  13. daorte commented on Aug 30, 2016

    @daorte

    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

  14. PVince81 commented on Jan 27, 2017

    @PVince81
    ContributorAuthor

    @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.

  15. PVince81 commented on Apr 7, 2017

    @PVince81
    ContributorAuthor

    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 ?

  16. modified the milestones: backlog, 10.0 on Apr 7, 2017
  17. removed their assignment
    on Sep 16, 2020
  18. stale commented on Sep 21, 2021

    @stale

    This issue has been automatically closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions