[OPENIDM-15283] Unable to login to Admin console after setting enableDynamicRoles==true Created: 12/Aug/20  Updated: 18/Aug/20

Status: Open
Project: OpenIDM
Component/s: Module - Authentication
Affects Version/s: 6.5.0.4
Fix Version/s: None

Type: Bug Priority: Blocker
Reporter: John Moore [X] (Inactive) Assignee: Brendan Miller
Resolution: Unresolved Votes: 0
Labels: Sustaining
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File authentication.json    
Issue Links:
Relates
relates to OPENIDM-15235 Unable to login to Admin console afte... Closed

 Description   

Toggling...

"enableDynamicRoles" : true

...within an OOTB install of IDM 6.5.0.4 results in an RTE/NPE and failure to login (by the integrated amadmin user) to the admin console.

[6957] Aug 12, 2020 4:41:53.688 PM org.forgerock.http.servlet.HttpFrameworkServlet lambda$service$1 SEVERE: RuntimeException caught - rootId:5092970c-f4e9-4d5b-92a7-8ef5c58c1a17-2510297 java.lang.NullPointerException at org.forgerock.json.resource.Filters.lambda$matchResourcePath$2(Filters.java:191) at org.forgerock.json.resource.Filters$ConditionalFilter.filterQuery(Filters.java:81) at org.forgerock.json.resource.FilterChain$Cursor.handleQuery(FilterChain.java:93) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.lambda$filterQuery$4(ServletConnectionFactory.java:406) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.handleRequestWithLogging(ServletConnectionFactory.java:434) at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$3.filterQuery(ServletConnectionFactory.java:406) at org.forgerock.json.resource.FilterChain$Cursor.handleQuery(FilterChain.java:93) at org.forgerock.openidm.router.filter.PassthroughFilter.filterQuery(PassthroughFilter.java:66) at org.forgerock.openidm.router.filter.MutableFilterDecorator.filterQuery(MutableFilterDecorator.java:90) at org.forgerock.openidm.router.filter.MutableFilterDecorator.filterQuery(MutableFilterDecorator.java:90) at org.forgerock.json.resource.FilterChain$Cursor.handleQuery(FilterChain.java:93) at org.forgerock.json.resource.Filters$ConditionalFilter.filterQuery(Filters.java:84) at org.forgerock.json.resource.FilterChain$Cursor.handleQuery(FilterChain.java:93) at org.forgerock.json.resource.Filters$ConditionalFilter.filterQuery(Filters.java:84) at org.forgerock.json.resource.FilterChain$Cursor.handleQuery(FilterChain.java:93) at org.forgerock.json.resource.FilterChain.handleQuery(FilterChain.java:250) at org.forgerock.json.resource.InternalConnection.queryAsync(InternalConnection.java:74) at org.forgerock.json.resource.AbstractAsynchronousConnection.query(AbstractAsynchronousConnection.java:72) at org.forgerock.json.resource.AbstractAsynchronousConnection.query(AbstractAsynchronousConnection.java:81) at org.forgerock.json.resource.AbstractConnectionWrapper.query(AbstractConnectionWrapper.java:175) at org.forgerock.json.resource.AbstractConnectionWrapper.query(AbstractConnectionWrapper.java:175) at org.forgerock.openidm.auth.impl.modules.AbstractModuleWrapper.lambda$initializeLocalVariables$0(AbstractModuleWrapper.java:184) at org.forgerock.openidm.auth.impl.modules.IDMAuthModuleWrapper.queryResource(IDMAuthModuleWrapper.java:301) at org.forgerock.openidm.auth.impl.modules.IDMAuthModuleWrapper.access$000(IDMAuthModuleWrapper.java:61) at org.forgerock.openidm.auth.impl.modules.IDMAuthModuleWrapper$1.apply(IDMAuthModuleWrapper.java:172) at org.forgerock.openidm.auth.impl.modules.IDMAuthModuleWrapper$1.apply(IDMAuthModuleWrapper.java:137) at org.forgerock.util.promise.Promises$CompletedPromise.then(Promises.java:191) at org.forgerock.util.promise.Promises$CompletedPromise.then(Promises.java:156) at org.forgerock.openidm.auth.impl.modules.IDMAuthModuleWrapper.validateRequest(IDMAuthModuleWrapper.java:137) at org.forgerock.openidm.auth.impl.modules.RunAsModuleWrapper.validateRequest(RunAsModuleWrapper.java:120) at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.validateRequest(AuthModules.java:515) at org.forgerock.caf.authentication.framework.AuthModules$LoggingAuthModule.validateRequest(AuthModules.java:426) at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.validateRequest(AuthModules.java:515) at org.forgerock.caf.authentication.framework.AuthModules$AuditingAuthModule.validateRequest(AuthModules.java:330) at org.forgerock.caf.authentication.framework.AuthModules$SessionAuditingAuthModule.validateRequest(AuthModules.java:373) at org.forgerock.caf.authentication.framework.AuthModules$WrappedAuthModule.validateRequest(AuthModules.java:515) at org.forgerock.caf.authentication.framework.AuthModules$ValidatingAuthModule.validateRequest(AuthModules.java:289) at org.forgerock.caf.authentication.framework.SessionAuthContext.validateRequest(SessionAuthContext.java:67) at org.forgerock.caf.authentication.framework.AggregateAuthContext.validateRequest(AggregateAuthContext.java:79) at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.validateRequest(AuthContexts.java:322) at org.forgerock.caf.authentication.framework.AuthContexts$LoggingAuthContext.validateRequest(AuthContexts.java:263) at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.validateRequest(AuthContexts.java:322) at org.forgerock.caf.authentication.framework.AuthContexts$AuditingAuthContext.validateRequest(AuthContexts.java:216) at org.forgerock.caf.authentication.framework.AuthContexts$WrappedAuthContext.validateRequest(AuthContexts.java:322) at org.forgerock.caf.authentication.framework.AuthContexts$ValidatingAuthContext.validateRequest(AuthContexts.java:182) at org.forgerock.caf.authentication.framework.AuthenticationFramework.validateRequest(AuthenticationFramework.java:142) at org.forgerock.caf.authentication.framework.AuthenticationFramework.processMessage(AuthenticationFramework.java:134) at org.forgerock.caf.authentication.framework.AuthenticationFilter.filter(AuthenticationFilter.java:84) at org.forgerock.openidm.auth.AuthFilterWrapper.filter(AuthFilterWrapper.java:87) at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53) at org.forgerock.http.filter.TransactionIdInboundFilter.filter(TransactionIdInboundFilter.java:86) at org.forgerock.http.handler.Handlers$1.handle(Handlers.java:53) at org.forgerock.http.servlet.HttpFrameworkServlet.service(HttpFrameworkServlet.java:261) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1631) at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:319) at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:273) at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:309) at com.sun.proxy.$Proxy67.doFilter(Unknown Source) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) at org.forgerock.openidm.jetty.LargePayloadServletFilter.doFilter(LargePayloadServletFilter.java:64) at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.forgerock.openidm.servletregistration.impl.ServletRegistrationSingleton$FilterProxy.invoke(ServletRegistrationSingleton.java:309) at com.sun.proxy.$Proxy67.doFilter(Unknown Source) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:549) at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1363) at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:294) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:489) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1278) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:717) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:500) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) at java.lang.Thread.run(Thread.java:748)

 



 Comments   
Comment by Katie Gonzalez [ 12/Aug/20 ]

Hello John Moore [X]. This is not occurring for standalone OOTB with 6.5.0.4. If you are integrating this with AM please include your set up configurations and steps you have taken.

Generated at Tue Nov 24 06:20:34 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.