xwikisas / application-filemanager

XWiki application to manage a hierarchy of folders and files
GNU Lesser General Public License v2.1
0 stars 4 forks source link

When creating a folder with ## in its name, characters inserted after are not saved #28

Closed ilieandriuta closed 2 years ago

ilieandriuta commented 4 years ago

STEPS TO REPRODUCE

  1. Right-click on File Manager
  2. Create a folder with some letters and ## in its name, in the middle (e.g. Fol##der)
  3. Press Enter

EXPECTED RESULTS

The folder is created with the respective name (e.g. Fol##der).

ACTUAL RESULTS

The folder's name is saved truncated, only with the characters it had before the ## (e.g. Fol).

Environment: Windows 10 Pro 64bit, Edge 79, using a local instance of XWiki 11.10.3 on PostgreSQL 12, Tomcat 9.0.27 (tested also on Jetty)

Folder_name_truncated

mflorea commented 4 years ago

The issue seems to be that the folder name is parsed for Velocity code.