You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show remote user's avatar for server to server shares #14564
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.
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.
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.
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.
Activity
rullzer commentedon Mar 3, 2015
So I have been thinking about this.
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 commentedon 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 commentedon Mar 13, 2015
Initial PR at #14856
jancborchardt commentedon Sep 15, 2015
@rullzer @MorrisJobke can this be closed now that #14856 has been merged?
DeepDiver1975 commentedon Sep 15, 2015
it was wrong to merge the pr - will revert - issue goes to 9.0
15 remaining items
rullzer commentedon Jun 9, 2016
I see no way this makes it into 9.1. CC: @PVince81
PVince81 commentedon Jun 9, 2016
Yeah, we're past feature freeze and this needs some new APIs.
Moving to 9.2
daorte commentedon 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 commentedon Jan 27, 2017
@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 commentedon 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 ?
stale commentedon Sep 21, 2021
This issue has been automatically closed.