occ share:list fails if orphaned shares are present
评估
调研方向
先从 occ sharing:delete-orphan-shares 和 occ share:list 命令开始,然后检查第 169 行附近的 Share.php。在仍有孤立 share 的情况下重现失败,并跟踪缺失 node 的处理方式。当 occ share:list 列出孤立 share,而不是因 “Node for share not found” 错误而失败时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Steps to reproduce
- Check if orphaned shares are present via occ sharing:delete-orphan-shares
- Do NOT delete orphaned shares
- 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/sharelisting 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
nextcloud/sharelisting#624 ·
-
Upgrade to NC 33可能已有人在做 @CarlSchwan 于 164 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
nextcloud/sharelisting#590 · 4 条评论 · 5 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
nextcloud/sharelisting#492 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 45/100
nextcloud/sharelisting#491 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 42/100
nextcloud/sharelisting#461 · 1 条评论 · 1 个 reaction ·
查看 nextcloud/sharelisting 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
Automattic/blocks-engine#4874 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
endoflife-date/endoflife.date#11561 ·
维护者通常 1 天内回复
-
good first issue priority:low type:bug
难度 2/5 1-3 小时 新手友好度 78/100
crazy-goat/fdb-php#184 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
nextcloud/groupfolders#5218 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
nextcloud/fulltextsearch_elasticsearch#621 ·
维护者通常 1 天内回复