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

AnonymousSettings.jsx does not respect nexus-context-path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.21.0
    • Fix Version/s: 3.22.0
    • Component/s: UI
    • Environment:
      Linux, bare metal

      Description

      I have setup an installation behind an nginx reverse proxy with a setup that looks like this:

      location /nexus {
        proxy_pass http://127.0.0.1:8081/nexus;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
      }
      

      This configuration works without issues for everything except accessing the "Administration->Security->Anonymous Access" menu.

      There I get an error stating "An error occurred while loading Anonymous settings, see console for more details"

      In console I can see that the request is directed to myhostname/service/rest/internal/ui/realms/types 404 (Not Found) instead of myhostname/nexus/service/rest/internal/ui/realms/types, which I have tested manually and validated that it works.

        Attachments

          Activity

            People

            Assignee:
            mmartz Michael Martz
            Reporter:
            arissynod Aris Synodinos
            Last Updated By:
            Joseph Stephens
            Team:
            NXRM - Neo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title