Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-22773

Cannot delete folders from raw repositories if they contain spaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.18.1, 3.20.1
    • Fix Version/s: None
    • Component/s: Logging, Raw
    • Labels:

      Description

      Create a folder with a space in the name in a raw repository:

      curl -u admin:admin123 --upload-file a.zip "http://localhost:8081/repository/raw_repository/A%20Space/some/path/a.zip"
      

      Then go to the browse tree UI and attempt to delete the folder. You'll get a message saying that the folder is being deleted in the background. But it is never deleted. The log shows no failure, even with ROOT logger at TRACE level.

      Expected: Deletion of a folder with spaces in it should succeed. All deletion attempts should be logged at INFO level. If something goes wrong, it should be logged at ERROR level.

      Workaround: Delete the files within the folder hierarchy one at a time, and the folders will be cleaned up once they are empty.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Rich Seddon
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  tigCommentSecurity.panel-title