Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No matches for search in external storage when external storage is not available for user but shared for user #28108

Closed
pmarini-nc opened this issue Jul 22, 2021 · 4 comments · Fixed by #28175
Assignees
Labels
1. to develop Accepted and waiting to be taken care of bug

Comments

@pmarini-nc
Copy link

pmarini-nc commented Jul 22, 2021

A user that:

  1. is not in the "Available For" of the external storage
  2. receives a full share of the external storage

can explore and open files but not search them.

Steps to reproduce

  1. Install Nextcloud 21.0.3
  2. Create a local folder with owner www-data
sudo mkdir /ext-storage
sudo chown www-data.www-data
  1. In Nextcloud, enable External Storage app.
  2. Create External Storage:
Folder Name: ext-storage
External Storage: local
Authentication: none
Configuration: /ext-storage
Available for: admin(group)
Options: Enable Preview, Enable Share
  1. With admin, create user user1
  2. With admin, share the folder ext-storage with user1
  3. With admin, move all the default files (Nextcloud intro.mp3, ...) into ext-storage
  4. With user1, search for "intro" => matches "Nextcloud intro.mp3"
  5. Logout admin
  6. With user1, remove all the default files, leave only ext-storage
  7. With user1, search for "intro" => No results

Expected behaviour

At step 11, user1 should find a match as in step 8

Actual behaviour

At step 11, user1 doesn't find a match

Server configuration

See the system report
attached

@pmarini-nc pmarini-nc added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jul 22, 2021
@xadhoom76
Copy link

xadhoom76 commented Jul 22, 2021

We have tested the problem seems to be after 20.08 (that is the last working correctly). We tested external storage webdav,local,smb.

@PVince81
Copy link
Member

okay, got it reproduced.

at first I was sharing "/ext-storage/subdir" instead of "/ext-storage" directly.
sharing the mount point is a bit special internally which could explain why it's not working.

if it was working before I should be able to bisect to find out what change introduced the problem

@PVince81 PVince81 self-assigned this Jul 23, 2021
@PVince81 PVince81 added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Jul 23, 2021
@PVince81
Copy link
Member

here we go 5d08beb

introduced through #26134 which is intended to optimize the speed of the search

@icewind1991 mind having a look ?

@PVince81
Copy link
Member

PR here: #28175

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants