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

Accessing Welcome Page with Crowd Realm user causes so many crowd rest API invocation.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.30.1, 3.34.1
    • Fix Version/s: None
    • Component/s: Crowd, performance, UI
    • Labels:

      Description

      When Crowd Realm is enabled then as soon as crowd user logs in to Nexus RM UI and access the welcome page we see too many requests are made to crowd server.

      http://crowd_server.example.com:8095/crowd/rest/usermanagement/1/user/group/nested?username=xxxxx&start-index=0&max-results=2147483647
      
      http://crowd_server.example.com:8095/crowd/rest/usermanagement/1/user?username=xxxxx
      

       

      Steps to reproduce the issue:

      1. Setup nexus 3.34.1 with CrowdRealm.

      2. Set the following logger to DEBUG mode in nexus so that we can see the number of Outgoing request to Crowd.

      org.sonatype.nexus.httpclient.outbound=DEBUG

      3. Close all tabs to nexus UI in the browser. Better open incognito mode in the browser.

      4. Login in to the nexus UI as crowd user.  Hit the Nexus Welcome page  http://localhost:8081/#browse/welcome

      5. Check the nexus.log

      # rg 'crowd/rest/usermanagement/1/user.* OK ' nexus.log
      

       

      Current behaviour:

          With CrowdRealm enabled, Nexus UI makes so many rest API calls to the crowd server which is unwanted and can cause performance issues at crowd.

      Expected Behaviour:
          Number of API calls from Nexus RM to Crowd should be reduced as those seems to be unwanted calls.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jsensharma Jay Kumar SenSharma
            Last Updated By:
            Jay Kumar SenSharma Jay Kumar SenSharma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                tigCommentSecurity.panel-title