Re: [Dev] Unable to run the Automation Test due to Security Exception
Hi This is due to the user name null issue in carbon context. CarbonContext. getCurrentContext().getUsername() returned null value. Asela has fixed the issue at r181420. Updating org.wso2.carbon.server.admin component resolved the issue in user role creation. Thanks Asela for fixing the issue. Now Automation tests can be executed successfully. Thanks, Nuwanw On Fri, Aug 16, 2013 at 10:55 AM, Vanjikumaran Sivajothy va...@wso2.comwrote: Thank you Nunwan for assisting on this matter On Fri, Aug 16, 2013 at 10:54 AM, Nuwan Wimalasekara nuw...@wso2.comwrote: I think user role creation logic has changed. Because we create a role with all permissions before executing tests. I will look into this. Thanks, Nuwanw On Fri, Aug 16, 2013 at 10:40 AM, Vanjikumaran Sivajothy va...@wso2.comwrote: Hi, Last evening i packed the ESB pack and try to run the automation test. Nevertheless, it was not possible to test due to ERROR - UserRealmProxy You have not privilege to create a role with Admin permission. I tried to login as super user and able to create a user with admin privileges. However it is not possible via Automation Test. Please refer the attachment for error stack that I got. Thank you in advance for your advice! -- Sivajothy Vanjikumaran *Senior Software Engineer* *Integration Technologies Team* *WSO2 Inc. http://wso2.com/* *Mobile:(+94)777219209** *[image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter] https://twitter.com/vanjikumaran [image: LinkedIn]http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image: Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]http://www.slideshare.net/vanjikumaran ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 -- Sivajothy Vanjikumaran *Senior Software Engineer* *Integration Technologies Team* *WSO2 Inc. http://wso2.com/* *Mobile:(+94)777219209** *[image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter] https://twitter.com/vanjikumaran [image: LinkedIn]http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image: Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]http://www.slideshare.net/vanjikumaran -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Unable to run the Automation Test due to Security Exception
Hi, Last evening i packed the ESB pack and try to run the automation test. Nevertheless, it was not possible to test due to ERROR - UserRealmProxy You have not privilege to create a role with Admin permission. I tried to login as super user and able to create a user with admin privileges. However it is not possible via Automation Test. Please refer the attachment for error stack that I got. Thank you in advance for your advice! -- Sivajothy Vanjikumaran *Senior Software Engineer* *Integration Technologies Team* *WSO2 Inc. http://wso2.com/* *Mobile:(+94)777219209** *[image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]https://twitter.com/vanjikumaran [image: LinkedIn] http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image: Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]http://www.slideshare.net/vanjikumaran 2013-08-16 10:32:04,028] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2013-08-16 10:32:04,028] INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2013-08-16 10:32:04,028+0530] [2013-08-16 10:32:04,035] INFO {org.wso2.carbon.automation.api.clients.authenticators.AuthenticatorClient} - Login Successful [2013-08-16 10:32:06,139] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2013-08-16 10:32:06,138] WARN - UserRealmProxy An attempt to create role with admin permission by user null [2013-08-16 10:32:06,360] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - [2013-08-16 10:32:06,359] ERROR - UserRealmProxy You have not privilege to create a role with Admin permission [2013-08-16 10:32:06,361] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - org.wso2.carbon.user.core.UserStoreException: You have not privilege to create a role with Admin permission [2013-08-16 10:32:06,361] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at org.wso2.carbon.user.mgt.UserRealmProxy.addRole(UserRealmProxy.java:769) [2013-08-16 10:32:06,362] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at org.wso2.carbon.user.mgt.UserAdmin.addRole(UserAdmin.java:227) [2013-08-16 10:32:06,362] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [2013-08-16 10:32:06,362] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [2013-08-16 10:32:06,363] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [2013-08-16 10:32:06,363] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at java.lang.reflect.Method.invoke(Method.java:597) [2013-08-16 10:32:06,363] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) [2013-08-16 10:32:06,364] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66) [2013-08-16 10:32:06,392] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) [2013-08-16 10:32:06,392] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) [2013-08-16 10:32:06,392] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) [2013-08-16 10:32:06,393] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) [2013-08-16 10:32:06,393] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) [2013-08-16 10:32:06,393] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) [2013-08-16 10:32:06,393] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [2013-08-16 10:32:06,394] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
Re: [Dev] Unable to run the Automation Test due to Security Exception
I think user role creation logic has changed. Because we create a role with all permissions before executing tests. I will look into this. Thanks, Nuwanw On Fri, Aug 16, 2013 at 10:40 AM, Vanjikumaran Sivajothy va...@wso2.comwrote: Hi, Last evening i packed the ESB pack and try to run the automation test. Nevertheless, it was not possible to test due to ERROR - UserRealmProxy You have not privilege to create a role with Admin permission. I tried to login as super user and able to create a user with admin privileges. However it is not possible via Automation Test. Please refer the attachment for error stack that I got. Thank you in advance for your advice! -- Sivajothy Vanjikumaran *Senior Software Engineer* *Integration Technologies Team* *WSO2 Inc. http://wso2.com/* *Mobile:(+94)777219209** *[image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter] https://twitter.com/vanjikumaran [image: LinkedIn]http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image: Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]http://www.slideshare.net/vanjikumaran ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Unable to run the Automation Test due to Security Exception
Thank you Nunwan for assisting on this matter On Fri, Aug 16, 2013 at 10:54 AM, Nuwan Wimalasekara nuw...@wso2.comwrote: I think user role creation logic has changed. Because we create a role with all permissions before executing tests. I will look into this. Thanks, Nuwanw On Fri, Aug 16, 2013 at 10:40 AM, Vanjikumaran Sivajothy va...@wso2.comwrote: Hi, Last evening i packed the ESB pack and try to run the automation test. Nevertheless, it was not possible to test due to ERROR - UserRealmProxy You have not privilege to create a role with Admin permission. I tried to login as super user and able to create a user with admin privileges. However it is not possible via Automation Test. Please refer the attachment for error stack that I got. Thank you in advance for your advice! -- Sivajothy Vanjikumaran *Senior Software Engineer* *Integration Technologies Team* *WSO2 Inc. http://wso2.com/* *Mobile:(+94)777219209** *[image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter] https://twitter.com/vanjikumaran [image: LinkedIn]http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image: Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]http://www.slideshare.net/vanjikumaran ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620 -- Sivajothy Vanjikumaran *Senior Software Engineer* *Integration Technologies Team* *WSO2 Inc. http://wso2.com/* *Mobile:(+94)777219209** *[image: Facebook] https://www.facebook.com/vanjikumaran [image: Twitter]https://twitter.com/vanjikumaran [image: LinkedIn] http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 [image: Blogger] http://vanjikumaran.blogspot.com/ [image: SlideShare]http://www.slideshare.net/vanjikumaran ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev