{"action":"opened","issue":{"url":"https://api.github.com/repos/payara/Payara/issues/3301","repository_url":"https://api.github.com/repos/payara/Payara","labels_url":"https://api.github.com/repos/payara/Payara/issues/3301/labels{/name}","comments_url":"https://api.github.com/repos/payara/Payara/issues/3301/comments","events_url":"https://api.github.com/repos/payara/Payara/issues/3301/events","html_url":"https://github.com/payara/Payara/issues/3301","id":372550707,"node_id":"MDU6SXNzdWUzNzI1NTA3MDc=","number":3301,"title":"Web Console 403 LDAPRealm.getGroupNames Exception","user":{"login":"fz288","id":44370388,"node_id":"MDQ6VXNlcjQ0MzcwMzg4","avatar_url":"https://avatars2.githubusercontent.com/u/44370388?v=4","gravatar_id":"","url":"https://api.github.com/users/fz288","html_url":"https://github.com/fz288","followers_url":"https://api.github.com/users/fz288/followers","following_url":"https://api.github.com/users/fz288/following{/other_user}","gists_url":"https://api.github.com/users/fz288/gists{/gist_id}","starred_url":"https://api.github.com/users/fz288/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fz288/subscriptions","organizations_url":"https://api.github.com/users/fz288/orgs","repos_url":"https://api.github.com/users/fz288/repos","events_url":"https://api.github.com/users/fz288/events{/privacy}","received_events_url":"https://api.github.com/users/fz288/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-22T14:43:09Z","updated_at":"2018-10-22T14:43:09Z","closed_at":null,"author_association":"NONE","body":"# Description #\r\n----------\r\n\r\n403 after successful login to web console using LDAP authentication (built from source with fix #3157 included)\r\n\r\nasadmin functions properly\r\n\r\n## Expected Outcome\r\n\r\nWeb console should load after successful login\r\n\r\n## Current Outcome\r\n\r\n403 error and exception thrown in server.log\r\n\r\n`[Payara 5.184-SNAPSHOT] [FINE] [] [javax.enterprise.system.core.security] [tid: _ThreadID=199 _ThreadName=admin-thread-pool::admin-listener(8)] [timeMillis: 1540209378780] [levelValue: 500] [CLASSNAME: com.sun.enterprise.security.auth.JaspicToJaasBridge] [METHODNAME: addRealmGroupsToSubject] [[\r\n  Exception when trying to populate groups for CallerPrincipal username\r\njava.lang.ClassCastException: java.util.LinkedList cannot be cast to java.util.Vector\r\n\tat com.sun.enterprise.security.auth.realm.ldap.LDAPRealm.getGroupNames(LDAPRealm.java:413)\r\n\tat com.sun.enterprise.security.auth.JaspicToJaasBridge.addRealmGroupsToSubject(JaspicToJaasBridge.java:184)\r\n\tat com.sun.enterprise.security.jmac.callback.BaseContainerCallbackHandler.processCallerPrincipal(BaseContainerCallbackHandler.java:411)\r\n\tat com.sun.enterprise.security.jmac.callback.BaseContainerCallbackHandler.processCallback(BaseContainerCallbackHandler.java:190)\r\n\tat com.sun.enterprise.security.jmac.callback.ServerContainerCallbackHandler.handleSupportedCallbacks(ServerContainerCallbackHandler.java:75)\r\n\tat com.sun.enterprise.security.jmac.callback.BaseContainerCallbackHandler.handle(BaseContainerCallbackHandler.java:181)\r\n\tat com.sun.enterprise.security.jmac.callback.ContainerCallbackHandler.handle(ContainerCallbackHandler.java:82)\r\n\tat org.glassfish.admingui.common.security.AdminConsoleAuthModule.notifyContainerAboutLogin(AdminConsoleAuthModule.java:361)\r\n\tat org.glassfish.admingui.common.security.AdminConsoleAuthModule.validateRequest(AdminConsoleAuthModule.java:206)\r\n\tat com.sun.enterprise.security.jmac.config.GFServerConfigProvider$GFServerAuthContext.validateRequest(GFServerConfigProvider.java:869)\r\n\tat com.sun.web.security.realmadapter.JaspicRealm.validateRequest(JaspicRealm.java:389)\r\n\tat com.sun.web.security.realmadapter.JaspicRealm.validateRequest(JaspicRealm.java:356)\r\n\tat com.sun.web.security.realmadapter.JaspicRealm.validateRequest(JaspicRealm.java:182)\r\n\tat com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:506)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)\r\n\tat org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:724)\r\n\tat org.apache.catalina.core.StandardPipeline.doChainInvoke(StandardPipeline.java:579)\r\n\tat com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)\r\n\tat com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:516)\r\n\tat com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:213)\r\n\tat org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)\r\n\tat org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)\r\n\tat org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)\r\n\tat org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)\r\n\tat org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)\r\n\tat org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:208)\r\n\tat org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)\r\n\tat org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)\r\n\tat org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:208)\r\n\tat org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)\r\n\tat org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)\r\n\tat org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)\r\n\tat org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)\r\n\tat org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)\r\n\tat org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)\r\n\tat org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)\r\n\tat org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)\r\n\tat org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)\r\n\tat org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\n]]`\r\n\r\n## Steps to reproduce (Only for bug reports) \r\n\r\nBasic setup and switch from default file authentication to LDAP for administration.\r\n\r\n## Environment ##\r\n\r\n- **Payara Version**: d875a7748c66a310943460d1575873beb5fde62c (5.183+)\r\n- **Edition**: Full\r\n- **JDK Version**: Oracle 1.8.0_181\r\n- **Operating System**: Windows\r\n\r\n\r\n"}}
{"actor":{"display_login":"fz288"}}