cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajani Karuturi (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-6210) LDAP:listLdapUsers api throws exception when we click on "Add LDAP Account"
Date Mon, 10 Mar 2014 07:05:43 GMT

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

Rajani Karuturi resolved CLOUDSTACK-6210.
-----------------------------------------

    Resolution: Fixed

> LDAP:listLdapUsers api throws exception when we click on "Add LDAP Account" 
> ----------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6210
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6210
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API, Management Server
>    Affects Versions: 4.3.0
>            Reporter: sadhu suresh
>            Assignee: Rajani Karuturi
>             Fix For: 4.4.0
>
>
> listLdapUsers throws Nullpointer exception when we try to add new LDAP account.
> http://10.147.59.151:8080/client/api?command=listLdapUsers&listtype=new&response=json&sessionkey=mmC8CloNaIGUrupkj85XT4k1%2Fz0%3D&_=1394010828334
> 75
> Content-Type text/javascript;charset=UTF-8
> Date Wed, 05 Mar 2014 09:13:48 GMT
> Server Apache-Coyote/1.1
> Request Headersview source
> Accept application/json, text/javascript, /; q=0.01
> Accept-Encoding gzip, deflate
> Accept-Language en-US,en;q=0.5
> Connection keep-alive
> Cookie userfullname=j%20h; userid=b3174173-6916-45ec-bb65-fa9162bd8941; capabilities=%5Bobject%20Object%5D;
kvmsnapshotenabled=false; regionsecondaryenabled=false; userpublictemplateenabled=true; userProjectsEnabled=true;
sessionKey=mmC8CloNaIGUrupkj85XT4k1%252Fz0%253D; username=root; account=admin; domainid=4711cc24-a2b6-11e3-8cda-06a8f400007f;
role=1; supportELB=false; JSESSIONID=6ABB50CC5B2376957649E5B7ADAF432B
> Host 10.147.59.151:8080
> Referer http://10.147.59.151:8080/client/
> User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0
> X-Requested-With XMLHttpRequest
> http://10.147.59.151:8080/client/api?command=listLdapUsers&listtype=new&response=json&sessionkey=mmC8CloNaIGUrupkj85XT4k1%2Fz0%3D&_=1394010828334
> t25), Ver: v1, Flags: 100001, [{"com.cloud.agent.api.routing.SetFirewallRulesCommand":{"rules":[
> {"id":4,"srcIp":"10.147.49.32","protocol":"udp","srcPortRange":[500,500],"revoked":false,"alreadyAdded":false,"sourceCidrList":["0.0.0.0/0"],"purpose":"Firewall","trafficType":"Ingress","defaultEgressPolicy":false}
> ,
> {"id":6,"srcIp":"10.147.49.32","protocol":"udp","srcPortRange":[1701,1701],"revoked":false,"alreadyAdded":false,"sourceCidrList":["0.0.0.0/0"],"purpose":"Firewall","trafficType":"Ingress","defaultEgressPolicy":false}
> ,
> {"id":8,"srcIp":"10.147.49.32","protocol":"udp","srcPortRange":[4500,4500],"revoked":false,"alreadyAdded":false,"sourceCidrList":["0.0.0.0/0"],"purpose":"Firewall","trafficType":"Ingress","defaultEgressPolicy":false}
> ],"accessDetails":
> {"router.guest.ip":"10.1.1.1","firewall.egress.default":"false","zone.network.type":"Advanced","router.ip":"169.254.0.19","router.name":"r-18-VM"}
> ,"wait":0}}] }
> 2014-03-05 15:10:22,168 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-480:ctx-d7593b7d)
Seq 1-1795823775: Executing request
> ^C
> [root@RHEL62 ~]# vi mslog
> java.lang.NullPointerException
> at javax.naming.InitialContext.getURLScheme(InitialContext.java:286)
> at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:335)
> at javax.naming.directory.InitialDirContext.getURLOrDefaultInitDirCtx(InitialDirContext.java:104)
> at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:265)
> at org.apache.cloudstack.ldap.LdapUserManager.searchUsers(LdapUserManager.java:184)
> at org.apache.cloudstack.ldap.LdapUserManager.getUsers(LdapUserManager.java:122)
> at org.apache.cloudstack.ldap.LdapUserManager.getUsers(LdapUserManager.java:118)
> at org.apache.cloudstack.ldap.LdapManagerImpl.getUsers(LdapManagerImpl.java:175)
> at org.apache.cloudstack.api.command.LdapListUsersCmd.execute(LdapListUsersCmd.java:85)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:161)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:531)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:374)
> at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:322)
> at com.cloud.api.ApiServlet.access$000(ApiServlet.java:52)
> at com.cloud.api.ApiServlet$1.run(ApiServlet.java:114)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:111)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:73)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> 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:2260)
> 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)
> 2014-03-05 14:40:07,323 DEBUG [c.c.a.ApiServlet] (catalina-exec-4:ctx-dbcbcac7 ctx-56866089)
===END=== 10.252.193.25 – GET command=listLdapUsers&listtype=new&response=json&sessionkey=mmC8CloNaIGUrupkj85XT4k1%2Fz0%3D&_=1394010604911
> 2014-03-05 14:40:07,407 DEBUG [c.c.a.ApiServlet] (catalina-exec-17:ctx-2ec60d43) ===START===
10.252.193.25 – GET command=listDomains&response=json&sessionkey=mmC8CloNaIGUrupkj85XT4k1%2Fz0%3D&listAll=true&_=1394010607940



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message