sharing:list does not show circles shares and filter doesn't show public shares
还没有人认领这个 Issue。
评估
调研方向
首先重新现报告中的 occ sharing:list -o csv -u Admin_ShareA 以及未过滤的 CSV/JSON 命令,然后将它们的结果与 issue 中描述的数据库变通方案进行比较。当按用户过滤的列表包含相关的 public-link 和 circle 共享,并与示例中预期的四个结果一致时,工作即完成。
由索引模型根据 Issue 内容生成。
描述
Using Nextcloud 27.1.8 and Sharelisting 1.2.0.
When I run "occ sharing:list" I do not see any shares related to circles.
When I run "occ sharing:list -u username" to find any shares related to user, I just see direct share to/from this users, not public links generated by this user or related to files owned by this user.
So share:listing report misses a lot of relevant information!
Below a more complete example with command outputs.
- My user Admin_ShareA has folder called /Espai_ShareA shared with Circle_ShareA. There's a subfolder called "probando subcompartir", with a file called "asdfasdfasdf.md".
- User "gonzalo" is member of "Circle_ShareA". He shares asdfasdfasdf.md with user "gcc2", with circle "gonzalo_circle". All shares are configured, tested and work properly.
Getting all Admin_ShareA related shares should be as simple as # occ sharing:list -o csv -u Admin_ShareA, and it should show 4 results:
- Share of Admin_ShareA with Circle_ShareA
- Share of gonzalo with user gcc2
- Share of gonzalo with circle gonzalo_circle
- Share of gonzalo with public link
But when I run:
# occ sharing:list -o csv -u Admin_ShareA
id,file_id,owner,initiator,time,permissions,path,name,is_directory,type,recipient
206,72420,Admin_ShareA,gonzalo,2024-04-30T12:36:10+00:00,19,"/Espai_ShareA/probando subcompartir/asdfasdfasdf.md",asdfasdfasdf.md,0,user,gcc2
No public share, no circle shares.
I tried again without filtering by user but using grep:
# occ sharing:list -o csv | grep Admin_ShareA
205,72420,Admin_ShareA,gonzalo,2024-04-30T12:30:07+00:00,1,"/Espai_ShareA/probando subcompartir/asdfasdfasdf.md",asdfasdfasdf.md,0,link,G2yRQeBqSiYtZmz,"2024-05-06 22:00:00",
206,72420,Admin_ShareA,gonzalo,2024-04-30T12:36:10+00:00,19,"/Espai_ShareA/probando subcompartir/asdfasdfasdf.md",asdfasdfasdf.md,0,user,,,gcc2
Now I see the public link but not the circles shares. Also, this method is not valid for my productions system as I need to generate multiples report for users that have multiples shared spaces, links...
(using CSV just to make it easier to parse, but Json has the same results).
Sharelisting command is exactly what I need as I want to generate reports for a group of users that are acting as Share-units and I want to audit the sharing activity on those files. But is not possible if it's missing that public and circle shares. Currently I'm using a workaround querying directly database but I really would like to use this tool.
Is it possible to fix this stuff, or I'm doing anything in a wrong way?
- 主要语言
- 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 ·
-
occ share:list fails if orphaned shares are present可能已有人在做 @CarlSchwan 于 164 天前认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 68/100
nextcloud/sharelisting#600 ·
-
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 ·
查看 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 天内回复