occ share:list fails if orphaned shares are present

未关闭
#600 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@CarlSchwan 已经在做这个了。

开始于 2026年5月26日。

  • #601 来自 @CarlSchwan —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
php
领域
cli

调研方向

先从 occ sharing:delete-orphan-shares 和 occ share:list 命令开始,然后检查第 169 行附近的 Share.php。在仍有孤立 share 的情况下重现失败,并跟踪缺失 node 的处理方式。当 occ share:list 列出孤立 share,而不是因 “Node for share not found” 错误而失败时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug
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

主要语言
PHP
星标
20
派生
8
平均合并
7 分钟
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/sharelisting 的其他 Issue

查看 nextcloud/sharelisting 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。