-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
If a folder has both a link share and a file request associated with it, on the left menu, under "Shares", it will only show up in the "Shared by link" category, and not also in "File requests".
Steps to reproduce
Repro video. Invisible cursor but hopefully easy enough to follow.
If you dislike videos:
- Add a link share to a folder
- Add a file request to the same folder
- Look in the "Shares" -> "File requests" folder/group/category in the menu on the left: it is absent
(Not an order of operations thing, it's the same result whichever you do first. Link supersedes file request.)
Expected behavior
The share should appear in both places if both things apply to it.
Nextcloud Server version
master
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Also present on NC30, backports would be nice.
Notes from relevant expert, maybe pretty straightforward to fix:
I suspect the fact that we merge and delete duplicates to be the root cause
server/apps/files_sharing/src/services/SharingService.ts
Lines 230 to 234 in 11594df
contents = groupBy(contents, 'source').map((nodes) => { const node = nodes[0] node.attributes['share-types'] = nodes.map(node => node.attributes['share-types']) return node }) Since we filter out file requests here:
contents: contents.filter((node) => isFileRequest(node.attributes?.['share-attributes'] || [])), Then the logic would do:
- retrieve link/mail shares (mixed with shares that are file request and not)
- only the first one is kept (not a file request)
- it gets filtered out because not a file request
Metadata
Metadata
Assignees
Labels
Type
Projects
Status