nextcloud / nextcloud/server

Sharees should include etag for avatar

Open
#28,394 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: dav
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Currently if clients fetch a list of files they receive with "sharees" a list of all shared users, which contains userId, DisplayName, shareType.
To then display avatar clients need to ask server if avatar is changed.
It would be good to have there also eTag exposed, so that clients directly know if their cached avatar is recent enough.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the server code that builds the files response and its sharees entries, then trace how avatar metadata is represented. Check the existing API tests for sharees or avatars if present. Done means each returned shared user includes an avatar eTag that clients can use to validate cached avatars.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.