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

Two folders having the same name, except one with a trailing space character, are considered having the same content #78

Closed mathpce closed 7 months ago

mathpce commented 12 months ago

When two folders are named identically, to the exception to a trailing space for one of them, both are displaying the same file content.

Note that there is also a display error (each one of the folder will be displayed two times) but this will be the subject of another issue.

Versions:

To reproduce the bug:

  1. open the file manager application
  2. create a new folder named "testTrailingSpace" (without the quotes)
  3. add a new file in the previously created folder
  4. create another new folder named "testTrailingSpace " (note the presence of the trailing space)
  5. open the second folder and see that the file added in the first folder is displayed here too

Note: the name of the folder needs to be one never used before (even for a deleted folder) because the page reference wouldn't be the same as the title (you would have "testTrailingSpace1" and "testTrailingSpace " for instance ).

petrenkonikita112263 commented 11 months ago

Note that it possible to create after cleaning cache & cookies or doing it in private-mode. The GIF below displays the issue which was reproduced on 13.10 XWiki.

firefox_P7jmwnDAHo

ChiuchiuSorin commented 7 months ago

Fixed with https://github.com/xwikisas/application-filemanager/pull/98.