Re: [Dev] [EMM][Android] Exception when executed hard lock operation

2016-06-15 Thread Kasun Dananjaya Delgolla
Hi All,

This was due to an android rest-api issue when the agent replies with
failure responses. (There was a logic in rest-api to pass response
parameter directly to a Gson object to convert it to a specific object (ie
: Location). This results in an exception when a string (error message)
passed as the response. Now this is fixed[1] by properly adding checks to
the operation response status before doing the above.

[1] -
https://github.com/wso2/carbon-device-mgt-plugins/commit/ef281e1524fd1772a977ae9df16f97600b402387

Thanks

On Wed, Jun 15, 2016 at 11:22 AM, Kasun Dananjaya Delgolla 
wrote:

> Hi All,
>
> I got the $subject[1] when I did a hard lock. Hard lock worked fine but
> when the device replies to pending-operations endpoint with operation
> results, this occurs. Any idea? By the looks of it, when hard lock happens,
> the reply payload does not get built properly.
>
> Thanks
> [1] -
> D: [-1234] [] [2016-06-15 18:08:21,551]  WARN
> {org.apache.cxf.phase.PhaseInterceptorChain} -  Exception in handleFault on
> interceptor
> org.apache.cxf.binding.xml.interceptor.XMLFaultOutInterceptor@3226177f
> org.apache.cxf.interceptor.Fault: java.lang.IllegalStateException:
> Expected BEGIN_OBJECT but was STRING at line 1 column 1
> at
> org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:170)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:136)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
> at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:249)
> at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
> at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:289)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPut(AbstractHTTPServlet.java:226)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:649)
> at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:265)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.wso2.carbon.mdm.services.android.util.ApiOriginFilter.doFilter(ApiOriginFilter.java:33)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
> at
> org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve.processRequest(WebappAuthenticationValve.java:145)
> at
> org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve.invoke(WebappAuthenticationValve.java:67)
> at
> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
> at
> org.wso2.carbon.tomcat.ext.valve

[Dev] [EMM][Android] Exception when executed hard lock operation

2016-06-15 Thread Kasun Dananjaya Delgolla
(WebappAuthenticationValve.java:145)
at
org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticationValve.invoke(WebappAuthenticationValve.java:67)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.google.gson.JsonSyntaxException:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at
line 1 column 1
at
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
at com.google.gson.Gson.fromJson(Gson.java:803)
at com.google.gson.Gson.fromJson(Gson.java:768)
at com.google.gson.Gson.fromJson(Gson.java:717)
at com.google.gson.Gson.fromJson(Gson.java:689)
at
org.wso2.carbon.mdm.services.android.util.AndroidAPIUtils.updateOperation(AndroidAPIUtils.java:289)
at
org.wso2.carbon.mdm.services.android.services.impl.DeviceManagementServiceImpl.updateOperations(DeviceManagementServiceImpl.java:144)
at
org.wso2.carbon.mdm.services.android.services.impl.DeviceManagementServiceImpl.getPendingOperations(DeviceManagementServiceImpl.java:99)
at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)
... 48 more
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was
STRING at line 1 column 1
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:374)
at
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:165)
... 60 more


-- 
Kasun Dananjaya Delgolla

Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM][iOS] Getting exceptions while installing iOS features

2016-05-17 Thread Kasun Dananjaya Delgolla
No. This happens only when installing the features.

Thanks

On Wed, May 18, 2016 at 12:03 PM, Inosh Perera  wrote:

> Hi Kasun,
>
> Does this issue continue even after the server is restarted after feature
> installation?
>
> Regards,
> Inosh
>
> On Wed, May 18, 2016 at 11:45 AM, Kasun Dananjaya Delgolla <
> kas...@wso2.com> wrote:
>
>> Hi All,
>>
>> $subject. Seems like it's missing some dependencies.
>>
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'enrollmentService': Cannot resolve reference to bean
>> 'enrollmentServiceBean' while setting bean property 'serviceBeans' with key
>> [0]; nested exception is
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'enrollmentServiceBean' defined in URL
>> [jndi:/localhost/ios-enrollment/WEB-INF/cxf-servlet.xml]: Instantiation of
>> bean failed; nested exception is java.lang.NoClassDefFoundError:
>> org/wso2/carbon/device/mgt/ios/core/exception/IOSEnrollmentException
>> at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
>> at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
>> at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
>> at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)
>> at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
>> at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
>> at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
>> at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
>> at
>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
>> at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
>> at
>> org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:151)
>> at org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
>> at
>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:76)
>> at
>> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
>> at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
>> at
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
>> at
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5262)
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5550)
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
>> at
>> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:290)
>> at
>> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:198)
>> at
>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:258)
>> at
>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWarWebappDeployment(TomcatGenericWebappsDeployer.java:208)
>> at
>

[Dev] [EMM][iOS] Getting exceptions while installing iOS features

2016-05-17 Thread Kasun Dananjaya Delgolla
bon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:290)
at
org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:198)
at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:258)
at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWarWebappDeployment(TomcatGenericWebappsDeployer.java:208)
at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:175)
at org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDepl

Thanks
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [OAuth] Error happens in EMM intermittently

2016-05-17 Thread Kasun Dananjaya Delgolla
2)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key
violation: "CON_APP_KEY_INDEX_F ON
PUBLIC.IDN_OAUTH2_ACCESS_TOKEN(CONSUMER_KEY_ID, AUTHZ_USER, TENANT_ID,
USER_DOMAIN, USER_TYPE, TOKEN_SCOPE_HASH, TOKEN_STATE, TOKEN_STATE_ID)";
SQL statement:
INSERT INTO IDN_OAUTH2_ACCESS_TOKEN (ACCESS_TOKEN, REFRESH_TOKEN,
CONSUMER_KEY_ID, AUTHZ_USER, TENANT_ID, USER_DOMAIN, TIME_CREATED,
REFRESH_TOKEN_TIME_CREATED, VALIDITY_PERIOD, REFRESH_TOKEN_VALIDITY_PERIOD,
TOKEN_SCOPE_HASH, TOKEN_STATE, USER_TYPE, TOKEN_ID, GRANT_TYPE,
SUBJECT_IDENTIFIER) SELECT ?,?,ID,?,?,?,?,?,?,?,?,?,?,?,?,? FROM
IDN_OAUTH_CONSUMER_APPS WHERE CONSUMER_KEY=? [23001-140]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
at org.h2.message.DbException.get(DbException.java:167)
at org.h2.message.DbException.get(DbException.java:144)
at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:157)
at org.h2.index.PageBtree.find(PageBtree.java:121)
at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:138)
at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:93)
at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:90)
at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:81)
at org.h2.table.RegularTable.addRow(RegularTable.java:116)
at org.h2.command.dml.Insert.insertRows(Insert.java:148)
at org.h2.command.dml.Insert.update(Insert.java:82)
at org.h2.command.CommandContainer.update(CommandContainer.java:70)
at org.h2.command.Command.executeUpdate(Command.java:199)
at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:179)
at
org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:224)
... 62 more

Thanks
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [EMM 2.1.0] [Device Analytics] Obtaining 'No-Passcode' & 'No-Encryption' states via Device Info

2016-04-07 Thread Kasun Dananjaya Delgolla
Hi Dilan,

It's possible on android. We can simply check it via device policy manager
and attach it to device info payload. Also it should be possible on iOS.
But we will have to check on Windows. @Hasunie - Any input on this?

Thanks
On Apr 7, 2016 6:27 PM, "Dilan Udara Ariyaratne"  wrote:

> Adding KasunD, Milan, InoshP, Dilshan and Hasunie to the thread...
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94766405580 <%2B94766405580>
> lean . enterprise . middleware
>
>
> -- Forwarded message --
> From: Dilan Udara Ariyaratne 
> Date: Thu, Apr 7, 2016 at 6:23 PM
> Subject: [Dev] [EMM 2.1.0] [Device Analytics] Obtaining 'No-Passcode' &
> 'No-Encryption' states via Device Info
> To: WSO2 Developers' List 
>
>
> Hi Folks,
>
> Is there currently any possibility of retrieving the following states
> via device-info capturing task of EMM for all mobile platforms, i.e.
> Android, iOS and Windows ?
>
> [1] No-Passcode state - This could carry the value of either true or false
> and express whether the device is currently having a passcode or not
> [2] No-Encryption state - This could also carry the value of either true
> or false and express whether the device data is currently encrypted or not
>
> If we can obtain these data, there lies the possibility of showing related
> analytics (See Following Figure) on Device Dashboard page for EMM
> administrators
> which is currently considered as a useful requirement.
>
>
>
>
> Thanks.
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94766405580 <%2B94766405580>
> lean . enterprise . middleware
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [EMM][AppM] Why APPM platform specific implementations are in mdm-admin JAX-RS?

2016-04-07 Thread Kasun Dananjaya Delgolla
Hi All,

While restructuring mdm-admin jax-rs to be in the core layer, I found out
that several platform specific implementations are residing in mdm-admin
jax-rs. All such implementations are related to AppM functionality
(ex: MDMAndroidOperationUtil and MDMIOSOperationUtil classes).

We know that AppM is invoking mdm-admin REST APIs to get its functionality
done, but ideally mdm-admin should have only generic functionalities. If we
want to enable these features via mdm-admin, we should make it generic
without having any platform specific code within mdm-admin IMO.

Correct way of implementing this would be, having these platform specific
REST APIs in respective platform JAX-RS services and AppM should invoke
those APIs according to the device platform.

Is there any specific reason why we implemented it like that?

Thanks

-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CDMF][IOTs] Merging UI changes

2016-04-06 Thread Kasun Dananjaya Delgolla
Hi All,

I have merged and committed styling changes (CSS) + device detailed view
core level UIs. Currently, the only remaining bit is plugin level UI
changes (ex: android device detailed view etc).

Thanks

On Thu, Mar 10, 2016 at 9:09 PM, Kasun Dananjaya Delgolla 
wrote:

> Hi All,
>
> I have merged and committed policy listing, policy priority views and all
> the units under
> carbon-devicemgt-plugin/device-mgt-mdm/org.wso2.carbon.device.mgt.mobile.ui.
> Now the remaining units are device listing + view and policy wizard.
>
> Thank you
>
> On Wed, Mar 9, 2016 at 12:26 PM, Charitha Goonetilleke  > wrote:
>
>> Hi Kasun,
>>
>> Actually we can have operations bar for device listing view. I removed
>> that earlier for IoTS since we didn't had such operation bar to display for
>> IoT devices. But as far as we are listing both EMM and IoT devices, and
>> also have dynamic operations related to IoT devices, we can use same
>> operation-bar unit which we are using in device details page. However we
>> might need to have specific logic to select relevant operation bar for
>> specific device type as we are doing in device details page.
>>
>> On Tue, Mar 8, 2016 at 10:58 PM, Kasun Dananjaya Delgolla <
>> kas...@wso2.com> wrote:
>>
>>> HI All,
>>>
>>> $subject is in progress from EMM 2.0.1 branch to IOTs IoTS-1.0.0-M4
>>> branch. Reason is, IOTs jaggery app UI is still in the state where EMM was
>>> in its alpha. We need to carefully merge the changes to all the jaggery
>>> units + modules and pages to get all the latest bug fixes and feature
>>> additions of EMM.
>>>
>>> Currently, I was able to merge and test all the units related to user
>>> and role management, therefore committed them to the IoTS-1.0.0-M4 branch
>>> of CDMF core. I faced some issues while merging device view + listing views
>>> because of newly added pagination and operation module changes. Will
>>> carefully test all possible use cases and fix the issues encountered.
>>>
>>> I found out that operation bar has been removed from the device listing
>>> view of IOTs (operation bar which appears on select of a platform via
>>> search filter). Is there any specific reason for that?
>>>
>>> Thanks
>>>
>>> --
>>> Kasun Dananjaya Delgolla
>>>
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Tel:  +94 11 214 5345
>>> Fax: +94 11 2145300
>>> Mob: + 94 771 771 015
>>> Blog: http://kddcodingparadise.blogspot.com
>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>
>>
>>
>>
>> --
>> *Charitha Goonetilleke*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 751 3669 <%2B94777513669>
>> Twitter:@CharithaWs <https://twitter.com/CharithaWs>, fb: charithag
>> <https://www.facebook.com/charithag>, linkedin: charithag
>> <http://www.linkedin.com/in/charithag>
>>
>
>
>
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 2145300
> Mob: + 94 771 771 015
> Blog: http://kddcodingparadise.blogspot.com
> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
> <http://lk.linkedin.com/in/kasundananjaya>*
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM][Android] OTA firmware upgrade support

2016-03-30 Thread Kasun Dananjaya Delgolla
Hi Gayan,

Server get an ack when the process starts. But we can change status type at
any point. OTA logic is done in a way that the update package gets deleted
once the process is complete. So it's already handled. If the test passes
the download process and goes to the verify state, that means the logic
works well. After that point, upgrade will be handled by OS inbuilt upgrade
process.

Thanks
On Mar 30, 2016 11:36 PM, "Gayan Yalpathwala"  wrote:

> Hi Kasun,
>
> Following problems were encountered while completing the OTA upgrade
> process.
>
> 03-30 22:50:16.534 12103-12116/org.wso2.emm.system.service E/OTA_SM:
> Update package file retrieval error.java.io.IOException: open failed:
> EACCES (Permission denied)
> - This was due to using /cache/update.zip as the OTA package location.
> This location was changed to /mnt/sdcard/update.zip in order to read the
> file successfully.
> - Also added following read and write permissions for the system app.
>  android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
> 
>  android:name="android.permission.READ_EXTERNAL_STORAGE" />
>
> checkURL() method in OTAServerManager.java hangs while checking the
> existence of the URL.
> - This implementation is currently invalid since we have a static URL
> implementation, therefore the method was made to return true.
>
> Other than that, I have noticed that the server is ACKed even when the OTA
> upgrade fails on the device end.
> Is there a mechanism to clear the OTA package from the device's file
> location once installed? If not, this will lead to a memory overflow.
>
> Thanks,
>
>
>
>
>
> On Tue, Mar 29, 2016 at 9:11 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> Hi Gayan,
>>
>> Seems like OTA process downloads the firmware package. After this, did
>> you see logs when the system app tries to trigger the build?
>>
>> Thanks
>>
>> On Tue, Mar 29, 2016 at 7:38 PM, Gayan Yalpathwala 
>> wrote:
>>
>>> Hi Kasun et al,
>>>
>>> I have implemented this operation and tested on a rooted device with the
>>> system app in place.
>>>
>>> OTA Server
>>> =
>>> A file server which serves build.prop and the particular upgrade pack
>>> was used as the OTA server. These files need to be added under a
>>> sub-directory in the name of the device.
>>> Ex:-
>>> Device name: c1ktt
>>> Files: http://10.10.10.227:8000/c1ktt/build.prop and
>>> http://10.10.10.227:8000/c1ktt/c1ktt.ota.zip
>>>
>>> build.prop
>>> 
>>> Attached is a sample build.prop. Key field to be changed is as follows.
>>> ro.build.version.release=x.x.x (This version has to be greater than the
>>> previous version of the firmware for an upgrade to happen)
>>>
>>> Server side configurations
>>> 
>>> Following constants need to be changed accordingly
>>> in org/wso2/emm/system/service/utils/Constants.java. These configs which
>>> are related to the OTA server, will be moved out to an external config file.
>>>   public static final String DEFAULT_OTA_SERVER_ADDRESS =
>>> "10.10.10.227";
>>> public static final String DEFAULT_OTA_SERVER_PROTOCOL = "http";
>>> public static final int DEFAULT_OTA_SERVER_PORT = 8000;
>>>
>>> Logs from system app
>>> =
>>> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
>>> D/EMMSystemService: Entered onHandleIntent of the Command Runner Service.
>>> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
>>> D/EMMSystemService: EMM agent has sent a command.
>>> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
>>> D/EMMSystemService: The operation code is: UPGRADE_FIRMWARE
>>> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
>>> I/EMMSystemService: Will now executing the command ...UPGRADE_FIRMWARE
>>> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
>>> D/EMMSystemService: Do task triggered. Code = UPGRADE_FIRMWARE
>>> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
>>> I/EMMSystemService: An upgrade has been requested
>>> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/Toast:
>>>  checkMirrorLinkEnabled returns : false
>>> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/Toast:
>>> showing allowed
>>> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/OTA_SC:
>>> Loading configuration from file /data/system/ota.conf fo

Re: [Dev] [EMM][Android] OTA firmware upgrade support

2016-03-29 Thread Kasun Dananjaya Delgolla
Hi Gayan,

Seems like OTA process downloads the firmware package. After this, did you
see logs when the system app tries to trigger the build?

Thanks

On Tue, Mar 29, 2016 at 7:38 PM, Gayan Yalpathwala  wrote:

> Hi Kasun et al,
>
> I have implemented this operation and tested on a rooted device with the
> system app in place.
>
> OTA Server
> =
> A file server which serves build.prop and the particular upgrade pack was
> used as the OTA server. These files need to be added under a sub-directory
> in the name of the device.
> Ex:-
> Device name: c1ktt
> Files: http://10.10.10.227:8000/c1ktt/build.prop and
> http://10.10.10.227:8000/c1ktt/c1ktt.ota.zip
>
> build.prop
> 
> Attached is a sample build.prop. Key field to be changed is as follows.
> ro.build.version.release=x.x.x (This version has to be greater than the
> previous version of the firmware for an upgrade to happen)
>
> Server side configurations
> 
> Following constants need to be changed accordingly
> in org/wso2/emm/system/service/utils/Constants.java. These configs which
> are related to the OTA server, will be moved out to an external config file.
>   public static final String DEFAULT_OTA_SERVER_ADDRESS = "10.10.10.227";
> public static final String DEFAULT_OTA_SERVER_PROTOCOL = "http";
> public static final int DEFAULT_OTA_SERVER_PORT = 8000;
>
> Logs from system app
> =
> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
> D/EMMSystemService: Entered onHandleIntent of the Command Runner Service.
> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
> D/EMMSystemService: EMM agent has sent a command.
> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
> D/EMMSystemService: The operation code is: UPGRADE_FIRMWARE
> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
> I/EMMSystemService: Will now executing the command ...UPGRADE_FIRMWARE
> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
> D/EMMSystemService: Do task triggered. Code = UPGRADE_FIRMWARE
> 03-29 18:46:40.114 23424-17321/org.wso2.emm.system.service
> I/EMMSystemService: An upgrade has been requested
> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/Toast:
>  checkMirrorLinkEnabled returns : false
> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/Toast:
> showing allowed
> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/OTA_SC:
> Loading configuration from file /data/system/ota.conf for product c1ktt
> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service E/OTA_SC: Build
> property file does not meet required
> specification.java.io.FileNotFoundException: /data/system/ota.conf: open
> failed: ENOENT (No such file or directory)
> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service I/OTA_SC:
> Loading default configuration for product c1ktt.
> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/OTA_SC:
> create a new server config: package url
> http://10.10.10.227:8000/c1ktt/c1ktt.ota.zip:8000
> 03-29 18:46:40.119 23424-17321/org.wso2.emm.system.service D/OTA_SC:
> build.prop URL:http://10.10.10.227:8000/c1ktt/build.prop
> 03-29 18:46:40.214 23424-17321/org.wso2.emm.system.service D/OTA_SM: Start
> download: http://10.10.10.227:8000/c1ktt/build.prop to buffer
> 03-29 18:46:40.214 23424-17321/org.wso2.emm.system.service D/OTA_SM: wrote
> 1024 into byte output stream
> 03-29 18:46:40.214 23424-17321/org.wso2.emm.system.service D/OTA_SM: wrote
> 1024 into byte output stream
> 03-29 18:46:40.214 23424-17321/org.wso2.emm.system.service D/OTA_SM: wrote
> 1024 into byte output stream
> 03-29 18:46:40.219 23424-17321/org.wso2.emm.system.service D/OTA_SM: wrote
> 166 into byte output stream
> 03-29 18:46:40.219 23424-17321/org.wso2.emm.system.service D/OTA_SM:
> Download finished: 3238 bytes downloaded
> 03-29 18:46:40.219 23424-17321/org.wso2.emm.system.service D/OTA_BPP:
> tmpDir:/data/data/org.wso2.emm.system.service/files
>
> Thanks,
>
>
>
>
> On Wed, Feb 10, 2016 at 7:22 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> Hi,
>>
>> I have implemented the android layer implementation of the above
>> functionality. How it works is, when the admin sends the upgrade command
>> from the UI/REST API, android agent app talks to the system service
>> (implemented as a separate component, since these features require system
>> level/root access). Then, the system service will invoke the firmware
>> upgrade following the below steps.
>>
>> 1. System app will first downloads the OTA upgrade package's
>> configuration file "ota.conf" from the OTA server (server URL and ports
>> have to be confi

Re: [Dev] Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-25 Thread Kasun Dananjaya Delgolla
Hi Sameera,

I had a look at the proposal and it looks OK. I made some comments to some
places where you had writing mistakes. It's better if you can format it in
a better manner.

Also it's better if you can tell a bit about how you trigger the location
boundaries (ex: implementing GEO fencing etc).

Thanks

On Fri, Mar 25, 2016 at 8:28 AM, Kasun Dananjaya Delgolla 
wrote:

> Hi Sameera,
>
> Will have a look and comment by tonight.
>
> Thanks
> On Mar 25, 2016 1:04 AM, "Sameera Wickramasekara" 
> wrote:
>
>> Hi All
>>
>> This is a Draft proposal
>>
>> https://docs.google.com/document/d/1GC_NtI5bEFcIRqP7KGSjdMT0P3rYNXflw81AkHyjogs/edit
>>
>> please comment on the things i should improve
>> i hope to submit it before the deadline
>>
>> Thank you
>>
>> On Thu, Mar 24, 2016 at 10:27 PM, Sameera Wickramasekara <
>> itssamw...@gmail.com> wrote:
>>
>>> Hi Kasun,
>>>
>>> As i was reading the documentation i understood the following approach
>>> to the problem, can you please comment if im right or wrong
>>>
>>> 1. the EMM monitors the devices for policy violations between given time
>>> intervals.
>>> 2.we can use this functionality to receive the location data of each
>>> device(OR use the rest api to request the location, ?? )
>>> 3.then we can enforce the location based policies if the device belongs
>>> to the  area of interest.
>>>
>>> Thank you
>>> Sameera Wickramasekara
>>>
>>> On Thu, Mar 24, 2016 at 8:39 AM, Kasun Dananjaya Delgolla <
>>> kas...@wso2.com> wrote:
>>>
>>>> Hi Sameera,
>>>>
>>>> Please find the documentation link[1] for policy management. You can
>>>> carefully study the current behavior of the policy management feature and
>>>> think of a unique way of solving the problem "Enforcing policies based on
>>>> users location and a given time frame". Take all the points that I've
>>>> described in my first mail and start building your proposal. Good luck!
>>>>
>>>> [1] - https://docs.wso2.com/display/EMM210/Managing+Policies
>>>>
>>>> On Wed, Mar 23, 2016 at 10:37 PM, Sameera Wickramasekara <
>>>> itssamw...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have successfully built the WSO2 EMM from source. i have understood
>>>>> that the deliverables are time and location based policy enforcement. how
>>>>> should i start to implement a custom policy/ change a policy  in the EMM ?
>>>>> can you point me to a tutorial of some sort.
>>>>> And i hope i will be able to complete my proposal before the deadline
>>>>> with your guidence
>>>>>
>>>>> Thank you
>>>>> Sameera Wickramasekara
>>>>>
>>>>>
>>>>> On Mon, Mar 14, 2016 at 2:10 PM, Kasun Dananjaya Delgolla <
>>>>> kas...@wso2.com> wrote:
>>>>>
>>>>>> Hi Sameera,
>>>>>>
>>>>>> Thank you for your interest in this project.
>>>>>>
>>>>>>
>>>>>> In order to get a better picture of the project make sure to build
>>>>>> WSO2 EMM[1] including CDMF framework[2] using the git repositories 
>>>>>> listed.
>>>>>>
>>>>>> Enroll a device and a publish a sample policy against the device and
>>>>>> study the current behavior of the policy.
>>>>>> You are expected to change the behavior a mentioned below.
>>>>>>
>>>>>> Given policy must be activated automatically when the device enters
>>>>>> a predefined area.
>>>>>> Given policy must be deactivated when a device leaves a predefined
>>>>>> area.
>>>>>> Given policy must be activated automatically in the given time frame.
>>>>>> Stats of the current policy, whether its active or inactive need to
>>>>>> be visible in the dashboard.
>>>>>> Policy compliance monitoring to the given device must be activated
>>>>>> when a policy is activated.
>>>>>>
>>>>>> Project deliverable "Extension point for current EMM policy module
>>>>>> with location and time based policy publishing capability" includes
>>>>>> followings,
>>>>>>

Re: [Dev] Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-24 Thread Kasun Dananjaya Delgolla
Hi Sameera,

Will have a look and comment by tonight.

Thanks
On Mar 25, 2016 1:04 AM, "Sameera Wickramasekara" 
wrote:

> Hi All
>
> This is a Draft proposal
>
> https://docs.google.com/document/d/1GC_NtI5bEFcIRqP7KGSjdMT0P3rYNXflw81AkHyjogs/edit
>
> please comment on the things i should improve
> i hope to submit it before the deadline
>
> Thank you
>
> On Thu, Mar 24, 2016 at 10:27 PM, Sameera Wickramasekara <
> itssamw...@gmail.com> wrote:
>
>> Hi Kasun,
>>
>> As i was reading the documentation i understood the following approach to
>> the problem, can you please comment if im right or wrong
>>
>> 1. the EMM monitors the devices for policy violations between given time
>> intervals.
>> 2.we can use this functionality to receive the location data of each
>> device(OR use the rest api to request the location, ?? )
>> 3.then we can enforce the location based policies if the device belongs
>> to the  area of interest.
>>
>> Thank you
>> Sameera Wickramasekara
>>
>> On Thu, Mar 24, 2016 at 8:39 AM, Kasun Dananjaya Delgolla <
>> kas...@wso2.com> wrote:
>>
>>> Hi Sameera,
>>>
>>> Please find the documentation link[1] for policy management. You can
>>> carefully study the current behavior of the policy management feature and
>>> think of a unique way of solving the problem "Enforcing policies based on
>>> users location and a given time frame". Take all the points that I've
>>> described in my first mail and start building your proposal. Good luck!
>>>
>>> [1] - https://docs.wso2.com/display/EMM210/Managing+Policies
>>>
>>> On Wed, Mar 23, 2016 at 10:37 PM, Sameera Wickramasekara <
>>> itssamw...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have successfully built the WSO2 EMM from source. i have understood
>>>> that the deliverables are time and location based policy enforcement. how
>>>> should i start to implement a custom policy/ change a policy  in the EMM ?
>>>> can you point me to a tutorial of some sort.
>>>> And i hope i will be able to complete my proposal before the deadline
>>>> with your guidence
>>>>
>>>> Thank you
>>>> Sameera Wickramasekara
>>>>
>>>>
>>>> On Mon, Mar 14, 2016 at 2:10 PM, Kasun Dananjaya Delgolla <
>>>> kas...@wso2.com> wrote:
>>>>
>>>>> Hi Sameera,
>>>>>
>>>>> Thank you for your interest in this project.
>>>>>
>>>>>
>>>>> In order to get a better picture of the project make sure to build
>>>>> WSO2 EMM[1] including CDMF framework[2] using the git repositories listed.
>>>>>
>>>>> Enroll a device and a publish a sample policy against the device and
>>>>> study the current behavior of the policy.
>>>>> You are expected to change the behavior a mentioned below.
>>>>>
>>>>> Given policy must be activated automatically when the device enters a
>>>>> predefined area.
>>>>> Given policy must be deactivated when a device leaves a predefined
>>>>> area.
>>>>> Given policy must be activated automatically in the given time frame.
>>>>> Stats of the current policy, whether its active or inactive need to
>>>>> be visible in the dashboard.
>>>>> Policy compliance monitoring to the given device must be activated
>>>>> when a policy is activated.
>>>>>
>>>>> Project deliverable "Extension point for current EMM policy module
>>>>> with location and time based policy publishing capability" includes
>>>>> followings,
>>>>>
>>>>>- Location based policy enforcement component.
>>>>>- A component which enables the location base policy monitoring
>>>>>   and enforcement including statics.This need to be a extension
>>>>>   to thee component which enabled device policies currently
>>>>>- Time based location component.
>>>>>- A component which enables the time base policy monitoring and
>>>>>   enforcement including statics.This need to be a extension to
>>>>>   thee component which enabled device policies currently
>>>>>- Location and time based policy configuration UI.
>>>>>- This is to enable users to configure and maintain 

Re: [Dev] Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-23 Thread Kasun Dananjaya Delgolla
Hi Sameera,

Please find the documentation link[1] for policy management. You can
carefully study the current behavior of the policy management feature and
think of a unique way of solving the problem "Enforcing policies based on
users location and a given time frame". Take all the points that I've
described in my first mail and start building your proposal. Good luck!

[1] - https://docs.wso2.com/display/EMM210/Managing+Policies

On Wed, Mar 23, 2016 at 10:37 PM, Sameera Wickramasekara <
itssamw...@gmail.com> wrote:

> Hi,
>
> I have successfully built the WSO2 EMM from source. i have understood that
> the deliverables are time and location based policy enforcement. how should
> i start to implement a custom policy/ change a policy  in the EMM ? can you
> point me to a tutorial of some sort.
> And i hope i will be able to complete my proposal before the deadline with
> your guidence
>
> Thank you
> Sameera Wickramasekara
>
>
> On Mon, Mar 14, 2016 at 2:10 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> Hi Sameera,
>>
>> Thank you for your interest in this project.
>>
>>
>> In order to get a better picture of the project make sure to build WSO2
>> EMM[1] including CDMF framework[2] using the git repositories listed.
>>
>> Enroll a device and a publish a sample policy against the device and
>> study the current behavior of the policy.
>> You are expected to change the behavior a mentioned below.
>>
>> Given policy must be activated automatically when the device enters a
>> predefined area.
>> Given policy must be deactivated when a device leaves a predefined area.
>> Given policy must be activated automatically in the given time frame.
>> Stats of the current policy, whether its active or inactive need to be
>> visible in the dashboard.
>> Policy compliance monitoring to the given device must be activated when
>> a policy is activated.
>>
>> Project deliverable "Extension point for current EMM policy module with
>> location and time based policy publishing capability" includes
>> followings,
>>
>>- Location based policy enforcement component.
>>- A component which enables the location base policy monitoring and
>>   enforcement including statics.This need to be a extension to thee
>>   component which enabled device policies currently
>>- Time based location component.
>>- A component which enables the time base policy monitoring and
>>   enforcement including statics.This need to be a extension to thee
>>   component which enabled device policies currently
>>- Location and time based policy configuration UI.
>>- This is to enable users to configure and maintain the locations and
>>   time frames.The UI must have the ability to monitor the policies which
>>   is active in the device and compliance status.Above features must
>>   follow the current pattern used for policy monitoring and Policy 
>> Management
>>   in WSO2 EMM.
>>
>>
>> While working with WSO2 EMM, if you found any bugs or improvements feel
>> free to let us know by using the oxygen tank[3].
>>
>> [1] https://github.com/wso2/carbon-device-mgt
>> [2] https://github.com/wso2/product-mdm
>> [3] https://wso2.org/jira/secure/Dashboard.jspa
>>
>> Thank you
>>
>> On Mon, Mar 14, 2016 at 1:36 PM, Sameera Wickramasekara <
>> itssamw...@gmail.com> wrote:
>>
>>>
>>>
>>> Hi ,
>>> Im Sameera Wickramasekara, a 3rd year Undergraduate from University of
>>> Moratuwa Faculty of information Technology. Im interested in the Location
>>> and Time-based Device policy Endorsement Project. I have good experience in
>>> Java and Android development. and Im confident i would be able to complete
>>> this project with your guidance.please let me know how to proceed from here.
>>>
>>> thank you
>>>
>>>
>>
>>
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> <http://lk.linkedin.com/in/kasundananjaya>*
>>
>
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016: WSO2 Project Proposal 27

2016-03-15 Thread Kasun Dananjaya Delgolla
Hi Janakshi,

Thank you for your interest in this project. CDMF is a framework that is
used for device management and one of the requirement is for the user to
monitor the device status. There are two ways to check the status of
a device,

1) Send a device health check ping to the device and then depict the status.

2) Get the device to server communication data and then co-relate with past
communication to find the status of the device.

In here we are focusing with a generalized solution that incorporates the
idea from the second approach. In the first approach we are limiting the
capability by asking the device manufacture to incorporate the capability.

You can find the source code for CDMF in

https://github.com/wso2/carbon-device-mgt

You can find the source code for device type implementation such as
android, windows and few IoT device samples in :
https://github.com/wso2/carbon-device-mgt-plugins

We have two products that are built on CDMF

1) EMM -
https://docs.wso2.com/display/EMM200/WSO2+Enterprise+Mobility+Manager

https://github.com/wso2/product-mdm - You can find the official release EMM
2.0.0 in the product listing page

2) IoT Server - https://docs.wso2.com/display/IoTS100/About+IoT+Server

https://github.com/wso2-incubator/product-iot-server - This is still under
development.

Please go through the documentation and try to build EMM to understand the
behavior of the product.

Thanks
On Mar 15, 2016 6:27 PM, "Janakshi Dulanga"  wrote:

> Hello,
> I'm a 2nd year undergraduate pursuing Software Engineering degree at APIIT
> Sri Lanka. I'm interested in your project proposal 27, for GSOC 2016 ([CDMF]
> Calculate Device Health Status using Analytics and API Calls).
>  I do not have any prior experience  but am deeply interested in IOT, and
> this project being a huge opportunity for learning the things that interest
> me, I would like to work on this project.I have experience with java
> programming, which is required for this project as a skill. And I will
> require some time to get acquainted with the technologies that are being
> used in this project. I would like to request guidance for getting
> acquainted with this project.
>
> Thank you!
>
>  Regards,
> Janakshi.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding the Location and Time-based Device Policy Enforcement Project for Gsoc2016

2016-03-14 Thread Kasun Dananjaya Delgolla
Hi Sameera,

Thank you for your interest in this project.


In order to get a better picture of the project make sure to build WSO2
EMM[1] including CDMF framework[2] using the git repositories listed.

Enroll a device and a publish a sample policy against the device and study
the current behavior of the policy.
You are expected to change the behavior a mentioned below.

Given policy must be activated automatically when the device enters a
predefined area.
Given policy must be deactivated when a device leaves a predefined area.
Given policy must be activated automatically in the given time frame.
Stats of the current policy, whether its active or inactive need to be
visible in the dashboard.
Policy compliance monitoring to the given device must be activated when a
policy is activated.

Project deliverable "Extension point for current EMM policy module with
location and time based policy publishing capability" includes followings,

   - Location based policy enforcement component.
   - A component which enables the location base policy monitoring and
  enforcement including statics.This need to be a extension to thee
  component which enabled device policies currently
   - Time based location component.
   - A component which enables the time base policy monitoring and
  enforcement including statics.This need to be a extension to thee
  component which enabled device policies currently
   - Location and time based policy configuration UI.
   - This is to enable users to configure and maintain the locations and
  time frames.The UI must have the ability to monitor the policies which
  is active in the device and compliance status.Above features must
  follow the current pattern used for policy monitoring and Policy
Management
  in WSO2 EMM.


While working with WSO2 EMM, if you found any bugs or improvements feel
free to let us know by using the oxygen tank[3].

[1] https://github.com/wso2/carbon-device-mgt
[2] https://github.com/wso2/product-mdm
[3] https://wso2.org/jira/secure/Dashboard.jspa

Thank you

On Mon, Mar 14, 2016 at 1:36 PM, Sameera Wickramasekara <
itssamw...@gmail.com> wrote:

>
>
> Hi ,
> Im Sameera Wickramasekara, a 3rd year Undergraduate from University of
> Moratuwa Faculty of information Technology. Im interested in the Location
> and Time-based Device policy Endorsement Project. I have good experience in
> Java and Android development. and Im confident i would be able to complete
> this project with your guidance.please let me know how to proceed from here.
>
> thank you
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CDMF][IOTs] Merging UI changes

2016-03-10 Thread Kasun Dananjaya Delgolla
Hi All,

I have merged and committed policy listing, policy priority views and all
the units under
carbon-devicemgt-plugin/device-mgt-mdm/org.wso2.carbon.device.mgt.mobile.ui.
Now the remaining units are device listing + view and policy wizard.

Thank you

On Wed, Mar 9, 2016 at 12:26 PM, Charitha Goonetilleke 
wrote:

> Hi Kasun,
>
> Actually we can have operations bar for device listing view. I removed
> that earlier for IoTS since we didn't had such operation bar to display for
> IoT devices. But as far as we are listing both EMM and IoT devices, and
> also have dynamic operations related to IoT devices, we can use same
> operation-bar unit which we are using in device details page. However we
> might need to have specific logic to select relevant operation bar for
> specific device type as we are doing in device details page.
>
> On Tue, Mar 8, 2016 at 10:58 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> HI All,
>>
>> $subject is in progress from EMM 2.0.1 branch to IOTs IoTS-1.0.0-M4
>> branch. Reason is, IOTs jaggery app UI is still in the state where EMM was
>> in its alpha. We need to carefully merge the changes to all the jaggery
>> units + modules and pages to get all the latest bug fixes and feature
>> additions of EMM.
>>
>> Currently, I was able to merge and test all the units related to user and
>> role management, therefore committed them to the IoTS-1.0.0-M4 branch of
>> CDMF core. I faced some issues while merging device view + listing views
>> because of newly added pagination and operation module changes. Will
>> carefully test all possible use cases and fix the issues encountered.
>>
>> I found out that operation bar has been removed from the device listing
>> view of IOTs (operation bar which appears on select of a platform via
>> search filter). Is there any specific reason for that?
>>
>> Thanks
>>
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> <http://lk.linkedin.com/in/kasundananjaya>*
>>
>
>
>
> --
> *Charitha Goonetilleke*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 751 3669 <%2B94777513669>
> Twitter:@CharithaWs <https://twitter.com/CharithaWs>, fb: charithag
> <https://www.facebook.com/charithag>, linkedin: charithag
> <http://www.linkedin.com/in/charithag>
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CDMF][IOTs] Merging UI changes

2016-03-08 Thread Kasun Dananjaya Delgolla
HI All,

$subject is in progress from EMM 2.0.1 branch to IOTs IoTS-1.0.0-M4 branch.
Reason is, IOTs jaggery app UI is still in the state where EMM was in its
alpha. We need to carefully merge the changes to all the jaggery units +
modules and pages to get all the latest bug fixes and feature additions of
EMM.

Currently, I was able to merge and test all the units related to user and
role management, therefore committed them to the IoTS-1.0.0-M4 branch of
CDMF core. I faced some issues while merging device view + listing views
because of newly added pagination and operation module changes. Will
carefully test all possible use cases and fix the issues encountered.

I found out that operation bar has been removed from the device listing
view of IOTs (operation bar which appears on select of a platform via
search filter). Is there any specific reason for that?

Thanks

-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WS02 [CDMF] Calculate Device Health Status using Analytics and API Calls GSOC Project

2016-03-05 Thread Kasun Dananjaya Delgolla
Hi Ulrich,

Thank you for your interest in this project. CDMF is a framework that is
used for device management and one of the requirement is for the user to
monitor the device status. There are two ways to check the status of a
device,

1) Send a device health check ping to the device and then depict the status.
2) Get the device to server communication data and then co-relate with past
communication to find the status of the device.

In here we are focusing with a generalized solution that incorporates the
idea from the second approach. In the first approach we are limiting the
capability by asking the device manufacture to incorporate the capability.

You can find the source code for CDMF in
https://github.com/wso2/carbon-device-mgt

You can find the source code for device type implementation such as
android, windows and few IoT device samples in :
https://github.com/wso2/carbon-device-mgt-plugins

We have two products that are built on CDMF
1) EMM -
https://docs.wso2.com/display/EMM200/WSO2+Enterprise+Mobility+Manager
https://github.com/wso2/product-mdm - You can find the official release EMM
2.0.0 in the product listing page

2) IoT Server - https://docs.wso2.com/display/IoTS100/About+IoT+Server
https://github.com/wso2-incubator/product-iot-server - This is still under
development.

Please go through the documentation and try to build EMM to understand the
behavior of the product.

Thanks

On Fri, Mar 4, 2016 at 12:18 PM, tchuenkam ulrich 
wrote:

> Hi Developer,
>
> While looking for a GSOC project to keep myself busy during the upcoming
> GSOC, i felt on *WS02 [CDMF] Calculate Device Health Status using
> Analytics and API Calls GSOC* Project which i find very interesting and
> will like to work on that.
>
> I am Tchuenkam Ulrich, a 4th year Software Engineering Student from
> Cameroon.
>
> I found your email address mentioned under the list of potential mentors
> for this project on the project idea page
>
>
> https://docs.wso2.com/display/GSoC/Project+Proposals+for+2016#ProjectProposalsfor2016-Proposal27:[CDMF]CalculateDeviceHealthStatususingAnalyticsandAPICalls
> <https://docs.wso2.com/display/GSoC/Project+Proposals+for+2016#ProjectProposalsfor2016-Proposal24:[CDMF][EMM]DevicePolicyMerging>
>
> I contact you so that you can give me directives on what I can be doing
> while preparing my proposals should in case they are some issues that I
> could be solving while preparing.
>
> Thanks.
>
> --
> ulrich tchuenkam
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Enterprise Mobility Manager 2.0.0 RC5

2016-01-08 Thread Kasun Dananjaya Delgolla
)
>>>   - Policy Removed (Single / Bulk)
>>>- Role Management
>>>   - Role Added
>>>   - Role Edited
>>>   - Role Permission Edited
>>>   - Role Removed
>>>- Platform Configuration
>>>   - General Configuration
>>>   - Android Configuration
>>>
>>> *Tested with a new tenant user*
>>>
>>>- User Management
>>>   - User Added
>>>   - User Edited
>>>   - User Removed
>>>- Device Management
>>>   - Device Enrolled (Android)
>>>   - Device Operations (Android)
>>>  - Ring
>>>  - Message
>>>  - Mute
>>>   - Policy Management
>>>   - Policy Added
>>>   - Policy Edited
>>>   - Policy Removed
>>>   - Policy Unpublished
>>>   - Policy Published
>>>   - Policy Removed
>>>- Role Management
>>>   - Role Added
>>>   - Role Edited
>>>   - Role Permission Changed
>>>   - Role Removed
>>>
>>> No issues found.
>>>
>>> *My vote: [x] - Stable - Go ahead and release*
>>>
>>>
>>> On Fri, Jan 8, 2016 at 6:33 PM, Geeth Munasinghe  wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> This is the fifth release candidate of WSO2 Enterprise Mobility Manager
>>>> 2.0.0.
>>>>
>>>> This release fixes the following issues:
>>>> https://wso2.org/jira/issues/?filter=12592
>>>>
>>>> Please download, test and vote.
>>>>
>>>> Source & binary distribution files:
>>>> https://github.com/wso2/product-mdm/releases/tag/v2.0.0-RC5
>>>>
>>>> The tag to be voted upon:
>>>> https://github.com/wso2/product-mdm/tree/v2.0.0-RC5
>>>>
>>>> Known issues
>>>> https://wso2.org/jira/issues/?filter=12593
>>>>
>>>>
>>>> [ ]  Stable - go ahead and release
>>>> [ ]  Broken - do not release (explain why)
>>>>
>>>>
>>>> Thanks and Regards,
>>>> EMM/IoTS Team
>>>>
>>>>
>>>>
>>>> *G. K. S. Munasinghe*
>>>> *Senior Software Engineer,*
>>>> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
>>>> *lean.enterprise.middleware.*
>>>>
>>>> email: ge...@wso2.com
>>>> phone:(+94) 777911226
>>>>
>>>
>>>
>>>
>>> --
>>> *Pasindu Upulwan Jayaweera*
>>> Software Engineering Intern
>>> Mobile: +94 718187375
>>>
>>> Blog : pasindudesk.blogspot.com
>>> WSO2 Inc: http://wso2.com/
>>>
>>>
>>
>>
>> --
>> *Milan Perera *| Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>> Email: mi...@wso2.com  | Web: www.wso2.com
>> <http://lk.linkedin.com/in/milanharinduperera>
>>
>
>
>
> --
> *Milan Perera *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
> Email: mi...@wso2.com  | Web: www.wso2.com
> <http://lk.linkedin.com/in/milanharinduperera>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MDM][AppManager] APP Publisher and store login issue

2015-12-14 Thread Kasun Dananjaya Delgolla
Hi Shavindri,

It comes with the pack by default. So no special configurations needed. But
when clustering or in case of a host name change, there are some changes. I
will update you on that as fast as possible.

Thanks
On Dec 15, 2015 8:06 AM, "Shavindri Dissanayake"  wrote:

> Hi Kasun and Manoj,
>
> Does a user have to configure the sso-idp-config.xm file as shown by
> Kasun to resolve this or does this come by default in the pack?
> If the configurations are required we will have to include it in docs too
> [1], please confirm.
>
> [1]
> https://docs.wso2.com/display/EMM200/General+Server+Configurations#GeneralServerConfigurations-WSO2AppManagerconfigurationstomangeapplicationsinWSO2EMM
> [2] Mail subject: [EMM][DOCS] Using App Manager with EMM
>
> Thanks & Regards
> Shavindri Dissanayake
> Technical Writer
>
> WSO2 Inc.
> lean.enterprise.middleware
>
> On Wed, Dec 9, 2015 at 11:35 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> Hi Manoj,
>>
>> We got the issue resolved by correcting the SSO IDP config issues.
>> sso-idp-config.xml configuration "AssertionConsumerServiceURLs" entries
>> should be as follows,
>>
>> 
>>  https://l
>> <https://www.google.com/url?q=https%3A%2F%2F10.10.10.167&sa=D&sntz=1&usg=AFQjCNHOJ0zhXxFAI8zrxkvhh8bmakRiJg>
>> ocalhost:9443/store/acs
>>  
>>  https://
>> <https://www.google.com/url?q=https%3A%2F%2F10.10.10.167%3A9443%2Fstore%2Facs&sa=D&sntz=1&usg=AFQjCNF32UY5fZTwAgtotqbrL1-kW8mzlw>
>> l
>> <https://www.google.com/url?q=https%3A%2F%2F10.10.10.167&sa=D&sntz=1&usg=AFQjCNHOJ0zhXxFAI8zrxkvhh8bmakRiJg>
>> ocalhost:9443/store/acs
>>
>> Attached the complete config file for your reference.
>>
>> Thanks
>>
>> On Thu, Dec 10, 2015 at 11:36 AM, Manoj Gunawardena 
>> wrote:
>>
>>> Hi All,
>>>
>>> APP Manager store and publisher login fails with following error.
>>>
>>> ERROR
>>> {org.wso2.carbon.identity.sso.saml.processors.SPInitSSOAuthnRequestProcessor}
>>> -  ALERT: Invalid Assertion Consumer URL value '
>>> https://localhost:9443/publisher/acs' in the AuthnRequest message from
>>> the issuer 'publisher'. Possibly an attempt for a spoofing attack
>>>
>>> Attached the sso-idp-config.xml file.
>>>
>>> The 5.0.3 is the  identity version we are checking.
>>>
>>>
>>> --
>>> Manoj Gunawardena
>>> Tech Lead
>>> WSO2, Inc.: http://wso2.com
>>> lean.enterprise.middleware
>>> Mobile : +94 77 2291643
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> <http://lk.linkedin.com/in/kasundananjaya>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to download wso2 agent for android device

2015-12-12 Thread Kasun Dananjaya Delgolla
Hi Shashika,

This is because you have given https your for generalConfig->host entry in
config.json in emm-web-agent. It should be HTTP. Android doesn't allow
HTTPS unless server has a trusted CA installed. Please change the config to
HTTP and re-check.

@Shavindri - This needs to be changed in the documentation as well. (Also
mention in prod mode, change this to HTTPS)

Thanks

On Sat, Dec 12, 2015 at 5:12 PM, Sashika Wijesinghe 
wrote:

> Hi,
>
> I was unable to download wso2 agent for android device due to agent
> download failure. In the download link it appears as 'unknown' (image
> attached).
>
> Before starting the server I have configured below files with domain ip
> address. (Configuration files attached )
> May I know whether I missed any mandatory configurations?
>
>- cdm-config.xml
>- carbon.xml
>- config.json file at
>'/repository/deployment/server/jaggeryapps/emm/config' location
>- config.json file at
>'/repository/deployment/server/jaggeryapps/emm-web-agent/config'
>location
>
> Any help is highly appreciated.
>
> Thanks & Regards,
> --
>
> *Sashika WijesingheSoftware Engineer - QA Team*
> Mobile : +94 (0) 774537487
> sash...@wso2.com
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AppManager] Getting an exception when logging into the app store

2015-12-10 Thread Kasun Dananjaya Delgolla
ava:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
Caused by: org.jaggeryjs.scriptengine.exceptions.ScriptException: Session
Object has been reserved and cannot be instantiated by a script.
at
org.jaggeryjs.scriptengine.util.HostObjectUtil.getReservedHostObjectWarn(HostObjectUtil.java:66)
at
org.jaggeryjs.hostobjects.web.SessionHostObject.jsConstructor(SessionHostObject.java:36)
at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
... 68 more


Thanks

-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MDM][AppManager] APP Publisher and store login issue

2015-12-09 Thread Kasun Dananjaya Delgolla
Hi Manoj,

We got the issue resolved by correcting the SSO IDP config issues.
sso-idp-config.xml configuration "AssertionConsumerServiceURLs" entries
should be as follows,


 https://l
<https://www.google.com/url?q=https%3A%2F%2F10.10.10.167&sa=D&sntz=1&usg=AFQjCNHOJ0zhXxFAI8zrxkvhh8bmakRiJg>
ocalhost:9443/store/acs
 
 https://
<https://www.google.com/url?q=https%3A%2F%2F10.10.10.167%3A9443%2Fstore%2Facs&sa=D&sntz=1&usg=AFQjCNF32UY5fZTwAgtotqbrL1-kW8mzlw>
l
<https://www.google.com/url?q=https%3A%2F%2F10.10.10.167&sa=D&sntz=1&usg=AFQjCNHOJ0zhXxFAI8zrxkvhh8bmakRiJg>
ocalhost:9443/store/acs

Attached the complete config file for your reference.

Thanks

On Thu, Dec 10, 2015 at 11:36 AM, Manoj Gunawardena  wrote:

> Hi All,
>
> APP Manager store and publisher login fails with following error.
>
> ERROR
> {org.wso2.carbon.identity.sso.saml.processors.SPInitSSOAuthnRequestProcessor}
> -  ALERT: Invalid Assertion Consumer URL value '
> https://localhost:9443/publisher/acs' in the AuthnRequest message from
> the issuer 'publisher'. Possibly an attempt for a spoofing attack
>
> Attached the sso-idp-config.xml file.
>
> The 5.0.3 is the  identity version we are checking.
>
>
> --
> Manoj Gunawardena
> Tech Lead
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
> Mobile : +94 77 2291643
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*


https://stratos-local.wso2.com/carbon/tenant-register/select_domain.jsp


cdm
https://localhost:9443/cdm/acs
true
true
false
false

http://wso2.org/claims/role
http://wso2.org/claims/emailaddress

false

true

carbonServer




mdm
	
 		https://localhost:9443/emm/sso/acs
   	
https://localhost:9443/emm/sso/acs
true
true
false
false

http://wso2.org/claims/role
http://wso2.org/claims/emailaddress

false

true

carbonServer




store
	
 		https://localhost:9443/store/acs
   	
https://localhost:9443/store/acs
true
/store/login.jag


social
	
 		https://localhost:9443/social/acs
   	
https://localhost:9443/social/acs
true
/social/login


publisher
	
 		https://localhost:9443/publisher/acs
   	
https://localhost:9443/publisher/acs
true
/publisher/controllers/login.jag



___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] UserStoreManager get Roles of a User Store

2015-12-03 Thread Kasun Dananjaya Delgolla
Thanks a lot :)

On Thu, Dec 3, 2015 at 4:49 PM, Isura Karunaratne  wrote:

> You can find an implementation from [1]
>
>
> [1]
> https://github.com/IsuraD/carbon-identity/blob/master/components/entitlement/org.wso2.carbon.identity.entitlement/src/main/java/org/wso2/carbon/identity/entitlement/pap/CarbonEntitlementDataFinder.java
>
> On Thu, Dec 3, 2015 at 4:35 PM, Kasun Dananjaya Delgolla 
> wrote:
>
>> Hi Isura,
>>
>> We found multiple implementations for this class. Which one should we
>> use?
>>
>> Thanks
>>
>> On Thu, Dec 3, 2015 at 3:16 PM, Kasun Dananjaya Delgolla > > wrote:
>>
>>> Hi Isura,
>>>
>>> Thanks a lot. We will try with that.
>>>
>>> Thanks
>>>
>>> On Thu, Dec 3, 2015 at 2:25 PM, Isura Karunaratne 
>>> wrote:
>>>
>>>> Hi Kasun,
>>>>
>>>> You can use following method in AbstractUserStoreManager to get the
>>>> filtered role names.
>>>>
>>>> public final String[] getRoleNames(String filter, int maxItemLimit, 
>>>> boolean noInternalRoles,
>>>>boolean noSystemRole, boolean 
>>>> noSharedRoles){
>>>>
>>>> }
>>>>
>>>>
>>>> Thanks
>>>>
>>>> Isura
>>>>
>>>>
>>>> On Thu, Dec 3, 2015 at 2:09 PM, Kasun Dananjaya Delgolla <
>>>> kas...@wso2.com> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> We have user creation module in our EMM front end jaggery app. There,
>>>>> we have a field which lists available user stores + another field which
>>>>> lists roles. When a particular user store is selected, we want the roles 
>>>>> of
>>>>> that user store listed on the role selector.
>>>>>
>>>>> The problem is, we don't have an API in the UserStoreManager to get
>>>>> the roles of a particular user store. Current API we use is,
>>>>> "getRoleNames()" which returns all the roles regardless of user stores.
>>>>> This results in failing the user creation when selected the wrong user
>>>>> store.
>>>>>
>>>>> Also, when editing the user, we have the same issue when using the
>>>>> "getRoleListOfUser(username)" API. Is there any workaround or a fix done
>>>>> for this?
>>>>>
>>>>> Thanks
>>>>> --
>>>>> Kasun Dananjaya Delgolla
>>>>>
>>>>> Software Engineer
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>> Tel:  +94 11 214 5345
>>>>> Fax: +94 11 2145300
>>>>> Mob: + 94 771 771 015
>>>>> Blog: http://kddcodingparadise.blogspot.com
>>>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Isura Dilhara Karunaratne
>>>> Senior Software Engineer
>>>>
>>>> Mob +94 772 254 810
>>>>
>>>>
>>>
>>>
>>> --
>>> Kasun Dananjaya Delgolla
>>>
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Tel:  +94 11 214 5345
>>> Fax: +94 11 2145300
>>> Mob: + 94 771 771 015
>>> Blog: http://kddcodingparadise.blogspot.com
>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>
>>
>>
>>
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> <http://lk.linkedin.com/in/kasundananjaya>*
>>
>
>
>
> --
> Isura Dilhara Karunaratne
> Senior Software Engineer
>
> Mob +94 772 254 810
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] UserStoreManager get Roles of a User Store

2015-12-03 Thread Kasun Dananjaya Delgolla
Hi Isura,

We found multiple implementations for this class. Which one should we use?

Thanks

On Thu, Dec 3, 2015 at 3:16 PM, Kasun Dananjaya Delgolla 
wrote:

> Hi Isura,
>
> Thanks a lot. We will try with that.
>
> Thanks
>
> On Thu, Dec 3, 2015 at 2:25 PM, Isura Karunaratne  wrote:
>
>> Hi Kasun,
>>
>> You can use following method in AbstractUserStoreManager to get the
>> filtered role names.
>>
>> public final String[] getRoleNames(String filter, int maxItemLimit, boolean 
>> noInternalRoles,
>>boolean noSystemRole, boolean 
>> noSharedRoles){
>>
>> }
>>
>>
>> Thanks
>>
>> Isura
>>
>>
>> On Thu, Dec 3, 2015 at 2:09 PM, Kasun Dananjaya Delgolla > > wrote:
>>
>>> Hi All,
>>>
>>> We have user creation module in our EMM front end jaggery app. There, we
>>> have a field which lists available user stores + another field which lists
>>> roles. When a particular user store is selected, we want the roles of that
>>> user store listed on the role selector.
>>>
>>> The problem is, we don't have an API in the UserStoreManager to get the
>>> roles of a particular user store. Current API we use is, "getRoleNames()"
>>> which returns all the roles regardless of user stores. This results in
>>> failing the user creation when selected the wrong user store.
>>>
>>> Also, when editing the user, we have the same issue when using the
>>> "getRoleListOfUser(username)" API. Is there any workaround or a fix done
>>> for this?
>>>
>>> Thanks
>>> --
>>> Kasun Dananjaya Delgolla
>>>
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Tel:  +94 11 214 5345
>>> Fax: +94 11 2145300
>>> Mob: + 94 771 771 015
>>> Blog: http://kddcodingparadise.blogspot.com
>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Isura Dilhara Karunaratne
>> Senior Software Engineer
>>
>> Mob +94 772 254 810
>>
>>
>
>
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 2145300
> Mob: + 94 771 771 015
> Blog: http://kddcodingparadise.blogspot.com
> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
> <http://lk.linkedin.com/in/kasundananjaya>*
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] UserStoreManager get Roles of a User Store

2015-12-03 Thread Kasun Dananjaya Delgolla
Hi Isura,

Thanks a lot. We will try with that.

Thanks

On Thu, Dec 3, 2015 at 2:25 PM, Isura Karunaratne  wrote:

> Hi Kasun,
>
> You can use following method in AbstractUserStoreManager to get the
> filtered role names.
>
> public final String[] getRoleNames(String filter, int maxItemLimit, boolean 
> noInternalRoles,
>boolean noSystemRole, boolean 
> noSharedRoles){
>
> }
>
>
> Thanks
>
> Isura
>
>
> On Thu, Dec 3, 2015 at 2:09 PM, Kasun Dananjaya Delgolla 
> wrote:
>
>> Hi All,
>>
>> We have user creation module in our EMM front end jaggery app. There, we
>> have a field which lists available user stores + another field which lists
>> roles. When a particular user store is selected, we want the roles of that
>> user store listed on the role selector.
>>
>> The problem is, we don't have an API in the UserStoreManager to get the
>> roles of a particular user store. Current API we use is, "getRoleNames()"
>> which returns all the roles regardless of user stores. This results in
>> failing the user creation when selected the wrong user store.
>>
>> Also, when editing the user, we have the same issue when using the
>> "getRoleListOfUser(username)" API. Is there any workaround or a fix done
>> for this?
>>
>> Thanks
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> <http://lk.linkedin.com/in/kasundananjaya>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isura Dilhara Karunaratne
> Senior Software Engineer
>
> Mob +94 772 254 810
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] UserStoreManager get Roles of a User Store

2015-12-03 Thread Kasun Dananjaya Delgolla
Hi All,

We have user creation module in our EMM front end jaggery app. There, we
have a field which lists available user stores + another field which lists
roles. When a particular user store is selected, we want the roles of that
user store listed on the role selector.

The problem is, we don't have an API in the UserStoreManager to get the
roles of a particular user store. Current API we use is, "getRoleNames()"
which returns all the roles regardless of user stores. This results in
failing the user creation when selected the wrong user store.

Also, when editing the user, we have the same issue when using the
"getRoleListOfUser(username)" API. Is there any workaround or a fix done
for this?

Thanks
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] iOS launcher icons for new agent

2015-11-05 Thread Kasun Dananjaya Delgolla
Hi All,

Check whether the attached icon satisfies the requirement?

Thanks

On Thu, Nov 5, 2015 at 1:48 PM, Dilshan Edirisuriya 
wrote:

> We need to get the PSD file or a larger png image which we used for
> Android and resize it accordingly.
>
> On Thu, Nov 5, 2015 at 7:20 AM, Inosh Perera  wrote:
>
>> Hi Dilshan,
>>
>>
>> Got it. Do you have these images with you from EMM 1.1.0 agent. I
>> couldn't find these in the old agent repository.
>>
>> Regards,
>> Inosh
>>
>> On Thu, Nov 5, 2015 at 11:29 AM, Dilshan Edirisuriya 
>> wrote:
>>
>>> Hi Inosh,
>>>
>>> Orientations is already handled in our project. For icons we have to add
>>> those in xcassets. Only thing is it needs to have several sizes for
>>> different devices with different OS. Sizes are listed in [1]. Just place it
>>> in in place holders in the UI so it will work.
>>>
>>> [1] -
>>> https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html
>>>
>>> Regards,
>>>
>>> Dilshan
>>>
>>> On Thu, Nov 5, 2015 at 6:08 AM, Inosh Perera  wrote:
>>>
>>>> Hi Dilshan,
>>>>
>>>> EMM 2.0.0 iOS agent does not yet have a launcher icon set for it. When
>>>> doing bit of a reading I realized, before iOS 7 images needs a naming
>>>> convention, such as 2x, 3x to support multiple devices, such as iPad and
>>>> iPhone[1]. Also after iOS 7 and 8, the way of doing seem to be with
>>>> xcassets. Please correct me if any of it is wrong and could you please tell
>>>> how this was handled in EMM 1.1.0 Agent so that the orientation
>>>> changes/display size changes are handled properly and where I can find the
>>>> relevant images.
>>>>
>>>> [1].
>>>> http://stackoverflow.com/questions/26020979/xcode-6-xcassets-for-universal-image-support
>>>>
>>>> Regards,
>>>> Inosh
>>>>
>>>> --
>>>> Inosh Perera
>>>> Software Engineer, WSO2 Inc.
>>>> Tel: 0785293686
>>>>
>>>
>>>
>>>
>>> --
>>> Dilshan Edirisuriya
>>> Senior Software Engineer - WSO2
>>> Mob: + 94 777878905
>>> http://wso2.com/
>>> https://www.linkedin.com/profile/view?id=50486426
>>>
>>
>>
>>
>> --
>> Inosh Perera
>> Software Engineer, WSO2 Inc.
>> Tel: 0785293686
>>
>
>
>
> --
> Dilshan Edirisuriya
> Senior Software Engineer - WSO2
> Mob: + 94 777878905
> http://wso2.com/
> https://www.linkedin.com/profile/view?id=50486426
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] "admin" role is removable + editable

2015-10-30 Thread Kasun Dananjaya Delgolla
Hi All,

When editing / removing roles, "admin" role is permitted to be edited. We
use IS APIs to edit/remove roles, and this happened when trying to edit the
admin role. Had to restart the server to get it recreated. Anyone has an
idea why this happens? JIRA [1] created.

[1] - https://wso2.org/jira/browse/IDENTITY-3970

Thanks

-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Android for work - Android layer Implemented

2015-08-30 Thread Kasun Dananjaya Delgolla
Adding dev@.

On Mon, Aug 31, 2015 at 10:49 AM, Kasun Dananjaya Delgolla 
wrote:

> Hi Manoj,
>
> No we don't. I have implemented adapters which handle these kind of
> version issues for the Android Agent. So when the Agent is installed in a
> specific device, it always does a version check (for the features which has
> backward compatibility issues) before execution.
>
> Thanks
>
> On Mon, Aug 31, 2015 at 10:36 AM, Manoj Gunawardena 
> wrote:
>
>> Hi Kasun,
>>
>> Do we need to maintain multiple apks, for different android version?
>>
>> Thanks
>>
>> On Mon, Aug 31, 2015 at 10:15 AM, Kasun Dananjaya Delgolla <
>> kas...@wso2.com> wrote:
>>
>>> Hi Manoj,
>>>
>>> Not really. What's special about KitKat is, in Lollipop, if you want to
>>> enable Android for work profiles, you can do it without any hassle because
>>> Lollipop+ firmware has the AFW APIs in built. But if you want to enable AFW
>>> features for KitKat, we have to install Android For Work app explicitly to
>>> enable those features. So if the client has a google enterprise account
>>> (enterprise ID), we can push that app silently to the device as well. AFW
>>> is not supported in the devices below KitKat.
>>>
>>> Thanks
>>>
>>> On Mon, Aug 31, 2015 at 9:55 AM, Manoj Gunawardena 
>>> wrote:
>>>
>>>> Hi Kasun,
>>>>
>>>> KitKat has introduced new set of operations?
>>>>
>>>> Thanks
>>>>
>>>> On Sun, Aug 30, 2015 at 12:25 PM, Kasun Dananjaya Delgolla <
>>>> kas...@wso2.com> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I have done the $subject during the weekend. So here's what I have
>>>>> achieved.
>>>>>
>>>>> Now we can enable AFW in KitKat+ devices. I have plugged this feature
>>>>> into policy layer. Given below is how this works.
>>>>>
>>>>> In BYOD mode, we provision a Managed Profile and there, at the moment
>>>>> we can enable/disable apps for the work profile and add restrictions on
>>>>> them. And also all the new DM commands are available.
>>>>>
>>>>> In COPE mode, we provision a Device Owner profile which enables us to
>>>>> do a bunch of administrative tasks. All these features are implemented in
>>>>> the Android layer and I have thought how we can plug in to the EMM
>>>>> dashboard as well.
>>>>>
>>>>> We should give a separate section under policies for android for work.
>>>>> This section will have two sub sections under Activate Managed profile and
>>>>> Activate device owner profile. Under Managed profile section we will open 
>>>>> a
>>>>> list of features such as enabling / disabling a selected set of apps
>>>>> (gmail, chrome) to the profile (there are a lot of features which we can
>>>>> add here).
>>>>>
>>>>> Under tenant configs, we should have one additional field for the
>>>>> Google Enterprise ID (which a client should explicitly buy if they need 
>>>>> app
>>>>> management features such as silent push and a private play store for the
>>>>> enterprise.
>>>>>
>>>>> Now we have resolved the PUZZLE of AFW and the implementation strategy
>>>>> is all done. But due to the lack of time, we won't be able to do the EMM
>>>>> dashboard UIs for all these features in this release. So we should push
>>>>> this to the next release.
>>>>>
>>>>> I will start integrating this with the back end as soon as we release
>>>>> Alpha. Also I will update mailing lists once we have a UI wire frames in
>>>>> place for this (after the Alpha).
>>>>>
>>>>> Thanks
>>>>> --
>>>>> Kasun Dananjaya Delgolla
>>>>>
>>>>> Software Engineer
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>> Tel:  +94 11 214 5345
>>>>> Fax: +94 11 2145300
>>>>> Mob: + 94 771 771 015
>>>>> Blog: http://kddcodingparadise.blogspot.com
>>>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>>>
>>>>
>>>>
>>>>

Re: [Dev] EMM - Cannot Add Device - Illegal access attempt

2015-08-20 Thread Kasun Dananjaya Delgolla
Hi Samim,

Please try to follow these guides [1] and [2] when enrolling. If your
tenant domain is abc.com and username is x...@abc.com, you should login in
the Agent app by giving abc.com to the Domain field, xyz to the Username
field and password to the Password field. Make sure you followed that too.

[1] - https://docs.wso2.com/display/EMM110/Registering+a+Device
[2] -
https://docs.wso2.com/display/EMM110/End-user+Registering+an+Android-powered+Device

Thanks

On Fri, Aug 21, 2015 at 10:32 AM, Samim Pezeshki  wrote:

> Dear Kasun,
>
> I logged in on the device using the new tenant I created.
> I also logged in with the same account on the EMM console.
>
> Thanks
>
> On Fri, Aug 21, 2015 at 9:19 AM Kasun Dananjaya Delgolla 
> wrote:
>
>> Hi Samim,
>>
>> Did you try to login to a tenant you created or to the super tenant?
>>
>> Thanks
>>
>> On Thu, Aug 20, 2015 at 2:16 PM, Samim Pezeshki 
>> wrote:
>>
>>> Sure,
>>> They are attached.
>>> Thanks
>>>
>>>
>>> On Thu, Aug 20, 2015 at 12:59 PM Kasun Dananjaya Delgolla <
>>> kas...@wso2.com> wrote:
>>>
>>>> Can you attach your SERVER_HOME/repository/conf folder? And also the
>>>> full wso2carbon.log file.
>>>>
>>>> Thanks
>>>> On Aug 20, 2015 1:54 PM, "Samim Pezeshki"  wrote:
>>>>
>>>>> Hi,
>>>>> I built the Android agent and the agent connects to site because I can
>>>>> authenticate successfully and only see the mentioned error on the server
>>>>> upon trying to enter the pin.
>>>>>
>>>>> I use HTTP protocol.
>>>>>
>>>>> I did not configure any database ans use the embedded one.
>>>>>
>>>>> Thanks again,
>>>>> Samim
>>>>>
>>>>> On Thu, Aug 20, 2015 at 12:24 PM Kasun Dananjaya Delgolla <
>>>>> kas...@wso2.com> wrote:
>>>>>
>>>>>> And one more thing,  are you using mysql as the DB?
>>>>>>
>>>>>> Thanks
>>>>>> On Aug 20, 2015 1:21 PM, "Kasun Dananjaya Delgolla" 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Samim,
>>>>>>>
>>>>>>> Did you try this with the default Android agent apk or did you build
>>>>>>> the Android agent explicitly for this? If so, what's the protocol you 
>>>>>>> use
>>>>>>> (HTTP/https configured in the Android Agent)?
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Thanks
>>>>>>> On Aug 18, 2015 10:04 AM, "Samim Pezeshki" 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I've had this problem and opened an issue on Jira but got no
>>>>>>>> answer. Hope you can help me. I am using Mobility Manager 1.1.
>>>>>>>>
>>>>>>>> I can authenticate in the EMM Agent Android app and set a PIN. But
>>>>>>>> after that I have the error "Connection failed, Server is unavailable."
>>>>>>>> Also in the server I get the following errors:
>>>>>>>>
>>>>>>>> [2015-08-13 06:43:08,923] ERROR
>>>>>>>> {org.jaggeryjs.jaggery.core.manager.WebAppManager}
>>>>>>>>
>>>>>>>> - org.mozilla.javascript.WrappedException: Wrapped
>>>>>>>> java.lang.SecurityException: Illegal access attempt to cache ] owned by
>>>>>>>> tenant
>>>>>>>> {[carbon.super],[-1234]} by tenant {[carbon.super],[1]}
>>>>>>>> (user-manager#35)
>>>>>>>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>>>>>>>> org.mozilla.javascript.WrappedException: Wrapped
>>>>>>>> java.lang.SecurityException: Illegal access attempt to cache ] owned by
>>>>>>>> tenant {[carbon.super],[-1234]}
>>>>>>>>
>>>>>>>> by tenant
>>>>>>>> {[carbon.super],[1]} (user-manager#35)
>>>>>>>> at
>>>>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
>>>>>>&g

Re: [Dev] EMM - Cannot Add Device - Illegal access attempt

2015-08-20 Thread Kasun Dananjaya Delgolla
Hi Samim,

Did you try to login to a tenant you created or to the super tenant?

Thanks

On Thu, Aug 20, 2015 at 2:16 PM, Samim Pezeshki  wrote:

> Sure,
> They are attached.
> Thanks
>
>
> On Thu, Aug 20, 2015 at 12:59 PM Kasun Dananjaya Delgolla 
> wrote:
>
>> Can you attach your SERVER_HOME/repository/conf folder? And also the full
>> wso2carbon.log file.
>>
>> Thanks
>> On Aug 20, 2015 1:54 PM, "Samim Pezeshki"  wrote:
>>
>>> Hi,
>>> I built the Android agent and the agent connects to site because I can
>>> authenticate successfully and only see the mentioned error on the server
>>> upon trying to enter the pin.
>>>
>>> I use HTTP protocol.
>>>
>>> I did not configure any database ans use the embedded one.
>>>
>>> Thanks again,
>>> Samim
>>>
>>> On Thu, Aug 20, 2015 at 12:24 PM Kasun Dananjaya Delgolla <
>>> kas...@wso2.com> wrote:
>>>
>>>> And one more thing,  are you using mysql as the DB?
>>>>
>>>> Thanks
>>>> On Aug 20, 2015 1:21 PM, "Kasun Dananjaya Delgolla" 
>>>> wrote:
>>>>
>>>>> Hi Samim,
>>>>>
>>>>> Did you try this with the default Android agent apk or did you build
>>>>> the Android agent explicitly for this? If so, what's the protocol you use
>>>>> (HTTP/https configured in the Android Agent)?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Thanks
>>>>> On Aug 18, 2015 10:04 AM, "Samim Pezeshki"  wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I've had this problem and opened an issue on Jira but got no answer.
>>>>>> Hope you can help me. I am using Mobility Manager 1.1.
>>>>>>
>>>>>> I can authenticate in the EMM Agent Android app and set a PIN. But
>>>>>> after that I have the error "Connection failed, Server is unavailable."
>>>>>> Also in the server I get the following errors:
>>>>>>
>>>>>> [2015-08-13 06:43:08,923] ERROR
>>>>>> {org.jaggeryjs.jaggery.core.manager.WebAppManager}
>>>>>>
>>>>>> - org.mozilla.javascript.WrappedException: Wrapped
>>>>>> java.lang.SecurityException: Illegal access attempt to cache ] owned by
>>>>>> tenant
>>>>>> {[carbon.super],[-1234]} by tenant {[carbon.super],[1]}
>>>>>> (user-manager#35)
>>>>>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>>>>>> org.mozilla.javascript.WrappedException: Wrapped
>>>>>> java.lang.SecurityException: Illegal access attempt to cache ] owned by
>>>>>> tenant {[carbon.super],[-1234]}
>>>>>>
>>>>>> by tenant
>>>>>> {[carbon.super],[1]} (user-manager#35)
>>>>>> at
>>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
>>>>>> at
>>>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>>>>>> at
>>>>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:447)
>>>>>> at
>>>>>> org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>>>>> at
>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>>>>> at
>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>>>> at
>>>>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>>>>>> at
>>>>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>>>>>> at
>>>>>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
>>>>>> at
>>>>>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>>>>>> at
>>>>>> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.j

Re: [Dev] EMM - Cannot Add Device - Illegal access attempt

2015-08-20 Thread Kasun Dananjaya Delgolla
Can you attach your SERVER_HOME/repository/conf folder? And also the full
wso2carbon.log file.

Thanks
On Aug 20, 2015 1:54 PM, "Samim Pezeshki"  wrote:

