Issue 45654: Auto-create logs server-side exception when user limit has been reached

issues
Status:closed
Assigned To:Guest
Type:Defect
Area:Security
Priority:3
Milestone:22.07
Opened:2022-06-09 10:52 by Sweta Jewargikar
Changed:2022-06-14 15:32 by Sweta Jewargikar
Resolved:2022-06-09 14:26 by adam
Resolution:Fixed
Support Ticket: 
Pull Requests:platform#3429
Closed:2022-06-14 15:32 by Sweta Jewargikar
2022-06-09 10:52 Sweta Jewargikar
Title»When Use limit is reached server is throwing server side error
Assigned To»adam
Type»Defect
Priority»3
Milestone»22.07
Stack trace

org.labkey.api.security.SecurityManager$UserManagementException: User limit has been reached so no more users can be added to this deployment.
    at org.labkey.api.security.SecurityManager.addUser(SecurityManager.java:1007) ~[api-22.7-SNAPSHOT.jar:?]
    at org.labkey.api.security.AuthenticationManager.finalizePrimaryAuthentication(AuthenticationManager.java:1012) ~[api-22.7-SNAPSHOT.jar:?]
    at org.labkey.api.security.AuthenticationManager._authenticate(AuthenticationManager.java:890) ~[api-22.7-SNAPSHOT.jar:?]
    at org.labkey.api.security.AuthenticationManager.authenticate(AuthenticationManager.java:856) ~[api-22.7-SNAPSHOT.jar:?]
    at org.labkey.core.login.LoginController.authenticate(LoginController.java:306) ~[core-22.7-SNAPSHOT.jar:?]
    at org.labkey.core.login.LoginController$LoginApiAction.execute(LoginController.java:635) ~[core-22.7-SNAPSHOT.jar:?]
    at org.labkey.core.login.LoginController$LoginApiAction.execute(LoginController.java:594) ~[core-22.7-SNAPSHOT.jar:?]
    at org.labkey.api.action.BaseApiAction.handlePost(BaseApiAction.java:214) ~[api-22.7-SNAPSHOT.jar:?]
    at org.labkey.api.action.BaseApiAction.handleRequest(BaseApiAction.java:129) ~[api-22.7-SNAPSHOT.jar:?]
    at org.labkey.api.action.BaseViewAction.handleRequest(BaseViewAction.java:199) ~[api-22.7-SNAPSHOT.jar:?]
    at org.labkey.api.action.SpringActionController.handleRequest(SpringActionController.java:511) ~[api-22.7-SNAPSHOT.jar:?]
    at org.labkey.api.module.DefaultModule.dispatch(DefaultModule.java:1107) ~[api-22.7-SNAPSHOT.jar:?]
    at org.labkey.api.view.ViewServlet._service(ViewServlet.java:232) ~[api-22.7-SNAPSHOT.jar:?]
    at org.labkey.api.view.ViewServlet.service(ViewServlet.java:156) ~[api-22.7-SNAPSHOT.jar:?]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[servlet-api.jar:4.0.FR]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) ~[catalina.jar:9.0.55]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[catalina.jar:9.0.55]
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-websocket.jar:9.0.55]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[catalina.jar:9.0.55]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[catalina.jar:9.0.55]
    at org.labkey.api.data.TransactionFilter.doFilter(TransactionFilter.java:44) ~[internal-22.7-SNAPSHOT.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[catalina.jar:9.0.55]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[catalina.jar:9.0.55]
    at org.labkey.api.module.ModuleLoader.doFilter(ModuleLoader.java:1354) ~[api-22.7-SNAPSHOT.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[catalina.jar:9.0.55]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[catalina.jar:9.0.55]
    at org.labkey.api.security.AuthFilter.doFilter(AuthFilter.java:238) ~[internal-22.7-SNAPSHOT.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[catalina.jar:9.0.55]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[catalina.jar:9.0.55]
    at org.labkey.core.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:120) ~[core-22.7-SNAPSHOT.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[catalina.jar:9.0.55]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[catalina.jar:9.0.55]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) ~[catalina.jar:9.0.55]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[catalina.jar:9.0.55]
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) ~[catalina.jar:9.0.55]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) ~[catalina.jar:9.0.55]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[catalina.jar:9.0.55]
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:687) ~[catalina.jar:9.0.55]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[catalina.jar:9.0.55]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) ~[catalina.jar:9.0.55]
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) ~[tomcat-coyote.jar:9.0.55]
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-coyote.jar:9.0.55]
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895) ~[tomcat-coyote.jar:9.0.55]
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1722) ~[tomcat-coyote.jar:9.0.55]
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-coyote.jar:9.0.55]
    at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-util.jar:9.0.55]
    at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-util.jar:9.0.55]
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-util.jar:9.0.55]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]

2022-06-09 11:01 adam
TitleWhen Use limit is reached server is throwing server side error»When user limit is reached auto-create throws server-side error
Area»Security
This is specifically the case where a new user attempts to login using SSO/LDAP and auto-create is turned on.

2022-06-09 12:04 adam
TitleWhen user limit is reached auto-create throws server-side error»When user limit is reached auto-create logs server-side exception
Notify»cnathe
Pull Requests»https://github.com/LabKey/platform/pull/3429

2022-06-09 14:26 adam
resolve as Fixed
TitleWhen user limit is reached auto-create logs server-side exception»Auto-create logs server-side exception when user limit has been reached
Statusopen»resolved
Assigned Toadam»Sweta Jewargikar
Merged to develop

2022-06-14 15:32 Sweta Jewargikar
close
Statusresolved»closed
Assigned ToSweta Jewargikar»Guest
Verified