nextcloud / nextcloud/server

Pending shares: API

Open
#29,234 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement feature: sharing
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

We have the idea to move pending shares to file list (https://github.com/nextcloud/server/issues/27704, https://github.com/nextcloud/server/issues/2192)
As discussed with @juliushaertl (as he already thought about it/helped some contributor) the new idea is:

  • add a new webdav property nc:pendingShares
  • this is currently only populated when querying root folder
  • it returns as JSON all pending shares (similar to richWorkspaces)
    • normally there are only a few shares
    • it is fast, no additional calls
    • can then be easily refreshed, shown in all clients
    • needed info in JSON:
      • Share name
      • Display name of person who shared
      • preview url
      • accept/deny url
      • share date

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 reading this issue together with the linked issues #27704 and #2192, then inspect the server's WebDAV property handling and root-folder response path. Done means exposing nc:pendingShares with the specified JSON fields, while confirming the property is populated only for the root folder and remains fast to retrieve.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.