[Bug]: Donwload zip from webclient fail when one of the selected file has a pattern restriction #1889
Open
2 tasks done
Labels
bug
Something isn't working
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"
Create a user, set only his

name
,password
and aper-directory name patterns restrictions
withdenied
andvisible
for a file that you have on your serverLogin with this user in the webclient
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
andvisible
, 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
andhidden
, 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 aper-directory name patterns restrictions
withdenied
andvisible
for a file that you have on your serverRelevant log output
What are you using SFTPGo for?
Enterprise
Additional info
No response
The text was updated successfully, but these errors were encountered: