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.