Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tohuuuuu opened this issue Nov 7, 2022 · 3 comments
Labels

Comments

@tohuuuuu
Copy link

tohuuuuu commented Nov 7, 2022

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
Copy link
Author

tohuuuuu commented Jan 6, 2023

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

@joewiz joewiz added the bug label Jan 6, 2023
@joewiz
Copy link
Member

joewiz commented Jan 6, 2023

@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?

@tohuuuuu
Copy link
Author

tohuuuuu commented Jan 6, 2023

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants