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

Error which prevents creating a folder in some cases on Chrome and Edge #55

Open ilieandriuta opened 2 years ago

ilieandriuta commented 2 years ago

Environment: Windows 11 Pro 64bit, Edge 101, Chrome 101 using a local instance of XWiki 14.4 RC1 and 13.10.5 (Jetty/HSQLDB), Java 17 (Oracle), File Manager Application (Pro) 2.5.4

STEPS TO REPRODUCE

  1. Install File Manager Application (Pro)
  2. Go to the main page of the application
  3. Right click on File Manager > New Folder (fill the folder's name)
  4. Press Enter

EXPECTED RESULTS The folder is created and displayed in the tree below File Manager.

ACTUAL RESULTS In some cases (reproduced quite often on Chrome 101 and Edge 101 for some reason after clearing the cache, but not always) when pressing Enter, the folder disappears and the following error is displayed in browser's JS console:

POST http://localhost:1440/xwiki/bin/get/FileManager/WebHome?action=createFolder&outputSyntax=plain 403 (Forbidden)

send | @ | jquery.min.js?r=1:2
  | ajax | @ | jquery.min.js?r=1:2
  | s.ajax.s.ajax | @ | jquery-migrate.min.js?r=1:2
  | S.<computed> | @ | jquery.min.js?r=1:2
  | run | @ | jobRunner.js:99
  | execute | @ | tree.js:481
  | C | @ | tree.js:218
  | (anonymous) | @ | tree.js:540
  | dispatch | @ | jquery.min.js?r=1:2
  | v.handle | @ | jquery.min.js?r=1:2
  | trigger | @ | jquery.min.js?r=1:2
  | h.event.trigger | @ | eventsBridge.js:30
  | triggerHandler | @ | jquery.min.js?r=1:2
  | trigger | @ | jstree.min.js:2
  | rename_node | @ | jstree.min.js:3
  | (anonymous) | @ | jstree.min.js:4
  | dispatch | @ | jquery.min.js?r=1:2
  | v.handle | @ | jquery.min.js?r=1:2
  | keydown | @ | jstree.min.js:4
  | dispatch | @ | jquery.min.js?r=1:2
  | v.handle | @ | jquery.min.js?r=1:2

The issue seems to not reproduce on Firefox 100.

image