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

Rendering errors in console after adding files #56

Open ilieandriuta opened 2 years ago

ilieandriuta commented 2 years ago

Environment: Windows 11 Pro 64bit, Chrome 102 using a local instance of XWiki 14.4 on Oracle 19c, Tomcat 9.0.63, Java 17 (Oracle) , File Manager Application (Pro) 2.5.4

STEPS TO REPRODUCE

  1. Go to File Manager Application (Pro) home page
  2. Right click on File Manager > New File
  3. Upload a file
  4. (Optional) Refresh the page
  5. Observe the XWiki console

EXPECTED RESULTS No warnings/ errors are displayed.

ACTUAL RESULTS After a file is added (tested with an image and a .txt file), there are some errors in console:

2022-06-02 16:29:46,687 [http-nio-1115-exec-8 - http://localhost:1115/xwiki/bin/download/FileManager/WebHome/image-2019-04-11-14-18-52-418.png?width=512] ERROR o.a.v.rendering                - Left side ($paths.length) of comparison operation has null value at xwiki:FileManagerCode.RecentFilesPanel[line 5, column 21]
2022-06-02 16:29:46,693 [http-nio-1115-exec-8 - http://localhost:1115/xwiki/bin/download/FileManager/WebHome/image-2019-04-11-14-18-52-418.png?width=512] ERROR o.a.v.rendering                - Left side ($paths.length) of comparison operation has null value at xwiki:FileManagerCode.RecentFilesPanel[line 5, column 21]
2022-06-02 16:29:52,732 [http-nio-1115-exec-1 - http://localhost:1115/xwiki/bin/view/FileManager/] ERROR o.a.v.rendering                - Left side ($paths.length) of comparison operation has null value at xwiki:FileManagerCode.RecentFilesPanel[line 5, column 21]
2022-06-02 16:29:52,738 [http-nio-1115-exec-1 - http://localhost:1115/xwiki/bin/view/FileManager/] ERROR o.a.v.rendering                - Left side ($paths.length) of comparison operation has null value at xwiki:FileManagerCode.RecentFilesPanel[line 5, column 21]

The errors keep occurring after each page refresh.

The issue reproduces also on XWiki 13.10.6 (Jetty/HSQLDB) using File Manager Application (Pro) 2.5.4.

ilieandriuta commented 2 months ago

Issue reproduced too on XWiki 16.4.0 (Tomcat 9.0.89/PostgreSQL 16) using File Manager Pro 2.8.