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

[Bug]: Donwload zip from webclient fail when one of the selected file has a pattern restriction #1889

Open
2 tasks done
Mathieu-COSYNS opened this issue Feb 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Mathieu-COSYNS
Copy link

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration issue.
  • This issue is not already reported on Github (I've searched it).

Bug description

In file list in the web client, a user can click on the checkbox on the left of a file name; then in the actions he can download the file. If the access of one of the selected file is set to denied, the server fail to respond to the request.

Steps to reproduce

With docker run --rm --name some-sftpgo -p 8080:8080 -p 2022:2022 -d "drakkan/sftpgo:v2.6.5"

  1. Create a user, set only his name, password and a per-directory name patterns restrictions with denied and visible for a file that you have on your server
    Image

  2. Login with this user in the webclient

  3. In the file list, find a file that is blocked by the pattern restriction. Check the box on the left; then in actions click Download

When you click Download, the browser open a new tab with a broken page.

Expected behavior

If the per-directory name patterns restrictions is set to denied and visible, the user should see a message like "
You do not have the required permissions to download some of the selected files".

If the per-directory name patterns restrictions is set to denied and hidden, the download should continue and exclude hidden files.

SFTPGo version

v2.6.4, v2.6.5 (did not test other versions)

Data provider

all ?

Installation method

Community Docker image

Configuration

Just create a user, set only his name, password and a per-directory name patterns restrictions with denied and visible for a file that you have on your server

Relevant log output

What are you using SFTPGo for?

Enterprise

Additional info

No response

@Mathieu-COSYNS Mathieu-COSYNS added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant