eXide icon indicating copy to clipboard operation
eXide copied to clipboard

[BUG] DB Manager: uploading files and directories with Whitespace in Name fails silently

Open tohuuuuu opened this issue 2 years ago • 3 comments

Describe the bug When uploading files and directories into eXist-db via eXide's "DB Manager" (Menu "File" -> "Manage" -> "Upload Files" -> "Upload Directories" button), files and directories with names containing spaces are silently ignored.

Expected behavior DB Manager should accept and save files and directories containing spaces (the same way the Java Admin Client does). At least, if some resources are ignored / not uploaded, eXide should show an error messages.

Since the Java Admin Client is able to upload directories and files with names containing spaces, i assume it isn't an eXist-db "core" issue but an eXide issue.

To Reproduce

  1. Open the DB Manager in eXide;
  2. Hit the "Upload Files" button;
  3. Hit the "Upload Directories" button;
  4. Select a directory with a name containing spaces (or containing XML files whose names contain spaces) EDIT: see zip attached to next comment;
  5. Hit button "done"
  6. Check the result.

Context (please always complete the following information):

  • OS: Linux Mint, Kernel 5.15.0-52-generic
  • eXist-db Version: 6.0.1
  • Java Version: OpenJDK 11.0.16
  • App Version: eXide 3.4.0 EDIT: and 3.5.0

tohuuuuu avatar Nov 07 '22 09:11 tohuuuuu

Bug still present in v3.5.0 ... Attached zip contains test directory and test xml files, both with and without whitespace in name: whitespace_test.zip

tohuuuuu avatar Jan 06 '23 13:01 tohuuuuu

@tohuuuuu Could you confirm that you shift-clicked on the reload button in your browser (or cleared your cache) to ensure your browser wasn't using a stale version of the page?

joewiz avatar Jan 06 '23 14:01 joewiz

@joewiz i've tested the issue in a VM with a "clean" 6.0.1 installation and the last eXide update. Menu Help -> About shows eXide Version 3.5.0, thus i assume my browser uses the current version. I've tried to upload the content of the attached zip file via menu File -> Manage ->(Upload Button) -> Upload directory, and selected the top-level directory named test_exist. This results in a partial upload - only the collection and xml file which doesn't contain spaces is visible in eXide. The collection and the xml file containing whitespace is missing.

tohuuuuu avatar Jan 06 '23 14:01 tohuuuuu