> Hi,
> I built the Android agent and the agent connects to site because I can
> authenticate successfully and only see the mentioned error on the server
> upon trying to enter the pin.
>
> I use HTTP protocol.
>
> I did not configure any database ans use the embedded one.
>
> Thanks again,
> Samim
>
> On Thu, Aug 20, 2015 at 12:24 PM Kasun Dananjaya Delgolla 
> wrote:
>
>> And one more thing,  are you using mysql as the DB?
>>
>> Thanks
>> On Aug 20, 2015 1:21 PM, "Kasun Dananjaya Delgolla" 
>> wrote:
>>
>>> Hi Samim,
>>>
>>> Did you try this with the default Android agent apk or did you build the
>>> Android agent explicitly for this? If so, what's the protocol you use
>>> (HTTP/https configured in the Android Agent)?
>>>
>>> Thanks
>>>
>>> Thanks
>>> On Aug 18, 2015 10:04 AM, "Samim Pezeshki"  wrote:
>>>
>>>> Hi,
>>>>
>>>> I've had this problem and opened an issue on Jira but got no answer.
>>>> Hope you can help me. I am using Mobility Manager 1.1.
>>>>
>>>> I can authenticate in the EMM Agent Android app and set a PIN. But
>>>> after that I have the error "Connection failed, Server is unavailable."
>>>> Also in the server I get the following errors:
>>>>
>>>> [2015-08-13 06:43:08,923] ERROR
>>>> {org.jaggeryjs.jaggery.core.manager.WebAppManager}
>>>>
>>>> - org.mozilla.javascript.WrappedException: Wrapped
>>>> java.lang.SecurityException: Illegal access attempt to cache ] owned by
>>>> tenant
>>>> {[carbon.super],[-1234]} by tenant {[carbon.super],[1]}
>>>> (user-manager#35)
>>>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>>>> org.mozilla.javascript.WrappedException: Wrapped
>>>> java.lang.SecurityException: Illegal access attempt to cache ] owned by
>>>> tenant {[carbon.super],[-1234]}
>>>>
>>>> by tenant
>>>> {[carbon.super],[1]} (user-manager#35)
>>>> at
>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
>>>> at
>>>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>>>> at
>>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:447)
>>>> at
>>>> org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>>> at
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>>> at
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>> at
>>>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>>>> at
>>>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>>>> at
>>>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
>>>> at
>>>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>>>> at
>>>> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
>>>> at
>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>>>> at
>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>> at
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>>>> at
>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>>> at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>>> at
>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>>> at
>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>>>> at
>>>> org

Re: [Dev] EMM - Cannot Add Device - Illegal access attempt

2015-08-20 Thread Kasun Dananjaya Delgolla
And one more thing,  are you using mysql as the DB?

Thanks
On Aug 20, 2015 1:21 PM, "Kasun Dananjaya Delgolla"  wrote:

> Hi Samim,
>
> Did you try this with the default Android agent apk or did you build the
> Android agent explicitly for this? If so, what's the protocol you use
> (HTTP/https configured in the Android Agent)?
>
> Thanks
>
> Thanks
> On Aug 18, 2015 10:04 AM, "Samim Pezeshki"  wrote:
>
>> Hi,
>>
>> I've had this problem and opened an issue on Jira but got no answer. Hope
>> you can help me. I am using Mobility Manager 1.1.
>>
>> I can authenticate in the EMM Agent Android app and set a PIN. But after
>> that I have the error "Connection failed, Server is unavailable." Also in
>> the server I get the following errors:
>>
>> [2015-08-13 06:43:08,923] ERROR
>> {org.jaggeryjs.jaggery.core.manager.WebAppManager}
>>
>> - org.mozilla.javascript.WrappedException: Wrapped
>> java.lang.SecurityException: Illegal access attempt to cache ] owned by
>> tenant
>> {[carbon.super],[-1234]} by tenant {[carbon.super],[1]} (user-manager#35)
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.WrappedException: Wrapped
>> java.lang.SecurityException: Illegal access attempt to cache ] owned by
>> tenant {[carbon.super],[-1234]}
>>
>> by tenant
>> {[carbon.super],[1]} (user-manager#35)
>> at
>> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
>> at
>> org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
>> at
>> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:447)
>> at
>> org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
>> at
>> org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>> at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>> at
>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>> at
>> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
>> at
>> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
>> at
>> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
>> at
>> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
>> at
>> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
>> at
>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>> at
>> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
>> at
>> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
>> at
>> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:1

Re: [Dev] EMM - Cannot Add Device - Illegal access attempt

2015-08-20 Thread Kasun Dananjaya Delgolla
Hi Samim,

Did you try this with the default Android agent apk or did you build the
Android agent explicitly for this? If so, what's the protocol you use
(HTTP/https configured in the Android Agent)?

Thanks

Thanks
On Aug 18, 2015 10:04 AM, "Samim Pezeshki"  wrote:

> Hi,
>
> I've had this problem and opened an issue on Jira but got no answer. Hope
> you can help me. I am using Mobility Manager 1.1.
>
> I can authenticate in the EMM Agent Android app and set a PIN. But after
> that I have the error "Connection failed, Server is unavailable." Also in
> the server I get the following errors:
>
> [2015-08-13 06:43:08,923] ERROR
> {org.jaggeryjs.jaggery.core.manager.WebAppManager}
>
> - org.mozilla.javascript.WrappedException: Wrapped
> java.lang.SecurityException: Illegal access attempt to cache ] owned by
> tenant
> {[carbon.super],[-1234]} by tenant {[carbon.super],[1]} (user-manager#35)
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.WrappedException: Wrapped
> java.lang.SecurityException: Illegal access attempt to cache ] owned by
> tenant {[carbon.super],[-1234]}
>
> by tenant
> {[carbon.super],[1]} (user-manager#35)
> at
> org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
> at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:447)
> at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
> at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
> at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
> at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> at
> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
> at
> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:151)
> at
> org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterce

Re: [Dev] "Android for Work" for EMM agent

2015-08-17 Thread Kasun Dananjaya Delgolla
Hi Milan,

What I mentioned was having the Agent inside the admin profile and invoke
work profile creation from the Agent. Then preferences problem will not
occur. Anyway we will try this as well as all possible methods and finalize
the best approach by the end of this week.

What's critical for us is only the profile creation and how do we introduce
this to the console. So we will cone up with a plan by the end of the week
and start implementation.

Thanks
On Aug 17, 2015 9:22 PM, "Milan Perera"  wrote:

> Hi Kasun,
>
> I have tried this flow for AFW and we cannot actually follow that flow.
> The reason because when we enroll an user to EMM, we store some private
> data in the device's shared preference. In AFW scenario, it creates a new
> instance of the agent in a secured container and we cannot access that
> shared preferences which we have already stored at the time of enrollment.
>
> Therefore I suggest the following flow for the agent.
>
>1. Agent checks whether the AFW is supported.
>   - If yes, manage profile will be provisioned and app will be
>   available inside the secured container.
>   - else if, try to install AFW apk and provisions the managed
>   profile.
>   - else, we have to do the ordinary enrollment.
>2. Then user can be enrolled to EMM and default policy will be pushed.
>3. Finally, the agent will manage the device on the commands of EMM
>Admin as usual.
>
> Note: I have tried out this and it works fine for now. In this method, app
> will store all the data inside the secured container and when we do
> enterprise wipe, we will be able to remove the container as well as the
> managed profile.
>
>  WDYT?
>
> Regards,
>
>
> On Mon, Aug 17, 2015 at 4:10 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> Adding dev@.
>>
>> Given below will be the flow that we will implement for Android for work.
>> As I have studied, all the AFW is based on profile concept. Android M have
>> introduced some powerful APIs to give a better meaning to this. Refer the
>> thread "[EMM] Android M EMM features + Android for work" thread that I have
>> initiated.
>>
>> As a pre-requisite, Android for work profile should be included in Policy
>> section in EMM console. IMO, it must be pushed with the policy. Therefore,
>> android policy should include a section for android for work where admin
>> can set restrictions/ app restrictions/ certificates / and other work
>> profile related configs and save it under the policy. Given below is the
>> flow that we suggest for the AFW implementation,
>>
>> 1. User enrolls his device to EMM
>> 2. Default policy will be pushed to the device with the work profile
>> 3. Android Agent will initiate a work profile on the device (In devices >
>> Lollipop this will be enabled in the same app drawer, but Kitkat and JB
>> devices will have to have Android for work app installed.)
>> 4. Android Agent will then manage the device on the commands of EMM Admin
>> as usual. (We will introduce Android M APIs to the DM console + the policy
>> manager)
>>
>> For devices < Lollipop, we should decide when to install AFW app. One
>> option is to push customers to have google for enterprise account if they
>> have a large Android user base. This will enable us to do a silent push of
>> AFW app to any of their devices. Once they have Google enterprise IDs
>> setup, we must enable a configuration entry for them to set it up. When
>> pushing the tenant configurations to the device, we can also send the
>> enterprise ID as well in a highly secured manner. Then the device can use
>> that to communicate with google rest APIs to do such tasks.
>>
>> WDYT?
>>
>> Thanks
>>
>> On Mon, Aug 17, 2015 at 9:32 AM, Prabath Abeysekera 
>> wrote:
>>
>>> Guys,
>>>
>>> These are some serious technical stuff that we're discussing about in
>>> private. Please move this into an appropriate list.
>>>
>>> Cheers,
>>> Prabth
>>>
>>> On Sun, Aug 16, 2015 at 10:15 PM, Kasun Dananjaya Delgolla <
>>> kas...@wso2.com> wrote:
>>>
>>>> Hi Milan,
>>>>
>>>> Sure. The thing I wanted to point out was the app installs. In a
>>>> document released by google, they say we can have our own app store hosted
>>>> by us or else we can have google play enterprise store. That's the only
>>>> place I have seen that. We should dig deeper to their rest apis  on app
>>>> stuff. Testing the profile concept and other device policies are totally
&g

Re: [Dev] "Android for Work" for EMM agent

2015-08-17 Thread Kasun Dananjaya Delgolla
Adding dev@.

Given below will be the flow that we will implement for Android for work.
As I have studied, all the AFW is based on profile concept. Android M have
introduced some powerful APIs to give a better meaning to this. Refer the
thread "[EMM] Android M EMM features + Android for work" thread that I have
initiated.

As a pre-requisite, Android for work profile should be included in Policy
section in EMM console. IMO, it must be pushed with the policy. Therefore,
android policy should include a section for android for work where admin
can set restrictions/ app restrictions/ certificates / and other work
profile related configs and save it under the policy. Given below is the
flow that we suggest for the AFW implementation,

1. User enrolls his device to EMM
2. Default policy will be pushed to the device with the work profile
3. Android Agent will initiate a work profile on the device (In devices >
Lollipop this will be enabled in the same app drawer, but Kitkat and JB
devices will have to have Android for work app installed.)
4. Android Agent will then manage the device on the commands of EMM Admin
as usual. (We will introduce Android M APIs to the DM console + the policy
manager)

For devices < Lollipop, we should decide when to install AFW app. One
option is to push customers to have google for enterprise account if they
have a large Android user base. This will enable us to do a silent push of
AFW app to any of their devices. Once they have Google enterprise IDs
setup, we must enable a configuration entry for them to set it up. When
pushing the tenant configurations to the device, we can also send the
enterprise ID as well in a highly secured manner. Then the device can use
that to communicate with google rest APIs to do such tasks.

WDYT?

Thanks

On Mon, Aug 17, 2015 at 9:32 AM, Prabath Abeysekera 
wrote:

> Guys,
>
> These are some serious technical stuff that we're discussing about in
> private. Please move this into an appropriate list.
>
> Cheers,
> Prabth
>
> On Sun, Aug 16, 2015 at 10:15 PM, Kasun Dananjaya Delgolla <
> kas...@wso2.com> wrote:
>
>> Hi Milan,
>>
>> Sure. The thing I wanted to point out was the app installs. In a document
>> released by google, they say we can have our own app store hosted by us or
>> else we can have google play enterprise store. That's the only place I have
>> seen that. We should dig deeper to their rest apis  on app stuff. Testing
>> the profile concept and other device policies are totally fine. I will lay
>> a proper plan while you do this. So that we can merge the things and target
>> for the solution.
>>
>> Thanks
>> On Aug 16, 2015 8:38 PM, "Milan Perera"  wrote:
>>
>>> Hi Kasun,
>>>
>>> Yes, that's true. The reason that I put this effort because anyway we
>>> have to do this initial setup. So I have studied few ways to adapt this
>>> 'work' thing and came up with the current integration method (I used trial
>>> and error method to integrate this :) ).
>>>
>>> Let's talk about this in details on Tuesday.
>>>
>>> Regards,
>>>
>>> On Sun, Aug 16, 2015 at 6:53 PM, Kasun Dananjaya Delgolla <
>>> kas...@wso2.com> wrote:
>>>
>>>> Hi Milan,
>>>>
>>>> We cannot do app installs that way. We have to use Play APIs which I
>>>> shared in a mail thread recently. We can invoke that from the agent. I'm in
>>>> the process of creating an integration plan + coming up with a meaningful
>>>> way to do it. True that there is a bunch of features, but we need to
>>>> analyse them one by one and try to come up with a set of meaningful use
>>>> cases. We will have a discussion on this Tuesday. I'm reading all their
>>>> shared links on Android for work and trying to come up with a plan. Once we
>>>> have that in place, it will be an easy job to do all these integration work
>>>> because anyways we will have to use the same device policy manager and
>>>> admin APIs which are already integrated with the agent.
>>>>
>>>> The challenging task would be to play with KitKat + JB devices. We need
>>>> to push Android for work APK to those devices if we need to take their
>>>> control. We need to think about a way to implement that properly as well.
>>>> We can have an in detail discussion on this. For now, my suggestion is that
>>>> we should go in depth of the new APIs and try to make some meaningful
>>>> combinations for us to implement.
>>>>
>>>> Thanks
>>>>
>>>> On Sun, Aug 16, 2015 at 6

Re: [Dev] [DEV][EMM] Android enrollment production readiness

2015-08-17 Thread Kasun Dananjaya Delgolla
+1 to use Gradle invocations. It will be the ideal way to handle this. And
also we should finalize gradle build (generating APK) as well. Gradle lib
is getting downloaded during the build at the moment which can result in
intermittent build failure. So we should make this an orbit bundle IMO. And
that lib is downloading a 50+ MB file which we must decide where to keep.

Thanks

On Mon, Aug 17, 2015 at 12:23 PM, Milan Perera  wrote:

> Hi Dulitha,
>
> +1 for building from Gradle.
>
> On Mon, Aug 17, 2015 at 11:20 AM, Dulitha Wijewantha 
> wrote:
>
>> Hi Inosh,
>> +1 for the property file. We also can trigger the build from Gradle for
>> environments right? [1]. We can pass in an environment parameter to build
>> an artifact.
>>
>> [1] -
>> http://tobiasbayer.com/blog/2011/04/16/building-for-different-environments-with-gradle/
>> Cheers~
>>
>> On Mon, Aug 17, 2015 at 3:08 PM, Dilshan Edirisuriya 
>> wrote:
>>
>>> Hi,
>>>
>>> Better make the IP configurable so that it can be hidden anytime
>>> specially when it comes to a production environment. When it comes to
>>> domain also same thing is applicable since for most of the deployment it
>>> will only need just one tenant.
>>>
>>> Regards,
>>>
>>> Dilshan
>>>
>>> On Mon, Aug 17, 2015 at 10:07 AM, Inosh Perera  wrote:
>>>
>>>> Hi Milan/Kasun,
>>>>
>>>> During the EMM registration[1], Step 3 and 4 where the user has to
>>>> enter the IP/domain;
>>>>  should be designed in a way where in a production scenario, this step
>>>> can be bypassed. In other words, the IP can be hard coded and the step can
>>>> be hidden from the user, since in production the user is not expected to
>>>> know about the backend IPs/Domains. Same can be applicable to step
>>>> 5 Ownership type selection. Once option would be to maintain these in a
>>>> configuration file.
>>>>
>>>> [1].
>>>> https://docs.wso2.com/display/EMM200/End-user+Registering+an+Android+Device
>>>>
>>>> Regards,
>>>> Inosh
>>>>
>>>> --
>>>> Inosh Perera
>>>> Software Engineer, WSO2 Inc.
>>>> Tel: 0785293686
>>>>
>>>
>>>
>>>
>>> --
>>> Dilshan Edirisuriya
>>> Senior Software Engineer - WSO2
>>> Mob: + 94 777878905
>>> http://wso2.com/
>>> https://www.linkedin.com/profile/view?id=50486426
>>>
>>
>>
>>
>> --
>> Dulitha Wijewantha (Chan)
>> Software Engineer - Mobile Development
>> WSO2 Inc
>> Lean.Enterprise.Middleware
>>  * ~Email   duli...@wso2.com *
>> *  ~Mobile +94712112165 <%2B94712112165>*
>> *  ~Website   dulitha.me <http://dulitha.me>*
>> *  ~Twitter @dulitharw <https://twitter.com/dulitharw>*
>>   *~Github @dulichan <https://github.com/dulichan>*
>>   *~SO @chan <http://stackoverflow.com/users/813471/chan>*
>>
>
>
>
> --
> Milan Harindu Perera
> Software Engineer
> *WSO2, Inc*
> (+94) 77 309 7088
> lean . enterprise . middleware
> <http://lk.linkedin.com/in/milanharinduperera>
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question [WSO2 EMM - blacklist application]

2015-08-03 Thread Kasun Dananjaya Delgolla
Hi,

In the current implementation, you can not achieve that. You can always try
digging into the code and improve. It's in our official documentation[1].

[1] - https://docs.wso2.com/display/EMM110/WSO2+Enterprise+Mobility+Manager

Thanks

On Mon, Aug 3, 2015 at 1:56 PM, Zahra Alimadadi  wrote:

> Hi,
>
> Is it possible to define white list instead of blacklist in wso2_emm and
> just lock other apps when device connected to enterprise network?
> How can I modify wso2_emm to do this?
>
> Here is the link to my question in stackoverflow:
>
> WSO2 EMM - blacklist application
> http://stackoverflow.com/q/31782589/3933607?sem=2
>
> Best regards,
> Zahra
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question [WSO2 EMM - Email configuration]

2015-08-03 Thread Kasun Dananjaya Delgolla
Hi Zahra,

Error shows that there's a connection timeout. Gmail SMTP might be blocking
your authentication request. Usually it throttles 3rd party client requests
unless you disable security from your mail account settings.

Thanks

On Mon, Aug 3, 2015 at 1:55 PM, Zahra Alimadadi  wrote:

> Hi
>
> I know this question is already answered, but I couldn't solve it for
> myself.
> How can I configure email for emm?
>
> Here is my config in general setting :
>
> Host: smtp.gmail.com
> Port: 25 (also I check it using 587)
> Username: myusern...@gmail.com
> password: my email pass
> Sender email address: myusern...@gmail.com
> Email template: You have been registered to the to EMM. Below is the link
> to enroll.
>
> but no invitation email sent to users.
> first I try sending invitation email to already registered user.
> then I check adding new user and send invitation to him.
> here <http://ceit.aut.ac.ir/~9031020/email-25.txt> is the log for port 25
> here <http://ceit.aut.ac.ir/~9031020/email-587.txt> is the log for port
> 587 and here <http://ceit.aut.ac.ir/~9031020/email-25-newuser.txt> is the
> log for new user with port 25 and here
> <http://ceit.aut.ac.ir/~9031020/email-587-newuser.txt> for port 587.
>
> Also I turn off my firewall and try again but no invitation email sent to
> users.
>
> More info:
>
> server : windows 7 (wso2 v : 1.1.0) - localhost, database : mysql
>
> I have done these configuration using tenant which I have created.
> Here is the link to my question in stackoverflow:
>
> WSO2 EMM - Email configuration
> http://stackoverflow.com/q/31775852/3933607?sem=2
>
> Best regards,
> Zahra
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question [WSO2 EMM - Application list]

2015-08-03 Thread Kasun Dananjaya Delgolla
Hi,

To do that, you need to change the source of EMM Android Agent app.

Thanks

On Mon, Aug 3, 2015 at 3:28 PM, Zahra Alimadadi  wrote:

> Hi,
>
> How can I change it to show all app installed on device?
>
> Thanks
>
> On Mon, Aug 3, 2015 at 2:26 PM, Zahra Alimadadi 
> wrote:
>
>> Thanks
>>
>> On Mon, Aug 3, 2015 at 9:32 AM, Kasun Dananjaya Delgolla > > wrote:
>>
>>> Hi Zahra,
>>>
>>> By default, it does not show system apps. In your case, the apps you
>>> don't see are system apps. We track the apps which are installed by the
>>> user and the enterprises. We have filtered the apps functionality to show
>>> only user-installed apps.
>>>
>>> Thanks
>>>
>>> On Sun, Aug 2, 2015 at 11:57 PM, Zahra Alimadadi 
>>> wrote:
>>>
>>>> Hi
>>>>
>>>> The application list on device management tab didn't show all app
>>>> installed on device.
>>>> Here <http://tinypic.com/r/2druhs4/8> is the app on home page of my
>>>> device (others all also installed) and here
>>>> <http://tinypic.com/r/15qrm0h/8> is the list of app recognized by emm.
>>>>
>>>> how can I fix this issuse?
>>>>
>>>> Here is the link to my question in stackoverflow:
>>>>
>>>> WSO2 EMM - Application list
>>>> http://stackoverflow.com/q/31775093/3933607?sem=2
>>>>
>>>> Best regards,
>>>> Zahra
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Kasun Dananjaya Delgolla
>>>
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Tel:  +94 11 214 5345
>>> Fax: +94 11 2145300
>>> Mob: + 94 771 771 015
>>> Blog: http://kddcodingparadise.blogspot.com
>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>
>>
>>
>>
>> --
>> *Zahra Alimadadi*
>>
>>
>
>
> --
> *Zahra Alimadadi*
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question [WSO2 EMM - WIFI operation not working]

2015-08-02 Thread Kasun Dananjaya Delgolla
Hi Zahra,

You can't change the security type in EMM. It currently supports only WEP.

Thanks

On Sun, Aug 2, 2015 at 2:55 AM, Zahra Alimadadi  wrote:

> Hi,
>
> I am testing device management operation, but wifi setting is not working.
> The difference between wifi set using emm and defualt is security type
> which is WPA PSK and EMM device management set it to WEP. How can I modify
> the security type?
>
> More info:
>
> server : windows 7 (wso2 v : 1.1.0),client : galaxy note 10.1 (android),
> database : mysql
>
> Here is the link to my question in stackoverflow:
>
> WSO2 EMM - WIFI operation not working
> http://stackoverflow.com/q/31766344/3933607?sem=2
>
> Best regards,
> Zahra
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question [WSO2 EMM - Application list]

2015-08-02 Thread Kasun Dananjaya Delgolla
Hi Zahra,

By default, it does not show system apps. In your case, the apps you don't
see are system apps. We track the apps which are installed by the user and
the enterprises. We have filtered the apps functionality to show only
user-installed apps.

Thanks

On Sun, Aug 2, 2015 at 11:57 PM, Zahra Alimadadi 
wrote:

> Hi
>
> The application list on device management tab didn't show all app
> installed on device.
> Here <http://tinypic.com/r/2druhs4/8> is the app on home page of my
> device (others all also installed) and here
> <http://tinypic.com/r/15qrm0h/8> is the list of app recognized by emm.
>
> how can I fix this issuse?
>
> Here is the link to my question in stackoverflow:
>
> WSO2 EMM - Application list
> http://stackoverflow.com/q/31775093/3933607?sem=2
>
> Best regards,
> Zahra
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question - Please help me

2015-07-31 Thread Kasun Dananjaya Delgolla
Hi Zahra,

Great that you resolved it. Let us know if you run into further issues.

Thanks

On Sat, Aug 1, 2015 at 12:50 AM, Zahra Alimadadi 
wrote:

> Hi,
>
> The problem was because of windows version of mysql which is not case
> sensitive and make these problem, so I change the my.ini file for mysql and
> make it case sensitive and create databases and install emm service again
> as Kasun said, and finally it work.
> also I should change the 'wifi_mac' column name in devices table as said
> here
> <http://stackoverflow.com/questions/24328578/mysql-throws-unknown-column-mac-in-field-list>
> .
>
> Best regards,
> Zahra
>
> On Wed, Jul 29, 2015 at 4:01 PM, Zahra Alimadadi 
> wrote:
>
>> Hi,
>>
>> Any idea about this?
>>
>> Best regards,
>> Zahra
>>
>> On Tue, Jul 28, 2015 at 7:18 PM, Zahra Alimadadi 
>> wrote:
>>
>>> I restart server agin. now the consols loaded but I couldn't log in to
>>> emm consol I get error 500 :
>>>
>>> 192.168.1.157 - - [28/Jul/2015:19:05:17 +0430] "POST /emm/acs HTTP/1.1"
>>> 500 1042 "https://192.168.1.157:9443/commonauth"; "Mozilla/5.0 (Windows
>>> NT 6.1; WOW64)
>>>
>>> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36"
>>>
>>> But I can log in to publisher and store consols.
>>>
>>> here is the full log for http-access
>>> <https://ceit.aut.ac.ir/~9031020/http_access_log.txt> and wso2carbon
>>> <https://ceit.aut.ac.ir/~9031020/carbon-log.txt> after restarting.
>>>
>>> On Tue, Jul 28, 2015 at 6:06 PM, Zahra Alimadadi 
>>> wrote:
>>>
>>>> Hi Jason,
>>>>
>>>> I change jndi names, now I get this error:
>>>>
>>>> ERROR {JAGGERY.modules.common:js} -
>>>> org.mozilla.javascript.WrappedException: Wrapped
>>>> java.lang.NullPointerException (/emm/modules/common.js#364)
>>>>
>>>>at 
>>>> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
>>>>at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
>>>>at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:392)
>>>>
>>>> here is link <https://ceit.aut.ac.ir/~9031020/log-mysql.txt> to full
>>>> log.
>>>>
>>>> Best regards,
>>>> Zahra
>>>>
>>>> On Tue, Jul 28, 2015 at 5:07 PM, Jason De Silva 
>>>> wrote:
>>>>
>>>>> Hi Zahra,
>>>>>
>>>>> I think you have added the wrong jndi names in user-mgt.xml and
>>>>> master-datasources.xml. Try replacing it with "jdbc/WSO2CarbonDB" which 
>>>>> can
>>>>> be found in master-datasources.xml.
>>>>>
>>>>> Regards
>>>>> Jason
>>>>>
>>>>> On Tue, Jul 28, 2015 at 5:50 PM, Zahra Alimadadi 
>>>>> wrote:
>>>>>
>>>>>> I change the url but still I get same error. I also change
>>>>>> master-datasources.xml in question . should I also change  under
>>>>>> 
>>>>>>
>>>>>> On Tue, Jul 28, 2015 at 3:25 PM, Kasun Dananjaya Delgolla <
>>>>>> kas...@wso2.com> wrote:
>>>>>>
>>>>>>> Still the JDBC URLS are wrong in your master-datasources.xml. Please
>>>>>>> make all of them exactly same to the DBs you created.
>>>>>>>
>>>>>>> Thanks
>>>>>>> On Jul 28, 2015 3:42 PM, "Zahra Alimadadi" 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Yes, I edit the question and add them.
>>>>>>>>
>>>>>>>> On Tue, Jul 28, 2015 at 2:30 PM, Kasun Dananjaya Delgolla <
>>>>>>>> kas...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Can you share your new conf/user-mgt.xml,
>>>>>>>>> conf/datasources/master-datasources.xml and conf/registry xml ?
>>>>>>>>>
>>>>>>>>> On Tue, Jul 28, 2015 at 3:28 PM, Zahra Alimadadi <
>>>>>>>>> zahra7...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> I change datasource 's name to db name with lowercase in
>&

Re: [Dev] Stack Overflow Question - Please help me

2015-07-29 Thread Kasun Dananjaya Delgolla
Hi Zahra,

Seems like you still haven't configured WSO2EMM_DB properly. Check the
names again and if you don't find the issue, please post your latest
master-datasources.xml and DB list again.

Thanks

On Wed, Jul 29, 2015 at 5:01 PM, Zahra Alimadadi 
wrote:

> Hi,
>
> Any idea about this?
>
> Best regards,
> Zahra
>
> On Tue, Jul 28, 2015 at 7:18 PM, Zahra Alimadadi 
> wrote:
>
>> I restart server agin. now the consols loaded but I couldn't log in to
>> emm consol I get error 500 :
>>
>> 192.168.1.157 - - [28/Jul/2015:19:05:17 +0430] "POST /emm/acs HTTP/1.1"
>> 500 1042 "https://192.168.1.157:9443/commonauth"; "Mozilla/5.0 (Windows
>> NT 6.1; WOW64)
>>
>> AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36"
>>
>> But I can log in to publisher and store consols.
>>
>> here is the full log for http-access
>> <https://ceit.aut.ac.ir/~9031020/http_access_log.txt> and wso2carbon
>> <https://ceit.aut.ac.ir/~9031020/carbon-log.txt> after restarting.
>>
>> On Tue, Jul 28, 2015 at 6:06 PM, Zahra Alimadadi 
>> wrote:
>>
>>> Hi Jason,
>>>
>>> I change jndi names, now I get this error:
>>>
>>> ERROR {JAGGERY.modules.common:js} -
>>> org.mozilla.javascript.WrappedException: Wrapped
>>> java.lang.NullPointerException (/emm/modules/common.js#364)
>>>
>>> at 
>>> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
>>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
>>> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:392)
>>>
>>> here is link <https://ceit.aut.ac.ir/~9031020/log-mysql.txt> to full
>>> log.
>>>
>>> Best regards,
>>> Zahra
>>>
>>> On Tue, Jul 28, 2015 at 5:07 PM, Jason De Silva  wrote:
>>>
>>>> Hi Zahra,
>>>>
>>>> I think you have added the wrong jndi names in user-mgt.xml and
>>>> master-datasources.xml. Try replacing it with "jdbc/WSO2CarbonDB" which can
>>>> be found in master-datasources.xml.
>>>>
>>>> Regards
>>>> Jason
>>>>
>>>> On Tue, Jul 28, 2015 at 5:50 PM, Zahra Alimadadi 
>>>> wrote:
>>>>
>>>>> I change the url but still I get same error. I also change
>>>>> master-datasources.xml in question . should I also change  under
>>>>> 
>>>>>
>>>>> On Tue, Jul 28, 2015 at 3:25 PM, Kasun Dananjaya Delgolla <
>>>>> kas...@wso2.com> wrote:
>>>>>
>>>>>> Still the JDBC URLS are wrong in your master-datasources.xml. Please
>>>>>> make all of them exactly same to the DBs you created.
>>>>>>
>>>>>> Thanks
>>>>>> On Jul 28, 2015 3:42 PM, "Zahra Alimadadi" 
>>>>>> wrote:
>>>>>>
>>>>>>> Yes, I edit the question and add them.
>>>>>>>
>>>>>>> On Tue, Jul 28, 2015 at 2:30 PM, Kasun Dananjaya Delgolla <
>>>>>>> kas...@wso2.com> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> Can you share your new conf/user-mgt.xml,
>>>>>>>> conf/datasources/master-datasources.xml and conf/registry xml ?
>>>>>>>>
>>>>>>>> On Tue, Jul 28, 2015 at 3:28 PM, Zahra Alimadadi <
>>>>>>>> zahra7...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> I change datasource 's name to db name with lowercase in
>>>>>>>>> master-datasources.xm and also change jdbc/WSO2CarbonDB to
>>>>>>>>> jdbc/wso2_carbon_db in user-mgt.xml and registry.xml, and restart the
>>>>>>>>> service, but still I couldn't load consols, here is the Error: TID: 
>>>>>>>>> [0]
>>>>>>>>> [EMM] [2015-07-28 14:17:34,933] error: 
>>>>>>>>> {org.wso2.carbon.user.core.internal.Activator}
>>>>>>>>> - Cannot start User Manager Core bundle
>>>>>>>>> {org.wso2.carbon.user.core.internal.Activator} 
>>>>>>>>> java.lang.RuntimeException:
>>>>>>>>> Error in looking up data source: Name [wso2_carbon_db] is not bound 
>>>>>>>>> in this
>>>

Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Kasun Dananjaya Delgolla
Still the JDBC URLS are wrong in your master-datasources.xml. Please make
all of them exactly same to the DBs you created.

Thanks
On Jul 28, 2015 3:42 PM, "Zahra Alimadadi"  wrote:

> Yes, I edit the question and add them.
>
> On Tue, Jul 28, 2015 at 2:30 PM, Kasun Dananjaya Delgolla  > wrote:
>
>>
>> Can you share your new conf/user-mgt.xml,
>> conf/datasources/master-datasources.xml and conf/registry xml ?
>>
>> On Tue, Jul 28, 2015 at 3:28 PM, Zahra Alimadadi 
>> wrote:
>>
>>> I change datasource 's name to db name with lowercase in
>>> master-datasources.xm and also change jdbc/WSO2CarbonDB to
>>> jdbc/wso2_carbon_db in user-mgt.xml and registry.xml, and restart the
>>> service, but still I couldn't load consols, here is the Error: TID: [0]
>>> [EMM] [2015-07-28 14:17:34,933] error: 
>>> {org.wso2.carbon.user.core.internal.Activator}
>>> - Cannot start User Manager Core bundle
>>> {org.wso2.carbon.user.core.internal.Activator} java.lang.RuntimeException:
>>> Error in looking up data source: Name [wso2_carbon_db] is not bound in this
>>> Context. Unable to find [wso2_carbon_db]
>>>
>>> On Tue, Jul 28, 2015 at 1:36 PM, Kasun Dananjaya Delgolla <
>>> kas...@wso2.com> wrote:
>>>
>>>> As I see, all your DB names are different in the config file and the
>>>> actual DB. So rename your config file
>>>> (repository/conf/datasources/master-datasources.xml) as well as
>>>> user-mgt.xml and registry.xml to match the actual databases.
>>>>
>>>> Thanks
>>>>
>>>> On Tue, Jul 28, 2015 at 2:33 PM, Kasun Dananjaya Delgolla <
>>>> kas...@wso2.com> wrote:
>>>>
>>>>> The reason is, you don't have WSO2CARBON_DB. It's case sensitive. So,
>>>>> go to your DB configurations (masterdatasources.xml) in
>>>>> repository/conf/datasources, and rename WSO2CARBON_DB to wso2_carbon_db 
>>>>> and
>>>>> do the same to the others as well.
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi 
>>>>> wrote:
>>>>>
>>>>>> Hi Kasun,
>>>>>>
>>>>>> You mean WSO2_CARBON_DB?
>>>>>> I created 3 databases, and I check it. here is the screen shot
>>>>>> <http://tinypic.com/view.php?pic=15cdq2g&s=8#.VbdCbiuUfeI> and also
>>>>>> check for j/connector in mysql installer. (here
>>>>>> <http://tinypic.com/r/2w5kayq/8> is this screen shot) and the jar
>>>>>> file is located in
>>>>>> Carbone_Home\repository\components\lib\mysql-connector-java.jar
>>>>>>
>>>>>> Best regards,
>>>>>> Zahra
>>>>>>
>>>>>> On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla <
>>>>>> kas...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Zahra,
>>>>>>>
>>>>>>> You might be missing WSO2CARBON_DB in your DB server or you might
>>>>>>> not installed the MySQL JDBC driver. Please follow [1] to get your
>>>>>>> configuration corrected.
>>>>>>>
>>>>>>> [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi <
>>>>>>> zahra7...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Could some one help me in this, please:
>>>>>>>>
>>>>>>>> EMM - migrate from H2 to Mysql
>>>>>>>> http://stackoverflow.com/q/31656417/3933607?sem=2
>>>>>>>>
>>>>>>>> Best regards,
>>>>>>>> Zahra
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>&

Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Kasun Dananjaya Delgolla
Can you share your new conf/user-mgt.xml,
conf/datasources/master-datasources.xml and conf/registry xml ?

On Tue, Jul 28, 2015 at 3:28 PM, Zahra Alimadadi 
wrote:

> I change datasource 's name to db name with lowercase in
> master-datasources.xm and also change jdbc/WSO2CarbonDB to
> jdbc/wso2_carbon_db in user-mgt.xml and registry.xml, and restart the
> service, but still I couldn't load consols, here is the Error: TID: [0]
> [EMM] [2015-07-28 14:17:34,933] error: 
> {org.wso2.carbon.user.core.internal.Activator}
> - Cannot start User Manager Core bundle
> {org.wso2.carbon.user.core.internal.Activator} java.lang.RuntimeException:
> Error in looking up data source: Name [wso2_carbon_db] is not bound in this
> Context. Unable to find [wso2_carbon_db]
>
> On Tue, Jul 28, 2015 at 1:36 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> As I see, all your DB names are different in the config file and the
>> actual DB. So rename your config file
>> (repository/conf/datasources/master-datasources.xml) as well as
>> user-mgt.xml and registry.xml to match the actual databases.
>>
>> Thanks
>>
>> On Tue, Jul 28, 2015 at 2:33 PM, Kasun Dananjaya Delgolla <
>> kas...@wso2.com> wrote:
>>
>>> The reason is, you don't have WSO2CARBON_DB. It's case sensitive. So, go
>>> to your DB configurations (masterdatasources.xml) in
>>> repository/conf/datasources, and rename WSO2CARBON_DB to wso2_carbon_db and
>>> do the same to the others as well.
>>>
>>> Thanks
>>>
>>> On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi 
>>> wrote:
>>>
>>>> Hi Kasun,
>>>>
>>>> You mean WSO2_CARBON_DB?
>>>> I created 3 databases, and I check it. here is the screen shot
>>>> <http://tinypic.com/view.php?pic=15cdq2g&s=8#.VbdCbiuUfeI> and also
>>>> check for j/connector in mysql installer. (here
>>>> <http://tinypic.com/r/2w5kayq/8> is this screen shot) and the jar file
>>>> is located in
>>>> Carbone_Home\repository\components\lib\mysql-connector-java.jar
>>>>
>>>> Best regards,
>>>> Zahra
>>>>
>>>> On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla <
>>>> kas...@wso2.com> wrote:
>>>>
>>>>> Hi Zahra,
>>>>>
>>>>> You might be missing WSO2CARBON_DB in your DB server or you might not
>>>>> installed the MySQL JDBC driver. Please follow [1] to get your
>>>>> configuration corrected.
>>>>>
>>>>> [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi 
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Could some one help me in this, please:
>>>>>>
>>>>>> EMM - migrate from H2 to Mysql
>>>>>> http://stackoverflow.com/q/31656417/3933607?sem=2
>>>>>>
>>>>>> Best regards,
>>>>>> Zahra
>>>>>>
>>>>>> --
>>>>>>
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Kasun Dananjaya Delgolla
>>>>>
>>>>> Software Engineer
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>> Tel:  +94 11 214 5345
>>>>> Fax: +94 11 2145300
>>>>> Mob: + 94 771 771 015
>>>>> Blog: http://kddcodingparadise.blogspot.com
>>>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Zahra Alimadadi*
>>>>
>>>>
>>>
>>>
>>> --
>>> Kasun Dananjaya Delgolla
>>>
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Tel:  +94 11 214 5345
>>> Fax: +94 11 2145300
>>> Mob: + 94 771 771 015
>>> Blog: http://kddcodingparadise.blogspot.com
>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>
>>
>>
>>
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> <http://lk.linkedin.com/in/kasundananjaya>*
>>
>
>
>
> --
> *Zahra Alimadadi*
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Kasun Dananjaya Delgolla
As I see, all your DB names are different in the config file and the actual
DB. So rename your config file
(repository/conf/datasources/master-datasources.xml) as well as
user-mgt.xml and registry.xml to match the actual databases.

Thanks

On Tue, Jul 28, 2015 at 2:33 PM, Kasun Dananjaya Delgolla 
wrote:

> The reason is, you don't have WSO2CARBON_DB. It's case sensitive. So, go
> to your DB configurations (masterdatasources.xml) in
> repository/conf/datasources, and rename WSO2CARBON_DB to wso2_carbon_db and
> do the same to the others as well.
>
> Thanks
>
> On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi 
> wrote:
>
>> Hi Kasun,
>>
>> You mean WSO2_CARBON_DB?
>> I created 3 databases, and I check it. here is the screen shot
>> <http://tinypic.com/view.php?pic=15cdq2g&s=8#.VbdCbiuUfeI> and also
>> check for j/connector in mysql installer. (here
>> <http://tinypic.com/r/2w5kayq/8> is this screen shot) and the jar file
>> is located in
>> Carbone_Home\repository\components\lib\mysql-connector-java.jar
>>
>> Best regards,
>> Zahra
>>
>> On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla <
>> kas...@wso2.com> wrote:
>>
>>> Hi Zahra,
>>>
>>> You might be missing WSO2CARBON_DB in your DB server or you might not
>>> installed the MySQL JDBC driver. Please follow [1] to get your
>>> configuration corrected.
>>>
>>> [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL
>>>
>>> Thanks
>>>
>>> On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Could some one help me in this, please:
>>>>
>>>> EMM - migrate from H2 to Mysql
>>>> http://stackoverflow.com/q/31656417/3933607?sem=2
>>>>
>>>> Best regards,
>>>> Zahra
>>>>
>>>> --
>>>>
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Kasun Dananjaya Delgolla
>>>
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Tel:  +94 11 214 5345
>>> Fax: +94 11 2145300
>>> Mob: + 94 771 771 015
>>> Blog: http://kddcodingparadise.blogspot.com
>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>
>>
>>
>>
>> --
>> *Zahra Alimadadi*
>>
>>
>
>
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 2145300
> Mob: + 94 771 771 015
> Blog: http://kddcodingparadise.blogspot.com
> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
> <http://lk.linkedin.com/in/kasundananjaya>*
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Kasun Dananjaya Delgolla
The reason is, you don't have WSO2CARBON_DB. It's case sensitive. So, go to
your DB configurations (masterdatasources.xml) in
repository/conf/datasources, and rename WSO2CARBON_DB to wso2_carbon_db and
do the same to the others as well.

Thanks

On Tue, Jul 28, 2015 at 2:25 PM, Zahra Alimadadi 
wrote:

> Hi Kasun,
>
> You mean WSO2_CARBON_DB?
> I created 3 databases, and I check it. here is the screen shot
> <http://tinypic.com/view.php?pic=15cdq2g&s=8#.VbdCbiuUfeI> and also check
> for j/connector in mysql installer. (here <http://tinypic.com/r/2w5kayq/8> is
> this screen shot) and the jar file is located in
> Carbone_Home\repository\components\lib\mysql-connector-java.jar
>
> Best regards,
> Zahra
>
> On Tue, Jul 28, 2015 at 1:10 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> Hi Zahra,
>>
>> You might be missing WSO2CARBON_DB in your DB server or you might not
>> installed the MySQL JDBC driver. Please follow [1] to get your
>> configuration corrected.
>>
>> [1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL
>>
>> Thanks
>>
>> On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi 
>> wrote:
>>
>>> Hi,
>>>
>>> Could some one help me in this, please:
>>>
>>> EMM - migrate from H2 to Mysql
>>> http://stackoverflow.com/q/31656417/3933607?sem=2
>>>
>>> Best regards,
>>> Zahra
>>>
>>> --
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> <http://lk.linkedin.com/in/kasundananjaya>*
>>
>
>
>
> --
> *Zahra Alimadadi*
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question - Please help me

2015-07-28 Thread Kasun Dananjaya Delgolla
Hi Zahra,

You might be missing WSO2CARBON_DB in your DB server or you might not
installed the MySQL JDBC driver. Please follow [1] to get your
configuration corrected.

[1]- https://docs.wso2.com/display/EMM110/Setting+up+MySQL

Thanks

On Tue, Jul 28, 2015 at 1:54 PM, Zahra Alimadadi 
wrote:

> Hi,
>
> Could some one help me in this, please:
>
> EMM - migrate from H2 to Mysql
> http://stackoverflow.com/q/31656417/3933607?sem=2
>
> Best regards,
> Zahra
>
> --
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [EMM] Android Device Management - Challenges

2015-07-22 Thread Kasun Dananjaya Delgolla
Hi All,

Given below are the tasks which are in progress on the Android device
management layer. I'm listing this down according to the priority with the
challenges we faced so far.

1. Policy Monitoring - Plugin level implementation.


   - We need to generalize all the platforms in this scenario specially
   when it comes to the three Monitoring types (Acknowledge, Enforce,
   Warning). In iOS, Enforce mode should send the policy payload back to the
   device. But in Android it's not required since we are storing the policy in
   the Agent app. We overcame this issue by re-sending policy payload (Policy
   Bundle command) to the device. Android Agent will just ignore the policy if
   it matches with the existing policy.

2. Policy Monitoring - Agent level implementation.


   - Completed Implementation.

3. Policy Revoke - Android Agent


   - We have implemented a revoking mechanism for policies to be used in
   situations like dis-enrollment, device administration force disabling and
   apply new policies. In such situations android agent is now revoking the
   existing policy by retrieving the current policy and revoking one by one
   (Ex: If the policy disabled the camera, revoke function will enable the
   camera)

3. BYOD + COPE Separation.


   - Completed and made UI and flow changes to the Android agent
   accordingly. In COPE mode, in the enrollment, license agreement + PIN
   setting will not pop up and user will not be able to dis-enroll the device
   unless the EMM Admin sends a dis-enroll command. In BYOD mode, licence will
   be shown before enrollment, critical operation PIN have to be given as
   well. User can dis-enroll the device at anytime in this mode(in
   dis-enrollment Android agent will auto clear the app data such as access
   tokens etc + agent will initiate an enterprise wipe).

4. Tenant configuration + Settings (This is common to all platforms) - This
is to set settings such as monitoring frequency, email settings etc. - MDM
jaggery app level implementation + Service layer.


   - Completed the jaggery UIs and the back end services are in the process
   of development. We have decided to have the tenant configurations persisted
   in the registry. And retrieve it from their whenever required. (Ex: Android
   enrollment - Notification mode [GCM/LOCAL], GCM sender ID, Notifier
   frequency etc have to be retrieved from configurations)


5. Containerization feature integration - Lollipop API support in Android
Agent level.


   - We are currently in the process of going through the documentation by
   Google on which features we can integrate and how we can get them in place
   to provide a proper container solution for Android.

6. Gradle build - Upgrading the current build script to generate signed APK
taking the keys from a configurable location.


   - Currently we have completed the maven script to invoke gradle build
   script and build the APK (unsigned release APK) and copy it to MDM jaggery
   app downloads location. But there is an intermittent issue we are yet to
   figure out which happens when the build is trying to download Gradle
   wrapper dependency. This dependency is 50+ MB (1st a JAR and then JAR
   invokes a download of 40+ MB file) and in case if it failed in between, the
   build fails. So we need to figure out whether to have these dependency in
   the pack itself and bring the JAR to orbit. We need an input on this.

Please go through and reply in the same thread with your concerns.

Thanks

--
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM 2.0] Android Agent Moved to Gradle Build System

2015-07-13 Thread Kasun Dananjaya Delgolla
Hi Prabath,

Now this already building with maven. It generates an unsigned release APK
and also copies the generated APK to MDM jaggery app download folder.

What's pending is, enabling a config entry for the user to get a signed APK
for production.

Thanks
On Jul 13, 2015 11:01 PM, "Prabath Abeysekera"  wrote:

> Hi Kasun,
>
> This is great! Thanks for looking into this.
>
> Let's try to get this to build with maven so we can then integrate
> "android-agent" module into the regular build system too.
>
> Cheers,
> Prabath
>
> On Thu, Jul 9, 2015 at 3:58 PM, Kasun Dananjaya Delgolla 
> wrote:
>
>> Hi All,
>>
>> $subject has been done since the official Android developer support [1]
>> totally moved from Eclipse to IntelliJ based new Android Studio. Android
>> Studio uses Gradle[2] as its build system which makes developer's life
>> easier by auto importing all the dependencies(from Jcenter repo) on project
>> import and many more advantages.
>>
>> [1] - https://developer.android.com/sdk/index.html
>> [2] - https://developer.android.com/sdk/installing/studio-build.html
>>
>> Thanks
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> <http://lk.linkedin.com/in/kasundananjaya>*
>>
>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [EMM 2.0] Android Agent Moved to Gradle Build System

2015-07-09 Thread Kasun Dananjaya Delgolla
Hi All,

$subject has been done since the official Android developer support [1]
totally moved from Eclipse to IntelliJ based new Android Studio. Android
Studio uses Gradle[2] as its build system which makes developer's life
easier by auto importing all the dependencies(from Jcenter repo) on project
import and many more advantages.

[1] - https://developer.android.com/sdk/index.html
[2] - https://developer.android.com/sdk/installing/studio-build.html

Thanks
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MDM] Modifying "invite-user" functionality of MDM

2015-06-09 Thread Kasun Dananjaya Delgolla
+1. @Harshan-I think what Prabath mentions is just end user changing the
password if required. So it's not necessarily 2 times. Anyway it's the
similar approach we had in 1.1.0. And I don't see an alternative to this
method. So I think we better do this.

On Wed, Jun 10, 2015 at 5:43 AM, Harshan Liyanage  wrote:

> Hi Prabath,
>
> That sounds ok to me. But will it break the end-user experience since the
> users have to login to MDM console and then to enroll the device instead of
> directly enrolling the device (2 MDM logins vs 1 login)?
>
> Thanks,
>
> Lakshitha Harshan
> Software Engineer
> Mobile: *+94724423048*
> Email: hars...@wso2.com
> Blog : http://harshanliyanage.blogspot.com/
> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
> lean.enterprise.middleware.
>
> On Wed, Jun 10, 2015 at 12:34 AM, Prabath Abeysekera 
> wrote:
>
>> Guys,
>>
>> I'm planning to do the $Subject.
>>
>> Right now we ourselves have implemented a functionality where an email is
>> triggered upon creating users. However, this particular functionality
>> appears to be already there with a much better implementation as part of IS
>> components. What it does is, adminstrators can opt to create a user in the
>> user management system with "ask user for password" option, which would
>> automatically trigger an email with a preconfigured template when the user
>> creation is all done. Then the user can log into the MDM console and set
>> himself a password for further use. We can even enforce captcha validation
>> using the existing functionality in IS.
>>
>> Once this step is done, we can then go on to invite users for enrolling
>> their devices.
>>
>> Please shout if there's any issue with the above suggested approach.
>>
>> Cheers,
>> Prabath
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MDM] Current progress of integrating Android operations (Android client / JAX-RS)

2015-05-06 Thread Kasun Dananjaya Delgolla
Hi Inosh,

Yes we can do that as well if necessary. We can introduce a simple Sqlite
DB to hold recent messages (lets say 10 most recent) and in a list view we
can show all of them nicely. @Milan - Let me know if you do something like
that, I will provide you with all the stuff you need. I already have bunch
of my own templates for almost all the features in Android. I can provide
you with those so that you can implement above functionality real quick.

Thanks

On Wed, May 6, 2015 at 12:42 AM, Inosh Perera  wrote:

> Hi Kasun,
>
> +1 for having both. It would be nice if the user can see previous messages
> in a list as well. But not essential.
>
> Regards,
> Inosh
>
> On Wed, May 6, 2015 at 9:41 AM, Milan Perera  wrote:
>
>> Hi Kasun,
>>
>> Thanks for pointing it out. +1 for have both. Because the main intention
>> of sending a message to an user is to get the attention. So having a popup
>> on the screen is one good approach and on the other hand by using native
>> notifications, we will inherently have the features such as notification
>> sound/vibration as well as the device wake up.
>>
>> Regards,
>>
>> On Tue, May 5, 2015 at 8:49 PM, Kasun Dananjaya Delgolla > > wrote:
>>
>>> Hi Milan,
>>>
>>> In our first version we showed it in the notification bar. But according
>>> to the reviews we got in demos etc, the idea was showing it in notification
>>> bar is not making enough visibility to the user. But showing it in a popup,
>>> takes users attention. Which is better in terms of MDM perspective. If user
>>> disregards the notification bar, then he will miss the message. I think to
>>> the problem you mentioned with the pop ups, we can implement a simple
>>> listener to listen to device screen (whether its active or not) and use it
>>> when showing the notification. Since we already have the timer(polling
>>> feature) we can incorporate that also to show stacked up messages received
>>> while user is offline. So I'm -1 to notification bar only approach. Or else
>>> we should have both IMO.
>>>
>>> Thanks
>>>
>>> On Tue, May 5, 2015 at 4:43 AM, Milan Perera  wrote:
>>>
>>>> Hi Inosh,
>>>>
>>>>
>>>>> Does display notification refer to messages sent from admin/other
>>>>> user?
>>>>>
>>>>
>>>> ​Yes. It refers to a message that sends from MDM.
>>>> ​
>>>>
>>>>
>>>>> are we displaying them as popups or as notifications in the
>>>>> notification bar?
>>>>>
>>>>
>>>> ​Currently we display it as a popup window. But I also think that it
>>>> would be better if we use notifications[1], because even if the user is out
>>>> of focus from the activity, it resides in the notification bar.
>>>>  ​
>>>> [1]
>>>> http://developer.android.com/guide/topics/ui/notifiers/notifications.html
>>>>
>>>> ​Regards,​
>>>>
>>>> --
>>>> Milan Harindu Perera
>>>> Software Engineer
>>>> *WSO2, Inc*
>>>> (+94) 77 309 7088
>>>> lean . enterprise . middleware
>>>> <http://lk.linkedin.com/in/milanharinduperera>
>>>>
>>>
>>>
>>>
>>> --
>>> Kasun Dananjaya Delgolla
>>>
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Tel:  +94 11 214 5345
>>> Fax: +94 11 2145300
>>> Mob: + 94 771 771 015
>>> Blog: http://kddcodingparadise.blogspot.com
>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>
>>
>>
>>
>> --
>> Milan Harindu Perera
>> Software Engineer
>> *WSO2, Inc*
>> (+94) 77 309 7088
>> lean . enterprise . middleware
>> <http://lk.linkedin.com/in/milanharinduperera>
>>
>
>
>
> --
> Inosh Perera
> Software Engineer, WSO2 Inc.
> Tel: 0785293686
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MDM] Current progress of integrating Android operations (Android client / JAX-RS)

2015-05-05 Thread Kasun Dananjaya Delgolla
Hi Milan,

In our first version we showed it in the notification bar. But according to
the reviews we got in demos etc, the idea was showing it in notification
bar is not making enough visibility to the user. But showing it in a popup,
takes users attention. Which is better in terms of MDM perspective. If user
disregards the notification bar, then he will miss the message. I think to
the problem you mentioned with the pop ups, we can implement a simple
listener to listen to device screen (whether its active or not) and use it
when showing the notification. Since we already have the timer(polling
feature) we can incorporate that also to show stacked up messages received
while user is offline. So I'm -1 to notification bar only approach. Or else
we should have both IMO.

Thanks

On Tue, May 5, 2015 at 4:43 AM, Milan Perera  wrote:

> Hi Inosh,
>
>
>> Does display notification refer to messages sent from admin/other user?
>>
>
> ​Yes. It refers to a message that sends from MDM.
> ​
>
>
>> are we displaying them as popups or as notifications in the notification
>> bar?
>>
>
> ​Currently we display it as a popup window. But I also think that it would
> be better if we use notifications[1], because even if the user is out of
> focus from the activity, it resides in the notification bar.
>  ​
> [1]
> http://developer.android.com/guide/topics/ui/notifiers/notifications.html
>
> ​Regards,​
>
> --
> Milan Harindu Perera
> Software Engineer
> *WSO2, Inc*
> (+94) 77 309 7088
> lean . enterprise . middleware
> <http://lk.linkedin.com/in/milanharinduperera>
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MDM] Is it possible to get device language, country and carrier?

2015-04-29 Thread Kasun Dananjaya Delgolla
Hi Dilan,

In terms of Android, currently we take only the carrier out of above 3. But
we can of course get the other 2 parameters as well easily since Android
has APIs to retrieve those.

Thanks

On Wed, Apr 29, 2015 at 8:39 PM, Chathura Dilan  wrote:

> Hi All,
>
> Is it possible to get the language, country and carrier form a device from
> WSO2 MDM? It will be useful for stats.
>
> --
> Regards,
>
> Chatura Dilan Perera
> *(Senior Software Engineer** - WSO2 Inc.**)*
> www.dilan.me
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please Review and Merge

2015-04-27 Thread Kasun Dananjaya Delgolla
Hi Milan,

Merged the pull.

Thanks

On Sun, Apr 26, 2015 at 5:11 AM, Milan Perera  wrote:

> Hi,
>
> Please review and merge the PR[1] for JIRA[2].
>
> [1] https://github.com/wso2/product-mdm/pull/45/
> [2] https://wso2.org/jira/browse/MDM-337
>
> ​Thanks,​
>
> --
> Milan Harindu Perera
> Software Engineer
> *WSO2, Inc*
> (+94) 77 309 7088
> lean . enterprise . middleware
> <http://lk.linkedin.com/in/milanharinduperera>
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] EMM 1.1.0 build failure

2015-04-16 Thread Kasun Dananjaya Delgolla
Hi All,

PDI was using dev branch which is causing the issue. Now I'm using [1]
which is the released branch. Which builds fine.

[1] - https://github.com/wso2/product-emm

Thanks

On Wed, Apr 15, 2015 at 10:14 PM, Kasun Dananjaya Delgolla 
wrote:

> Hi Prasanna,
>
> Thanks s lot I will check.
>
> Thanks
> On Apr 15, 2015 9:06 PM, "Prasanna Dangalla"  wrote:
>
>> Hi Kasun,
>>
>> According to the error log the following SNAPSHOT versions are not
>> available in your m2 repo. That should be the reason. For an example
>> "org.wso2.carbon.integration.common.admin.client" is now 4.3.1-SNAPSHOT[1].
>> 4.3.0 is released[2]. Check the versions of these dependencies and its
>> better if you can change them to latest release versions and check.
>> Similarly for "automation:org.wso2.carbon.automation.extensions" refer
>> [3][4].
>>
>> org.wso2.carbon:org.wso2.carbon.integration.common.admin.client:jar:4.3.0-SNAPSHOT,
>> org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT,
>> org.wso2.carbon.automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT,
>> org.wso2.carbon.automation:org.wso2.carbon.automation.engine:jar:4.3.1-SNAPSHOT
>>
>>
>> [1] -
>> https://github.com/wso2/carbon-platform-integration-utils/blob/master/common-admin-clients/pom.xml#L24
>> [2] - https://github.com/wso2/carbon-platform-integration-utils/releases
>> [3] -
>> https://github.com/wso2/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.extensions/pom.xml#L26
>> [4] - https://github.com/wso2/carbon-platform-integration/releases
>>
>> Thanks
>>
>> On Thu, Apr 16, 2015 at 2:10 AM, Kasun Dananjaya Delgolla <
>> kas...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I'm getting a build failure (dependency resolve issue) when building EMM
>>> 1.1.0 from source in a fresh M2 (Error log attached). I used the same maven
>>> version which did the build properly the last time I built it. Any idea
>>> why?
>>>
>>> Thanks
>>> --
>>> Kasun Dananjaya Delgolla
>>>
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Tel:  +94 11 214 5345
>>> Fax: +94 11 2145300
>>> Mob: + 94 771 771 015
>>> Blog: http://kddcodingparadise.blogspot.com
>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Prasanna Dangalla
>> Software Engineer, WSO2, Inc.; http://wso2.com/
>> lean.enterprise.middleware
>>
>> cell: +94 777 55 80 30 | +94 718 11 27 51
>> twitter: @prasa77
>>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] EMM 1.1.0 build failure

2015-04-15 Thread Kasun Dananjaya Delgolla
Hi Prasanna,

Thanks s lot I will check.

Thanks
On Apr 15, 2015 9:06 PM, "Prasanna Dangalla"  wrote:

> Hi Kasun,
>
> According to the error log the following SNAPSHOT versions are not
> available in your m2 repo. That should be the reason. For an example
> "org.wso2.carbon.integration.common.admin.client" is now 4.3.1-SNAPSHOT[1].
> 4.3.0 is released[2]. Check the versions of these dependencies and its
> better if you can change them to latest release versions and check.
> Similarly for "automation:org.wso2.carbon.automation.extensions" refer
> [3][4].
>
> org.wso2.carbon:org.wso2.carbon.integration.common.admin.client:jar:4.3.0-SNAPSHOT,
> org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT,
> org.wso2.carbon.automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT,
> org.wso2.carbon.automation:org.wso2.carbon.automation.engine:jar:4.3.1-SNAPSHOT
>
>
> [1] -
> https://github.com/wso2/carbon-platform-integration-utils/blob/master/common-admin-clients/pom.xml#L24
> [2] - https://github.com/wso2/carbon-platform-integration-utils/releases
> [3] -
> https://github.com/wso2/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.extensions/pom.xml#L26
> [4] - https://github.com/wso2/carbon-platform-integration/releases
>
> Thanks
>
> On Thu, Apr 16, 2015 at 2:10 AM, Kasun Dananjaya Delgolla  > wrote:
>
>> Hi All,
>>
>> I'm getting a build failure (dependency resolve issue) when building EMM
>> 1.1.0 from source in a fresh M2 (Error log attached). I used the same maven
>> version which did the build properly the last time I built it. Any idea
>> why?
>>
>> Thanks
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> <http://lk.linkedin.com/in/kasundananjaya>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Prasanna Dangalla
> Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
> cell: +94 777 55 80 30 | +94 718 11 27 51
> twitter: @prasa77
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [EMM] EMM 1.1.0 build failure

2015-04-15 Thread Kasun Dananjaya Delgolla
Hi All,

I'm getting a build failure (dependency resolve issue) when building EMM
1.1.0 from source in a fresh M2 (Error log attached). I used the same maven
version which did the build properly the last time I built it. Any idea
why?

Thanks
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
[ERROR] Failed to execute goal on project org.wso2.emm.integration.ui.pages: 
Could not resolve dependencies for project 
org.wso2.emm:org.wso2.emm.integration.ui.pages:jar:1.1.0: The following 
artifacts could not be resolved: 
org.wso2.carbon:org.wso2.carbon.integration.common.admin.client:jar:4.3.0-SNAPSHOT,
 
org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT,
 
org.wso2.carbon.automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT,
 
org.wso2.carbon.automation:org.wso2.carbon.automation.engine:jar:4.3.1-SNAPSHOT:
 Failure to find 
org.wso2.carbon:org.wso2.carbon.integration.common.admin.client:jar:4.3.0-SNAPSHOT
 in http://dist.wso2.org/maven2/ was cached in the local repository, resolution 
will not be reattempted until the update interval of wso2-maven2-repository has 
elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
on project org.wso2.emm.integration.ui.pages: Could not resolve dependencies 
for project org.wso2.emm:org.wso2.emm.integration.ui.pages:jar:1.1.0: The 
following artifacts could not be resolved: 
org.wso2.carbon:org.wso2.carbon.integration.common.admin.client:jar:4.3.0-SNAPSHOT,
 
org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT,
 
org.wso2.carbon.automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT,
 
org.wso2.carbon.automation:org.wso2.carbon.automation.engine:jar:4.3.1-SNAPSHOT:
 Failure to find 
org.wso2.carbon:org.wso2.carbon.integration.common.admin.client:jar:4.3.0-SNAPSHOT
 in http://dist.wso2.org/maven2/ was cached in the local repository, resolution 
will not be reattempted until the update interval of wso2-maven2-repository has 
elapsed or updates are forced
at 
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:220)
at 
org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:257)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not 
resolve dependencies for project 
org.wso2.emm:org.wso2.emm.integration.ui.pages:jar:1.1.0: The following 
artifacts could not be resolved: 
org.wso2.carbon:org.wso2.carbon.integration.common.admin.client:jar:4.3.0-SNAPSHOT,
 
org.wso2.carbon.automation:org.wso2.carbon.automation.extensions:jar:4.3.1-SNAPSHOT,
 
org.wso2.carbon.automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT,
 
org.wso2.carbon.automation:org.wso2.carbon.automation.engine:jar:4.3.1-SNAPSHOT:
 Failure to 

Re: [Dev] WSO2 Committers += Kasun Dhananjaya Delgolla

2015-04-11 Thread Kasun Dananjaya Delgolla
Thank a lot everyone! :)

On Sat, Apr 11, 2015 at 1:26 PM, Jerad Rutnam  wrote:

> Congratulations Kasun! :)
>
> On Sat, Apr 11, 2015 at 7:55 PM, Prasanna Dangalla 
> wrote:
>
>> Congratulations
>>
>> On Fri, Apr 10, 2015 at 9:45 PM, Harsha Kumara  wrote:
>>
>>> Congratulations Kasun!
>>>
>>> On Fri, Apr 10, 2015 at 6:39 PM, Maheeka Jayasuriya 
>>> wrote:
>>>
>>>> Congrats Kasun !!
>>>>
>>>> Maheeka Jayasuriya
>>>> Software Engineer
>>>> Mobile : +9450661
>>>>
>>>> On Fri, Apr 10, 2015 at 6:05 PM, Dilan Udara Ariyaratne <
>>>> dil...@wso2.com> wrote:
>>>>
>>>>> Congratz, Kasun!!!
>>>>>
>>>>>
>>>>> *Dilan U. Ariyaratne*
>>>>> Software Engineer
>>>>> WSO2 Inc. <http://wso2.com/>
>>>>> Mobile: +94775149066
>>>>> lean . enterprise . middleware
>>>>>
>>>>> On Fri, Apr 10, 2015 at 5:30 PM, Prabath Abeysekera >>>> > wrote:
>>>>>
>>>>>> Hi Everyone,
>>>>>>
>>>>>> It's my pleasure to welcome Kasun Dhananjaya Delgolla as a WSO2
>>>>>> Committer. Kasun has been a key element of EMM as well as MDM teams for 
>>>>>> the
>>>>>> last couple of years and contributed towards all development efforts 
>>>>>> with a
>>>>>> great deal of passion and commitment. In recognition of his 
>>>>>> contributions,
>>>>>> he's been voted in as a WSO2 Committer.
>>>>>>
>>>>>> Kasun, Welcome aboard and keep up the good work!
>>>>>>
>>>>>> Cheers,
>>>>>> Prabath
>>>>>> --
>>>>>> Prabath Abeysekara
>>>>>> Associate Technical Lead, Data TG.
>>>>>> WSO2 Inc.
>>>>>> Email: praba...@wso2.com
>>>>>> Mobile: +94774171471
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Harsha Kumara
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94775505618
>>> Blog:harshcreationz.blogspot.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Prasanna Dangalla
>> Software Engineer, WSO2, Inc.; http://wso2.com/
>> lean.enterprise.middleware
>>
>> cell: +94 777 55 80 30 | +94 718 11 27 51
>> twitter: @prasa77
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Getting an axis2 Phase exception when logging in via a tenant

2015-04-09 Thread Kasun Dananjaya Delgolla
On Thu, Apr 9, 2015 at 8:44 AM, Kasun Dananjaya Delgolla 
wrote:

> Hi All,
>
> $subject when logging in using a tenant. Any idea why? I've got the
> Transport phase in the axis2 xml which I've found as a fix to this error in
> many threads. I herewith attached my axis2.xml and the log trace.
>
> Thanks
>
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 2145300
> Mob: + 94 771 771 015
> Blog: http://kddcodingparadise.blogspot.com
> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
> <http://lk.linkedin.com/in/kasundananjaya>*
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [EMM] Getting an axis2 Phase exception when logging in via a tenant

2015-04-09 Thread Kasun Dananjaya Delgolla
Hi All,

$subject when logging in using a tenant. Any idea why? I've got the
Transport phase in the axis2 xml which I've found as a fix to this error in
many threads. I herewith attached my axis2.xml and the log trace.

Thanks

-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
TID: [0] [EMM] [2015-04-09 12:26:12,574] ERROR 
{org.wso2.carbon.security.internal.SecurityAxis2ConfigurationContextObserver} - 
 Cannot globally engage POX Security module 
{org.wso2.carbon.security.internal.SecurityAxis2ConfigurationContextObserver}
org.apache.axis2.phaseresolver.PhaseException: Did not find the desired phase 
'Transport' while deploying handler 'POXSecurityHandler'.
at 
org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75)
at 
org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68)
at 
org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104)
at 
org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110)
at 
org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:152)
at 
org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
at 
org.apache.axis2.description.AxisService.onEngage(AxisService.java:827)
at 
org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
at 
org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134)
at 
org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
at 
org.apache.axis2.engine.AxisConfiguration.onEngage(AxisConfiguration.java:639)
at 
org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:478)
at 
org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:439)
at 
org.wso2.carbon.security.internal.SecurityAxis2ConfigurationContextObserver.createdConfigurationContext(SecurityAxis2ConfigurationContextObserver.java:41)
at 
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344)
at 
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)
at 
org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:131)
at 
org.wso2.carbon.identity.application.authenticator.basicauth.BasicAuthenticator.authenticate(BasicAuthenticator.java:204)
at 
org.wso2.carbon.identity.application.authenticator.basicauth.BasicAuthenticator.doAuthentication(BasicAuthenticator.java:51)
at 
org.wso2.carbon.identity.application.authentication.framework.CommonApplicationAuthenticationServlet.doPost(CommonApplicationAuthenticationServlet.java:150)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at 
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
at 
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at 
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at 
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at 
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at 
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation

Re: [Dev] User Manager MySQL Exception

2015-04-07 Thread Kasun Dananjaya Delgolla
Hi Inshaf,

I have tried using mysql-connector-java-5.1.30.jar, but I'm still getting
the same issue. I think it's something with the mysql version + connector
compatibility.

@Sewmini - You might be using the correct combination. I will have to try
that as well. But if anyone can give a solution to this which prevent me
from changing versions would be great.

Thanks

On Tue, Apr 7, 2015 at 4:25 AM, Sewmini Jayaweera  wrote:

> Hi Kasun,
>
> I clustered IS 5.0.0 recently using mysql-connector-java-5.1.34-bin.jar
> and mysql version I used was 5.5.35. I didn't get an exception as such.
>
>
> Cheers!
>
> Sewmini Jayaweera
> *Software Engineer - QA Team*
> Mobile: +94 (0) 773 381 250
> sewm...@wso2.com
>
> On Tue, Apr 7, 2015 at 11:12 AM, Inshaf Mahath  wrote:
>
>> Hi Kasun,
>>
>> Did you try on mysql-connector-java-5.1.30.jar? I faced some issues
>> because of different version of jars. But 5.1.30 worked for me.
>>
>> On Tue, Apr 7, 2015 at 1:26 AM, Kasun Dananjaya Delgolla > > wrote:
>>
>>> Hi All,
>>>
>>> I'm getting a MySQL Error
>>> (com.mysql.jdbc.exceptions.MySQLSyntaxErrorException) when I'm trying to
>>> manager users via Carbon console. MySQL version in the server is 5.5.41 and
>>> the connectorJ version is 5.1.35. I have tried the solution suggested by
>>> Darshana in [1] and it did not work for me.
>>>
>>> Any idea how to resolve this?
>>>
>>> [1] - https://wso2.org/jira/browse/IDENTITY-1641
>>>
>>> Thanks
>>> --
>>> Kasun Dananjaya Delgolla
>>>
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Tel:  +94 11 214 5345
>>> Fax: +94 11 2145300
>>> Mob: + 94 771 771 015
>>> Blog: http://kddcodingparadise.blogspot.com
>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Inshaf Mahath
>> Associate Software Engineer
>> Mobile: +94775907181
>> WSO2 Inc.
>> Lean . Enterprise . Middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] User Manager MySQL Exception

2015-04-06 Thread Kasun Dananjaya Delgolla
Hi All,

I'm getting a MySQL Error
(com.mysql.jdbc.exceptions.MySQLSyntaxErrorException) when I'm trying to
manager users via Carbon console. MySQL version in the server is 5.5.41 and
the connectorJ version is 5.1.35. I have tried the solution suggested by
Darshana in [1] and it did not work for me.

Any idea how to resolve this?

[1] - https://wso2.org/jira/browse/IDENTITY-1641

Thanks
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] OAuth Token endpoint throws an exception

2015-03-26 Thread Kasun Dananjaya Delgolla
Hi Prasad,

Now I don't get the ClassNotFound error. But I'm getting another exception
which is a NullPointer(attached) as of now. Are you guys aware of that as
well?

Thanks

On Thu, Mar 26, 2015 at 9:17 AM, Prasad Tissera  wrote:

> Yes, we didn't get a fix for this yet.
>
> Regards,
> Prasad.
>
> On Thu, Mar 26, 2015 at 9:07 AM, Kasun Dananjaya Delgolla  > wrote:
>
>> Hi Prasad,
>>
>> Any update on this? Still to be fixed?
>>
>> Thanks
>>
>> On Fri, Mar 20, 2015 at 11:19 AM, Prasad Tissera 
>> wrote:
>>
>>> Hi Kasun,
>>>
>>> patch0001 is the patch we currently have for this issue. It worked
>>> without any issues for us. Can you please try again and verify. Thanks
>>>
>>> Regards,
>>> Prasad.
>>>
>>> On Thu, Mar 19, 2015 at 6:31 PM, Kasun Dananjaya Delgolla <
>>> kas...@wso2.com> wrote:
>>>
>>>> Hi Farasath,
>>>>
>>>> Thanks a lot for your suggestion. I tried the patch you provided, but I
>>>> still get the same issue. I talked with IS team and they said they also
>>>> getting the same issue intermittently. They are working on a solution for
>>>> that.
>>>>
>>>> Thanks
>>>>
>>>>
>>>> On Thu, Mar 19, 2015 at 5:52 PM, Farasath Ahamed 
>>>> wrote:
>>>>
>>>>> Hi Kasun,
>>>>>
>>>>> I faced the same issue previously. Was able to overcome by applying
>>>>> the attached patch to IS 5.0.0.
>>>>>
>>>>> On Thu, Mar 19, 2015 at 1:22 PM, Kasun Dananjaya Delgolla <
>>>>> kas...@wso2.com> wrote:
>>>>>
>>>>>> Hi Waruna,
>>>>>>
>>>>>> Any update on this?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> On Tue, Mar 17, 2015 at 3:35 PM, Kasun Dananjaya Delgolla <
>>>>>> kas...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Waruna,
>>>>>>>
>>>>>>> Thanks a lot. But it does not solve the issue. I haven't done any
>>>>>>> plugin changes or patch additions. It happened just after building the 
>>>>>>> CDM
>>>>>>> pack and run it. We have a use case where a mobile client needs token
>>>>>>> generation and when we call token url from the client (or even we run a
>>>>>>> curl from our server itself) it gives the above exception.
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> On Tue, Mar 17, 2015 at 3:19 PM, Waruna Perera 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi Kasun,
>>>>>>>>
>>>>>>>> Pls see if following thread helps [1].
>>>>>>>>
>>>>>>>> [1][Dev] [IS]Can not access oauth2 authorize endpoint url
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Mar 17, 2015 at 2:56 PM, Kasun Dananjaya Delgolla <
>>>>>>>> kas...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi All,
>>>>>>>>>
>>>>>>>>> $subject happens when we try to generate access token using /token
>>>>>>>>> endpoint. We are using version 4.3.3 and full error log is attached. 
>>>>>>>>> In
>>>>>>>>> brief, it's
>>>>>>>>>
>>>>>>>>>  java.lang.NoClassDefFoundError:
>>>>>>>>> org/wso2/carbon/identity/oauth/cache/CacheKey
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> --
>>>>>>>>> Kasun Dananjaya Delgolla
>>>>>>>>>
>>>>>>>>> Software Engineer
>>>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>>>> lean.enterprise.middleware
>>>>>>>>> Tel:  +94 11 214 5345
>>>>>>>>> Fax: +94 11 2145300
>>>>>>>>> Mob: + 94 771 771 015
>>>>>>>>> Blog: http://kddcodingparadise.blogspot.com
>>>>>>>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>>>>>>>> <

Re: [Dev] [IS] OAuth Token endpoint throws an exception

2015-03-25 Thread Kasun Dananjaya Delgolla
Hi Prasad,

Any update on this? Still to be fixed?

Thanks

On Fri, Mar 20, 2015 at 11:19 AM, Prasad Tissera  wrote:

> Hi Kasun,
>
> patch0001 is the patch we currently have for this issue. It worked without
> any issues for us. Can you please try again and verify. Thanks
>
> Regards,
> Prasad.
>
> On Thu, Mar 19, 2015 at 6:31 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> Hi Farasath,
>>
>> Thanks a lot for your suggestion. I tried the patch you provided, but I
>> still get the same issue. I talked with IS team and they said they also
>> getting the same issue intermittently. They are working on a solution for
>> that.
>>
>> Thanks
>>
>>
>> On Thu, Mar 19, 2015 at 5:52 PM, Farasath Ahamed 
>> wrote:
>>
>>> Hi Kasun,
>>>
>>> I faced the same issue previously. Was able to overcome by applying the
>>> attached patch to IS 5.0.0.
>>>
>>> On Thu, Mar 19, 2015 at 1:22 PM, Kasun Dananjaya Delgolla <
>>> kas...@wso2.com> wrote:
>>>
>>>> Hi Waruna,
>>>>
>>>> Any update on this?
>>>>
>>>> Thanks
>>>>
>>>> On Tue, Mar 17, 2015 at 3:35 PM, Kasun Dananjaya Delgolla <
>>>> kas...@wso2.com> wrote:
>>>>
>>>>> Hi Waruna,
>>>>>
>>>>> Thanks a lot. But it does not solve the issue. I haven't done any
>>>>> plugin changes or patch additions. It happened just after building the CDM
>>>>> pack and run it. We have a use case where a mobile client needs token
>>>>> generation and when we call token url from the client (or even we run a
>>>>> curl from our server itself) it gives the above exception.
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Tue, Mar 17, 2015 at 3:19 PM, Waruna Perera 
>>>>> wrote:
>>>>>
>>>>>> Hi Kasun,
>>>>>>
>>>>>> Pls see if following thread helps [1].
>>>>>>
>>>>>> [1][Dev] [IS]Can not access oauth2 authorize endpoint url
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Mar 17, 2015 at 2:56 PM, Kasun Dananjaya Delgolla <
>>>>>> kas...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi All,
>>>>>>>
>>>>>>> $subject happens when we try to generate access token using /token
>>>>>>> endpoint. We are using version 4.3.3 and full error log is attached. In
>>>>>>> brief, it's
>>>>>>>
>>>>>>>  java.lang.NoClassDefFoundError:
>>>>>>> org/wso2/carbon/identity/oauth/cache/CacheKey
>>>>>>>
>>>>>>> Thanks
>>>>>>> --
>>>>>>> Kasun Dananjaya Delgolla
>>>>>>>
>>>>>>> Software Engineer
>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>> lean.enterprise.middleware
>>>>>>> Tel:  +94 11 214 5345
>>>>>>> Fax: +94 11 2145300
>>>>>>> Mob: + 94 771 771 015
>>>>>>> Blog: http://kddcodingparadise.blogspot.com
>>>>>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>>>>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Waruna Perera
>>>>>> Senior Software Engineer - Test Automation
>>>>>> Mobile: +94 77 3867037
>>>>>> WSO2, Inc.; http://wso2.com/
>>>>>> lean . enterprise . middlewear.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Kasun Dananjaya Delgolla
>>>>>
>>>>> Software Engineer
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>> Tel:  +94 11 214 5345
>>>>> Fax: +94 11 2145300
>>>>> Mob: + 94 771 771 015
>>>>> Blog: http://kddcodingparadise.blogspot.com
>>>>> Linkedin: *http://lk.li

[Dev] [MDM-Android-Aent] About adding Android dependency to maven build script

2015-03-25 Thread Kasun Dananjaya Delgolla
Hi All,

$subject is not available as an official Google release. But we could find
a repo by a different party, but it does not has the SDK version (21) which
we need to build our Agent. Building the Agent using maven is a major
requirement because currently it has to be done manually by importing it to
Eclipse.

Can we host these libraries in our own repo? Or WDYT as a solution to this?

Thanks

-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] OAuth Token endpoint throws an exception

2015-03-19 Thread Kasun Dananjaya Delgolla
Hi Farasath,

Thanks a lot for your suggestion. I tried the patch you provided, but I
still get the same issue. I talked with IS team and they said they also
getting the same issue intermittently. They are working on a solution for
that.

Thanks


On Thu, Mar 19, 2015 at 5:52 PM, Farasath Ahamed  wrote:

> Hi Kasun,
>
> I faced the same issue previously. Was able to overcome by applying the
> attached patch to IS 5.0.0.
>
> On Thu, Mar 19, 2015 at 1:22 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> Hi Waruna,
>>
>> Any update on this?
>>
>> Thanks
>>
>> On Tue, Mar 17, 2015 at 3:35 PM, Kasun Dananjaya Delgolla <
>> kas...@wso2.com> wrote:
>>
>>> Hi Waruna,
>>>
>>> Thanks a lot. But it does not solve the issue. I haven't done any plugin
>>> changes or patch additions. It happened just after building the CDM pack
>>> and run it. We have a use case where a mobile client needs token generation
>>> and when we call token url from the client (or even we run a curl from our
>>> server itself) it gives the above exception.
>>>
>>> Thanks
>>>
>>> On Tue, Mar 17, 2015 at 3:19 PM, Waruna Perera  wrote:
>>>
>>>> Hi Kasun,
>>>>
>>>> Pls see if following thread helps [1].
>>>>
>>>> [1][Dev] [IS]Can not access oauth2 authorize endpoint url
>>>>
>>>>
>>>>
>>>> On Tue, Mar 17, 2015 at 2:56 PM, Kasun Dananjaya Delgolla <
>>>> kas...@wso2.com> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> $subject happens when we try to generate access token using /token
>>>>> endpoint. We are using version 4.3.3 and full error log is attached. In
>>>>> brief, it's
>>>>>
>>>>>  java.lang.NoClassDefFoundError:
>>>>> org/wso2/carbon/identity/oauth/cache/CacheKey
>>>>>
>>>>> Thanks
>>>>> --
>>>>> Kasun Dananjaya Delgolla
>>>>>
>>>>> Software Engineer
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>> Tel:  +94 11 214 5345
>>>>> Fax: +94 11 2145300
>>>>> Mob: + 94 771 771 015
>>>>> Blog: http://kddcodingparadise.blogspot.com
>>>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>>>
>>>>> _______
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Waruna Perera
>>>> Senior Software Engineer - Test Automation
>>>> Mobile: +94 77 3867037
>>>> WSO2, Inc.; http://wso2.com/
>>>> lean . enterprise . middlewear.
>>>>
>>>
>>>
>>>
>>> --
>>> Kasun Dananjaya Delgolla
>>>
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Tel:  +94 11 214 5345
>>> Fax: +94 11 2145300
>>> Mob: + 94 771 771 015
>>> Blog: http://kddcodingparadise.blogspot.com
>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>
>>
>>
>>
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> <http://lk.linkedin.com/in/kasundananjaya>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Farasath Ahamed*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
>
> Mobile: +94 777 603 866
> E-Mail:  farasath <http://goog_1999535192>a...@wso2.com
> Blog: http://thepseudocode.blogspot.com/
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] OAuth Token endpoint throws an exception

2015-03-19 Thread Kasun Dananjaya Delgolla
Hi Waruna,

Any update on this?

Thanks

On Tue, Mar 17, 2015 at 3:35 PM, Kasun Dananjaya Delgolla 
wrote:

> Hi Waruna,
>
> Thanks a lot. But it does not solve the issue. I haven't done any plugin
> changes or patch additions. It happened just after building the CDM pack
> and run it. We have a use case where a mobile client needs token generation
> and when we call token url from the client (or even we run a curl from our
> server itself) it gives the above exception.
>
> Thanks
>
> On Tue, Mar 17, 2015 at 3:19 PM, Waruna Perera  wrote:
>
>> Hi Kasun,
>>
>> Pls see if following thread helps [1].
>>
>> [1][Dev] [IS]Can not access oauth2 authorize endpoint url
>>
>>
>>
>> On Tue, Mar 17, 2015 at 2:56 PM, Kasun Dananjaya Delgolla <
>> kas...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> $subject happens when we try to generate access token using /token
>>> endpoint. We are using version 4.3.3 and full error log is attached. In
>>> brief, it's
>>>
>>>  java.lang.NoClassDefFoundError:
>>> org/wso2/carbon/identity/oauth/cache/CacheKey
>>>
>>> Thanks
>>> --
>>> Kasun Dananjaya Delgolla
>>>
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Tel:  +94 11 214 5345
>>> Fax: +94 11 2145300
>>> Mob: + 94 771 771 015
>>> Blog: http://kddcodingparadise.blogspot.com
>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 2145300
> Mob: + 94 771 771 015
> Blog: http://kddcodingparadise.blogspot.com
> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
> <http://lk.linkedin.com/in/kasundananjaya>*
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] OAuth Token endpoint throws an exception

2015-03-17 Thread Kasun Dananjaya Delgolla
Hi Waruna,

Thanks a lot. But it does not solve the issue. I haven't done any plugin
changes or patch additions. It happened just after building the CDM pack
and run it. We have a use case where a mobile client needs token generation
and when we call token url from the client (or even we run a curl from our
server itself) it gives the above exception.

Thanks

On Tue, Mar 17, 2015 at 3:19 PM, Waruna Perera  wrote:

> Hi Kasun,
>
> Pls see if following thread helps [1].
>
> [1][Dev] [IS]Can not access oauth2 authorize endpoint url
>
>
>
> On Tue, Mar 17, 2015 at 2:56 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> Hi All,
>>
>> $subject happens when we try to generate access token using /token
>> endpoint. We are using version 4.3.3 and full error log is attached. In
>> brief, it's
>>
>>  java.lang.NoClassDefFoundError:
>> org/wso2/carbon/identity/oauth/cache/CacheKey
>>
>> Thanks
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> <http://lk.linkedin.com/in/kasundananjaya>*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] OAuth Token endpoint throws an exception

2015-03-17 Thread Kasun Dananjaya Delgolla
Hi All,

$subject happens when we try to generate access token using /token
endpoint. We are using version 4.3.3 and full error log is attached. In
brief, it's

 java.lang.NoClassDefFoundError:
org/wso2/carbon/identity/oauth/cache/CacheKey

Thanks
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
Apache Tomcat/7.0.52 - Error report<!--H1 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
 H2 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
 H3 
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
 BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} 
B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P 
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
 {color : black;}A.name {color : black;}HR {color : #525D76;}--> 
HTTP Status 500 - Servlet.init() for servlet OAuth2Endpoints 
threw exceptiontype Exception 
reportmessage Servlet.init() for servlet OAuth2Endpoints threw 
exceptiondescription The server encountered an internal 
error that prevented it from fulfilling this 
request.exception javax.servlet.ServletException: 
Servlet.init() for servlet OAuth2Endpoints threw exception

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:183)

org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)

org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)

org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)

org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:146)

org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)

org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721)

org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
root cause 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'tokEP': Cannot resolve reference to bean 'authzEndpointBean' 
while setting bean property 'serviceBeans' with key [0]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'authzEndpointBean' defined in URL 
[jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]: Instantiation of bean failed; 
nested exception is java.lang.NoClassDefFoundError: 
org/wso2/carbon/identity/oauth/cache/CacheKey

org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)

org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)

org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)

org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1327)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1085)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:516)

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)

org.springframew

Re: [Dev] [MDM] Where are we saving the operation responses?

2015-03-11 Thread Kasun Dananjaya Delgolla
But isn't it more inefficient to re-process it?

On Wed, Mar 11, 2015 at 2:34 PM, Dilshan Edirisuriya 
wrote:

> Agreed with Dulithas comment. Last time we faced an issue like this when
> it comes to applications. In the application list query it sends the list
> of application as plist output. We can store the entire payload response as
> it is but it is inefficient to query by any application name keyword or
> bundle id.
>
> Regards,
>
> Dilshan
>
> On Wed, Mar 11, 2015 at 9:58 AM, Inosh Perera  wrote:
>
>> Hi all,
>>
>> Is this table essentially store key-value pairs with a reference to the
>> operations table? Since operations can have different properties(keys)?
>>
>> Regards,
>> Inosh
>>
>> On Wed, Mar 11, 2015 at 8:58 AM, Dulitha Wijewantha 
>> wrote:
>>
>>> +1, we need a response table. But after getting the response, we have to
>>> decompose that and get the information out of it and update relevant table.
>>> For example, current applications should be in a different table. Otherwise
>>> we have to scan across the response table, obtain the last record and
>>> perform in text searches. Same goes for device properties, if the SIM card
>>> got updated, the device table in the plugin db has to be updated.
>>>
>>> Cheers~
>>>
>>> On Wed, Mar 11, 2015 at 8:36 AM, Harshan Liyanage 
>>> wrote:
>>>
>>>> Agreed. We need to have a place to store incoming messages. WDYT about
>>>> having a separate table having a foreign-key reference to operation table?
>>>> So that we could save the responses for each operation there. Since it is a
>>>> different table, the load on operation table will reduce at peak times.
>>>>
>>>> Lakshitha Harshan
>>>> Software Engineer
>>>> Mobile: *+94724423048*
>>>> Email: hars...@wso2.com
>>>> Blog : http://harshanliyanage.blogspot.com/
>>>> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
>>>> lean.enterprise.middleware.
>>>>
>>>> On Wed, Mar 11, 2015 at 6:30 AM, Kasun Dananjaya Delgolla <
>>>> kas...@wso2.com> wrote:
>>>>
>>>>> It's simillar in Android's case as well. Aren't we have to store reply
>>>>> payloads and retrieve data from it when loading device data? Earlier we
>>>>> handled it using a field in the notification table.
>>>>> On Mar 10, 2015 5:46 PM, "Dilshan Edirisuriya" 
>>>>> wrote:
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> In iOS some operation corresponds to a operation response. Like
>>>>>> application list, device operations etc. has a response which has a list 
>>>>>> of
>>>>>> applications, list of device properties etc. Right now I only see a 
>>>>>> status
>>>>>> being changed upon getting an operation response. Hence how do we track 
>>>>>> the
>>>>>> operation responses?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Dilshan
>>>>>>
>>>>>> --
>>>>>> Dilshan Edirisuriya
>>>>>> Senior Software Engineer - WSO2
>>>>>> Mob: + 94 777878905
>>>>>> http://wso2.com/
>>>>>> https://www.linkedin.com/profile/view?id=50486426
>>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Dulitha Wijewantha (Chan)
>>> Software Engineer - Mobile Development
>>> WSO2 Inc
>>> Lean.Enterprise.Middleware
>>>  * ~Email   duli...@wso2.com *
>>> *  ~Mobile +94712112165 <%2B94712112165>*
>>> *  ~Website   dulitha.me <http://dulitha.me>*
>>> *  ~Twitter @dulitharw <https://twitter.com/dulitharw>*
>>>   *~Github @dulichan <https://github.com/dulichan>*
>>>   *~SO @chan <http://stackoverflow.com/users/813471/chan>*
>>>
>>
>>
>>
>> --
>> Inosh Perera
>> Software Engineer, WSO2 Inc.
>> Tel: 0785293686
>>
>
>
>
> --
> Dilshan Edirisuriya
> Senior Software Engineer - WSO2
> Mob: + 94 777878905
> http://wso2.com/
> https://www.linkedin.com/profile/view?id=50486426
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MDM] Where are we saving the operation responses?

2015-03-10 Thread Kasun Dananjaya Delgolla
It's simillar in Android's case as well. Aren't we have to store reply
payloads and retrieve data from it when loading device data? Earlier we
handled it using a field in the notification table.
On Mar 10, 2015 5:46 PM, "Dilshan Edirisuriya"  wrote:

> Hi
>
> In iOS some operation corresponds to a operation response. Like
> application list, device operations etc. has a response which has a list of
> applications, list of device properties etc. Right now I only see a status
> being changed upon getting an operation response. Hence how do we track the
> operation responses?
>
> Regards,
>
> Dilshan
>
> --
> Dilshan Edirisuriya
> Senior Software Engineer - WSO2
> Mob: + 94 777878905
> http://wso2.com/
> https://www.linkedin.com/profile/view?id=50486426
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Announce] WSO2 Committers += Dulitha Wijewantha

2015-03-08 Thread Kasun Dananjaya Delgolla
Congratz Chan! :)

On Mon, Mar 9, 2015 at 10:03 AM, Damith Wickramasinghe 
wrote:

> Congrats Dulitha...!!!
>
> On Mon, Mar 9, 2015 at 10:01 AM, Aiyadurai Rajeevan 
> wrote:
>
>> Congrats Dulitha... :)
>>
>> Thanks & Regards,
>> S.A.Rajeevan
>> Software Engineer WSO2 Inc
>> E-Mail: rajeev...@wso2.com | Mobile : +94776411636
>>
>> On Mon, Mar 9, 2015 at 9:18 AM, Inosh Perera  wrote:
>>
>>> Congrats Dulitha!
>>>
>>> On Mon, Mar 9, 2015 at 8:53 AM, Harsha Kumara  wrote:
>>>
>>>> Congratulations Dulitha!
>>>>
>>>> On Mon, Mar 9, 2015 at 7:36 AM, Gayan Gunawardana 
>>>> wrote:
>>>>
>>>>> Congratulations, Dulitha...!
>>>>>
>>>>> On Mon, Mar 9, 2015 at 6:49 AM, Dilan Udara Ariyaratne <
>>>>> dil...@wso2.com> wrote:
>>>>>
>>>>>> Congratulations, Dulitha!!!
>>>>>>
>>>>>>
>>>>>> *Dilan U. Ariyaratne*
>>>>>> Software Engineer
>>>>>> WSO2 Inc. <http://wso2.com/>
>>>>>> Mobile: +94775149066
>>>>>> lean . enterprise . middleware
>>>>>>
>>>>>> On Mon, Mar 9, 2015 at 5:23 AM, Dakshika Jayathilaka <
>>>>>> daksh...@wso2.com> wrote:
>>>>>>
>>>>>>> Congratulations Dulitha...!
>>>>>>>
>>>>>>> *Dakshika Jayathilaka*
>>>>>>> Software Engineer
>>>>>>> WSO2, Inc.
>>>>>>> lean.enterprise.middleware
>>>>>>> 0771100911
>>>>>>>
>>>>>>> On Sun, Mar 8, 2015 at 8:27 PM, Sameera Perera 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> It is with great pleasure that WSO2 welcomes Dulitha Wijewantha as
>>>>>>>> a WSO2 committer!
>>>>>>>>
>>>>>>>> Congratulations!
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> ​​
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> *Sameera Perera*
>>>>>>>> Director of Engineering
>>>>>>>> gtalk: samee...@wso2.com
>>>>>>>> Tel : 94 11 214 5345
>>>>>>>> Fax :94 11 2145300
>>>>>>>> *WSO2, Inc.* <http://wso2.com/>
>>>>>>>> lean.enterprise.middleware
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Gayan Gunawardana
>>>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>>>> Email: ga...@wso2.com
>>>>> Mobile: +94 (71) 8020933
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Harsha Kumara
>>>> Software Engineer, WSO2 Inc.
>>>> Mobile: +94775505618
>>>> Blog:harshcreationz.blogspot.com
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Inosh Perera
>>> Software Engineer, WSO2 Inc.
>>> Tel: 0785293686
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Changing ports 9443 to 443 and 9763 to 80

2014-10-29 Thread Kasun Dananjaya Delgolla
Hi All,

Thanks a lot for your comments. I changed the port as you guys mentioned
and ran as root. It worked fine.

Thanks

On Wed, Oct 29, 2014 at 3:38 PM, Rajeevan Vimalanathan 
wrote:

> Hi Kasun,
>
> The port numbers in the range from 0 to 1023 are the well-known ports or 
> system
> ports. They are used by system processes that provide widely used types
> of network services. On Unix like operating systems, a process must
> execute with super user privileges to be able to bind a network socket to
> an IP address using one of the well-known ports.
>
> Please refer to :
> http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
>
> On Wed, Oct 29, 2014 at 3:27 PM, Udara Liyanage  wrote:
>
>> Hi,
>>
>> You can change the ports of transport receivers and start as root. Proxy
>> ports art used when the instance is fronted by ELB. It tell traffic from
>> which port of ELB to forward which port of the back end instance
>>
>> On Wed, Oct 29, 2014 at 3:24 PM, Supun Malinga  wrote:
>>
>>> Hi Kasun,
>>>
>>> You can simply change the port to the required value.
>>>
>>> thanks,
>>>
>>> On Wed, Oct 29, 2014 at 3:18 PM, Kasun Dananjaya Delgolla <
>>> kas...@wso2.com> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I have a customer request to do the $subject. I tried adding proxy
>>>> ports in catalina-server.xml but it didn't work out for me. Any idea on
>>>> this?
>>>>
>>>>
>>>> Thanks
>>>> --
>>>> Kasun Dananjaya Delgolla
>>>>
>>>> Software Engineer
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>> Tel:  +94 11 214 5345
>>>> Fax: +94 11 2145300
>>>> Mob: + 94 777 997 850
>>>> Blog: http://kddcodingparadise.blogspot.com
>>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>>> <http://lk.linkedin.com/in/kasundananjaya>*
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com 
>>> mobile: +94 (0)71 56 91 321
>>>
>>> _______
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
> V.Rajeevan
> Software Engineer,
> WSO2 Inc. :http://wso2.com
>
> Mobile : +94 773090875
> Email : rajeev...@wso2.com
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Carbon] Changing ports 9443 to 443 and 9763 to 80

2014-10-29 Thread Kasun Dananjaya Delgolla
Hi All,

I have a customer request to do the $subject. I tried adding proxy ports in
catalina-server.xml but it didn't work out for me. Any idea on this?


Thanks
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting a WSO2 GSoC project for University Assignment

2014-09-08 Thread Kasun Dananjaya Delgolla
Hi Chethiya,

We did some research on this and our conclusion was to go with an open
source PDF viewer library and get it improved to our needs. Android's
webview is not capable of rendering PDF's. What we did there was, embedding
the Google doc viewer and loading the document online via GDOc viewer. But
google doc viewer wasn't able to render some PDF files. But it did most. My
view is, we should use an open source viewer such as [1]. [2] or [3] and
get them improved to our needs. Or else write a new Android compatible
viewer using [4].

[5], [6], [7], [8] are extremely good paid PDF reader SDK's which you can
have a look to get an idea of what needs to be improved on those open
source projects.

[1] - https://code.google.com/p/droidreader/
[2] - https://code.google.com/p/apv/
[3] - https://code.google.com/p/ebookdroid/
[4] - https://pdfbox.apache.org/
[5] - http://www.binpress.com/app/pdf-sdk-for-android/1541
[6] - http://www.qoppa.com/android/pdfsdk/
[7] - http://www.androidpdf.mobi/
[8] - http://plugpdf.com/ <http://plugpdf.com/>

Regards,

On Tue, Sep 9, 2014 at 12:08 AM, Chan  wrote:

> Hi Chethiya,
> We haven't yet decided on the libraries to use for Document viewing. We
> did some initial PoC on this - @Kasun should be able to shed some light on
> this matter. I remember that we used a web view to render a file -
> Android's web view is capable of rendering PDFs. Also it would be best if
> you can make a review of all the libraries available for this task and list
> down pros and cons. That way -we can find a way forward.
>
> Cheers~
>
> On Mon, Sep 8, 2014 at 1:09 PM, Chethiya Edirisinghe <
> chethiyaed...@gmail.com> wrote:
>
>> Dear Sir,
>>
>> I was wondering if you could suggest me any specific PDF (or doc, excel)
>> support libraries you intend to use on Document Viewer for WSO2 EMM, since
>> Android currently does not support any native PDF viewing functionality.
>>
>> Thanks,
>> Chethiya Edirisinghe
>>
>> On Mon, Sep 8, 2014 at 6:30 AM, Samisa Abeysinghe 
>> wrote:
>>
>>> Dulitha, can you please help?
>>>
>>> Thanks,
>>> Samisa...
>>>
>>>
>>> Samisa Abeysinghe
>>>
>>> Vice President Delivery
>>>
>>> WSO2 Inc.
>>> http://wso2.com
>>>
>>>
>>>
>>> On Sun, Sep 7, 2014 at 6:03 PM, Chethiya Edirisinghe <
>>> chethiyaed...@gmail.com> wrote:
>>>
>>>> Dear Sir,
>>>>
>>>> I've been trying to contact Mr. Shanmugarajah but unfortunately I
>>>> haven't heard from him yet. Could you, if possible, refer me to another
>>>> developer who is currently involved in the project.
>>>>
>>>> Thanks,
>>>> Chethiya Edirisinghe.
>>>>
>>>>
>>>> On Mon, Jun 9, 2014 at 12:51 AM, Samisa Abeysinghe 
>>>> wrote:
>>>>
>>>>> Sure, he can do this project
>>>>>
>>>>> Thanks,
>>>>> Samisa...
>>>>>
>>>>>
>>>>> Samisa Abeysinghe
>>>>>
>>>>> Vice President Delivery
>>>>>
>>>>> WSO2 Inc.
>>>>> http://wso2.com
>>>>>
>>>>>
>>>>>
>>>>> On Sun, Jun 8, 2014 at 10:23 PM, Chethiya Edirisinghe <
>>>>> chethiyaed...@gmail.com> wrote:
>>>>>
>>>>>> Dear Sir,
>>>>>>
>>>>>> As my friend Madhawa said, I would be grateful if you'd give me the
>>>>>> green light on the above mentioned project.
>>>>>> I am hoping to contact Mr. Sinnathamby Shanmugarajah who was the
>>>>>> assigned mentor for the project and also looking forward for your help 
>>>>>> and
>>>>>> advice along the way.
>>>>>>
>>>>>> Thanks,
>>>>>> Chethiya Edirisinghe,
>>>>>> Undergraduate,
>>>>>> Dept. of Computer Science and Engineering,
>>>>>> University of Moratuwa.
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
>
> --
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
> WSO2 Inc
> Lean.Enterprise.Mobileware
>  * ~Email   duli...@wso2.com *
> *  ~Mobile +94712112165 <%2B94712112165>*
> *  ~Website   dulitha.me <http://dulitha.me>*
> *  ~Twitter @dulitharw <https://twitter.com/dulitharw>*
>   *~Github @dulichan <https://github.com/dulichan>*
>   *~SO @chan <http://stackoverflow.com/users/813471/chan>*
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Issue in Permission Saving and Notifications in EMM

2014-08-07 Thread Kasun Dananjaya Delgolla
Hi Guys,

I found these 2 issues when I was working on the dev-service where when you
try to save Messaging permission to a particular role, it doesn't get
saved. I figured out it's happening because of the permission trees we have
there. We have an empty tree for messaging so the permission logic always
searches for child elements in that tree and save only child elements. I
fixed it in my working copy for me to continue my work temporarily. Is this
resolved in dev branch? I created a JIRA[1] on this as well.

Another issue that I came across was there's a problem when displaying
notification table contents. It should always show the latest record
content if the same command been executed 2+ times and it should remove the
old record from the table as well. It's currently not happening as well.
Are these issues fixed on the dev branch?

[1] - https://wso2.org/jira/browse/EMM-705

Thanks
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Progress of EMM configuration wizard

2014-06-29 Thread Kasun Dananjaya Delgolla
Hi Inosh,

I have used Bouncy Castle 1.46 to generate BKS and it worked for almost all
the scenarios. Please have a look at the script [1] and they have used the
above mentioned BC version.

[1] - https://github.com/nelenkov/custom-cert-https

Regards,


On Mon, Jun 30, 2014 at 10:05 AM, Inosh Perera  wrote:

> Hi All,
> When a latest version of bouncy castle is used to generate a bks file, and
> included it in the agent, it will create a "wrong key store version" issue
> in some devices. The reason is, the bouncy castle version included in the
> device(android OS) is older, and it is trying to access a bks created with
> a newer bouncy castle. Alternatives have to be considered to solve the
> issue.
> I will look into spongy castle library and using it inside the agent to
> avoid bouncy castle version issues.
>
> reference JIRA - https://wso2.org/jira/browse/EMM-698
>
> --
> Inosh Perera
> Software Engineer, WSO2 Inc.
> Tel: 0785293686
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EMM Android Agent Improvements

2014-06-17 Thread Kasun Dananjaya Delgolla
Hi Sameera,

I agree with you. Even Android OS does not do such things. That's the
reason for them to design it like that (disable locking while user using
the camera). But in a critical environment where photos are not allowed,
this could come handy. And I'm totally +1 for notifying the user saying
it's disabled by the policy.

Thanks


On Tue, Jun 17, 2014 at 3:50 PM, Sameera Perera  wrote:

> Hi Harshan,
> Why do you oppose killing the camera app?
> I'm going to assume this is because of the intrusive UX; to have the
> camera app close suddenly. But, if you post a warning prompt, this still
> interrupts the user while he's on the camera.
>
>  once he has closed the camera app, we could disable the camera
>
>
> I think the JIRA is saying that this is already working.
>
> if the user doesn't close it we will record it as a policy violation.
>
>
> This maybe over-engineering it and perhaps not even the ideal solution
> from the admin's perspective.
>
> If we kill the camera app and notify the user that the camera was disabled
> by policy, wouldn't that work? (This is of course assuming the answer to
> the first question is UX).
>
>
> On Tue, Jun 17, 2014 at 3:36 PM, Harshan Liyanage 
> wrote:
>
>> Hi Kasun,
>>
>> What if we let the user know that he is violating a policy (as a Warning
>> type policy) & once he has closed the camera app, we could disable the
>> camera or if the user doesn't close it we will record it as a policy
>> violation.
>>
>> WDYT?
>>
>> Thanks,
>>
>> Best Regards,
>>
>> Lakshitha Harshan
>> Software Engineer
>> Mobile: *+94724423048*
>> Email: hars...@wso2.com
>> Blog : http://harshanliyanage.blogspot.com/
>> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
>> lean.enterprise.middleware.
>>
>>
>> On Tue, Jun 17, 2014 at 3:19 PM, Kasun Dananjaya Delgolla <
>> kas...@wso2.com> wrote:
>>
>>> Hi Niranan/Harshan,
>>>
>>> Only way we can implement it without killing the process would be
>>> implementing a listener on camera which is a bit difficult to achieve. If
>>> we could do so, we can listen to the camera event and do the locking once
>>> the camera is not in use. I will be researching more on this aspect and
>>> will update you on this as soon as I get a workout.
>>>
>>> Thanks
>>>
>>>
>>> On Tue, Jun 17, 2014 at 3:15 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
>>>> Hi Harshan,
>>>>
>>>> Please find my comments inline.
>>>>
>>>> To handle this, we need to kill the camera process if it's running,
>>>> before executing camera lock via the device administrator. The reason is,
>>>> android OS does not allow locking while user's using the camera since it
>>>> distracts the user experience. So before executing it, we need to kill the
>>>> camera process.
>>>>   IMO killing a process is not a good way to do this. May be we could
>>>> find alternative solution to achieve this.
>>>> The reason that we need to kill the process is because if the user has
>>>> it in the backend. When he registers to the EMM then if there is a policy
>>>> to disable the camera then it won't work. In such a case the user is able
>>>> to register to the organization network but he is violating the policy.
>>>> Also if the policy type is enforce and the user goes to the device
>>>> management screen and enable the camera, then it should automatically get
>>>> disable (if a camera disable policy is present for the device). Either we
>>>> need to kill the camera process or close it so that we can disable the
>>>> camera.
>>>>
>>>> Regards,
>>>> Nira
>>>>
>>>>
>>>>
>>>> On Tue, Jun 17, 2014 at 3:05 PM, Harshan Liyanage 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Please find my comments inline.
>>>>>
>>>>> 1. Camera disable during policy apply- jira-
>>>>> https://wso2.org/jira/browse/EMM-648
>>>>>
>>>>> To handle this, we need to kill the camera process if it's
>>>>> running, before executing camera lock via the device administrator. The
>>>>> reason is, android OS does not allow locking while user's using the camera
>>>>> since it distracts the user experienc

Re: [Dev] EMM Android Agent Improvements

2014-06-17 Thread Kasun Dananjaya Delgolla
Hi Niranan/Harshan,

Only way we can implement it without killing the process would be
implementing a listener on camera which is a bit difficult to achieve. If
we could do so, we can listen to the camera event and do the locking once
the camera is not in use. I will be researching more on this aspect and
will update you on this as soon as I get a workout.

Thanks


On Tue, Jun 17, 2014 at 3:15 PM, Niranjan Karunanandham 
wrote:

> Hi Harshan,
>
> Please find my comments inline.
>
> To handle this, we need to kill the camera process if it's running,
> before executing camera lock via the device administrator. The reason is,
> android OS does not allow locking while user's using the camera since it
> distracts the user experience. So before executing it, we need to kill the
> camera process.
>   IMO killing a process is not a good way to do this. May be we could
> find alternative solution to achieve this.
> The reason that we need to kill the process is because if the user has it
> in the backend. When he registers to the EMM then if there is a policy to
> disable the camera then it won't work. In such a case the user is able to
> register to the organization network but he is violating the policy. Also
> if the policy type is enforce and the user goes to the device management
> screen and enable the camera, then it should automatically get disable (if
> a camera disable policy is present for the device). Either we need to kill
> the camera process or close it so that we can disable the camera.
>
> Regards,
> Nira
>
>
>
> On Tue, Jun 17, 2014 at 3:05 PM, Harshan Liyanage 
> wrote:
>
>> Hi,
>>
>> Please find my comments inline.
>>
>> 1. Camera disable during policy apply- jira-
>> https://wso2.org/jira/browse/EMM-648
>>
>> To handle this, we need to kill the camera process if it's running,
>> before executing camera lock via the device administrator. The reason is,
>> android OS does not allow locking while user's using the camera since it
>> distracts the user experience. So before executing it, we need to kill the
>> camera process.
>>
>>   IMO killing a process is not a good way to do this. May be we could
>> find alternative solution to achieve this.
>>
>> 2. After Login, pending notification must be called- currently takes time
>> for first one to start
>>
>>Currently our EMM Agent waits for a server push notification/local
>> push to be triggered to get the pending operation list from the server for
>> the first time after registration. So to make it a bit faster, we are going
>> to execute a pending operation call on register success event.
>>
>>  I think this might improve first-user experience as well. So I'm +1 for
>> calling pending operation call on the register success event.
>>
>> 3. Handle notifications so that it doesn't send unnecessary network calls
>>
>> (Ex: If the user sets 2 second notification interval, we do not need
>> to send continuous network calls if the first call has not given the
>> response)
>>
>> +1 for reducing unnecessary network overhead.
>>
>> Thanks,
>>
>> Best Regards,
>>
>> Lakshitha Harshan
>> Software Engineer
>> Mobile: *+94724423048*
>> Email: hars...@wso2.com
>> Blog : http://harshanliyanage.blogspot.com/
>> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
>> lean.enterprise.middleware.
>>
>>
>> On Tue, Jun 17, 2014 at 2:36 PM, Kasun Dananjaya Delgolla <
>> kas...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I'm in the process of improving the EMM Android Agent and following are
>>> the improvement that I'm currently focusing on,
>>>
>>> 1. Camera disable during policy apply- jira-
>>> https://wso2.org/jira/browse/EMM-648
>>>
>>> To handle this, we need to kill the camera process if it's running,
>>> before executing camera lock via the device administrator. The reason is,
>>> android OS does not allow locking while user's using the camera since it
>>> distracts the user experience. So before executing it, we need to kill the
>>> camera process.
>>>
>>> 2. After Login, pending notification must be called- currently takes
>>> time for first one to start
>>>
>>>    Currently our EMM Agent waits for a server push notification/local
>>> push to be triggered to get the pending operation list from the server for
>>> the first time after registration. So to make it a bit faster, we are going
>>> to execute a p

Re: [Dev] EMM Android Agent Improvements

2014-06-17 Thread Kasun Dananjaya Delgolla
Yes. That's how it works.

Thanks


On Tue, Jun 17, 2014 at 3:00 PM, Niranjan Karunanandham 
wrote:

> Hi Kasun,
>
> 3. Handle notifications so that it doesn't send unnecessary network calls
>  (Ex: If the user sets 2 second notification interval, we do not need to
> send continuous network calls if the first call has not given the response)
>
> I think the second notification should not be processed until the process
> of the previous notification is fully processed. This is because once we
> get the request from the first call, it needs to be processed and a
> feedback needs to be sent to the server. Once the server sends a null
> message, the process continues. So till it receives a null response, all
> other triggers (wake up) should be discarded.
>
> Regards,
> Nira
>
>
>
> On Tue, Jun 17, 2014 at 2:36 PM, Kasun Dananjaya Delgolla  > wrote:
>
>> Hi All,
>>
>> I'm in the process of improving the EMM Android Agent and following are
>> the improvement that I'm currently focusing on,
>>
>> 1. Camera disable during policy apply- jira-
>> https://wso2.org/jira/browse/EMM-648
>>
>> To handle this, we need to kill the camera process if it's running,
>> before executing camera lock via the device administrator. The reason is,
>> android OS does not allow locking while user's using the camera since it
>> distracts the user experience. So before executing it, we need to kill the
>> camera process.
>>
>> 2. After Login, pending notification must be called- currently takes time
>> for first one to start
>>
>>Currently our EMM Agent waits for a server push notification/local
>> push to be triggered to get the pending operation list from the server for
>> the first time after registration. So to make it a bit faster, we are going
>> to execute a pending operation call on register success event.
>>
>> 3. Handle notifications so that it doesn't send unnecessary network calls
>>
>>(Ex: If the user sets 2 second notification interval, we do not need
>> to send continuous network calls if the first call has not given the
>> response)
>>
>> Please share your ideas on this.
>>
>> Thanks
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 777 997 850
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> <http://lk.linkedin.com/in/kasundananjaya>*
>>
>
>
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
> M: +94 777 749 661 
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] EMM Android Agent Improvements

2014-06-17 Thread Kasun Dananjaya Delgolla
Hi All,

I'm in the process of improving the EMM Android Agent and following are the
improvement that I'm currently focusing on,

1. Camera disable during policy apply- jira-
https://wso2.org/jira/browse/EMM-648

To handle this, we need to kill the camera process if it's running,
before executing camera lock via the device administrator. The reason is,
android OS does not allow locking while user's using the camera since it
distracts the user experience. So before executing it, we need to kill the
camera process.

2. After Login, pending notification must be called- currently takes time
for first one to start

   Currently our EMM Agent waits for a server push notification/local push
to be triggered to get the pending operation list from the server for the
first time after registration. So to make it a bit faster, we are going to
execute a pending operation call on register success event.

3. Handle notifications so that it doesn't send unnecessary network calls

   (Ex: If the user sets 2 second notification interval, we do not need to
send continuous network calls if the first call has not given the response)

Please share your ideas on this.

Thanks
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] About WSO2Con app production @ Cloud - Login (API Access)

2014-06-10 Thread Kasun Dananjaya Delgolla
Hi Sandamal,

Is the $subject figured out now? Earlier, only OT users with wso2.com
domain could get access to APIs by logging in as user.wso2.com (username).
Users from other domains (who has OT access) could not login and get API
access. (Ex: u...@gmail.com)

Is there a solution for the above issue? And how should I pass-in the
username for both the parties?

Thanks
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] About moving IDP implementation to a package inside EMM Android Agent

2014-05-26 Thread Kasun Dananjaya Delgolla
OK then it's fine. We can disregard this if it's for testing purposes.

Thanks


On Mon, May 26, 2014 at 5:44 PM, Inosh Perera  wrote:

> Hi Kasun,
>
> We added this during testing since there were some issues with it.
>
> Thanks,
>
>
> On Mon, May 26, 2014 at 12:19 PM, Kasun Dananjaya Delgolla <
> kas...@wso2.com> wrote:
>
>> Hi Inosh/Shan,
>>
>> Can you reason the $subject? Because IDP proxy was an implementation
>> which was done so that it can be re-used. So is this change really
>> necessary?
>>
>> If you have issues on IDP library, you could have communicated with the
>> team and get that fixed other than doing the $subject. Because it's better
>> to fix the issues in the re-usable library other than fixing it only inside
>> Agent. WDYT?
>>
>> Regards,
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 777 997 850
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> <http://lk.linkedin.com/in/kasundananjaya>*
>>
>
>
>
> --
> Inosh Perera
> Software Engineer, WSO2 Inc.
> Tel: 0785293686
>



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] About moving IDP implementation to a package inside EMM Android Agent

2014-05-25 Thread Kasun Dananjaya Delgolla
Hi Inosh/Shan,

Can you reason the $subject? Because IDP proxy was an implementation which
was done so that it can be re-used. So is this change really necessary?

If you have issues on IDP library, you could have communicated with the
team and get that fixed other than doing the $subject. Because it's better
to fix the issues in the re-usable library other than fixing it only inside
Agent. WDYT?

Regards,
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Required changes in EMM Android Agent

2014-05-20 Thread Kasun Dananjaya Delgolla
Hi Krishanthi,

Please find my comments on above options.

1. How do the user know the format to type in the domain. What if he type "
http://abc.com";? I think we should guide him in the screen as it was
before. And the title "MDM Server" does not sound right to me because we
all agreed on the single name "EMM" and why do we deviate from that in
Agent?

2. +1 for this change, but still I feel "Domain" sounds clear than "Group".

Here are my comments on Improvements section:

1. +1 for this, these information should be sent be the server probably in
SENDER_ID request and then we can show/bypass pin setting.

2. -1 for this change. I think all the users should see the license
agreement. Otherwise this can be an issue later (Ex:If his/her phone get
wipes off for some reason, he might complain about it negatively). I don't
see any complication in showing the agreement because they can simply
accept it and go ahead if they want. I think showing the agreement is
anyways better and safe in legal aspects as well. So I strongly -1 on this
change.

Thanks


On Tue, May 20, 2014 at 4:00 PM, Krishanthi Samarasinghe <
krishant...@wso2.com> wrote:

> Hi Shan,
>
> As we discussed, we are going to do following changes:
>
> 1. Change the message in setting server IP screen.
> Change from *Set your server address here to start registration, i.e :
> www.abc.com <http://www.abc.com>"* to "*Set your MDM server address"*
>
> 2. In login screen, currently we have inputs as following order:
> i. Domain
> ii. Username
> iii Password
>
> We are going to change it as:
> i. Username
> ii. Password
> iii. Group (We are using this for tenancy)
>
> *Note:* Here I have attached the server IP screen(setServerIP.png) and
> the login screen(login.png).
>
> *Improvements:*
>
> 1. We should allow to add pin code, only for users who is able to wipe the
> device. For that we(Android agent) need to get that information from the
> server side *after the login*, but *before completing the registration*.
> Then there will be changes in both server side and android agent.
>
> 2. We should allow user to do the registration even *without seeing
> license agreement* if *he/she requires*. There cannot be any screen
> between the registration and registration successful screens. For that we
> need to include a check box. We need to decide the screen where we have to
> add this.
>
> If we are going to implement this, since there are many logical
> implementation based on the license agreement in Android Agent, we have to
> do a major change in Android Agent.
>
> Please let me know, if I have missed any point.
>
> Others opinions are welcome. Please give your comments to proceed on this.
>
> Thank you.
>
> --
> Best Regards,
> Krishanthi Bhagya Samarasinghe
> Senior Software engineer
>
> Mobile: +94 716028280
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please respond to Github issue on android client

2014-05-12 Thread Kasun Dananjaya Delgolla
Hi Chan,

I will look into it.

Thanks
On 13 May 2014 07:49, "Chan"  wrote:

> Hi Kasun,
> Please look into https://github.com/wso2/MDM-Android-Agent/issues/6 .
>
> Cheers~
>
> --
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
> WSO2Mobile
> Lean.Enterprise.Mobileware
>  * ~Email   duli...@wso2.com *
> *  ~Mobile +94712112165 <%2B94712112165>*
> *  ~Website   dulitha.me *
> *  ~Twitter @dulitharw *
>   *~Github @dulichan *
>   *~SO @chan *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EMM OAuth Implementation - Android - Storing Consumer Secret

2014-04-17 Thread Kasun Dananjaya Delgolla
+1. I think this is the ideal way of doing that.


On Thu, Apr 17, 2014 at 5:57 PM, Gayan Gunawardana  wrote:

> Hi,
>
> +1 for dynamic client generation.
>
> This is what we have discussed in several meetings.
>
> If time permit I can have a look at the spec and do the implementation.
> This will be an ideal solution for most of security holes.
>
>
>
> On Thu, Apr 17, 2014 at 5:41 PM, Suresh Attanayaka wrote:
>
>> Hi,
>>
>> We can use Dynamic Client Registration[1] to get a ClientKey and a
>> ClientSecrete. The advantage here is that different instances of the same
>> application will have different ClientKey and ClientSecrete. With this we
>> can identify each installation.
>>
>> Dynamic Client Registration has a registration endpoint which requires an
>> initial token. The initial token can be obtained using basic
>> authentication, then the client can use that initial token to register
>> itself at the EMM and get the ClientKey + ClientSecrete.
>>
>> Once the client has received the ClientKey and ClientSecrete, it should
>> store it securely.
>>
>> [1]- http://openid.net/specs/openid-connect-registration-1_0.html
>>
>>
>>
>>
>> On Thu, Apr 17, 2014 at 2:52 PM, Harshan Liyanage wrote:
>>
>>> I think we could use a technique like "*Image Steganography[[1]*" to
>>> store consumer key/secret inside the application so it would be difficult
>>> to hack. For the image we can use something like application logo so it
>>> won't get much attention. On the otherhand we could modify the
>>> steganography algorithm and make it much more secure.
>>>
>>> [1]. http://en.wikipedia.org/wiki/Steganography
>>>
>>> Best Regards,
>>>
>>> Lakshitha Harshan
>>> Software Engineer
>>> Mobile: *+94724423048*
>>> Email: hars...@wso2.com
>>> Blog : http://harshanliyanage.blogspot.com/
>>> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
>>> lean.enterprise.middleware.
>>>
>>>
>>> On Thu, Apr 17, 2014 at 2:21 PM, Chathura Dilan wrote:
>>>
>>>> if it is unique to the app, there could be another security issue.
>>>> Someone can get our source and authenticate himself with his app, and they
>>>> are able to download the key from the server.
>>>>
>>>>
>>>> On Thu, Apr 17, 2014 at 2:12 PM, Chathura Dilan wrote:
>>>>
>>>>> Is consumer/secret key unique to a user or is it unique to the app?
>>>>>
>>>>>
>>>>> On Thu, Apr 17, 2014 at 12:20 PM, Chan  wrote:
>>>>>
>>>>>> +1 to the idea since basic auth will be first used to obtain the
>>>>>> consumer secret. But we might have to change the flow from how it usually
>>>>>> work.
>>>>>>
>>>>>> Cheers~
>>>>>>
>>>>>>
>>>>>> On Thu, Apr 17, 2014 at 12:17 PM, Kasun Dananjaya Delgolla <
>>>>>> kas...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi All,
>>>>>>>
>>>>>>> We're going to protect all the API calls from EMM client side using
>>>>>>> OAuth.
>>>>>>>
>>>>>>> I have a concern whether to store the consumer key/secret inside the
>>>>>>> EMM Agent Application or making it dynamic. We can actually send those 2
>>>>>>> when the user authenticates from the mobile client (As the response), 
>>>>>>> and
>>>>>>> then we can store it inside a private preference (Which is application
>>>>>>> private).
>>>>>>>
>>>>>>> I see this as the safest way because keeping it hardcoded in the
>>>>>>> source or a file might be extremely easy to hack. So WDYT?
>>>>>>>
>>>>>>> Regards,
>>>>>>> --
>>>>>>> Kasun Dananjaya Delgolla
>>>>>>>
>>>>>>> Software Engineer
>>>>>>> WSO2 Inc.; http://wso2.com
>>>>>>> lean.enterprise.middleware
>>>>>>> Tel:  +94 11 214 5345
>>>>>>> Fax: +94 11 2145300
>>>>>>> Mob: + 94 777 997 850
>>>>>>> Blog: http://kddcodingparadise.blogspot.com
>>>>>>> Linkedin: *http://lk.linkedin.com

[Dev] EMM OAuth Implementation - Android - Storing Consumer Secret

2014-04-16 Thread Kasun Dananjaya Delgolla
Hi All,

We're going to protect all the API calls from EMM client side using OAuth.

I have a concern whether to store the consumer key/secret inside the EMM
Agent Application or making it dynamic. We can actually send those 2 when
the user authenticates from the mobile client (As the response), and then
we can store it inside a private preference (Which is application private).

I see this as the safest way because keeping it hardcoded in the source or
a file might be extremely easy to hack. So WDYT?

Regards,
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] About WSO2 Con 2014 - Mobile app data syncing mechanism

2014-03-05 Thread Kasun Dananjaya Delgolla
Hi All,

The way we follow to do the data synchronization between the BE and Mobile
client seems not acceptable because now even a single row of data changes,
we have to get the entire database downloaded again and again.

So I suggest we should track the updated timestamp in the BE app or we
should expose an API to get the latest updated timestamp. And there should
also be an API to return only the updated data in a sensible way once the
client app passes it's latest timestamp.

We should actually try to reduce the processing/data calls from the mobile
client as much as possible. We can also implement a SyncAdapter[1] in
android side and something similar to that on iOS side to make it more
reliable. But we have an extremely tight deadline.

So WDYT gyus?

[1] - http://developer.android.com/training/sync-adapters/index.html

Thanks
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
<http://lk.linkedin.com/in/kasundananjaya>*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev