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

API page does not load if Nexus Repo is launched from symlinked directory on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.33.0
    • Fix Version/s: None
    • Component/s: REST, UI
    • Labels:
    • Notability:
      3

      Description

      1. Install Nexus Repo on a Windows machine.

      2. Create a symlink to the install dir:

      mklink /d c:\nexus\nexus c:\nexus\nexus-3.33.0.01

      Launch Nexus from the symlink:

      cd c:\nexus\nexus\bin
      nexus.exe /run

      3. Visit the "system --> api" page in the UI. It will fail to load. The request.log shows:

      127.0.0.1 - admin [09/Aug/2021:14:45:12 -0500] "GET /swagger-ui/?_v=3.33.0-01&_e=PRO HTTP/1.1" 404 - 1891 158 "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36" [qtp510894210-90]
      

      Note that this only happens on Windows, a similar symlink on Linux/MacOS will not cause this problem.

      Possibly related:

      https://bugs.openjdk.java.net/browse/JDK-8151915
      https://bugs.openjdk.java.net/browse/JDK-8152043

      Expected: A symlink is very often used for installations, it makes upgrades much easier since the service does not need to be reinstalled.  Using a symlink should not break the API UI.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:

                tigCommentSecurity.panel-title