URL with dir parameter displays non-existent folder

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31

Summary of the issue you are facing:

Whenever someone shares a folder via URL, which isn’t the correct way to share but happens all the time, the URL looks like:

`https://my.server/apps/files/files/98034?dir=/foo/bar\`

Instead of getting a warning that “this folder does not exist or I don’t have access to it”, I get what seemingly is said folder but empty:

This is highly misleading, because it looks like I have access to the folder which is empty.

Steps to replicate it:

  1. Make someone share you a folder you don’t have access to via URL

  2. See an empty folder

  3. Quiproquo ensues

I can reproduce that on my end. However, I think a feature request would make more sense. I can’t imagine there being a configuration option for this. Bugs and Feature Requests: