[Fixed] Small bug: Create directory name with & in the name

Hi,

First of all, thank you for this excellent piece of software and for all your efforts in making the Tonie Box an even better product.

I was able to successfully install TeddyCloud and add my first box. I started to upload media files to the cloud and encountered a minor error.

I created a folder called “Bibi & Tina”.
I then moved a file from the ‘root’ directory of the library into the “Bibi & Tina” folder.
When I tried to open the folder, I received the following error message:

Laden des Verzeichnisinhalts von “/Bibi & Tina” fehlgeschlagen: FetchError: The request failed and the interceptors did not return an alternative response

After a few attempts and checks, I discovered that Teddy Cloud was trying to open the following path: https://192.168.x.x:8443/web/tonies/library?path=/Bibi%20%26%20Tina, which doesn’t work. I changed the URL in the browser address bar to https://192.168.x.x:8443/web/tonies/library?path=/Bibi%20%26%20Tina (encoding the & character as %26) and was able to enter the folder.

Unfortunately there is no option to rename the folder in the UI and because of the error, there is also no option to delete the folder. However, I was able to rename the folder directly in the Docker volume by entering it via SSH. After renaming the folder and rebooting Teddy Cloud, I could access the folder.

Therefore, the & (and probably some other special characters) causes an error with folders in the UI. This only seems to affect folders, as the TAF file also had a & in the file name and it didn’t cause a problem there.

I hope you can reproduce this error and fix it in a future release.

Thanks a lot,
Gijs

It’s already fixed in develop branch.

1 Like

Thanks :slight_smile: :+1: