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

recursive attributes handling throws 500 when attribute file access is allowed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.11.2
    • Fix Version/s: 3.0.0-m3, 2.11.2
    • Component/s: Repository
    • Labels:
      None
    • Sprint:
      Sprint 35

      Description

      Caused by NEXUS-7834 changes.

      Edit nexus.properties and add
      org.sonatype.nexus.proxy.item.uid.IsItemAttributeMetacontentAttribute.disabled=true

      Start Nexus. Make a request:

      curl -v -4 http://localhost:8081/nexus/content/repositories/central/junit/junit/4.11/junit-4.11.jar -o /dev/null

      Nexus blows up returning 500 response and creates recursive directories on disk:

      jvm 1 | Caused by: java.nio.file.FileSystemException: /app/nexus-testing/2.11.2-SNAPSHOT/nexus-professional-2.11.2-20150130.125148-37-bundle/sonatype-work/nexus/storage/central/.nexus/tmp/junit-4.11.jarnx-tmp3384697418225475248.nx-upload -> /app/nexus-testing/2.11.2-SNAPSHOT/nexus-professional-2.11.2-20150130.125148-37-bundle/sonatype-work/nexus/storage/central/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/.nexus/attributes/junit/junit/4.11/junit-4.11.jar: File name too long
      jvm 1 | at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91) ~[na:1.8.0_25]
      jvm 1 | at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[na:1.8.0_25]
      jvm 1 | at sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:457) ~[na:1.8.0_25]
      jvm 1 | at sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:262) ~[na:1.8.0_25]
      jvm 1 | at java.nio.file.Files.move(Files.java:1395) ~[na:1.8.0_25]
      jvm 1 | at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer.handleRenameOperation(DefaultFSPeer.java:375) ~[nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT]
      jvm 1 | at org.sonatype.nexus.proxy.storage.local.fs.DefaultFSPeer.storeItem(DefaultFSPeer.java:172) ~[nexus-core-2.11.2-SNAPSHOT.jar:2.11.2-SNAPSHOT]
      jvm 1 | ... 348 common frames omitted

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alin Alin Dreghiciu
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title