drakkan / sftpgo

Full-featured and highly configurable SFTP, HTTP/S, FTP/S and WebDAV server - S3, Google Cloud Storage, Azure Blob
https://sftpgo.com
GNU Affero General Public License v3.0
9.52k stars 739 forks source link

[Bug]: unable to edit virtual folders beginning with slashes in name #1724

Open aellwein opened 3 months ago

aellwein commented 3 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

If a virtual folder with a beginning slash in name (e.g. "/data/myfolder") is created, it can be used and assigned to user's folders, but it cannot be edited or deleted. I suppose slash in name somehow collides with RESTful paths used in SFTPGo. Hint: i've tested it with virtual folders on Azure Blob in SFTPGo v2.6.2, but i assume the problem will exist in any data provider.

Steps to reproduce

  1. create a virtual folder named "/data/something"
  2. try to edit/delete

Expected behavior

folder with a beginning slash in name should be editable / deletable

SFTPGo version

2.6.2

Data provider

azure blob

Installation method

Community Docker image

Configuration

default config

Relevant log output

No response

What are you using SFTPGo for?

Medium business

Additional info

No response

drakkan commented 3 months ago

It works for me

Schermata del 2024-08-12 21-25-47

aellwein commented 3 months ago

@drakkan pardon, i've made a mistake in description. The folder name must begin with a slash, like "/test":

Screenshot 2024-08-13 at 07 43 59

the result is always the same for me:

Screenshot 2024-08-13 at 07 43 28
drakkan commented 3 months ago

https://github.com/user-attachments/assets/b5590754-e3d6-4ef4-9d95-9fdd0171b36b

It must be something browser specific then. It works for me with Chromium, Chrome and Firefox on Linux, Safari on MacOS and Edge on Windows.

Feel free to further investigate and send a PR.

Contribution Guidelines. Thank you