Skip to content

occ share:list fails if orphaned shares are present #600

Description

@sunetfreitag

Steps to reproduce

  1. Check if orphaned shares are present via occ sharing:delete-orphan-shares
  2. Do NOT delete orphaned shares
  3. Run occ share:list

Expected behaviour

The share should be listed as orphaned

Actual behaviour

The command will fail with an error and not list any shares:

In Share.php line 169:

Node for share not found, fileid: XXX

Server configuration

Web server: Apache/HAProxy
Database: MariaDB
PHP version: 8.2.29
Nextcloud version: 32.0.8 Enterprise

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions