You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "Rohit Yadav (JIRA)" <ji...@apache.org> on 2012/09/17 14:18:09 UTC
[jira] [Created] (CLOUDSTACK-121) Incorrect username/domainId login
causes NullPointerException
Rohit Yadav created CLOUDSTACK-121:
--------------------------------------
Summary: 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
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
[jira] [Commented] (CLOUDSTACK-121) Incorrect username/domainId
login causes NullPointerException
Posted by "Rohit Yadav (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465451#comment-13465451 ]
Rohit Yadav commented on CLOUDSTACK-121:
----------------------------------------
@Sadhu wait :) already fixed and sent a patch for review. It's up to the reviewer/commiter to commit this.
> Incorrect username/domainId login causes NullPointerException
> -------------------------------------------------------------
>
> Key: CLOUDSTACK-121
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-121
> Project: CloudStack
> Issue Type: Bug
> Affects Versions: pre-4.0.0
> 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
[jira] [Commented] (CLOUDSTACK-121) Incorrect username/domainId
login causes NullPointerException
Posted by "Rohit Yadav (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13456964#comment-13456964 ]
Rohit Yadav commented on CLOUDSTACK-121:
----------------------------------------
Review and patch on the review:
https://reviews.apache.org/r/7130/
> 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
>
> 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
[jira] [Resolved] (CLOUDSTACK-121) Incorrect username/domainId
login causes NullPointerException
Posted by "Alex Huang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Huang resolved CLOUDSTACK-121.
-----------------------------------
Resolution: Fixed
master: 5cd7fb8
4.0: f7ebb76f57a0c88c8b379aacb1a4e3fd653a325f
> Incorrect username/domainId login causes NullPointerException
> -------------------------------------------------------------
>
> Key: CLOUDSTACK-121
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-121
> Project: CloudStack
> Issue Type: Bug
> Affects Versions: pre-4.0.0
> Reporter: Rohit Yadav
> Assignee: Rohit Yadav
> 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
[jira] [Commented] (CLOUDSTACK-121) Incorrect username/domainId
login causes NullPointerException
Posted by "sadhu suresh (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (CLOUDSTACK-121) Incorrect username/domainId login
causes NullPointerException
Posted by "Rohit Yadav (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rohit Yadav updated CLOUDSTACK-121:
-----------------------------------
Status: Ready To Review (was: In Progress)
> Incorrect username/domainId login causes NullPointerException
> -------------------------------------------------------------
>
> Key: CLOUDSTACK-121
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-121
> Project: CloudStack
> Issue Type: Bug
> Affects Versions: pre-4.0.0
> Reporter: Rohit Yadav
> Assignee: Rohit Yadav
> 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
[jira] [Updated] (CLOUDSTACK-121) Incorrect username/domainId login
causes NullPointerException
Posted by "Alex Huang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Huang updated CLOUDSTACK-121:
----------------------------------
Fix Version/s: pre-4.0.0
> 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
[jira] [Updated] (CLOUDSTACK-121) Incorrect username/domainId login
causes NullPointerException
Posted by "Sudha Ponnaganti (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sudha Ponnaganti updated CLOUDSTACK-121:
----------------------------------------
Affects Version/s: pre-4.0.0
> Incorrect username/domainId login causes NullPointerException
> -------------------------------------------------------------
>
> Key: CLOUDSTACK-121
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-121
> Project: CloudStack
> Issue Type: Bug
> Affects Versions: pre-4.0.0
> 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
[jira] [Commented] (CLOUDSTACK-121) Incorrect username/domainId
login causes NullPointerException
Posted by "sadhu suresh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465476#comment-13465476 ]
sadhu suresh commented on CLOUDSTACK-121:
-----------------------------------------
Thanks for the quick response.Can you please change priority to major.am not able to change.
regards
sadhu
> Incorrect username/domainId login causes NullPointerException
> -------------------------------------------------------------
>
> Key: CLOUDSTACK-121
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-121
> Project: CloudStack
> Issue Type: Bug
> Affects Versions: pre-4.0.0
> 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
[jira] [Commented] (CLOUDSTACK-121) Incorrect username/domainId
login causes NullPointerException
Posted by "Alena Prokharchyk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470534#comment-13470534 ]
Alena Prokharchyk commented on CLOUDSTACK-121:
----------------------------------------------
Fixed in 4.0 branch with f7ebb76f57a0c88c8b379aacb1a4e3fd653a325f
> Incorrect username/domainId login causes NullPointerException
> -------------------------------------------------------------
>
> Key: CLOUDSTACK-121
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-121
> Project: CloudStack
> Issue Type: Bug
> Affects Versions: pre-4.0.0
> Reporter: Rohit Yadav
> Assignee: Rohit Yadav
> 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
[jira] [Updated] (CLOUDSTACK-121) Incorrect username/domainId login
causes NullPointerException
Posted by "Rohit Yadav (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CLOUDSTACK-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rohit Yadav updated CLOUDSTACK-121:
-----------------------------------
Priority: Major (was: Minor)
> Incorrect username/domainId login causes NullPointerException
> -------------------------------------------------------------
>
> Key: CLOUDSTACK-121
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-121
> Project: CloudStack
> Issue Type: Bug
> Affects Versions: pre-4.0.0
> Reporter: Rohit Yadav
> Assignee: Rohit Yadav
> 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