Share Links do not work in a specific case

Nextcloud version: 23.0.6
Operating system and version: Debian 10.11
Apache or nginx version: Apache/2.4.38
PHP version: PHP 7.3.31-1~deb10u1

Hello.

I am administering a Nextcloud 23.0.6 where users share files and folders.

It all works fine except for two folders. Share Links do not work in those two folders, they take you to a webpage wich says “File not found”. Internal links (for Nextcloud users) work ok.

Everything works ok in other folders.

I see that the mentioned two folders contain non-standard characters “[” and “]” in their names. I have also seen those two folders were created by an old user who is now disabled.

Those two folders contain many shared files and subfolders.

How would you solve it?

Thank you very much.

I found the solution: enabling the user : )