incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sadhu suresh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-121) Incorrect username/domainId login causes NullPointerException
Date Fri, 28 Sep 2012 04:41:07 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465345#comment-13465345
] 

sadhu suresh commented on CLOUDSTACK-121:
-----------------------------------------

Try to login with invalid user name causes NUll pointer exception...priority should be major.

2012-09-28 10:00:45,990 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-25:null) Attempting
to log in user: adddadmin in domain 1
2012-09-28 10:00:45,990 DEBUG [server.auth.MD5UserAuthenticator] (catalina-exec-25:null) Retrieving
user: adddadmin
2012-09-28 10:00:45,991 DEBUG [server.auth.MD5UserAuthenticator] (catalina-exec-25:null) Unable
to find user with adddadmin in domain 1
2012-09-28 10:00:45,991 DEBUG [server.auth.LDAPUserAuthenticator] (catalina-exec-25:null)
Retrieving user: adddadmin
2012-09-28 10:00:45,992 DEBUG [server.auth.LDAPUserAuthenticator] (catalina-exec-25:null)
Unable to find user with adddadmin in domain 1
2012-09-28 10:00:45,992 DEBUG [cloud.user.AccountManagerImpl] (catalina-exec-25:null) Unable
to authenticate user with username adddadmin in domain 1
2012-09-28 10:00:45,992 ERROR [cloud.api.ApiServlet] (catalina-exec-25:null) unknown exception
writing api response
java.lang.NullPointerException
        at com.cloud.user.AccountManagerImpl.getUserAccount(AccountManagerImpl.java:1865)
        at com.cloud.user.AccountManagerImpl.authenticateUser(AccountManagerImpl.java:1705)
        at com.cloud.api.ApiServer.loginUser(ApiServer.java:797)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:210)
        at com.cloud.api.ApiServlet.doPost(ApiServlet.java:72)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
        at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
2012-09-28 10:00:51,355 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
Zone 1 is ready to launch secondary storage VM
2012-09-28 10:00:51,451 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null)
Zone 1 is ready to launch console proxy
2012-09-28 10:00:51,800 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 3 routers.
2012-09-28 10:00:59,117 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-295:null) Ping
from 1
2012-09-28 10:00:59,593 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-431:null) Seq
1-1655504898: Executing request
2012-09-28 10:00:59,873 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-431:null) Seq
1-1655504898: Response Received:
2012-09-28 10:00:59,873 DEBUG [agent.transport.Request] (DirectAgent-431:null) Seq 1-1655504898:
Processing:  { Ans: , MgmtId: 345052566032, via: 1, Ver: v1, Flags: 10, [{"ClusterSyncAnswer":{"_clusterId":1,"_newStates":{},"_isExecuted":false,"result":true,"wait":0}}]
}
2012-09-28 10:01:00,271 DEBUG [cloud.server.StatsCollector] (StatsCollector-2:null) VmStatsCollector
is running...

                
> Incorrect username/domainId login causes NullPointerException
> -------------------------------------------------------------
>
>                 Key: CLOUDSTACK-121
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-121
>             Project: CloudStack
>          Issue Type: Bug
>            Reporter: Rohit Yadav
>            Assignee: Rohit Yadav
>            Priority: Minor
>             Fix For: pre-4.0.0
>
>
> Steps to reproduce the bug:                                                 
> - Create a subdomain, add a user in it                                      
> - Login with that user and leave domain as blank (which is / or ROOT by default)    
                                           
> - No warning or error message. NullPointerException caught at the server

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message