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

Deletion of ruby gems via REST fails on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.11.1, 2.14
    • Fix Version/s: None
    • Component/s: RubyGems
    • Labels:
      None
    • Sprint:
      Sprint 34

      Description

      Run Nexus 2.11.1 on a Windows machine. Create a hosted ruby gems repository, and deploy a gem to it. Now go to browse storage, right click and select "delete". This fails.

      Caused by: org.sonatype.nexus.proxy.LocalStorageException: Error during moveItem
      at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer.moveItem(DefaultFSPeer.java:267) ~[nexus-core-2.11.1-01.jar:2.11.1-01]
      at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSLocalRepositoryStorage.moveItem(DefaultFSLocalRepositoryStorage.java:422) ~[nexus-core-2.11.1-01.jar:2.11.1-01]
      at org.sonatype.nexus.proxy.wastebasket.DefaultWastebasket.delete(DefaultWastebasket.java:218) ~[nexus-core-2.11.1-01.jar:2.11.1-01]
      at org.sonatype.nexus.proxy.wastebasket.DefaultWastebasket.delete(DefaultWastebasket.java:207) ~[nexus-core-2.11.1-01.jar:2.11.1-01]
      at org.sonatype.nexus.proxy.storage.local.AbstractLocalRepositoryStorage.deleteItem(AbstractLocalRepositoryStorage.java:149) ~[nexus-core-2.11.1-01.jar:2.11.1-01]
      at org.sonatype.nexus.proxy.repository.AbstractRepository.doDeleteItem(AbstractRepository.java:1220) ~[nexus-core-2.11.1-01.jar:2.11.1-01]
      at org.sonatype.nexus.proxy.repository.AbstractRepository.deleteItem(AbstractRepository.java:946) ~[nexus-core-2.11.1-01.jar:2.11.1-01]
      at org.sonatype.nexus.plugins.ruby.NexusStorage.delete(NexusStorage.java:157) ~[na:na]
      at org.sonatype.nexus.ruby.layout.HostedDELETELayout.deleteGemFile(HostedDELETELayout.java:118) ~[na:na]
      at org.sonatype.nexus.ruby.layout.HostedDELETELayout.gemFile(HostedDELETELayout.java:99) ~[na:na]
      at org.sonatype.nexus.ruby.cuba.gems.GemsCuba.on(GemsCuba.java:55) ~[na:na]
      at org.sonatype.nexus.ruby.cuba.State.nested(State.java:61) ~[na:na]
      at org.sonatype.nexus.ruby.cuba.RootCuba.on(RootCuba.java:70) ~[na:na]
      at org.sonatype.nexus.ruby.cuba.State.nested(State.java:61) ~[na:na]
      at org.sonatype.nexus.ruby.cuba.RubygemsFileSystem.visit(RubygemsFileSystem.java:84) ~[na:na]
      at org.sonatype.nexus.ruby.cuba.RubygemsFileSystem.delete(RubygemsFileSystem.java:105) ~[na:na]
      at org.sonatype.nexus.plugins.ruby.NexusRubygemsFacade.delete(NexusRubygemsFacade.java:99) ~[na:na]
      at org.sonatype.nexus.plugins.ruby.hosted.DefaultHostedRubyRepository.deleteItem(DefaultHostedRubyRepository.java:143) ~[na:na]
      at org.sonatype.nexus.rest.AbstractResourceStoreContentPlexusResource.delete(AbstractResourceStoreContentPlexusResource.java:251) ~[nexus-restlet1x-plugin-2.11.1-01/:na]
      ... 128 common frames omitted
      Caused by: java.nio.file.FileSystemException: C:\nexus\sonatype-work\nexus\storage\ggg\gems\h\hola-0.0.1.gem: The process cannot access the file because it is being used by another process.

      at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) ~[na:1.8.0_25]
      at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) ~[na:1.8.0_25]
      at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) ~[na:1.8.0_25]
      at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) ~[na:1.8.0_25]
      at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source) ~[na:1.8.0_25]
      at java.nio.file.Files.delete(Unknown Source) ~[na:1.8.0_25]
      at org.sonatype.nexus.util.file.DirSupport.delete(DirSupport.java:306) ~[nexus-core-2.11.1-01.jar:2.11.1-01]
      at org.sonatype.nexus.util.file.DirSupport.copyDeleteMove(DirSupport.java:435) ~[nexus-core-2.11.1-01.jar:2.11.1-01]
      at org.sonatype.nexus.util.file.DirSupport.copyDeleteMoveIfExists(DirSupport.java:449) ~[nexus-core-2.11.1-01.jar:2.11.1-01]
      at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer.moveItem(DefaultFSPeer.java:260) ~[nexus-core-2.11.1-01.jar:2.11.1-01]
      ... 146 common frames omitted

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title