Community

File Manager: File Paths Containing an "&" In A Folder Name Are Truncated And Inaccessible

Hi
Hifihedgehog #1

In File Manager, I just attempted to access files in my NextCloud data folder and they are not accessible. The problem is paths containing an “&” character with the current implementation. For example, with a directory like this (changed for data security): “home/cloud.supersoaker.com/public_html/data/Administrator/files/Food & Drinks”
…the file manager shows the files under the parent directory “Files.”

However, as explained, it truncates any paths with an “&” in it. So, continuing with this example, “Food & Drinks”'s name and path is shown as only:
“/home/cloud.supersoaker.com/public_html/data/Administrator/files/Food”

Unfortunately, it is not only a character display limitation. It affects the directory access as well. If I try clicking on the directory to access it, I am directed to that directory (with the incorrected truncated name “Food”) and its contents there are shown as empty.

On the other hand, via SSH, I can clearly access and view this directory and all its children files and directories without issue. Please fix this problem.

Cy
CyberPanel #2

Can you try to force upgrade a similar issue was reported a few days ago and we released the patch.

Hi
Hifihedgehog #3

Still not working after clearing my browser cache.

Hi
Hifihedgehog #4

I ran the upgrade a second time and then it worked. I can finally get to my files. Thank you!

However…

There are still some bugs with it. For one, when I click into the folder where the “&” is contained, I get the message “Data supplied is not accepted.”. Also, if I hit the back button, I get the message “Not allowed to browse this path, going back home!” and I am returned to that site’s home directory.

Cy
CyberPanel #5

Not allowed to browse this path, going back home! You must be going beyond the document root, which is not allowed.

Hi
Hifihedgehog #6

No. It occurs when I navigate back to the parent folder containing the folder with the “&” in its name. This parent folder is several levels down under the site root. In other words, traversing out of the “&” folder results in an error.

Cy
CyberPanel #7

I will try to reproduce and fix this issue.

Cy
CyberPanel #8

I pushed a patch, you can upgrade.

Hi
Hifihedgehog #9

Thanks! All fixed! :slight_smile:

Sign in to reply