ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sumit Mohanty (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-14332) local admin user cannot login anymore
Date Fri, 11 Dec 2015 14:30:11 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-14332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sumit Mohanty updated AMBARI-14332:
-----------------------------------
    Assignee: Myroslav Papirkovskyy  (was: Denys Buzhor)

> local admin user cannot login anymore
> -------------------------------------
>
>                 Key: AMBARI-14332
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14332
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Zehava Vardy
>            Assignee: Myroslav Papirkovskyy
>             Fix For: 2.4.0
>
>
> After jwt user named “admin” login, local admin user cannot login anymore, log shows
exception more than one result returned.
> 25 Nov 2015 19:58:37,627 ERROR [qtp-client-22] ReadHandler:91 - Caught a runtime exception
executing a query
> javax.persistence.NonUniqueResultException: More than one result was returned from Query.getSingleResult()
> at org.eclipse.persistence.internal.jpa.QueryImpl.throwNonUniqueResultException(QueryImpl.java:976)
> at org.eclipse.persistence.internal.jpa.QueryImpl.getSingleResult(QueryImpl.java:525)
> at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getSingleResult(EJBQueryImpl.java:400)
> at org.apache.ambari.server.orm.dao.UserDAO.findUserByName(UserDAO.java:64)
> at org.apache.ambari.server.orm.AmbariLocalSessionInterceptor.invoke(AmbariLocalSessionInterceptor.java:53)
> at org.apache.ambari.server.security.authorization.Users.getAnyUser(Users.java:102)
> at org.apache.ambari.server.controller.AmbariManagementControllerImpl.getUsers(AmbariManagementControllerImpl.java:3212)
> at org.apache.ambari.server.controller.internal.UserResourceProvider$2.invoke(UserResourceProvider.java:101)
> at org.apache.ambari.server.controller.internal.UserResourceProvider$2.invoke(UserResourceProvider.java:98)
> at org.apache.ambari.server.controller.internal.AbstractResourceProvider.getResources(AbstractResourceProvider.java:302)
> at org.apache.ambari.server.controller.internal.UserResourceProvider.getResources(UserResourceProvider.java:98)
> at org.apache.ambari.server.controller.internal.ClusterControllerImpl$ExtendedResourceProviderWrapper.queryForResources(ClusterControllerImpl.java:945)
> at org.apache.ambari.server.controller.internal.ClusterControllerImpl.getResources(ClusterControllerImpl.java:132)
> at org.apache.ambari.server.api.query.QueryImpl.doQuery(QueryImpl.java:508)
> at org.apache.ambari.server.api.query.QueryImpl.queryForResources(QueryImpl.java:380)
> at org.apache.ambari.server.api.query.QueryImpl.execute(QueryImpl.java:216)
> at org.apache.ambari.server.api.handlers.ReadHandler.handleRequest(ReadHandler.java:68)
> at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:135)
> at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:106)
> at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:75)
> at org.apache.ambari.server.api.services.UserService.getUser(UserService.java:67)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
> at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message