Re: [Dev] Empty ADDRESS kubernetes ingress

2019-06-02 Thread Dilan Udara Ariyaratne
Adding Aaquiff

Thanks.
*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware



On Fri, May 31, 2019 at 9:27 PM Hasitha Hiranya  wrote:

> Hi Devs,
>
> I created an Ingress using wso2-micro-integrator-ingress.yaml attached
> below. When I executed below command I get empty ADDRESS field.
>
> Operating System : MAC OS Mojave
> Docker Desktop version : 2.0.2.0
>
>
> *hasitha@Hasithas-MacBook-Pro:/temp/k8$ kubectl get ingress*
>
> NAME HOSTS
> ADDRESS   PORTS   AGE
> wso2-micro-integrator-ingress   wso2-micro-integrator
>  80   3h27m
>
>
> apiVersion: extensions/v1beta1
> kind: Ingress
> metadata:
>   name: wso2-micro-integrator-ingress
>   annotations:
> kubernetes.io/ingress.class: "nginx"
> spec:
>   rules:
>   - host: wso2-micro-integrator
> http:
>   paths:
>   - path: /
> backend:
>   serviceName: hello-world-service
>   servicePort: 8290
>
> I noticed below resources, but unable to find a solution. Can anyone help?
>
> 1.
> https://stackoverflow.com/questions/51511547/empty-address-kubernetes-ingress
> 2.
> https://www.edureka.co/community/19279/kubectl-get-ing-gives-no-address-in-kubernetes-ingress
> 3. https://github.com/nginxinc/kubernetes-ingress/issues/204
>
> Thanks
> --
> *Hasitha Abeykoon*
> Associate Technical Lead; WSO2, Inc.; http://wso2.com
> *blog: **abeykoon.blogspot.com* 
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Architecture] WSO2 Puppet Common v1.1.1 Released!

2018-03-29 Thread Dilan Udara Ariyaratne
*WSO2 Installation Experience Team* is pleased to announce the release
of *WSO2 Puppet Common v1.1.1
*.

You can download source from following links.

Source code (zip) 
 |Source code (tar.gz)


In this release, changes were made to setup.sh with respect to changed
puppet-is repository structure.

*Issues* - https://github.com/wso2/puppet-common/issues

*How You Can Contribute?*
Join our mailing list and correspond with the developers directly.
Developer List: dev@wso2.org
User List: u...@wso2.org

*Reporting Issues*
We encourage you to report issues or any documentation faults regarding
WSO2 Puppet Common by creating issues at GitHub
.

Thank you!
*WSO2 Installation Experience Team*

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 EI Docker Resources

2018-02-28 Thread Dilan Udara Ariyaratne
It would be good to use 16.04 since its the latest LTS release for Ubuntu.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Thu, Mar 1, 2018 at 1:07 AM, Waruna Jayaweera <waru...@wso2.com> wrote:

> Thanks, all. I try to build the k8s docker image but got failed due to
> [1]. Seems problem with ubuntu version 17.04. But after changing to 16.04
> abled to build the image.
>
> Regards,
> Waruna
>
>
> [1]
>
> W: The repository 'http://security.ubuntu.com/ubuntu zesty-security
> Release' does not have a Release file.
> W: The repository 'http://archive.ubuntu.com/ubuntu zesty Release' does
> not have a Release file.
> W: The repository 'http://archive.ubuntu.com/ubuntu zesty-updates
> Release' does not have a Release file.
> W: The repository 'http://archive.ubuntu.com/ubuntu zesty-backports
> Release' does not have a Release file.
> E: Failed to fetch http://security.ubuntu.com/ubu
> ntu/dists/zesty-security/universe/source/Sources  404  Not Found [IP:
> 91.189.88.161 80]
> E: Failed to fetch http://archive.ubuntu.com/ubun
> tu/dists/zesty/universe/source/Sources  404  Not Found [IP: 91.189.88.162
> 80]
> E: Failed to fetch http://archive.ubuntu.com/ubun
> tu/dists/zesty-updates/universe/source/Sources  404  Not Found [IP:
> 91.189.88.162 80]
> E: Failed to fetch http://archive.ubuntu.com/ubun
> tu/dists/zesty-backports/restricted/binary-amd64/Packages  404  Not Found
> [IP: 91.189.88.162 80]
> E: Some index files failed to download. They have been ignored, or old
> ones used instead.
>
> On Wed, Feb 28, 2018 at 11:16 AM, Dilan Udara Ariyaratne <dil...@wso2.com>
> wrote:
>
>> On Wed, Feb 28, 2018 at 2:22 PM, Pubudu Gunatilaka <pubu...@wso2.com>
>> wrote:
>>
>>> Hi Waruna,
>>>
>>> Better to use the Dockerfile in Kubernetes repo as it supports config
>>> Maps [1]. For K8s you would need config maps to add configurations to the
>>> server.
>>>
>>
>> +1
>>
>>
>>>
>>> [1] - https://github.com/wso2/kubernetes-ei/blob/master/dockerfi
>>> les/integrator/Dockerfile#L24
>>>
>>> Thank you!
>>>
>>> On Wed, Feb 28, 2018 at 1:29 PM, Waruna Jayaweera <waru...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>> I found two repos where we can build docker files for EI. There are
>>>> minor changes in docker files for integrator. Do we need any changes in
>>>> docker files if we run in k8S?
>>>>
>>>> [1] https://github.com/wso2/kubernetes-ei/tree/master/dockerfiles
>>>> [2] https://github.com/wso2/docker-ei/tree/master/dockerfiles
>>>>
>>>> Thanks,
>>>> Waruna
>>>>
>>>>
>>>> --
>>>> Regards,
>>>>
>>>> Waruna Lakshitha Jayaweera
>>>> Senior Software Engineer
>>>> WSO2 Inc; http://wso2.com
>>>> phone: +94713255198 <+94%2071%20325%205198>
>>>> http://waruapz.blogspot.com/
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Pubudu Gunatilaka*
>>> Committer and PMC Member - Apache Stratos
>>> Senior Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> mobile : +94774078049 <%2B94772207163>
>>>
>>>
>>
>
>
> --
> Regards,
>
> Waruna Lakshitha Jayaweera
> Senior Software Engineer
> WSO2 Inc; http://wso2.com
> phone: +94713255198 <+94%2071%20325%205198>
> http://waruapz.blogspot.com/
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 EI Docker Resources

2018-02-28 Thread Dilan Udara Ariyaratne
On Wed, Feb 28, 2018 at 2:22 PM, Pubudu Gunatilaka  wrote:

> Hi Waruna,
>
> Better to use the Dockerfile in Kubernetes repo as it supports config Maps
> [1]. For K8s you would need config maps to add configurations to the
> server.
>

+1


>
> [1] - https://github.com/wso2/kubernetes-ei/blob/master/
> dockerfiles/integrator/Dockerfile#L24
>
> Thank you!
>
> On Wed, Feb 28, 2018 at 1:29 PM, Waruna Jayaweera 
> wrote:
>
>> Hi,
>> I found two repos where we can build docker files for EI. There are minor
>> changes in docker files for integrator. Do we need any changes in docker
>> files if we run in k8S?
>>
>> [1] https://github.com/wso2/kubernetes-ei/tree/master/dockerfiles
>> [2] https://github.com/wso2/docker-ei/tree/master/dockerfiles
>>
>> Thanks,
>> Waruna
>>
>>
>> --
>> Regards,
>>
>> Waruna Lakshitha Jayaweera
>> Senior Software Engineer
>> WSO2 Inc; http://wso2.com
>> phone: +94713255198 <+94%2071%20325%205198>
>> http://waruapz.blogspot.com/
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Senior Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774078049 <%2B94772207163>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the PR

2017-09-14 Thread Dilan Udara Ariyaratne
Hi Sathya,

Your PR was merged to carbon-deployment 4.7.x.

Thanks,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Thu, Sep 14, 2017 at 5:39 AM, Dilan Udara Ariyaratne <dil...@wso2.com>
wrote:

> Hi Sathya,
>
> Added few more comments. Can you have a look ?
>
> Thanks,
> Dilan.
>
> *Dilan U. Ariyaratne*
> Senior Software Engineer
> WSO2 Inc. <http://wso2.com/>
> Mobile: +94766405580 <%2B94766405580>
> lean . enterprise . middleware
>
>
> On Wed, Sep 13, 2017 at 2:37 PM, Sathya Bandara <sat...@wso2.com> wrote:
>
>> Hi,
>>
>> Can you please review and merge the PR [1]. This is regarding the Issue
>> [2].
>>
>> [1] https://github.com/wso2/carbon-deployment/pull/273
>> [2] https://github.com/wso2/carbon-deployment/issues/274
>>
>>
>> Thanks,
>> Sathya
>> --
>> Sathya Bandara
>> Software Engineer
>> WSO2 Inc. http://wso2.com
>> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>>
>> <+94%2071%20411%205032>
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the PR

2017-09-13 Thread Dilan Udara Ariyaratne
Hi Sathya,

Added few more comments. Can you have a look ?

Thanks,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Wed, Sep 13, 2017 at 2:37 PM, Sathya Bandara  wrote:

> Hi,
>
> Can you please review and merge the PR [1]. This is regarding the Issue
> [2].
>
> [1] https://github.com/wso2/carbon-deployment/pull/273
> [2] https://github.com/wso2/carbon-deployment/issues/274
>
>
> Thanks,
> Sathya
> --
> Sathya Bandara
> Software Engineer
> WSO2 Inc. http://wso2.com
> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>
> <+94%2071%20411%205032>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Kubernetes-EI 6.1.1-M1 Released!

2017-09-07 Thread Dilan Udara Ariyaratne
Hi Folks,

We are pleased to announce the 1st Milestone release
 of Kubernetes
Resources for WSO2 Enterprise Integrator (EI)
 6.1.1.
This initial release is comprised of resources to successfully deploy WSO2
EI Integrator profile on Kubernetes environments.

*Features:*

   1. Deployment controller for WSO2 EI Integrator profile to easily manage
   corresponding pods.
   2. MySQL Deployment controller for database access to test out an
   out-of-the-box scalable deployment.
   3. Service level separation for mediation gateway and management console
   access to optimize request load.
   4. Introducing NGINX Ingress controller to publicly expose Integration
   services easily.
   5. Introducing configmaps in managing pattern specific configurations to
   simplify rolling out of updates.
   6. Dockerfiles and helper scripts for building required base images from
   the scratch.
   7. Bash Helper scripts for deploying and un-deploying a deployment
   pattern in one go.

*Supported Kubernetes Versions:*

1.6.0, 1.7.0 or Newer

*Quick Start Guide:*

Kubernetes-EI v6.1.1-M1 README


*Reporting Issues:*

Issues can be reported using the github issue tracker available at

https://github.com/wso2/kubernetes-ei/issues

Thanks.
*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the PR

2017-08-11 Thread Dilan Udara Ariyaratne
Thanks, Ashen.

Your PR was merged on to carbon-kernel-4.4.x branch.

Regards,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Fri, Aug 11, 2017 at 3:33 PM, Ashen Weerathunga <as...@wso2.com> wrote:

> Hi Dilan,
>
> I have done the changes and successfully build the component and kernel
> with the tests.
>
> Thanks,
> Ashen
>
> On Fri, Aug 11, 2017 at 8:09 AM, Dilan Udara Ariyaratne <dil...@wso2.com>
> wrote:
>
>> Hi Ashen,
>>
>> Added Few more suggestions. Please go through and verify.
>>
>> Thanks,
>> Dilan.
>>
>> *Dilan U. Ariyaratne*
>> Senior Software Engineer
>> WSO2 Inc. <http://wso2.com/>
>> Mobile: +94766405580 <%2B94766405580>
>> lean . enterprise . middleware
>>
>>
>> On Thu, Aug 10, 2017 at 7:23 PM, Ashen Weerathunga <as...@wso2.com>
>> wrote:
>>
>>> Hi Dilan,
>>>
>>> I have done the requested changes and updated the PR.
>>>
>>> Thanks,
>>> Ashen
>>>
>>> On Thu, Aug 10, 2017 at 6:23 AM, Dilan Udara Ariyaratne <dil...@wso2.com
>>> > wrote:
>>>
>>>> Hi Ashen,
>>>>
>>>> Went through the code and added few comments, Please go through and
>>>> verify.
>>>>
>>>> Thanks,
>>>> Dilan.
>>>>
>>>> *Dilan U. Ariyaratne*
>>>> Senior Software Engineer
>>>> WSO2 Inc. <http://wso2.com/>
>>>> Mobile: +94766405580 <%2B94766405580>
>>>> lean . enterprise . middleware
>>>>
>>>>
>>>> On Wed, Aug 9, 2017 at 1:44 PM, Ashen Weerathunga <as...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Can you please review and merge the PR [1]. This is regarding the
>>>>> Issue [2].
>>>>>
>>>>> [1] https://github.com/wso2/carbon-kernel/pull/1464
>>>>> [2] https://github.com/wso2/carbon-kernel/issues/1467
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Ashen
>>>>> --
>>>>> *Ashen Weerathunga*
>>>>> Software Engineer
>>>>> WSO2 Inc.: http://wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>> Email: as...@wso2.com
>>>>> Mobile: +94716042995 <94716042995>
>>>>> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
>>>>> <http://lk.linkedin.com/in/ashenweerathunga>*
>>>>> <http://wso2.com/signature>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> *Ashen Weerathunga*
>>> Software Engineer
>>> WSO2 Inc.: http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> Email: as...@wso2.com
>>> Mobile: +94716042995 <94716042995>
>>> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
>>> <http://lk.linkedin.com/in/ashenweerathunga>*
>>> <http://wso2.com/signature>
>>>
>>
>>
>
>
> --
> *Ashen Weerathunga*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> Email: as...@wso2.com
> Mobile: +94716042995 <94716042995>
> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
> <http://lk.linkedin.com/in/ashenweerathunga>*
> <http://wso2.com/signature>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the PR

2017-08-10 Thread Dilan Udara Ariyaratne
Hi Ashen,

Added Few more suggestions. Please go through and verify.

Thanks,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Thu, Aug 10, 2017 at 7:23 PM, Ashen Weerathunga <as...@wso2.com> wrote:

> Hi Dilan,
>
> I have done the requested changes and updated the PR.
>
> Thanks,
> Ashen
>
> On Thu, Aug 10, 2017 at 6:23 AM, Dilan Udara Ariyaratne <dil...@wso2.com>
> wrote:
>
>> Hi Ashen,
>>
>> Went through the code and added few comments, Please go through and
>> verify.
>>
>> Thanks,
>> Dilan.
>>
>> *Dilan U. Ariyaratne*
>> Senior Software Engineer
>> WSO2 Inc. <http://wso2.com/>
>> Mobile: +94766405580 <%2B94766405580>
>> lean . enterprise . middleware
>>
>>
>> On Wed, Aug 9, 2017 at 1:44 PM, Ashen Weerathunga <as...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Can you please review and merge the PR [1]. This is regarding the Issue
>>> [2].
>>>
>>> [1] https://github.com/wso2/carbon-kernel/pull/1464
>>> [2] https://github.com/wso2/carbon-kernel/issues/1467
>>>
>>>
>>> Thanks,
>>> Ashen
>>> --
>>> *Ashen Weerathunga*
>>> Software Engineer
>>> WSO2 Inc.: http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> Email: as...@wso2.com
>>> Mobile: +94716042995 <94716042995>
>>> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
>>> <http://lk.linkedin.com/in/ashenweerathunga>*
>>> <http://wso2.com/signature>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> *Ashen Weerathunga*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> Email: as...@wso2.com
> Mobile: +94716042995 <94716042995>
> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
> <http://lk.linkedin.com/in/ashenweerathunga>*
> <http://wso2.com/signature>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Kubernetes] [EI] EI Analytics Dashboard not loading on Containers

2017-08-10 Thread Dilan Udara Ariyaratne
Hi All,

I am currently testing an EI Integrator cluster with one analytics node
inside a kubernetes cluster of containers.
Analytics node runs on a docker container and when I try to access the EI
dashboard, following exception becomes visible on container logs.

[2017-08-10 06:48:20,887] [EI-Analytics] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager}
-  org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.apache.axis2.AxisFault: connect timed out (/portal/modules/api.js#28)
(/portal/routers/apis.jag#40) (/portal/routers/tenant.jag#89)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.apache.axis2.AxisFault: connect timed out (/portal/modules/api.js#28)
(/portal/routers/apis.jag#40) (/portal/routers/tenant.jag#89)
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.exec(
WebAppManager.java:588)
at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(
WebAppManager.java:508)
at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(
JaggeryServlet.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(
ApplicationDispatcher.java:747)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(
ApplicationDispatcher.java:485)
at org.apache.catalina.core.ApplicationDispatcher.doForward(
ApplicationDispatcher.java:377)
at org.apache.catalina.core.ApplicationDispatcher.forward(
ApplicationDispatcher.java:337)
at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(
JaggeryFilter.java:21)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:241)
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.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(
HttpHeaderSecurityFilter.java:120)
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:218)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:169)
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.event.receiver.core.internal.tenantmgt.
TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:48)
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.CarbonStuckThreadDetectionValv
e.invoke(CarbonStuckThreadDetectionValve.java:159)
at org.apache.catalina.valves.AccessLogValve.invoke(
AccessLogValve.java:962)
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:452)
at org.apache.coyote.http11.AbstractHttp11Processor.process(
AbstractHttp11Processor.java:1087)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.
process(AbstractProtocol.java:637)
at 

Re: [Dev] Please review and merge the PR

2017-08-09 Thread Dilan Udara Ariyaratne
Hi Ashen,

Went through the code and added few comments, Please go through and verify.

Thanks,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Wed, Aug 9, 2017 at 1:44 PM, Ashen Weerathunga  wrote:

> Hi,
>
> Can you please review and merge the PR [1]. This is regarding the Issue
> [2].
>
> [1] https://github.com/wso2/carbon-kernel/pull/1464
> [2] https://github.com/wso2/carbon-kernel/issues/1467
>
>
> Thanks,
> Ashen
> --
> *Ashen Weerathunga*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> Email: as...@wso2.com
> Mobile: +94716042995 <94716042995>
> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
> *
> 
>
> ___
> 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] [EI-Analytics] [kubernetes] NPE when activating analytics data service

2017-08-08 Thread Dilan Udara Ariyaratne
In fact, not Vinod...

This was actually a configuration issue. Not a bug from EI side. Only issue
was that the issue was not apparent from the stack-trace.

I have changed the datasource name in analytics-datasources.xml, but missed
out updating the same at analytics-config.xml. That was the issue.

Regards,
Dilan.


*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Wed, Aug 9, 2017 at 9:12 AM, Vinod Kavinda <vi...@wso2.com> wrote:

> Hi DilanA,
> I'm not exactly clear about the issue. Is this something we need to fix in
> the analytics distribution or because of your changes done in
> analytics-datasources.xml?
>
> If there is something we need to fix in EI, please raise a ticket with
> label analytics in Github.
>
> Thanks,
> Vinod
>
>
> Regards,
> Vinod
>
> On Tue, Aug 8, 2017 at 12:03 PM, Dilan Udara Ariyaratne <dil...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> I had an off-line discussion with Mohan on this and figured out the root
>> cause which was not obvious when looking at the stack-trace.
>>
>> The issue was "Updating the analytics database names at
>> analytics-datasources.xml, but those changed names been not reflected at
>> analytics-config.xml".
>>
>> Thanks, Mohan for figuring out the issue.
>>
>> *Dilan U. Ariyaratne*
>> Senior Software Engineer
>> WSO2 Inc. <http://wso2.com/>
>> Mobile: +94766405580 <%2B94766405580>
>> lean . enterprise . middleware
>>
>>
>> On Tue, Aug 8, 2017 at 10:20 AM, Dilan Udara Ariyaratne <dil...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> Currently I am testing out a WSO2 EI Integrator cluster with analytics
>>> for the on-going kubernetes-ei effort [1] [2]
>>>
>>> The deployed pattern includes an EI Integrator profile cluster with one
>>> analytics standalone node. In spite of the fact that I deploy this on a
>>> kubernetes cluster (I am using minikube)
>>> or directly on top of my host machine, I am getting following Null
>>> Pointer Exception (NPE) when running the analytics node.
>>>
>>> [2017-08-08 04:15:08,891] [EI-Analytics]  INFO {
>>> org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} -
>>> Thrift Server started at 0.0.0.0
>>> [2017-08-08 04:15:08,925] [EI-Analytics]  INFO {
>>> org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} -
>>> Thrift SSL port : 7712
>>> [2017-08-08 04:15:08,936] [EI-Analytics]  INFO {
>>> org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} -
>>> Thrift port : 7612
>>> [2017-08-08 04:15:08,957] [EI-Analytics]  INFO {
>>> org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector
>>> for servlet write/read
>>> [2017-08-08 04:15:09,021] [EI-Analytics]  INFO {
>>> org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector
>>> for servlet write/read
>>> [2017-08-08 04:15:09,129] [EI-Analytics]  INFO {
>>> org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl} -  Task
>>> service starting in STANDALONE mode...
>>> [2017-08-08 04:15:09,191] [EI-Analytics] ERROR
>>> {org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceComponent}
>>> -  Error in activating analytics data service: null
>>> java.lang.NullPointerException
>>> at org.wso2.carbon.analytics.datasource.rdbms.RDBMSUtils.lookup
>>> DatabaseInfo(RDBMSUtils.java:66)
>>> at org.wso2.carbon.analytics.datasource.rdbms.RDBMSUtils.lookup
>>> CurrentQueryConfigurationEntry(RDBMSUtils.java:89)
>>> at org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRec
>>> ordStore.init(RDBMSAnalyticsRecordStore.java:88)
>>> at org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServ
>>> iceImpl.initARS(AnalyticsDataServiceImpl.java:288)
>>> at org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServ
>>> iceImpl.(AnalyticsDataServiceImpl.java:135)
>>> at org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServ
>>> iceComponent.activate(AnalyticsDataServiceComponent.java:69)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:62)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> 

Re: [Dev] [EI-Analytics] [kubernetes] NPE when activating analytics data service

2017-08-08 Thread Dilan Udara Ariyaratne
Hi All,

I had an off-line discussion with Mohan on this and figured out the root
cause which was not obvious when looking at the stack-trace.

The issue was "Updating the analytics database names at
analytics-datasources.xml, but those changed names been not reflected at
analytics-config.xml".

Thanks, Mohan for figuring out the issue.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Tue, Aug 8, 2017 at 10:20 AM, Dilan Udara Ariyaratne <dil...@wso2.com>
wrote:

> Hi All,
>
> Currently I am testing out a WSO2 EI Integrator cluster with analytics for
> the on-going kubernetes-ei effort [1] [2]
>
> The deployed pattern includes an EI Integrator profile cluster with one
> analytics standalone node. In spite of the fact that I deploy this on a
> kubernetes cluster (I am using minikube)
> or directly on top of my host machine, I am getting following Null Pointer
> Exception (NPE) when running the analytics node.
>
> [2017-08-08 04:15:08,891] [EI-Analytics]  INFO {org.wso2.carbon.databridge.
> receiver.thrift.ThriftDataReceiver} -  Thrift Server started at 0.0.0.0
> [2017-08-08 04:15:08,925] [EI-Analytics]  INFO {org.wso2.carbon.databridge.
> receiver.thrift.ThriftDataReceiver} -  Thrift SSL port : 7712
> [2017-08-08 04:15:08,936] [EI-Analytics]  INFO {org.wso2.carbon.databridge.
> receiver.thrift.ThriftDataReceiver} -  Thrift port : 7612
> [2017-08-08 04:15:08,957] [EI-Analytics]  INFO {org.apache.tomcat.util.net
> .NioSelectorPool} -  Using a shared selector for servlet write/read
> [2017-08-08 04:15:09,021] [EI-Analytics]  INFO {org.apache.tomcat.util.net
> .NioSelectorPool} -  Using a shared selector for servlet write/read
> [2017-08-08 04:15:09,129] [EI-Analytics]  INFO 
> {org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl}
> -  Task service starting in STANDALONE mode...
> [2017-08-08 04:15:09,191] [EI-Analytics] ERROR {org.wso2.carbon.analytics.
> dataservice.core.AnalyticsDataServiceComponent} -  Error in activating
> analytics data service: null
> java.lang.NullPointerException
> at org.wso2.carbon.analytics.datasource.rdbms.RDBMSUtils.
> lookupDatabaseInfo(RDBMSUtils.java:66)
> at org.wso2.carbon.analytics.datasource.rdbms.RDBMSUtils.
> lookupCurrentQueryConfigurationEntry(RDBMSUtils.java:89)
> at org.wso2.carbon.analytics.datasource.rdbms.
> RDBMSAnalyticsRecordStore.init(RDBMSAnalyticsRecordStore.java:88)
> at org.wso2.carbon.analytics.dataservice.core.
> AnalyticsDataServiceImpl.initARS(AnalyticsDataServiceImpl.java:288)
> at org.wso2.carbon.analytics.dataservice.core.
> AnalyticsDataServiceImpl.(AnalyticsDataServiceImpl.java:135)
> at org.wso2.carbon.analytics.dataservice.core.
> AnalyticsDataServiceComponent.activate(AnalyticsDataServiceComponent.
> java:69)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.eclipse.equinox.internal.ds.model.ServiceComponent.
> activate(ServiceComponent.java:260)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.
> activate(ServiceComponentProp.java:146)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.
> build(ServiceComponentProp.java:345)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(
> InstanceProcess.java:620)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(
> InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(
> Resolver.java:343)
> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(
> SCRManager.java:222)
> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.
> serviceChanged(FilteredServiceListener.java:107)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.
> dispatchEvent(BundleContextImpl.java:861)
> at org.eclipse.osgi.framework.eventmgr.EventManager.
> dispatchEvent(EventManager.java:230)
> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.
> dispatchEventSynchronous(ListenerQueue.java:148)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.
> publishServiceEventPrivileged(ServiceRegistry.java:819)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.
> publishServiceEvent(ServiceRegistry.java:771)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.
> register(ServiceRegistrationImpl.java:130)
> at org.eclipse.osgi.internal.serviceregistry.Servic

[Dev] [EI-Analytics] [kubernetes] NPE when activating analytics data service

2017-08-07 Thread Dilan Udara Ariyaratne
Hi All,

Currently I am testing out a WSO2 EI Integrator cluster with analytics for
the on-going kubernetes-ei effort [1] [2]

The deployed pattern includes an EI Integrator profile cluster with one
analytics standalone node. In spite of the fact that I deploy this on a
kubernetes cluster (I am using minikube)
or directly on top of my host machine, I am getting following Null Pointer
Exception (NPE) when running the analytics node.

[2017-08-08 04:15:08,891] [EI-Analytics]  INFO
{org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} -  Thrift
Server started at 0.0.0.0
[2017-08-08 04:15:08,925] [EI-Analytics]  INFO
{org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} -  Thrift
SSL port : 7712
[2017-08-08 04:15:08,936] [EI-Analytics]  INFO
{org.wso2.carbon.databridge.receiver.thrift.ThriftDataReceiver} -  Thrift
port : 7612
[2017-08-08 04:15:08,957] [EI-Analytics]  INFO
{org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector for
servlet write/read
[2017-08-08 04:15:09,021] [EI-Analytics]  INFO
{org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector for
servlet write/read
[2017-08-08 04:15:09,129] [EI-Analytics]  INFO
{org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl} -  Task service
starting in STANDALONE mode...
[2017-08-08 04:15:09,191] [EI-Analytics] ERROR
{org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceComponent}
-  Error in activating analytics data service: null
java.lang.NullPointerException
at
org.wso2.carbon.analytics.datasource.rdbms.RDBMSUtils.lookupDatabaseInfo(RDBMSUtils.java:66)
at
org.wso2.carbon.analytics.datasource.rdbms.RDBMSUtils.lookupCurrentQueryConfigurationEntry(RDBMSUtils.java:89)
at
org.wso2.carbon.analytics.datasource.rdbms.RDBMSAnalyticsRecordStore.init(RDBMSAnalyticsRecordStore.java:88)
at
org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceImpl.initARS(AnalyticsDataServiceImpl.java:288)
at
org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceImpl.(AnalyticsDataServiceImpl.java:135)
at
org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceComponent.activate(AnalyticsDataServiceComponent.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at
org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
at

[Dev] WSO2 Standard on naming component artifact IDs

2017-06-13 Thread Dilan Udara Ariyaratne
Hi Folks,

I have seen occasions where we have interchangeably used dashes and dots
for naming component artifact IDs and some having "org.wso2.carbon" as
prefix while others are not.

For example,

 
  org.wso2.carbon.utils
  carbon-utils
 
 
  org.wso2.carbon
  org.wso2.carbon.core
 

Bringing your focus on what should be the exact standard ?

Thanks,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Clarifications about keystores in WSO2 Products

2017-05-23 Thread Dilan Udara Ariyaratne
Hi Niranjan,

On Mon, May 22, 2017 at 5:54 PM, Niranjan Karunanandham <niran...@wso2.com>
wrote:

> Hi Dilan,
>
> On Mon, May 22, 2017 at 5:11 PM, Dilan Udara Ariyaratne <dil...@wso2.com>
> wrote:
>
>> Hi Niranjan,
>>
>> On Mon, May 22, 2017 at 2:48 PM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Dilan,
>>>
>>> On Fri, May 5, 2017 at 7:15 PM, Dilan Udara Ariyaratne <dil...@wso2.com>
>>> wrote:
>>>
>>>> Hi Folks,
>>>>
>>>> Following conceptions are still there regarding keystores used in WSO2
>>>> products.
>>>>
>>>>1. Primary KeyStore must contain only one private key. There can
>>>>not be two private keys. (This is due to some issue in WSO2 products 
>>>> which
>>>>may be fixed in future).
>>>>2. Primary KeyStore must contain *same* password as KeyStore
>>>>password and private key password. (This is due to some issue in WSO2
>>>>products which may be fixed in future)
>>>>
>>>> Are these conceptions still valid or have these issues been already
>>>> fixed ?
>>>>
>>>
>>> In WSO2 Carbon there are multiple keystores. I believe the above
>>> keystore that you have mentioned is only the Keystore [1] in carbon.xml. In
>>> 4.4.x, this keystore is only used for secure vault only.
>>>
>>
>> Aren't those secure vault configurations for keystores configured in 
>> secret-conf.properties
>> ?
>>
>
> This file is created by the cipher tool script file. It reads the
> carbon.xml and creates this file. You can find info on these files in [1].
>

Yes, it's true that secret-conf.properties file is created once you run
cipher tool. But from a user's point of view, if someone wants to configure
a keystore for secure-vault, file to configure that is secret-conf.properties,
right ?


>
>
>>
>>
>> As you have mentioned, in 4.4.x, if secure vault is enabled, then at the
>>> server startup, it will ask for a single password which it uses for both
>>> the Keystore and private key password.
>>>
>>
>> In https://docs.wso2.com/display/ADMIN44x/Using+Asymmetric+Encryption,
>> it says that "You must have the same password for both keystore and
>> private key due to a Tomcat limitation"
>> and therefore, it seems not because of secure vault.
>>
>
> I was referring to the limitation on the same password to be used at the
> server started which uses the secure vault JKS which is used to decrypt the
> passwords. With regard to this, you need to check the tomcat documentation
> and verify this. Anyway here if we have separate JKS for secure vault and
> tomcat ssl we can have separate passwords for both JKS. Any particular
> reason as to why you need to have a separate keystore password and private
> key password for SSL which is in an isolated JKS?
>
>
>>
>>
>>> IMO since this is only for secure vault, we can have the same password.
>>> In-addition AFAIK we can have multiple private key here. In 4.4.x, the JKS
>>> for ssl has been moved to catalina-server.xml. Therefore a separate
>>> keystore can be maintained for this. These two configuration are mentioned
>>> in [2].
>>>
>>>> Thanks.
>>>> *Dilan U. Ariyaratne*
>>>> Senior Software Engineer
>>>> WSO2 Inc. <http://wso2.com/>
>>>> Mobile: +94766405580 <%2B94766405580>
>>>> lean . enterprise . middleware
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>> [1] -
>>> 
>>> 
>>> ${carbon.home}/repository/resources/security/wso2c
>>> arbon.jks
>>> 
>>> JKS
>>> 
>>> wso2carbon
>>> 
>>> wso2carbon
>>> 
>>> wso2carbon
>>> 
>>>
>>> [2] - https://docs.wso2.com/display/ADMIN44x/Configuring+Keystor
>>> es+in+WSO2+Products
>>>
>>> Regards,
>>> Nira
>>>
>>> --
>>>
>>>
>>> *Niranjan Karunanandham*
>>> Associate Technical Lead - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>>
>>
> [1] - https://docs.wso2.com/display/ADMIN44x/Carbon+
> Secure+Vault+Implementation
>
> Regards,
> Nira
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Clarifications about keystores in WSO2 Products

2017-05-23 Thread Dilan Udara Ariyaratne
On Mon, May 22, 2017 at 5:46 PM, Niranjan Karunanandham <niran...@wso2.com>
wrote:

> Hi Dilan,
>
> On Mon, May 22, 2017 at 5:27 PM, Dilan Udara Ariyaratne <dil...@wso2.com>
> wrote:
>
>> And also there is a concept called encrypting registry data.
>> Is this feature supported in carbon 4.4.x and if "YES", is this done via
>> the keystore configured in carbon.xml ? I could not find proper
>> documentation for this.
>>
> Can you explain about this please? Are you referring to data being
> encrypted when added to the registry from the UI say password field. If so,
> then this uses the secure vault.
>

Yes, I was referring to encrypting registry resources such as scripts,
configuration files and etc, but not passwords.


>
>> Thanks,
>> Dilan.
>>
>>
>> *Dilan U. Ariyaratne*
>> Senior Software Engineer
>> WSO2 Inc. <http://wso2.com/>
>> Mobile: +94766405580 <%2B94766405580>
>> lean . enterprise . middleware
>>
>>
>> On Mon, May 22, 2017 at 5:11 PM, Dilan Udara Ariyaratne <dil...@wso2.com>
>> wrote:
>>
>>> Hi Niranjan,
>>>
>>> On Mon, May 22, 2017 at 2:48 PM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
>>>> Hi Dilan,
>>>>
>>>> On Fri, May 5, 2017 at 7:15 PM, Dilan Udara Ariyaratne <dil...@wso2.com
>>>> > wrote:
>>>>
>>>>> Hi Folks,
>>>>>
>>>>> Following conceptions are still there regarding keystores used in WSO2
>>>>> products.
>>>>>
>>>>>1. Primary KeyStore must contain only one private key. There can
>>>>>not be two private keys. (This is due to some issue in WSO2 products 
>>>>> which
>>>>>may be fixed in future).
>>>>>2. Primary KeyStore must contain *same* password as KeyStore
>>>>>password and private key password. (This is due to some issue in WSO2
>>>>>products which may be fixed in future)
>>>>>
>>>>> Are these conceptions still valid or have these issues been already
>>>>> fixed ?
>>>>>
>>>>
>>>> In WSO2 Carbon there are multiple keystores. I believe the above
>>>> keystore that you have mentioned is only the Keystore [1] in carbon.xml. In
>>>> 4.4.x, this keystore is only used for secure vault only.
>>>>
>>>
>>> Aren't those secure vault configurations for keystores configured in 
>>> secret-conf.properties
>>> ?
>>>
>>> As you have mentioned, in 4.4.x, if secure vault is enabled, then at the
>>>> server startup, it will ask for a single password which it uses for both
>>>> the Keystore and private key password.
>>>>
>>>
>>> In https://docs.wso2.com/display/ADMIN44x/Using+Asymmetric+Encryption,
>>> it says that "You must have the same password for both keystore and
>>> private key due to a Tomcat limitation"
>>> and therefore, it seems not because of secure vault.
>>>
>>>
>>>> IMO since this is only for secure vault, we can have the same password.
>>>> In-addition AFAIK we can have multiple private key here. In 4.4.x, the JKS
>>>> for ssl has been moved to catalina-server.xml. Therefore a separate
>>>> keystore can be maintained for this. These two configuration are mentioned
>>>> in [2].
>>>>
>>>>> Thanks.
>>>>> *Dilan U. Ariyaratne*
>>>>> Senior Software Engineer
>>>>> WSO2 Inc. <http://wso2.com/>
>>>>> Mobile: +94766405580 <%2B94766405580>
>>>>> lean . enterprise . middleware
>>>>>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>> [1] -
>>>> 
>>>> 
>>>> ${carbon.home}/repos
>>>> itory/resources/security/wso2carbon.jks
>>>> 
>>>> JKS
>>>> 
>>>> wso2carbon
>>>> 
>>>> wso2carbon
>>>> 
>>>> wso2carbon
>>>> 
>>>>
>>>> [2] - https://docs.wso2.com/display/ADMIN44x/Configuring+Keystor
>>>> es+in+WSO2+Products
>>>>
>>>> Regards,
>>>> Nira
>>>>
>>>> --
>>>>
>>>>
>>>> *Niranjan Karunanandham*
>>>> Associate Technical Lead - WSO2 Inc.
>>>> WSO2 Inc.: http://www.wso2.com
>>>>
>>>>
>>>
>>
>
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Clarifications about keystores in WSO2 Products

2017-05-22 Thread Dilan Udara Ariyaratne
And also there is a concept called encrypting registry data.
Is this feature supported in carbon 4.4.x and if "YES", is this done via
the keystore configured in carbon.xml ? I could not find proper
documentation for this.

Thanks,
Dilan.


*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Mon, May 22, 2017 at 5:11 PM, Dilan Udara Ariyaratne <dil...@wso2.com>
wrote:

> Hi Niranjan,
>
> On Mon, May 22, 2017 at 2:48 PM, Niranjan Karunanandham <niran...@wso2.com
> > wrote:
>
>> Hi Dilan,
>>
>> On Fri, May 5, 2017 at 7:15 PM, Dilan Udara Ariyaratne <dil...@wso2.com>
>> wrote:
>>
>>> Hi Folks,
>>>
>>> Following conceptions are still there regarding keystores used in WSO2
>>> products.
>>>
>>>1. Primary KeyStore must contain only one private key. There can not
>>>be two private keys. (This is due to some issue in WSO2 products which 
>>> may
>>>be fixed in future).
>>>2. Primary KeyStore must contain *same* password as KeyStore
>>>password and private key password. (This is due to some issue in WSO2
>>>products which may be fixed in future)
>>>
>>> Are these conceptions still valid or have these issues been already
>>> fixed ?
>>>
>>
>> In WSO2 Carbon there are multiple keystores. I believe the above keystore
>> that you have mentioned is only the Keystore [1] in carbon.xml. In 4.4.x,
>> this keystore is only used for secure vault only.
>>
>
> Aren't those secure vault configurations for keystores configured in 
> secret-conf.properties
> ?
>
> As you have mentioned, in 4.4.x, if secure vault is enabled, then at the
>> server startup, it will ask for a single password which it uses for both
>> the Keystore and private key password.
>>
>
> In https://docs.wso2.com/display/ADMIN44x/Using+Asymmetric+Encryption, it
> says that "You must have the same password for both keystore and private
> key due to a Tomcat limitation"
> and therefore, it seems not because of secure vault.
>
>
>> IMO since this is only for secure vault, we can have the same password.
>> In-addition AFAIK we can have multiple private key here. In 4.4.x, the JKS
>> for ssl has been moved to catalina-server.xml. Therefore a separate
>> keystore can be maintained for this. These two configuration are mentioned
>> in [2].
>>
>>> Thanks.
>>> *Dilan U. Ariyaratne*
>>> Senior Software Engineer
>>> WSO2 Inc. <http://wso2.com/>
>>> Mobile: +94766405580 <%2B94766405580>
>>> lean . enterprise . middleware
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>> [1] -
>> 
>> 
>> ${carbon.home}/repository/resources/security/wso2c
>> arbon.jks
>> 
>> JKS
>> 
>> wso2carbon
>> 
>> wso2carbon
>> 
>> wso2carbon
>> 
>>
>> [2] - https://docs.wso2.com/display/ADMIN44x/Configuring+Keystor
>> es+in+WSO2+Products
>>
>> Regards,
>> Nira
>>
>> --
>>
>>
>> *Niranjan Karunanandham*
>> Associate Technical Lead - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Clarifications about keystores in WSO2 Products

2017-05-22 Thread Dilan Udara Ariyaratne
Hi Niranjan,

On Mon, May 22, 2017 at 2:48 PM, Niranjan Karunanandham <niran...@wso2.com>
wrote:

> Hi Dilan,
>
> On Fri, May 5, 2017 at 7:15 PM, Dilan Udara Ariyaratne <dil...@wso2.com>
> wrote:
>
>> Hi Folks,
>>
>> Following conceptions are still there regarding keystores used in WSO2
>> products.
>>
>>1. Primary KeyStore must contain only one private key. There can not
>>be two private keys. (This is due to some issue in WSO2 products which may
>>be fixed in future).
>>2. Primary KeyStore must contain *same* password as KeyStore password
>>and private key password. (This is due to some issue in WSO2 products 
>> which
>>may be fixed in future)
>>
>> Are these conceptions still valid or have these issues been already fixed
>> ?
>>
>
> In WSO2 Carbon there are multiple keystores. I believe the above keystore
> that you have mentioned is only the Keystore [1] in carbon.xml. In 4.4.x,
> this keystore is only used for secure vault only.
>

Aren't those secure vault configurations for keystores configured in
secret-conf.properties
?

As you have mentioned, in 4.4.x, if secure vault is enabled, then at the
> server startup, it will ask for a single password which it uses for both
> the Keystore and private key password.
>

In https://docs.wso2.com/display/ADMIN44x/Using+Asymmetric+Encryption, it
says that "You must have the same password for both keystore and private
key due to a Tomcat limitation"
and therefore, it seems not because of secure vault.


> IMO since this is only for secure vault, we can have the same password.
> In-addition AFAIK we can have multiple private key here. In 4.4.x, the JKS
> for ssl has been moved to catalina-server.xml. Therefore a separate
> keystore can be maintained for this. These two configuration are mentioned
> in [2].
>
>> Thanks.
>> *Dilan U. Ariyaratne*
>> Senior Software Engineer
>> WSO2 Inc. <http://wso2.com/>
>> Mobile: +94766405580 <%2B94766405580>
>> lean . enterprise . middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
> [1] -
> 
> 
> ${carbon.home}/repository/resources/security/
> wso2carbon.jks
> 
> JKS
> 
> wso2carbon
> 
> wso2carbon
> 
> wso2carbon
> 
>
> [2] - https://docs.wso2.com/display/ADMIN44x/Configuring+
> Keystores+in+WSO2+Products
>
> Regards,
> Nira
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Carbon] Clarifications about keystores in WSO2 Products

2017-05-05 Thread Dilan Udara Ariyaratne
Hi Folks,

Following conceptions are still there regarding keystores used in WSO2
products.

   1. Primary KeyStore must contain only one private key. There can not be
   two private keys. (This is due to some issue in WSO2 products which may be
   fixed in future).
   2. Primary KeyStore must contain *same* password as KeyStore password
   and private key password. (This is due to some issue in WSO2 products which
   may be fixed in future)

Are these conceptions still valid or have these issues been already fixed ?

Thanks.
*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Introducing onGet, onPost functions for UUF

2017-01-24 Thread Dilan Udara Ariyaratne
Hi Folks,

Can you explain the use-case behind splitting onRequest() function to two,
i.e. onGet() and onPost() ?

Does this mean that we can have independent server-side JS scripts in UUF
to handle a GET or a POST outside pages and units ?

Thanks.
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Wed, Jan 25, 2017 at 11:37 AM, Rasika Perera  wrote:

> IMO, we don't need PUT, DELETE for serving web pages. PUT & DELETE are
>> needed for a REST API, and UUF has a way to deploy microservices for REST
>> APIs. So I don't see a requirement for 'onPut', 'onDelete' functions in
>> server-side JS.
>
> ​+1, Adding PUT, DELETE will mislead the fundamental purpose of ​UUF. You
> may write a MSF4J service if you need all these other HTTP methods.
>
> On Wed, Jan 25, 2017 at 10:56 AM, SajithAR Ariyarathna 
> wrote:
>
>> IMO, we don't need PUT, DELETE for serving web pages. PUT & DELETE are
>> needed for a REST API, and UUF has a way to deploy microservices for REST
>> APIs. So I don't see a requirement for 'onPut', 'onDelete' functions in
>> server-side JS.
>>
>> On Wed, Jan 25, 2017 at 10:48 AM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>>
>>> Hi Shan,
>>>
>>> Shouldn't we add functions like onPut() , onDelete() for other HTTP
>>> methods like PUT, DELETE?
>>>
>>> Thanks
>>>
>>> On Wed, Jan 25, 2017 at 10:27 AM, Shan Mahanama  wrote:
>>>
 Hi all,

 This change has been implemented and available in UUF Core 1.0.0-m11
 [1] version.

 [1] https://github.com/wso2/carbon-uuf/releases/tag/v1.0.0-m11

 Thanks,
 Shan.

 On Mon, Jan 23, 2017 at 12:37 PM, Shan Mahanama  wrote:

> Hi all,
>
> We are introducing *onGet*(for GET requests), *onPost*(for POST
> request) server side JS functions to the UUF as discussed in the mail
> thread [1]. Hence the *onRequest* function will be deprecated.
>
> function onGet(env) {
> // do stuff for a GET request, env variable is same as before
> }
>
>
> function onPost(env) {
> // do stuff for a POST request, env variable is same as before
> }
>
>
>- If you are only handling GET requests in the server side, only
>adding onGet function is enough.
>- If you are only handling POST requests in the server side, only
>adding onPost function is enough.
>- If you are handling both GET and POST requests in the server
>side, both onGet, onPost functions need to be added.
>
> Please note that in the server side JS file, you need to specify* at
> least one *of these functions. Please refer samples [2] for any
> clarification.
>
> [1] Document onRequest() method in the UUF developer's guide
> [2] https://github.com/wso2/carbon-uuf/tree/master/samples/a
> pps/org.wso2.carbon.uuf.sample.pets-store.app/src/main/pages
>
> Thanks,
> Shan.
>
> --
> Shan Mahanama
>
> Software Engineer, WSO2 Inc. http://wso2.com
> 
> Email: sh...@wso2.com
> Mobile: +94 71 2000 498
>
>
>


 --
 Shan Mahanama

 Software Engineer, WSO2 Inc. http://wso2.com
 
 Email: sh...@wso2.com
 Mobile: +94 71 2000 498



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


>>>
>>>
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0717429601*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sajith Janaprasad Ariyarathna
>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> 
>
> WSO2 Inc. www.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] [C5] Usage of kernel-version.txt in C5

2017-01-08 Thread Dilan Udara Ariyaratne
Hi Folks,

I am referring to carbon-kernel git issue 1239 - https://github.com/wso2/
carbon-kernel/issues/1239

When I looked into the usage of this file, the only usage found is getting
the kernel version from that file and
printing it on the console when command ./carbon.sh version is invoked.

AFAIU, there are two concerns that we need to consider here.

[1] Do we really need this version option with ./carbon.sh command ?
 My opinion is that it's a nice to have feature with respect to user
experience.
 Nowadays, many of the softwares support this handy feature with
-version option preceded by some alias to represent the corresponding
software.
 For ex:
 Java and mvn have following outputs for -version option

 command :
 java -version
 output :
 Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
 Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

 command :
 mvn -version
 output :
 Apache Maven 3.3.9
 Maven home: /usr/share/maven
 Java version: 1.8.0_102, vendor: Oracle Corporation
 Java home: /home/abc/Programs/Java/jdk1.8.0_102/jre
 Default locale: en_US, platform encoding: UTF-8
 OS name: "linux", version: "4.4.0-57-generic", arch: "amd64", family:
"unix"

[2] If we are supporting this option with ./carbon.sh, what is the ideal
way to obtain any version information ?
 Currently, we are getting the version value of carbon kernel with the
aforementioned kernel-version.txt file which resides in /bin.
 For ex:

 command :
 ./carbon.sh version
 output :
 WSO2 Carbon Kernel v5.2.0-SNAPSHOT

 So, the question would be that "Is this the ideal way of doing this"
or will there be any other better alternatives ?

Please share your valuable thoughts on this.

Cheers,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Gadgets] [vizGrammar] Support for Pie-Charts and corresponding Documentation

2016-12-05 Thread Dilan Udara Ariyaratne
Hi Dunith and Udara,

Thanks for the links provided. Will have a look on each.

Regards,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Mon, Dec 5, 2016 at 12:08 PM, Dunith Dhanushka <dun...@wso2.com> wrote:

> +Dev
>
> On Mon, Dec 5, 2016 at 12:07 PM, Dunith Dhanushka <dun...@wso2.com> wrote:
>
>> Hi Dilan,
>>
>> Vizgrammer support pie charts and it's variant, donut charts.
>>
>> Related documentation can be found at [1]
>>
>> [1] http://wso2.github.io/VizGrammar/samples/charts/arc/
>>
>> Thanks.
>> Dunith
>>
>> On Mon, Dec 5, 2016 at 11:56 AM, Dilan Udara Ariyaratne <dil...@wso2.com>
>> wrote:
>>
>>> Forwarding...
>>>
>>> *Dilan U. Ariyaratne*
>>> Senior Software Engineer
>>> WSO2 Inc. <http://wso2.com/>
>>> Mobile: +94766405580 <%2B94766405580>
>>> lean . enterprise . middleware
>>>
>>>
>>> -- Forwarded message --
>>> From: Dilan Udara Ariyaratne <dil...@wso2.com>
>>> Date: Mon, Dec 5, 2016 at 11:46 AM
>>> Subject: [Gadgets] [vizGrammar] Support for Pie-Charts and corresponding
>>> Documentation
>>> To: WSO2 Developers' List <dev@wso2.org>
>>>
>>>
>>> Hi Folks,
>>>
>>> I am currently in the process of developing some application gadgets
>>> using WSO2 Dashboard Server gadget capabilities and
>>> vizGrammar as the library for visualizing some pie-charts.
>>>
>>> I went through online documentation, but could not find any useful
>>> information on configuring a pie-chart. Do we already have support for
>>> pie-charts ?
>>> If so, where can I find corresponding documentation for configuring the
>>> same using Java-script ?
>>>
>>> Can someone help me on this ?
>>>
>>> Thanks,
>>> Dilan.
>>>
>>> *Dilan U. Ariyaratne*
>>> Senior Software Engineer
>>> WSO2 Inc. <http://wso2.com/>
>>> Mobile: +94766405580 <%2B94766405580>
>>> lean . enterprise . middleware
>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>> Dunith Dhanushka,
>> Associate Technical Lead
>> WSO2 Inc,
>>
>> Mobile - +94 71 8615744 <+94%2071%20861%205744>
>> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
>> Twitter - @dunithd <http://twitter.com/dunithd>
>>
>
>
>
> --
> Regards,
>
> Dunith Dhanushka,
> Associate Technical Lead
> WSO2 Inc,
>
> Mobile - +94 71 8615744 <+94%2071%20861%205744>
> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
> Twitter - @dunithd <http://twitter.com/dunithd>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Any way to know the life-cycle of a tenant on AS?

2016-12-04 Thread Dilan Udara Ariyaratne
Hi Zheng,

Tenancy concept [1] is common to any WSO2 product including AS and a core
feature facilitated by WSO2 Carbon Kernel [2], the core framework of all
WSO2 based Products.

Can you elaborate a bit on what kind of customization you are hoping to do
on top of the existing life-cycle states for a tenant ?

References :
[1] https://docs.wso2.com/display/ESB510/Multi+Tenant+Architecture
[2] https://docs.wso2.com/display/Carbon4410/Features

Thanks,
Dilan.


*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Mon, Dec 5, 2016 at 11:48 AM, wenxing zheng 
wrote:

> Dear all,
>
> I need to do some customization on following AS tenant states:
> 1. loaded
> 2. unloaded
>
> Beside the one mentioned in [1], any other way?
>
> [1]: http://wso2.markmail.org/search/?q=list%3Aorg.wso2.dev+
> tenant+loaded+event#query:list%3Aorg.wso2.dev%20tenant%20loaded%2
> 0event+page:9+mid:mla6cls7gsoxnstu+state:results
>
> Thanks, Wenxing
>
> ___
> 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] [Gadgets] [vizGrammar] Support for Pie-Charts and corresponding Documentation

2016-12-04 Thread Dilan Udara Ariyaratne
Hi Folks,

I am currently in the process of developing some application gadgets using
WSO2 Dashboard Server gadget capabilities and
vizGrammar as the library for visualizing some pie-charts.

I went through online documentation, but could not find any useful
information on configuring a pie-chart. Do we already have support for
pie-charts ?
If so, where can I find corresponding documentation for configuring the
same using Java-script ?

Can someone help me on this ?

Thanks,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 Enterprise Mobility Manager 2.2.0 RC2

2016-12-01 Thread Dilan Udara Ariyaratne
Hi All,

Tested overall functionality of device enrollment, assignment of
Operations, Policy enforcement and Device Statistics with both
admin and non-admin users of limited permissions.

Found no bugs.

Hence, I am putting my vote as
[+1] - Stable - go ahead and release.

Thanks,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Thu, Dec 1, 2016 at 3:14 PM, Geeth Munasinghe  wrote:

> Hi all,
>
> We have received 9 +1s and 0 -1s so far for the EMM 2.2.0-RC2. We are
> closing the vote now and proceed with the release.
>
> Thanks
> Geeth
>
> On Thu, Dec 1, 2016 at 2:52 PM, Megala Uthayakumar 
> wrote:
>
>> Hi All,
>>
>> I tested the SSO scenario in super-tenant mode and tenant mode as admin.
>> Found no any major issues.
>>
>> Hence,
>> [+] - stable - go ahead and release.
>>
>> Thanks.
>>
>> Regards,
>> Megala.
>>
>> On Thu, Dec 1, 2016 at 11:36 AM, Hasunie Adikari 
>> wrote:
>>
>>> Hi All,
>>>
>>> I have tested following scenarios.
>>>
>>> 1. Windows Device enrollment.
>>> 2. Add windows operations
>>> 3. Create windows policy and apply to the device.
>>> 4. Edit Windows policy and done apply changes.
>>> 5. Create more policies and set priority and then apply to the device.
>>> 6. tested notification pane.
>>>
>>> [+] - stable - go ahead and release.
>>>
>>> Thanks
>>> Hasunie
>>>
>>> On Thu, Dec 1, 2016 at 10:41 AM, Geeth Munasinghe 
>>> wrote:
>>>
 Hi all,

 Tested following scenarios.


1. Android device enrollment.
2. User and role creation and assigning permission.
3. Sending email with user invite.
4. Create/Edit policy
5. Applying policy to device.
6. Reapplying changed policy.
7. Add few operations.

 [+] - Stable - go ahead and release.

 Thanks
 Geeth

 On Thu, Dec 1, 2016 at 10:26 AM, Inosh Perera  wrote:

> Hi all,
>
> I have tested FCM together with Android enrollment and operation
> sending, functionality works well.
>
> [+] Stable - go ahead and release
>
> Regards,
> Inosh
>
> On Wed, Nov 30, 2016 at 3:55 PM, Charitha Goonetilleke <
> charit...@wso2.com> wrote:
>
>> Hi All,
>>
>> I have enrolled Android device and tested basic functionality.
>>
>> [+] Stable - go ahead and release
>>
>> Thanks & Regards,
>> /charithag
>>
>> On Tue, Nov 29, 2016 at 9:50 PM, Harshan Liyanage 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the release candidate of WSO2 Enterprise Mobility Manager
>>> 2.2.0.
>>>
>>> Please download EMM 2.2.0 RC2 and test the functionality and vote.
>>> Vote will be open for 72 hours or as needed.
>>> Know issues: https://wso2.org/jira/issues/?filter=13384
>>> Fixes provided : https://wso2.org/jira/issues/?filter=13582
>>> 
>>>
>>> Source & binary distribution files:
>>> https://github.com/wso2/product-emm/releases/tag/v2.2.0-RC2
>>>
>>> The tag to be voted upon:
>>> https://github.com/wso2/product-emm/tree/release-2.2.0-RC2
>>>
>>>
>>> [+] Stable - go ahead and release
>>> [-]  Broken - do not release (explain why)
>>>
>>> Thanks and Regards,
>>>
>>>
>>> Harshan Liyanage
>>> EMM/IoT TG
>>> Mobile: *+94765672894*
>>> Email: hars...@wso2.com
>>> Blog : http://harshanliyanage.blogspot.com/
>>> *WSO2, Inc. :** wso2.com *
>>> lean.enterprise.middleware.
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> *Charitha Goonetilleke*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 751 3669 <%2B94777513669>
>> Twitter:@CharithaWs , fb: charithag
>> , linkedin: charithag
>> 
>>
>> 
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Inosh Perera
> Senior Software Engineer, WSO2 Inc.
> Tel: 077813 7285, 0785293686
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


 --

 *G. K. S. Munasinghe*
 *Senior Software Engineer,*
 *WSO2, 

Re: [Dev] Performance testing on EMM 2.2.0 REST APIs

2016-11-28 Thread Dilan Udara Ariyaratne
Hi Maninda,

Having following questions :

[1] Were these scenarios executed in an asynchronous manner where devices
could get enroll to the system in a parallel manner
or in a synchronous manner where devices get enrolled to the system in a
sequence one after the other ?

[2] What was the setup used ? Is this a single EMM node or a clustered
setup ?

[3] When do you say "Enrolling *n *number of devices with a Single App",
what do you mean by "Single App" ?

[4] What is the criteria in representing devices in your test (because I am
in doubt if all these devices are real) ?

Thanks,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Fri, Nov 25, 2016 at 9:16 PM, Maninda Edirisooriya 
wrote:

> Hi,
>
> I have started to test on the performance numbers of EMM REST APIs in EMM
> 2.2.0 RC1 pack. First we tested with enrolling n number of devices and
> called ring operation and tested again with the same test including the
> calling to pending operation endpoint. Here only a generic pending
> operation was called.
>
> (These tests are not yet complete and this is the current performance
> numbers we have gathered)
>
>
>
> *Scenario 1 : Enrolling n number of devices with a single App and calling
> ring operation of them*
>
> *With H2 Database*
>
> 5000 Devices registered and ringed - Successful (time = 2:36 min)
>
> 1 Devices registered and ringed - Fails (time = 7:23 min) - Error [1]
> comes at server stop.
>
>
> *With MySQL Database*
>
> 1 Devices registered and ringed - Successful (time = 13:47 min)
>
>
>
> *Scenario 2 : Enrolling n number of devices with a single App, calling
> ring operation of them and calling pending-operation*
>
>
> *With H2 Database*
>
> 1 Devices registered ringed and pending operations called - Fails
> (time = 35:00 min) - Error [2] comes.
>
>
> *With MySQL Database*
>
> 1 Devices registered ringed and pending operations called - Fails
> (time = 22:49 min) - Failed with error [3] which is similar in
> functionality to [2].
>
> We will carryout more tests and will be coming up with much accurate
> numbers.
>
>
> [1]
>
> [2016-11-25 17:09:15,749]  INFO 
> {org.wso2.carbon.tomcat.ext.internal.CarbonTomcatServiceComponent}
> -  Stopping the carbon web-app registered under : /
> [2016-11-25 17:09:15,757]  INFO 
> {org.wso2.carbon.appmgt.mobile.internal.AppManagerMobileComponent}
> -  App Manger Mobile Component deactivated.
> [2016-11-25 17:09:15,757]  INFO 
> {org.wso2.carbon.appmgt.mobile.internal.AppManagerMobileComponent}
> -  App Manger MDM is unbound.
> Stopping org.wso2.jaggery.scxml with RealmService disabled
> [2016-11-25 17:09:16,185] ERROR {org.wso2.carbon.device.mgt.core.service.
> DeviceManagementProviderServiceImpl} -  Error occurred while retrieving
> advance info of 'android' that carries the id 'd24f870f390352a45270'
> [2016-11-25 17:09:16,197] ERROR {org.wso2.carbon.device.mgt.core.service.
> DeviceManagementProviderServiceImpl} -  Error occurred while retrieving
> the application list of 'android', which carries the id '5270'
> org.wso2.carbon.device.mgt.core.dao.DeviceManagementDAOException: SQL
> Error occurred while retrieving the list of Applications installed in
> device id '5270
> at org.wso2.carbon.device.mgt.core.dao.impl.ApplicationDAOImpl.
> getInstalledApplications(ApplicationDAOImpl.java:287)
> at org.wso2.carbon.device.mgt.core.service.
> DeviceManagementProviderServiceImpl.getAllDevices(
> DeviceManagementProviderServiceImpl.java:683)
> at org.wso2.carbon.policy.mgt.core.task.MonitoringTask.
> execute(MonitoringTask.java:85)
> at org.wso2.carbon.ntask.core.impl.TaskQuartzJobAdapter.
> execute(TaskQuartzJobAdapter.java:67)
> at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
> at java.util.concurrent.Executors$RunnableAdapter.
> call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.h2.jdbc.JdbcSQLException: Database is already closed (to
> disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to
> the db URL) [90121-175]
> at org.h2.message.DbException.getJdbcSQLException(
> DbException.java:332)
> at org.h2.message.DbException.get(DbException.java:172)
> at org.h2.message.DbException.get(DbException.java:149)
> at org.h2.message.DbException.get(DbException.java:138)
> at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1413)
> at org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1388)
> at org.h2.jdbc.JdbcConnection.prepareStatement(
> JdbcConnection.java:265)
> at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
> at 

Re: [Dev] WSO2 EMM Support

2016-10-25 Thread Dilan Udara Ariyaratne
Hi Praveen,

I am bit confused. All these data is captured from the same database view.
So, device count being 5 and details of the same is only for 2 devices is
bit confusing.
Which version of the product is you are currently using? This is the
default 2.2.0-snapshot version, right?

Regards,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Tue, Oct 25, 2016 at 2:36 PM, Praveen J <
praveen.josephmasilam...@nexttechnosolutions.co.in> wrote:

> Hi Dilan,
>
> Please refer the screen[portal2.png], After active the BYOD ownership in
> the same device[DEVICE OTUS_DS] this is for your reference.
>
> 25.10.2016, 14:27, "Praveen J" <praveen.josephmasilamani@
> nexttechnosolutions.co.in>:
>
> Hi Dilan,
>
> Apologizes, Now please find the attached protal devices screen[portal.png].
>
> 25.10.2016, 14:16, "Dilan Udara Ariyaratne" <dil...@wso2.com>:
>
> Hi Praveen,
>
> I wanted to have a look on the devices page of the portal dashboard. Can
> you send a screenshot of that?
>
> Cheers,
> Dilan.
>
> *Dilan U. Ariyaratne*
> Senior Software Engineer
> WSO2 Inc. <http://wso2.com/>
> Mobile: +94766405580 <%2B94766405580>
> lean . enterprise . middleware
>
>
>
> On Tue, Oct 25, 2016 at 2:00 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi Dilan,
>
> For your kind info, I didn't applied any filtering in device pages please
> notice the search field in screen[1.png]. And I'm using same device in
> different owenrship (COPE & BYOD)[1.png].
>
> Actually, Two COPE devices status are removed one BYOD device is active.
> But in portal page[2.png] it shown no of devices was 5.
>
> 25.10.2016, 13:38, "Dilan Udara Ariyaratne" <dil...@wso2.com>:
>
> Hi Praveen,
>
> Regarding portal issue, can you send us a screenshot of the devices page
> as well without any filtering applied.
>
> Regards,
> Dilan.
>
>
> *Dilan U. Ariyaratne*
> Senior Software Engineer
> WSO2 Inc. <http://wso2.com/>
> Mobile: +94766405580 <%2B94766405580>
> lean . enterprise . middleware
>
>
>
> On Tue, Oct 25, 2016 at 12:33 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi Malintha,
>
> Thanks for your response, We will work based on your suggestion. And
> regarding device monitoring (/portal), I have added the two devices but one
> device in different ownership please refer the screen[1.png].
>
> But in device monitor it shows 5 devices please refer the screen[2.png].
> Please let me know why it happens. and We need one more response for the
> below comment which we have sent by yesterday mail.
>
>
> This is a JDK level issue. This happens because of JVM not trusting the
> certificates when installing signed jars. As a workaround to fix this
> issue, if you are using OpenJDK switch to Oracle JDK 1.7_79 and if you
> are using Oracle JDK already and version 1.7_80, downgrade it to 1.7_79.
> More information about this issue can be found at [1]
> <https://bugs.eclipse.org/bugs/show_bug.cgi?id=309059>.
>
>
> As per your comments, We have tried your above solution most of the build
> got success except distribution build. Please refer the attached
> screenshot[3.png] for your kind reference.
>
> Once we will get the successful build then we will also ready to work on
> the source code and We will try to debug the code. Please guide us to debug
> and give some document for project structure or flow.
>
>
> 25.10.2016, 12:09, "Malintha Fernando" <malinth...@wso2.com>:
>
> Hi Praveen,
>
> Error in screenshot[1] can happen if you have already installed the system
> app with a different signature or if your device is unavailable to adb.
> Please do following and verify your device is viewable on adb.
>
> Move to *~/Android/Sdk/platform-tools *and run *adb devices* and check if
> your device is being listed.
> If not, go to developer options and revoke USB debugging keys and
> reconnect the device.
> Now the device should be visible on the list. Then run *adb shell pm list
> packages | grep 'wso2'* and see if the system app is already installed.
> If then, uninstall it, try build and install the system app again.
>
> Regards,
> Malintha
>
>
>
> On Mon, Oct 24, 2016 at 6:32 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi Dev,
>
> Good Evening, Thanks for your response. We have tried your solution,
>
>
> You can get the correct android.jar file using the repository [2]
> <

Re: [Dev] WSO2 EMM Support

2016-10-25 Thread Dilan Udara Ariyaratne
Hi Praveen,

I wanted to have a look on the devices page of the portal dashboard. Can
you send a screenshot of that?

Cheers,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Tue, Oct 25, 2016 at 2:00 PM, Praveen J <
praveen.josephmasilam...@nexttechnosolutions.co.in> wrote:

> Hi Dilan,
>
> For your kind info, I didn't applied any filtering in device pages please
> notice the search field in screen[1.png]. And I'm using same device in
> different owenrship (COPE & BYOD)[1.png].
>
> Actually, Two COPE devices status are removed one BYOD device is active.
> But in portal page[2.png] it shown no of devices was 5.
>
> 25.10.2016, 13:38, "Dilan Udara Ariyaratne" <dil...@wso2.com>:
>
> Hi Praveen,
>
> Regarding portal issue, can you send us a screenshot of the devices page
> as well without any filtering applied.
>
> Regards,
> Dilan.
>
>
> *Dilan U. Ariyaratne*
> Senior Software Engineer
> WSO2 Inc. <http://wso2.com/>
> Mobile: +94766405580 <%2B94766405580>
> lean . enterprise . middleware
>
>
>
> On Tue, Oct 25, 2016 at 12:33 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi Malintha,
>
> Thanks for your response, We will work based on your suggestion. And
> regarding device monitoring (/portal), I have added the two devices but one
> device in different ownership please refer the screen[1.png].
>
> But in device monitor it shows 5 devices please refer the screen[2.png].
> Please let me know why it happens. and We need one more response for the
> below comment which we have sent by yesterday mail.
>
>
> This is a JDK level issue. This happens because of JVM not trusting the
> certificates when installing signed jars. As a workaround to fix this
> issue, if you are using OpenJDK switch to Oracle JDK 1.7_79 and if you
> are using Oracle JDK already and version 1.7_80, downgrade it to 1.7_79.
> More information about this issue can be found at [1]
> <https://bugs.eclipse.org/bugs/show_bug.cgi?id=309059>.
>
>
> As per your comments, We have tried your above solution most of the build
> got success except distribution build. Please refer the attached
> screenshot[3.png] for your kind reference.
>
> Once we will get the successful build then we will also ready to work on
> the source code and We will try to debug the code. Please guide us to debug
> and give some document for project structure or flow.
>
>
> 25.10.2016, 12:09, "Malintha Fernando" <malinth...@wso2.com>:
>
> Hi Praveen,
>
> Error in screenshot[1] can happen if you have already installed the system
> app with a different signature or if your device is unavailable to adb.
> Please do following and verify your device is viewable on adb.
>
> Move to *~/Android/Sdk/platform-tools *and run *adb devices* and check if
> your device is being listed.
> If not, go to developer options and revoke USB debugging keys and
> reconnect the device.
> Now the device should be visible on the list. Then run *adb shell pm list
> packages | grep 'wso2'* and see if the system app is already installed.
> If then, uninstall it, try build and install the system app again.
>
> Regards,
> Malintha
>
>
>
> On Mon, Oct 24, 2016 at 6:32 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi Dev,
>
> Good Evening, Thanks for your response. We have tried your solution,
>
>
> You can get the correct android.jar file using the repository [2]
> <https://github.com/anggrayudi/android-hidden-api>. This contains
> the android.jar (unlocked hidden APIs) files for all SDK versions. Also,
> you might find the article [3]
> <http://wso2.com/library/articles/2016/07/article-advanced-handling-of-cope-android-devices-using-wso2-enterprise-mobility-manager/>
> helpful which describes Handling of COPE Android Devices.
>
>
> ​​
> I have attached the screen shots [1] and [2] for issues faced while
> building the system service application in android studio with custom
> android.jar file in the SDK path and the issues arise while installing
> application in the mobile it shows the application is already installed
> even for the first time and fails to uninstall the application.
>
>
> This is a JDK level issue. This happens because of JVM not trusting the
> certificates when installing signed jars. As a workaround to fix this
> issue, if you are using OpenJDK switch to Oracle JDK 1.7_79 and if you
> are using Oracle JDK already and version 1.7_80, downgrade it to 1.7_79.
> More information about this issue ca

Re: [Dev] WSO2 EMM Support

2016-10-25 Thread Dilan Udara Ariyaratne
 for 2.2.0 are not finalized yet. We will update the docs soon.
>
> Until the docs are completed, please execute both
> /dbscripts/apimgt/mysql.sql and 
> /dbscripts/appmgt/mysql.sql
> scripts on your AM_DB. Then restart the server and try to publish an app
> again.
>
> Thanks,
> Lakshani.
>
> On Fri, Oct 21, 2016 at 7:56 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi All,
>
> Good day, Thanks for your help and support, Now device monitoring works
> fine after the suggested changes. And regarding latest version of WSO2 EMM
> 2.2.0 Beta version we have faced mysql error. As per document I have
> followed to setting up the MySQL.
>
> When I clicked 'Add app to publish' button I got 500 error[1.png] page and
> in terminal[2.png] WSO2AM_DB.APM_BUSINESS_OWNER doesn't exist issue. Please
> refer the attached screenshot. for your kind reference.
>
> And also let me know how to run the server automatically without manual
> control.
>
>
> 21.10.2016, 10:28, "Dilan Udara Ariyaratne" <dil...@wso2.com>:
>
> Hi Praveen,
>
> Have you set authorization attributes correctly as described in the docs
> [1].
> In default single server set up, you have to set following properties in
> either way in portal/configs/designer.json
>
> "authorization": {
> "activeMethod": "oauth",
> "methods": {
> "oauth": {
> "attributes": {
> "idPServer": "https://localhost:9443/oauth2/token;,
> (or https://:9443/oauth2/token)
> "dynamicClientProperties": {
> "callbackUrl": "https://localhost:9443/portal;,
> (or https://:9443/portal)
> "clientName": "portal",
> "owner": "admin",
> "applicationType": "JaggeryApp",
> "grantType": "password refresh_token
> urn:ietf:params:oauth:grant-type:saml2-bearer",
> "saasApp": false,
> "dynamicClientRegistrationEndPoint": "
> https://localhost:9443/dynamic-client-web/register/;, (or https://
> :9443/dynamic-client-web/register/)
> "tokenScope": "Production"
> }
> }
> }
> }
> }
>
> References:
> [1] https://docs.wso2.com/display/EMM220/General+Server+Configurations#
> GeneralServerConfigurations-EnablingDashboardServerCommunication
>
>
> Cheers,
> Dilan.
>
>
> *Dilan U. Ariyaratne*
> Senior Software Engineer
> WSO2 Inc. <http://wso2.com/>
> Mobile: +94766405580 <%2B94766405580>
> lean . enterprise . middleware
>
>
>
> On Thu, Oct 20, 2016 at 5:15 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi All,
>
> I have checked the device monitoring using latest Beta 2.2.0. In dashboard
> EMM Analytics shows fine but device count and active inactive devices are
> not showing refer the screenshot for your kind reference.
>
> But I have entrolled device in MDM. So please guide me which step I have
> missed. and also refer the below link which i have refered.
>
> *URL:*
>
> https://docs.wso2.com/display/EMM220/General+Server+Configurations#
> GeneralServerConfigurations-EnablingDashboardServerCommunication
>
> 20.10.2016, 09:20, "Megala Uthayakumar" <meg...@wso2.com>:
>
> Hi Praveen,
>
> This is a known issue in EMM as per the jira [1]. It is fixed in the
> latest version. Can you try out the latest beta2 pack[2], to access the
> dashboard.
>
> [1] https://wso2.org/jira/browse/EMM-1523
> [2] https://github.com/wso2/product-emm/releases
>
> Thanks.
>
> Regards,
> Megala
>
> On Wed, Oct 19, 2016 at 5:45 PM, Praveen J <praveen.josephmasilamani@
> nexttechnosolutions.co.in> wrote:
>
> Hi All,
>
> Thank you for your quick response and support. Now I'm working on that
> based on your suggestion. if any doubts I will let you know.
>
> And one more clarification regarding dashboard server (
> https://:/portal) When i logged in portal there is no
> EMM Analytics Dashboard and for your info I also enbled the dasboard server
> communication.
>
> But I didn't get any result, Please refer the below links which i have
> referred and followed.
>
> https://docs.wso2.com/display/EMM210/Accessing+the+WSO2+EMM+
> Device+Monitoring+Dashboard
>
> https://docs.wso2.com/display/

Re: [Dev] WSO2 EMM Support

2016-10-20 Thread Dilan Udara Ariyaratne
Hi Praveen,

Have you set authorization attributes correctly as described in the docs
[1].
In default single server set up, you have to set following properties in
either way in portal/configs/designer.json

"authorization": {
"activeMethod": "oauth",
"methods": {
"oauth": {
"attributes": {
"idPServer": "https://localhost:9443/oauth2/token;, (or
https://:9443/oauth2/token)
"dynamicClientProperties": {
"callbackUrl": "https://localhost:9443/portal;, (or
https://:9443/portal)
"clientName": "portal",
"owner": "admin",
"applicationType": "JaggeryApp",
"grantType": "password refresh_token
urn:ietf:params:oauth:grant-type:saml2-bearer",
"saasApp": false,
"dynamicClientRegistrationEndPoint": "
https://localhost:9443/dynamic-client-web/register/;, (or https://
:9443/dynamic-client-web/register/)
"tokenScope": "Production"
}
}
}
}
}

References:
[1]
https://docs.wso2.com/display/EMM220/General+Server+Configurations#GeneralServerConfigurations-EnablingDashboardServerCommunication


Cheers,
Dilan.


*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Thu, Oct 20, 2016 at 5:15 PM, Praveen J <
praveen.josephmasilam...@nexttechnosolutions.co.in> wrote:

> Hi All,
>
> I have checked the device monitoring using latest Beta 2.2.0. In dashboard
> EMM Analytics shows fine but device count and active inactive devices are
> not showing refer the screenshot for your kind reference.
>
> But I have entrolled device in MDM. So please guide me which step I have
> missed. and also refer the below link which i have refered.
>
> *URL:*
>
> https://docs.wso2.com/display/EMM220/General+Server+Configurations#
> GeneralServerConfigurations-EnablingDashboardServerCommunication
>
> 20.10.2016, 09:20, "Megala Uthayakumar" :
>
> Hi Praveen,
>
> This is a known issue in EMM as per the jira [1]. It is fixed in the
> latest version. Can you try out the latest beta2 pack[2], to access the
> dashboard.
>
> [1] https://wso2.org/jira/browse/EMM-1523
> [2] https://github.com/wso2/product-emm/releases
>
> Thanks.
>
> Regards,
> Megala
>
> On Wed, Oct 19, 2016 at 5:45 PM, Praveen J  nexttechnosolutions.co.in> wrote:
>
> Hi All,
>
> Thank you for your quick response and support. Now I'm working on that
> based on your suggestion. if any doubts I will let you know.
>
> And one more clarification regarding dashboard server (
> https://:/portal) When i logged in portal there is no
> EMM Analytics Dashboard and for your info I also enbled the dasboard server
> communication.
>
> But I didn't get any result, Please refer the below links which i have
> referred and followed.
>
> https://docs.wso2.com/display/EMM210/Accessing+the+WSO2+EMM+
> Device+Monitoring+Dashboard
>
> https://docs.wso2.com/display/EMM210/Monitoring+Devices+via+the+Dashboard
>
> Please give some suggestion how to setup the dashboard server.
>
>
> 19.10.2016, 16:52, "Madawa Soysa" :
>
> Hi Praveen,
>
> Regarding your last question, 5th step of the data containerization guide
> [1]
> 
>  means
> that you can uninstall the agent installed in your personal profile.
>
> [1] - https://docs.wso2.com/display/EMM210/Data+
> Containerization+for+Android+Device#DataContainerizationforAndroidDevice-
> ApplyingAndroiddeviceoperations
>
> Regards,
> Madawa
>
> On Wed, Oct 19, 2016 at 3:35 PM, Rasika Perera  wrote:
>
> Hi Praveen,
>
> It's great to hear that you started using WSO2 EMM. Please find inline
> comments below.
>
> Regarding to setup project-emm, Actually I already setup the project in
> IntelliJ IDE but i don't know how to run the product and debug so please
> guide me via steps how to setup the project and work with source code and
> finally built the product using Maven.
> We are using three repositories; CDMF and CDMF-plugins and Product EMM to
> build the product. Please refer [1] for additional details. You can debug
> the EMM server as per [3]. If you find any issue you can raise JIRAs on [2]
> and even you can fix and send us a PR to relevant repository.
>
> Then I need clarification regarding how to install and uninstall app
> silent using Application management? And we got some search result in stack
> overflow about that but they discussed about old version and i have
> mentioned the link below for your reference. So please give some suggestion
> how to achieve this.
> In order to get it work silent app install/uninstall you need 

Re: [Dev] [EMM] WebApp Permission Handling at UI

2016-09-07 Thread Dilan Udara Ariyaratne
Hi Rasika,

For third-party UIs expecting to use our web APIs, we will also have to
expose an unprotected web API for login-time authentication and login
authorization check.

And when it comes to performance concerns,

[1] Session based approach - "YES", in the session based approach we will
have consistency issues in between Backend and UI, if permissions of the
user get updated during
the valid time of an active session. Yet IMO, this approach stands out as
the fastest permission checking approach in comparison to other methods
that you mention and
one counter-argument that we could make for inconsistency issues is that
this kind of an inconsistency could happen very rarely as permission level
changes for roles
is not that frequent. And even if that happens, since we anyway check the
most updated state of a permission at API layer, we always have the right
level of security guaranteed from our backend.

WDYT?

[2] OSGI Calls from backend javascript layer to user management core - This
stands out as the second fastest since this is an in-JVM call and not a
network call to user management OSGI component.
Yet I believe we should optimize our backend javascript wrapper to support
multiple permission checks in one go, so that it minimizes the
reinitialization of required user management beans for each
permission check. What I exactly mean is to change
.isAuthorized(permission)  .isAuthorized(List permissions), so
that all the permissions to be checked for a page or unit
could be verified in one go.

[3] Web APIs to call user management core - This stands out to be the
slowest as it requires a network call to an API from the UI to do an
authorization check.
Even here I believe that we should support a request body of multiple
permissions, so that we can verify the level of authorization of a user for
a page or unit in one go and most importantly
one network call, instead of a few.

WDYT?

Cheers,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Thu, Sep 8, 2016 at 5:17 AM, Rasika Perera  wrote:

> Hi All,
>
> With the current migration of EMM webapp from UUF v0.1 to v0.2 (jaggery
> based implementation) we are trying to standardize the permission check for
> UI bits. We need to check permissions for “pages” level as well as granular
> to the “units” level. For example; show/hide a button based on UI
> permission. Also should notice that these permissions are not unique to the
> front-end, thus can be directly mapped into the respective back-end osgi
> services. For example; device enroll permission will be checked on the
> enrollment page(front-end), as well as the inside the respective enrollment
> osgi service(back-end).
>
> And also there’s a requirement that any third-party application should be
> able to write their own UI based on our web apis. Hence we are expecting to
> expose isAuthorized() via JAX-RS too. SOAP clients will be able to directly
> call admin-service.
>
> [image: Inline image 1]
>
>
>
> As per the diagram, when a EMM web app receives a page render request from
> the browser, UUF will execute the the method isAuthorized() at the back-end
> JavaScript layer. JavaScript will include the “carbon” jaggery module which
> will import the RealmService OSGi service. Using RealmService we can invoke
> the Authorizer.isRoleAuthorized().
>
> Whenever, third-party application requests for a permission check via
> EMM-API(JAX-RS), final result should be given invoking same
> Authorizer.isRoleAuthorized() method.
>
> One concern on this design was how to improve the *performance* of OSGi
> calls per permission check. One such suggestion is to retrieve all
> permissions for the current user and persist it on the “session”. IMO this
> would results some unforeseen issues and permission update on the backend
> will not immediately applied on the already logged users(eg. longer session
> timeouts). For example: users will still see the action buttons when
> clicked on it, it will return permission error. On the other hand, managing
> caching coherency is an extra effort for this approach. My suggestion is to
> utilize the permission check cache(if exists) at the user-core level which
> would be consistent across the platform.
>
> WDYT?
>
> @DS/UUF Team: I hope we need the similar permission check feature with the
> {{permission}} handlebar helper.
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> [image: wso2-signature-general.png] 
>
> WSO2 Inc. www.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


Re: [Dev] [EMM] Configurations to Enabling Dashboard Server Communication

2016-08-30 Thread Dilan Udara Ariyaratne
Hi Shavindri,

We are maintaining the sources for common widgets for both EMM and IoT
products in one carbon-app and
the sources for emm-specific widgets in another.

In order to deploy all these widget related sources coming from two
carbon-apps into the corresponding location of portal jaggery app,
we have to maintain the two server roles as mentioned and server-role
"CDMFPlatform" will only be necessary for this particular requirement.

That's why we have to add this role to carbon.xml and since we are not
maintaining a custom carbon.xml, adding "CDMFPlatform" role by default into
the file, will not be possible.

Next issue in question, is the %https.ip% template that we use in
designer.json file of the portal app for configuring various services.

Of course in a default pack, even without replacing these templates,
dashboard will work as all these services comes by default in a regular
pack.
But in a real deployment scenario, this might not work if these services
are decided to run on separate servers. In that case, we will have to set
the correct
IP and port for such services explicitly here by replacing the default
%https.ip%. But that would not always necessarily be https://
: and could be some
other IP and port.

Regarding the issue, "EMM analytics dashboard is not appearing after the
configurations" > yes, this has to be looked into ASAP with swagger and
scope related improvements.

Cheers,
Dilan.


*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Tue, Aug 30, 2016 at 11:46 AM, Shavindri Dissanayake 
wrote:

> Hi Team,
>
> Need your expertise to verify a few areas, as to why we have to configure
> the following for the $subject.
>
>- As documented [1]
>
> ,
>we need to add the CDMF platform role under server roles in the
>/repository/conf/carbon.xml file.
>-
>Can we have the CDMF platform role added into the carbon.xml file by
>default, without having the user to add it in?
>If this is  possible, we can reduce the number of steps.
>
>- Next, we need to configure the designer.json file that is in the
>/repository/deployment/server/jaggeryapps/portal/configs
>directory.
>In [1]
>
> 
>we mention to replace %https.ip% with https://:.
>--
>Is this necessary? By default, in all WSO2 products shouldn't the
>servers details be taken for %https.ip%?
>
> P.S: Currently, the EMM analytics dashboard is not appearing after the
> configurations are done due to the API refactoring.
>
> [1] https://docs.wso2.com/display/EMM220/General+Server+Conf
> igurations#GeneralServerConfigurations-EnablingDashboardServ
> erCommunication
> [2] https://wso2.org/jira/browse/EMM-1523
>
> Thanks & Regards
> Shavindri Dissanayake
> Technical Writer
>
> WSO2 Inc.
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [APIM] [EMM] Adding multiple scopes to a single API resource endpoint

2016-08-09 Thread Dilan Udara Ariyaratne
Hi Nuwan,

The responsibility of this authorization check could be assigned to either
one of the layers that you have mentioned.
Currently, we have assigned this responsibility to API layer of the backend
system.

Cheers,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Tue, Aug 9, 2016 at 8:33 AM, Nuwan Dias <nuw...@wso2.com> wrote:

> Whose responsibility is it to decide what details to return in the
> response based on the user who's requesting it? Is it the fronting API's
> responsibility to decide this or should it be the core back-end of the
> Application who should be deciding who gets what?
>
> On Tue, Aug 9, 2016 at 6:47 AM, Dilan Udara Ariyaratne <dil...@wso2.com>
> wrote:
>
>> Adding the thread to architecture, as this proposes an architectural
>> change to existing OAuth scopes @ APIM level.
>>
>> Regards,
>> Dilan.
>>
>> *Dilan U. Ariyaratne*
>> Senior Software Engineer
>> WSO2 Inc. <http://wso2.com/>
>> Mobile: +94766405580 <%2B94766405580>
>> lean . enterprise . middleware
>>
>>
>> On Tue, Aug 9, 2016 at 6:30 AM, Dilan Udara Ariyaratne <dil...@wso2.com>
>> wrote:
>>
>>> Hi Sam,
>>>
>>> I also think that Chathura is making a valid point here.
>>>
>>> For example, let's take the exact problem that EMM APIs do have
>>> currently.
>>>
>>> I am considering GET /devices API here. For this API, we do have a
>>> requirement to compile two responses
>>> based on the type of user accessing the API.
>>>
>>> [1] If he is simply a device owner, he would only get the details of his
>>> own devices.
>>> [2] If he is an admin user, he would get the facility of retrieving all
>>> the devices for that particular tenant.
>>>
>>> Since we can currently map only one scope with an API endpoint, that can
>>> only be useful in verifying whether the particular user is capable
>>> of accessing the API endpoint or not. This one-to-one level of API
>>> scoping is not enough in identifying to
>>> which of the above two responses, the user is authorized to access.
>>>
>>> If we had one-to-many level of API scoping, the story is different.
>>> Then we can add two scopes like, get-owning-devices and get-all-devices
>>> to the API, let a user access the API first by having either of two scopes.
>>> Next, we can simply decide what response to be authorized based on which
>>> of the two scopes, user is having.
>>>
>>> Since we do not currently have this facility of one-to-many level of API
>>> scoping, to achieve the same functionality, we have now
>>> got to think of other alternatives. Two such alternatives are:
>>>
>>> [1] Splitting the GET /devices API to two different APIs such that each
>>> would cater one of the above two responses
>>> and bring in the mentioned scopes to each of them separately:
>>>
>>> Although this is doable, this seems like duplicating
>>> the same business logic in multiple APIs again and again.
>>>
>>> [2] Introducing a predefined role such as get-all-devices and validate
>>> what response to be compiled based on that.
>>> If the user accessing the API has this role, in addition to the assigned
>>> API scope, he would get the facility of retrieving all the devices
>>> for that particular tenant or otherwise,only get the details of his own
>>> devices:
>>>
>>> Although this also seems doable, now we are simply in a process of
>>> complicating permission management side of our application.
>>> Since the capability of retrieving details of all devices is already
>>> provided by a predefined role, now we do not have the
>>> luxury of creating one single role having the same capability + another
>>> set of capabilities simply because of the fact that a role cannot be
>>> assigned to another role.
>>> With this limitation, as of now if an administrator wants to assign a
>>> user the capability of retrieving details of all devices + another set
>>> of capabilities,
>>> he cannot simply do that by assigning the user a single role, instead he
>>> would need to assign at least two roles. This could get even worse
>>> if we have the same issue for many other APIs as well. All this is
>>> because we are violating the fundamental principals
>>> and trying to authorize capabilities of our application d

[Dev] [Architecture] [APIM] [EMM] Adding multiple scopes to a single API resource endpoint

2016-08-08 Thread Dilan Udara Ariyaratne
Adding the thread to architecture, as this proposes an architectural change
to existing OAuth scopes @ APIM level.

Regards,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Tue, Aug 9, 2016 at 6:30 AM, Dilan Udara Ariyaratne <dil...@wso2.com>
wrote:

> Hi Sam,
>
> I also think that Chathura is making a valid point here.
>
> For example, let's take the exact problem that EMM APIs do have currently.
>
> I am considering GET /devices API here. For this API, we do have a
> requirement to compile two responses
> based on the type of user accessing the API.
>
> [1] If he is simply a device owner, he would only get the details of his
> own devices.
> [2] If he is an admin user, he would get the facility of retrieving all
> the devices for that particular tenant.
>
> Since we can currently map only one scope with an API endpoint, that can
> only be useful in verifying whether the particular user is capable
> of accessing the API endpoint or not. This one-to-one level of API scoping
> is not enough in identifying to
> which of the above two responses, the user is authorized to access.
>
> If we had one-to-many level of API scoping, the story is different.
> Then we can add two scopes like, get-owning-devices and get-all-devices
> to the API, let a user access the API first by having either of two scopes.
> Next, we can simply decide what response to be authorized based on which
> of the two scopes, user is having.
>
> Since we do not currently have this facility of one-to-many level of API
> scoping, to achieve the same functionality, we have now
> got to think of other alternatives. Two such alternatives are:
>
> [1] Splitting the GET /devices API to two different APIs such that each
> would cater one of the above two responses
> and bring in the mentioned scopes to each of them separately:
>
> Although this is doable, this seems like duplicating
> the same business logic in multiple APIs again and again.
>
> [2] Introducing a predefined role such as get-all-devices and validate
> what response to be compiled based on that.
> If the user accessing the API has this role, in addition to the assigned
> API scope, he would get the facility of retrieving all the devices
> for that particular tenant or otherwise,only get the details of his own
> devices:
>
> Although this also seems doable, now we are simply in a process of
> complicating permission management side of our application.
> Since the capability of retrieving details of all devices is already
> provided by a predefined role, now we do not have the
> luxury of creating one single role having the same capability + another
> set of capabilities simply because of the fact that a role cannot be
> assigned to another role.
> With this limitation, as of now if an administrator wants to assign a user
> the capability of retrieving details of all devices + another set of
> capabilities,
> he cannot simply do that by assigning the user a single role, instead he
> would need to assign at least two roles. This could get even worse
> if we have the same issue for many other APIs as well. All this is because
> we are violating the fundamental principals
> and trying to authorize capabilities of our application directly via roles
> instead of scopes or permissions.
>
> Cheers,
> Dilan.
>
>
>
> *Dilan U. Ariyaratne*
> Senior Software Engineer
> WSO2 Inc. <http://wso2.com/>
> Mobile: +94766405580 <%2B94766405580>
> lean . enterprise . middleware
>
>
> On Mon, Aug 8, 2016 at 2:08 PM, Chathura Dilan <chathu...@wso2.com> wrote:
>
>> Hi Sam,
>>
>> Sometimes based on the scopes we might need to authorize the APIs to get
>> different responses.
>>
>> Eg: Facebook scopes [1]. At the login we can send multiple scopes,
>> generate the token and authorize an API based on scopes.
>>
>> It is not possible if only one scope is assigned to one API (resource).
>>
>> IMO scopes should be initially designed when the APIs are designed
>> regardless of the roles that they would be attached to.
>>
>> [1] - https://developers.facebook.com/docs/facebook-login/permissions
>>
>>
>>
>> On Thu, Aug 4, 2016 at 1:41 PM, Milan Perera <mi...@wso2.com> wrote:
>>
>>> Hi Sam,
>>>
>>> Thanks for the clarification.
>>>
>>> On Thu, Aug 4, 2016 at 12:34 PM, Sam Sivayogam <s...@wso2.com> wrote:
>>>
>>>> Hi Milan,
>>>>
>>>> In APIM scopes are there to give access controls based on user roles. A
>>>> scope can contain 

Re: [Dev] [APIM] [EMM] Adding multiple scopes to a single API resource endpoint

2016-08-08 Thread Dilan Udara Ariyaratne
Hi Sam,

I also think that Chathura is making a valid point here.

For example, let's take the exact problem that EMM APIs do have currently.

I am considering GET /devices API here. For this API, we do have a
requirement to compile two responses
based on the type of user accessing the API.

[1] If he is simply a device owner, he would only get the details of his
own devices.
[2] If he is an admin user, he would get the facility of retrieving all the
devices for that particular tenant.

Since we can currently map only one scope with an API endpoint, that can
only be useful in verifying whether the particular user is capable
of accessing the API endpoint or not. This one-to-one level of API scoping
is not enough in identifying to
which of the above two responses, the user is authorized to access.

If we had one-to-many level of API scoping, the story is different.
Then we can add two scopes like, get-owning-devices and get-all-devices to
the API, let a user access the API first by having either of two scopes.
Next, we can simply decide what response to be authorized based on which of
the two scopes, user is having.

Since we do not currently have this facility of one-to-many level of API
scoping, to achieve the same functionality, we have now
got to think of other alternatives. Two such alternatives are:

[1] Splitting the GET /devices API to two different APIs such that each
would cater one of the above two responses
and bring in the mentioned scopes to each of them separately:

Although this is doable, this seems like duplicating
the same business logic in multiple APIs again and again.

[2] Introducing a predefined role such as get-all-devices and validate what
response to be compiled based on that.
If the user accessing the API has this role, in addition to the assigned
API scope, he would get the facility of retrieving all the devices
for that particular tenant or otherwise,only get the details of his own
devices:

Although this also seems doable, now we are simply in a process of
complicating permission management side of our application.
Since the capability of retrieving details of all devices is already
provided by a predefined role, now we do not have the
luxury of creating one single role having the same capability + another set
of capabilities simply because of the fact that a role cannot be assigned
to another role.
With this limitation, as of now if an administrator wants to assign a user
the capability of retrieving details of all devices + another set of
capabilities,
he cannot simply do that by assigning the user a single role, instead he
would need to assign at least two roles. This could get even worse
if we have the same issue for many other APIs as well. All this is because
we are violating the fundamental principals
and trying to authorize capabilities of our application directly via roles
instead of scopes or permissions.

Cheers,
Dilan.



*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Mon, Aug 8, 2016 at 2:08 PM, Chathura Dilan  wrote:

> Hi Sam,
>
> Sometimes based on the scopes we might need to authorize the APIs to get
> different responses.
>
> Eg: Facebook scopes [1]. At the login we can send multiple scopes,
> generate the token and authorize an API based on scopes.
>
> It is not possible if only one scope is assigned to one API (resource).
>
> IMO scopes should be initially designed when the APIs are designed
> regardless of the roles that they would be attached to.
>
> [1] - https://developers.facebook.com/docs/facebook-login/permissions
>
>
>
> On Thu, Aug 4, 2016 at 1:41 PM, Milan Perera  wrote:
>
>> Hi Sam,
>>
>> Thanks for the clarification.
>>
>> On Thu, Aug 4, 2016 at 12:34 PM, Sam Sivayogam  wrote:
>>
>>> Hi Milan,
>>>
>>> In APIM scopes are there to give access controls based on user roles. A
>>> scope can contain multiple user roles so if you want to block multiple
>>> roles add those roles to a* single scope *and assign to the particular
>>> resource. IMO there is no need to create multiple scopes with different
>>> roles and assigning it to the same resource, when you can already create a
>>> scope with multiple roles.
>>>
>>> Thanks,
>>> Sam
>>>
>>> On Thu, Aug 4, 2016 at 12:25 PM, Milan Perera  wrote:
>>>
 Hi all,

 While going through the code I found that URITemplate class has an
 attribute to store multiple scopes.

 package org.wso2.carbon.apimgt.api.model;


 public class URITemplate implements Serializable {
 *...*
 private Scope scope;
 private List scopes = new ArrayList();

 Can we use this scopes attribute to do the $subject?


 Regards,


 On Thu, Aug 4, 2016 at 12:09 PM, Milan Perera  wrote:

> Hi all,
>
> Is $subject possible?
> I noticed that $subject 

[Dev] [CDMF] [EMM 2.1.0 Beta] Refactoring UI controller modules

2016-08-07 Thread Dilan Udara Ariyaratne
Hi All,

As part of EMM 2.1.0 Release, we are currently in the process of migrating
its UI from UUF 0.1 to
UUF 0.2, which is a much-optimized version of UUF in terms of performance.

As part of the same migration effort, many UI controller modules @
org.wso2.carbon.device.mgt.ui component layer
were subjected to update by their names and level of organization, apart
from any code-level improvements.

This mail is to update all on the corresponding changes.

Figure 1 shows the original organization of these modules in a flat
hierarchy with less emphasize
on accurately showing their correct context of relevance and intended
functionality.






*Figure 1: Original Organization of UI Controller modules- - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*
​
Following updates (see figure 2) have been made to most of these modules in
terms of their names and
the level of organization to overcome the mentioned issue and improve
clarity.

[1] pinch.min.js @ modules and mdm-props.js @ conf were brought into one
module
called "conf-reader" and mdm-props.js was renamed to main.js :
"conf-reader" module can be used to read application specific configuration
details @ conf/config.json

[2] api-wrapper-util.js which contained all the main OAuth token handling
functions was renamed to "token-handlers.js".
util.js which contained all the supportive functions for OAuth token
handling @ "token-handlers.js" was renamed to "token-handler-utils.js".
backend-service-invokers.js which contained all the utility functions for
invoking token-protected-backend-services was renamed to
"token-protected-service-invokers.js".
Since all these modules are related to OAuth, they were grouped as one
"oauth" module.

[3] device.js, group.js, operation.js, policy.js and user.js which
contained all the utility functions for manipulating device-mgt specific
business data
from backend services for the use of UI were grouped in as one set of
controllers called "business-controllers".

[4] invoker-request-wrapper.js and user-info.js were made obsolete and
removed as they had no usage at all by dependent sources.



​
*Figure 2: New Organization of UI Controller modules*

*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - -*
In the meantime, rest of the modules, namely constants.js, init.js,
login.js and utility.js are still under
consideration for any improvement or refactoring as the next part of this
work.

Cheers,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Disabling INFO logs per page rendering

2016-08-04 Thread Dilan Udara Ariyaratne
Hi Rasika,

Based on the offline chat we had, now I am quite clear on your
implementation and yes, this solves the fundamental development problem
that I had.

For ex: If a developer wants to just focus his debugging on a certain
function that resides on a particular jaggery file, with this
implementation,
he can simply set the log level of that specific file to DEBUG and the
global log level of the entire application to ERROR.

Since this specific log level for the file, defined in server's log4j
properties is not overridden by jaggery.conf global log level setting,
only the debug logs of the specifically mentioned file will be printed in
addition to any error logs of any other file.

Thus, +1 for the improvement.

But, as Sinthuja mentioned, this improvement would be much cleaner if we
can bring these settings configurable within the Jaggery app itself.

Thanks,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Disabling INFO logs per page rendering

2016-08-03 Thread Dilan Udara Ariyaratne
 then it's that
>> application developer's decision.
>>
>>
>>> 2. Otherwise, new logger will get the application scope log level set by
>>> *jaggery.conf* file.
>>>
>>
>>> PR is in https://github.com/wso2/jaggery/pull/164
>>>
>>> *Example*
>>> Suppose you have following entries on js, jaggery.conf and
>>> log4j.properties;
>>>
>>> >> token-protected-service-invokers.js
>>> var log = new Log(
>>> "app.modules.oauth.token-protected-service-invokers.js);
>>>
>>> >> jaggery.conf
>>> {
>>>
>>>   "displayName": "Carbon Device Management App",
>>>   "logLevel": "error"
>>> }
>>>
>>> >> log4.properties
>>>
>>> log4j.logger.app.modules.oauth.token-protected-service-invokers.js=INFO
>>>
>>> This will change only the particular logger (i.e.
>>> token-protected-service-invokers.js) into INFO level. With the previous
>>> approach you will need to change jaggery.conf log level which will
>>> ultimately turn on all loggers into INFO level in that application.
>>>
>>
>>> WDYT?
>>>
>>
>> IMO I don't think this is possible, because I don't think all developers
>> will be having access to the file system of the server to modify the
>> server's log4j.properties (Eg: In cloud environment). And actually this
>> control needs to be within the application it self, so that the developer
>> can modify that regardless of the deployment.
>>
>> Therefore I propose it would be better to bundle the application specific
>> log4j.properties within the jaggery app itself to control the logging level
>> for packages, etc. And that will override the configurations provided from
>> the server's log4j.properties.
>>
>> Thanks,
>> Sinthuja.
>>
>> [1]
>>> https://github.com/wso2/jaggery/blob/release-0.12.2/components/jaggery-core/org.jaggeryjs.jaggery.app.mgt/src/main/java/org/jaggeryjs/jaggery/app/mgt/TomcatJaggeryWebappsDeployer.java#L726
>>> [2]
>>> https://github.com/wso2/jaggery/blob/release-0.12.2/components/hostobjects/org.jaggeryjs.hostobjects.log/src/main/java/org/jaggeryjs/hostobjects/log/LogHostObject.java#L101-L114
>>> [3] https://github.com/wso2/jaggery/pull/164
>>>
>>> On Mon, Aug 1, 2016 at 8:52 PM, Dilan Udara Ariyaratne <dil...@wso2.com>
>>> wrote:
>>>
>>>> Hi Rasika,
>>>>
>>>> These info logs have been enabled during a recent refactoring and test
>>>> run to
>>>> jaggeryapps/devicemgt/app/modules/oauth/token-protected-service-invokers.js
>>>> and
>>>> it seems like mistakenly committed to the source repository;
>>>> thus commented the lines and recommitted.
>>>>
>>>> However, for anyone working on the current EMM UUF 0.2 migration effort
>>>> and debugging the REST API request handling both at browser layer
>>>> and jaggery layer, these info logs would be extremely useful and can be
>>>> uncommented and enabled at any time.
>>>>
>>>> The main reason for using info logs instead of debugging logs was that
>>>> we could not enable debug mode logging specifically for what we wanted.
>>>> For example: specifically for token-protected-service-invokers.js
>>>>
>>>> In jaggery level, it seemed that we could only enable debug mode
>>>> globally.
>>>> when this was done, all the unnecessary debugging logs, specifically
>>>> the huge amount of debugging logs from UUF framework level
>>>> did appear on console which made it hard to trace what we actually
>>>> wanted.
>>>>
>>>> But, this was in UUF 0.1 and may not be an issue with UUF 0.2.
>>>>
>>>> Cheers,
>>>> Dilan.
>>>>
>>>>
>>>> *Dilan U. Ariyaratne*
>>>> Senior Software Engineer
>>>> WSO2 Inc. <http://wso2.com/>
>>>> Mobile: +94766405580 <%2B94766405580>
>>>> lean . enterprise . middleware
>>>>
>>>>
>>>> On Mon, Aug 1, 2016 at 3:16 PM, Prabath Abeysekera <praba...@wso2.com>
>>>> wrote:
>>>>
>>>>> [Looping dev@]
>>>>>
>>>>> Folks, please refrain from discussing development related stuff in
>>>>> private.
>>>>>
>>>>> Cheers,
>>>>> Prabath
>>>>>
>>>>

Re: [Dev] [CDMF] [EMM] [IoT] Obtaining Tenancy Details of a User at EMM/IoT UI client layer

2016-08-02 Thread Dilan Udara Ariyaratne
Hi Rasika,

I did not get the point of "two network calls" here.

Instead of the direct OSGI call to user management, what we are hoping to
achieve is doing one network call to user management admin service.

I did not understand your second point either.

Our actual consideration is that a direct OSGI call from the UI to a
back-end feature like user management brings the unnecessary concern
of maintaining additional features in the server except the Jaggery runtime
on top of tomcat.

However, Please do correct me if these considerations are wrong.

For example, I too have the following doubt.

Our EMM or IoT servers are meant to be run as either manager or worker
nodes.
Manager node is the place where we deploy the UI. Any of these servers is a
carbon server
and in every carbon server, user management feature comes by default.

In that case, I also have the question of why should we do a costly network
call to user management via admin services
when the same functionality is anyway accessible so easily by a direct OSGI
call via Jaggery wrapper functions.

@prabatha, WDYT?

Regards
Dilan.


*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Tue, Aug 2, 2016 at 3:13 PM, Rasika Perera <rasi...@wso2.com> wrote:

> Hi All,
>
> We would be able to easily provide a REST API for this at device-mgt api
>> layer.
>> But, due to the fact that such an API is OAuth token protected, this is
>> again not a solution
>> because by this point of time, the logged-in user has not even received a
>> token.
>> As a result, current suggestion is to do a SOAP webservice call using
>> basic-auth to
>> user management admin services and retrieve tenant information.
>
> In this case, I am -1 to do two network calls. When designing new UUF,
> this was one of main concern too. Whenever possible you need to do direct
> method calls(i.e. OSGi call).
>
>
>> This direct coupling of backend OSGi services with the UI is not
>> encouraged as that creates an unnecessary requirement
>> such that UI jaggery app and the carbon user management OSGi service to
>> co-exist in the same server.
>
> With the current jaggery app delivery mechanism, We can easily solve this
> problem by adding carbon feature level dependency to the user management
> OSGi service(whatever feature that brings OSGi service of our concern).
>
> For instance;
> If our jaggery app feature is "org.wso2.carbon.device.mgt.ui.feature" we
> can add;
>
> 
>  {groupId}:{artifactId}
> 
>
> WDYT?
>
> On Tue, Aug 2, 2016 at 2:45 PM, Dilan Udara Ariyaratne <dil...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> At EMM/IoTs UI web app level,
>> for setting up an OAuth token pair for a newly authenticated user,
>> we require the use of tenant-based client app credentials.
>>
>> These credentials will be retrieved by the provided tenant domain of the
>> authenticated user
>> and it seems that currently the particular information is retrieved via a
>> jaggery wrapper function called
>> "carbon.server.tenantDomain({username: username})" to the underneath
>> user-mgt OSGi service of the default pack.
>>
>> This direct coupling of backend OSGi services with the UI is not
>> encouraged as that creates an unnecessary requirement
>> such that UI jaggery app and the carbon user management OSGi service to
>> co-exist in the same server.
>>
>> Thus, I am bringing in the concern of $subject.
>>
>> We would be able to easily provide a REST API for this at device-mgt api
>> layer.
>> But, due to the fact that such an API is OAuth token protected, this is
>> again not a solution
>> because by this point of time, the logged-in user has not even received a
>> token.
>>
>> As a result, current suggestion is to do a SOAP webservice call using
>> basic-auth to
>> user management admin services and retrieve tenant information.
>>
>> Cheers,
>> Dilan.
>>
>> *Dilan U. Ariyaratne*
>> Senior Software Engineer
>> WSO2 Inc. <http://wso2.com/>
>> Mobile: +94766405580 <%2B94766405580>
>> lean . enterprise . middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> [image: wso2-signature-general.png] <https://wso2.com/signature>
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CDMF] [EMM] [IoT] Obtaining Tenancy Details of a User at EMM/IoT UI client layer

2016-08-02 Thread Dilan Udara Ariyaratne
Hi All,

At EMM/IoTs UI web app level,
for setting up an OAuth token pair for a newly authenticated user,
we require the use of tenant-based client app credentials.

These credentials will be retrieved by the provided tenant domain of the
authenticated user
and it seems that currently the particular information is retrieved via a
jaggery wrapper function called
"carbon.server.tenantDomain({username: username})" to the underneath
user-mgt OSGi service of the default pack.

This direct coupling of backend OSGi services with the UI is not encouraged
as that creates an unnecessary requirement
such that UI jaggery app and the carbon user management OSGi service to
co-exist in the same server.

Thus, I am bringing in the concern of $subject.

We would be able to easily provide a REST API for this at device-mgt api
layer.
But, due to the fact that such an API is OAuth token protected, this is
again not a solution
because by this point of time, the logged-in user has not even received a
token.

As a result, current suggestion is to do a SOAP webservice call using
basic-auth to
user management admin services and retrieve tenant information.

Cheers,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2 EMM] Making offset and limit parameters as required parameters on all paginated APIs

2016-07-30 Thread Dilan Udara Ariyaratne
Hi Harshan,

Not only these parameters should be required, they should be validated in
terms of the values provided.

For example:
[1] Neither offset nor limit should be minus values.
[2] There should be a maximum limit enforced such that limits beyond that
would not be permitted and it should be configurable.

Cheers,
Dilan.


*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Fri, Jul 29, 2016 at 6:42 PM, Harshan Liyanage  wrote:

> Hi all,
>
> Following issue [1] can be observed in latest EMM pack (with Mysql setup)
> when we invoke the "/api/device-mgt/v1.0/devices" API to fetch devices.
> This is happening because we set the limit and offset as 0,0 to the device
> fetch query if the limit and offset query params are not provided. In MySql
> this query will return an empty set and the API response will look like
> below.
>
> {
>"devices": [],
>"count": 10
> }
>
> Due to this issue all the paginated APIs will be RESTfully wrong (as those
> APIs won't return any data other than the count) if we don't provide the
> limit and offset parameters to them. On the otherhand we can't return all
> the matching resources for APIs like /devices, /users because there might
> be 1000's of devices or users and it'll consume lot of server resources to
> generate such a response.
>
> So shall we do the $subject? WDYT ?
>
> [1]. https://wso2.org/jira/browse/EMM-1424
>
> Thanks,
>
> Harshan Liyanage
> Senior Software Engineer
> Mobile: *+94765672894*
> Email: hars...@wso2.com
> Blog : http://harshanliyanage.blogspot.com/
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EMM 2.1.0 DAS integration and Device Monitoring

2016-07-21 Thread Dilan Udara Ariyaratne
Hi Chamara,

When it comes to EMM Monitoring Dashboard, we are not retrieving data from
DAS.
Instead, we use the data from our product databases themselves as our
current monitoring use-cases only carry the use of snapshot data and not
historical data.

Regards,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Thu, Jul 21, 2016 at 6:10 PM, Chamara Ariyarathne 
wrote:

>
>
> On Thu, Jul 21, 2016 at 6:05 PM, Hasunie Adikari  wrote:
>
>> Hi Chamara,
>>
>> Publishing events[1] and Device Monitoring [2] are not related each other.
>> Since Android agent is capable of sending out critical events to WSO2 DAS
>> server,
>>
>
> What is the usage of this in  a real world scenario?
>
>
>
>> There are some configurations to enable in EMM server to publish events
>> in DAS Server. Here [1] Managing Event publishing
>> provides those configurations.
>> [1]
>> https://docs.wso2.com/display/EMM210/Managing+Event+Publishing+with+WSO2+Data+Analytics+Server
>> [2]
>> https://docs.wso2.com/display/EMM210/Monitoring+Devices+via+the+Dashboard
>>
>>
>>
>> On Thu, Jul 21, 2016 at 5:25 PM, Chamara Ariyarathne 
>> wrote:
>>
>>> Hi all,
>>>
>>> How does the EMM DAS Integration [1] and Device Monitoring [2] relate to
>>> each other?
>>>
>>> Are we using the Stream definitions defined in DAS in [2] in the EMM
>>> dashboard in [1]. If so I cannot see the exact mapping of what goes into
>>> DAS and what is available in EMM Dashboard side.
>>>
>>> [1]
>>> https://docs.wso2.com/display/EMM210/Managing+Event+Publishing+with+WSO2+Data+Analytics+Server
>>> [2]
>>> https://docs.wso2.com/display/EMM210/Monitoring+Devices+via+the+Dashboard
>>>
>>> --
>>> *Chamara Ariyarathne*
>>> Associate Technical Lead - QA
>>> WSO2 Inc; http://www.wso2.com/
>>> Mobile; *+94772786766 <%2B94772786766>*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Hasunie Adikari*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> blog http://hasuniea.blogspot.com
>> Mobile:+94713350904
>>
>
>
>
> --
> *Chamara Ariyarathne*
> Associate Technical Lead - QA
> WSO2 Inc; http://www.wso2.com/
> Mobile; *+94772786766 <%2B94772786766>*
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using curl to get http response code from SSL

2016-06-15 Thread Dilan Udara Ariyaratne
HI Abishek,

If I understand your problem correctly, seems like you are trying to access
simply an HTTPS endpoint from curl.
Have you used curl with -k (or --insecure) option?, so that you can turn
off curl's verification for server-side SSL certificates.

Cheers,
Dilan.

*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Wed, Jun 15, 2016 at 12:15 PM, Abhishek Tiwari <
abhishek.tiwari0...@gmail.com> wrote:

> Hi All,
>
> I am trying to get HTTP response code from carbon server running in docker
> container. The server runs on SSL with URL as https://172.16.0.2:9443/.
> Currently, the response returned is 000 (client abort). Has anyone
> encountered this issue?
>
> Cheers,
> Abhishek
>
> ___
> 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] API Requirements for EMM Dashboard

2016-04-23 Thread Dilan Udara Ariyaratne
Hi Ramindu,

Here are two more APIs (in addition to the two APIs, provided above) that
will cover the backend data requirements of the entire EMM dashboard
landing page.

[3] GET https://localhost:9443/mdm-admin/dashboard/non-compliant-by-feature
<https://localhost:9443/mdm-admin/dashboard/device-overview>
Response:
[{
"context": "non-compliant-device-counts-by-features",
"data": [{
"count": 4,
"label": "PASSCODE_POLICY",
"group": "PASSCODE_POLICY"
}, {
"count": 1,
"label": "WIFI",
"group": "WIFI"
}]
}]

[4] GET https://localhost:9443/mdm-admin/dashboard/device-groupings
<https://localhost:9443/mdm-admin/dashboard/device-overview>
Response:
[{
"context": "device-Counts-by-platforms",
"data": [{
"count": 3,
"label": "android",
"group": "android"
}, {
"count": 1,
"label": "ios",
"group": "ios"
}, {
"count": 1,
"label": "windows",
"group": "windows"
}]
}, {
"context": "device-Counts-by-ownership-types",
"data": [{
"count": 3,
"label": "BYOD",
"group": "BYOD"
}, {
"count": 2,
"label": "COPE",
"group": "COPE"
}]
}]

I will also provide rest of the APIs for the secondary dashboard page with
all the filtering capabilities ASAP.

Cheers,
Dilan.


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Sat, Apr 23, 2016 at 1:01 PM, Tharik Kanaka <tha...@wso2.com> wrote:

> Hi Ramindu,
>
> I am suggesting to change the naming convention. According to
>  [Architecture] REST API Guidelines, if there are multiple names those
> should be separated by a dash and camel case should be avoided. So all the
> places like "connectivityStatus" needs to be updated as
> "connectivity-status".
>
> Regards,
>
> On Sat, Apr 23, 2016 at 12:17 PM, Ramindu De Silva <ramin...@wso2.com>
> wrote:
>
>> Hi Dilan,
>>
>> I will build the product and try out the APIs and let you know.
>>
>> Best Regards,
>>
>> On Fri, Apr 22, 2016 at 11:53 AM, Dilan Udara Ariyaratne <dil...@wso2.com
>> > wrote:
>>
>>> @Ramindu,
>>>
>>> If you want to manually check the APIs, please go through the following
>>> documentation to get an access token.
>>>
>>> https://docs.wso2.com/display/EMM201/Generating+the+OAuth+2.0+Access+Token
>>>
>>> For the provided APIs, following are the request and response formats as
>>> discussed.
>>> [1] GET https://localhost:9443/mdm-admin/dashboard/device-overview
>>>  Response:
>>>  [{
>>> "context": "overview",
>>> "data": [{
>>>  "count": 5,
>>>  "label": "Total",
>>>  "group": "total"
>>>  }, {
>>>  "count": 4,
>>>  "label": "Active",
>>>  "group": "active"
>>>  }, {
>>>  "count": 0,
>>>  "label": "Inactive",
>>>  "group": "inactive"
>>>  }, {
>>>  "count": 1,
>>>  "label": "Removed",
>>>  "group": "removed"
>>>  }]
>>>   }]
>>>
>>> [2] GET https://localhost:9443/mdm-admin/dashboard/
>>> potential-vulnerabilities
>>> <https://localhost:9443/mdm-admin/dashboard/potential-vulnerabilities>
>>>  Response:
>>>  [{
>>>  "context": "potential-vulnerabilities",
>>>  "data": [{
>>>   "count": 5,
>>>   "label": "Non-Compliant",
>>>   "group": "non-complaint"
>>>   }, {
>>>

Re: [Dev] API Requirements for EMM Dashboard

2016-04-22 Thread Dilan Udara Ariyaratne
@Ramindu,

If you want to manually check the APIs, please go through the following
documentation to get an access token.
https://docs.wso2.com/display/EMM201/Generating+the+OAuth+2.0+Access+Token

For the provided APIs, following are the request and response formats as
discussed.
[1] GET https://localhost:9443/mdm-admin/dashboard/device-overview
 Response:
 [{
"context": "overview",
"data": [{
 "count": 5,
 "label": "Total",
 "group": "total"
 }, {
 "count": 4,
 "label": "Active",
 "group": "active"
 }, {
 "count": 0,
 "label": "Inactive",
 "group": "inactive"
 }, {
 "count": 1,
 "label": "Removed",
 "group": "removed"
 }]
  }]

[2] GET https://localhost:9443/mdm-admin/dashboard/potential-vulnerabilities
<https://localhost:9443/mdm-admin/dashboard/potential-vulnerabilities>
 Response:
 [{
 "context": "potential-vulnerabilities",
 "data": [{
  "count": 5,
  "label": "Non-Compliant",
  "group": "non-complaint"
  }, {
      "count": 0,
  "label": "Unmonitored",
  "group": "unmonitored"
  }]
  }]

Cheers,
Dilan.


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Fri, Apr 22, 2016 at 11:24 AM, Dilan Udara Ariyaratne <dil...@wso2.com>
wrote:

> Hi Ramindu,
>
> I have just exposed two jax-rs apis for the following gadgets of the
> landing dashboard page as discussed in the last UX/UI meeting held on April
> 11th.
> [1] Device-overview-gadget (GET https://localhost:9443/mdm-admin
> /dashboard/device-overview) :
>  To show device counts as TOTAL, ACTIVE, INACTIVE and REMOVED
> [2] Potential-vlunerabilities (GET https://localhost:9443/mdm-admin/
> dashboard/potential-vulnerabilities) :
>  To show device counts as NON-COMPLIANT, UNMONITORED (NO-PASSCODE and
> NO-ENCRYPTION data capturing in still under development)
>
> Would you be able to get a build of product-emm and try these APIs from
> the portal app?
>
> I would be able to provide all the first-cut APIs for the landing
> dashboard page by this evening.
>
> Cheers,
> Dilan.
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. <http://wso2.com/>
> Mobile: +94766405580 <%2B94766405580>
> lean . enterprise . middleware
>
>
> On Wed, Apr 20, 2016 at 12:07 PM, Ramindu De Silva <ramin...@wso2.com>
> wrote:
>
>> Hi all,
>>
>> The following are the request-response structures for the IoT dashboard
>> API. Please mention any suggestion or changes to the following
>>
>>
>> 1. Retrieve connectivity status.
>>
>>>
>>> *Request: *POST /connectivityStatus
>>
>> *{}*
>>
>> *response:* [
>>>
>> {
>>
>> "context": "deviceInfo",
>>
>> "data": [
>>
>> {
>>
>> "group": "active",
>>
>> "label": "active",
>>
>> "count": activeNo
>>
>> },
>>
>> {
>>
>> "group": "all",
>>
>> "label": "all",
>>
>> "count": activeNo + inactiveNo
>>
>> },
>>
>> {
>>
>> "group": "inactive",
>>
>> "label": "inactive",
>>
>> "count": inactiveNo
>>
>> }
>>
>> ]
>>
>> }
>>
>> ]
>>
>> 2. Retrieve vulnerabilities
>>
>>
>>> *Request: *POST /securityConcerns
>>> *{*
>>> *}**response:* [
>>>
>> {
>>
>> "context": "securityConcerns",
>>
>> "data": [
>>
>> {
>>
>> "group": "no-passcode",
>>
>> "label": "No Passcode",
>>
>> "countChange": randint(100, 500),
>>
>> "count": randint(100, 500)
>>
>> },
>>
>> {
>

Re: [Dev] API Requirements for EMM Dashboard

2016-04-22 Thread Dilan Udara Ariyaratne
Hi Sumedha,

These higher level APIs are provided at the product-emm level, thus the
path as "mdm-admin/" (root path which we have been using for all the
emm realted console apis).

Cheers,
DIlan.

*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Fri, Apr 22, 2016 at 11:46 AM, Sumedha Rubasinghe <sume...@wso2.com>
wrote:

> Dilan,
> Shouldn't it be '/devicemgt' instead of 'mdm-admin'?
>
> On Fri, Apr 22, 2016 at 11:24 AM, Dilan Udara Ariyaratne <dil...@wso2.com>
> wrote:
>
>> Hi Ramindu,
>>
>> I have just exposed two jax-rs apis for the following gadgets of the
>> landing dashboard page as discussed in the last UX/UI meeting held on April
>> 11th.
>> [1] Device-overview-gadget (GET https://localhost:9443/mdm-admin
>> /dashboard/device-overview) :
>>  To show device counts as TOTAL, ACTIVE, INACTIVE and REMOVED
>> [2] Potential-vlunerabilities (GET https://localhost:9443/mdm-admin/
>> dashboard/potential-vulnerabilities) :
>>  To show device counts as NON-COMPLIANT, UNMONITORED (NO-PASSCODE and
>> NO-ENCRYPTION data capturing in still under development)
>>
>> Would you be able to get a build of product-emm and try these APIs from
>> the portal app?
>>
>> I would be able to provide all the first-cut APIs for the landing
>> dashboard page by this evening.
>>
>> Cheers,
>> Dilan.
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. <http://wso2.com/>
>> Mobile: +94766405580 <%2B94766405580>
>> lean . enterprise . middleware
>>
>>
>> On Wed, Apr 20, 2016 at 12:07 PM, Ramindu De Silva <ramin...@wso2.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> The following are the request-response structures for the IoT dashboard
>>> API. Please mention any suggestion or changes to the following
>>>
>>>
>>> 1. Retrieve connectivity status.
>>>
>>>>
>>>> *Request: *POST /connectivityStatus
>>>
>>> *{}*
>>>
>>> *response:* [
>>>>
>>> {
>>>
>>> "context": "deviceInfo",
>>>
>>> "data": [
>>>
>>> {
>>>
>>> "group": "active",
>>>
>>> "label": "active",
>>>
>>> "count": activeNo
>>>
>>> },
>>>
>>> {
>>>
>>> "group": "all",
>>>
>>> "label": "all",
>>>
>>> "count": activeNo + inactiveNo
>>>
>>> },
>>>
>>> {
>>>
>>> "group": "inactive",
>>>
>>> "label": "inactive",
>>>
>>> "count": inactiveNo
>>>
>>> }
>>>
>>> ]
>>>
>>> }
>>>
>>> ]
>>>
>>> 2. Retrieve vulnerabilities
>>>
>>>
>>>> *Request: *POST /securityConcerns
>>>> *{*
>>>> *}**response:* [
>>>>
>>> {
>>>
>>> "context": "securityConcerns",
>>>
>>> "data": [
>>>
>>> {
>>>
>>> "group": "no-passcode",
>>>
>>> "label": "No Passcode",
>>>
>>> "countChange": randint(100, 500),
>>>
>>> "count": randint(100, 500)
>>>
>>> },
>>>
>>> {
>>>
>>> "group": "no-encryption",
>>>
>>> "label": "Non encrypted",
>>>
>>> "countChange": randint(100, 500),
>>>
>>> "count": randint(100, 500)
>>>
>>> },
>>>
>>> {
>>>
>>> "group": "unmonitored",
>>>
>>> "label": "Unmonitored",
>>>
>>> "countChange": randint(100, 500),
>>>
>>> "count": randint(100, 500)
>>>
>>> }
>>>
>>> ]
>>>
>>> }
>>>
>>> ]
>>>
>>>
>>> 3. Retrieve non compliant features
>>>
>>>
>>>> *Request: *POST /nonCompliantDevices
>>>> *{*
>>>
>>> fromIndex: 10,
>>>
>>> count: 5
>>>

Re: [Dev] API Requirements for EMM Dashboard

2016-04-21 Thread Dilan Udara Ariyaratne
dint(100, 500)
>> }
>> ]
>> },
>> {
>> "context": "ownerships",
>> "data": [
>> {
>> "group": "cope",
>> "label": "COPE",
>> "count": randint(100, 500)
>> },
>> {
>> "group": "byod",
>> "label": "BYOD",
>> "count": randint(100, 500)
>> }
>> ]
>> },
>> {
>> "context": "userGroups",
>> "data": [
>> {
>> "group": "sales",
>> "label": "Sales",
>> "count": randint(100, 500)
>> },
>> {
>> "group": "marketing",
>> "label": "Marketing",
>> "count": randint(100, 500)
>> },
>> {
>> "group": "engineering",
>> "label": "Engineering",
>> "count": randint(100, 500)
>> }
>> ]
>> }
>
> ]
>
>
>
>> *Request2: *POST /nonCompliantDevices
>> {
>> "filters": [
>>{
>> "filteringContext": "platform",
>> "filteringGroups" : ["Android"]
>>}
>
> ]
>
> }
>>
> *response2:*[
>> {
>> "context": "platforms",
>> "data": [
>> {
>> "group": "ios",
>> "label": "iOS",
>> "count": randint(100, 500)
>> },
>> {
>>     "group": "android",
>> "label": "Android",
>> "count": randint(100, 500)
>> }
>> ]
>> },
>> {
>> "context": "ownerships",
>> "data": [
>> {
>> "group": "cope",
>> "label": "COPE",
>> "count": randint(100, 500)
>> },
>> {
>> "group": "byod",
>> "label": "BYOD",
>> "count": randint(100, 500)
>> }
>> ]
>> },
>> {
>> "context": "userGroups",
>> "data": [
>> {
>> "group": "sales",
>> "label": "Sales",
>> "count": randint(100, 500)
>> },
>> {
>> "group": "marketing",
>> "label": "Marketing",
>> "count": randint(100, 500)
>> },
>> {
>> "group": "engineering",
>> "label": "Engineering",
>> "count": randint(100, 500)
>> }
>> ]
>> }
>
> ]
>
> 5. Retrieve Device table:
> *Request:*
>
>> POST /devices
>> {
>> "filters": [
>> {
>> "filter": "platform",
>> "selections" : ["Android", "iOS"]
>> },
>> {
>> "filteringContext": "NonCompliantDevices",
>> "filteringGroups" : ["non-compliant-1"]
>> }
>> ],
>> }
>
>
>
> *response:* [
>
>
>
> {
>
> "context": "devices",
>
> "data": [
>
> {
>
> "id": "001",
>
> "label": "Nexus P",
>
> "status": "Blocked",
>
> "platform": "Android",
>
> "model": "HNP001",
>
> "actions": "Action"
>
> },
>

[Dev] [EMM] [Android] Shall we update the Client .apk of source repo?

2016-04-14 Thread Dilan Udara Ariyaratne
Hi Folks,
(Adding KasunD, Milan)

It seems that the android client .apk file of the product-emm source repo
has not been
updated for a while and the last update had been 4 months before.

Since then, there have been so many updates to the agent source.
But it seems that we have not updated the .apk file of the following
location
with an updated version.

https://github.com/wso2/product-emm/tree/master/modules/apps/jaggery/emm-web-agent/src/emm-web-agent/units/asset-download-agent-android/public/asset

Thus, bringing up the concern of $subject.

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


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

2016-04-14 Thread Dilan Udara Ariyaratne
Hi Dilshan / Inosh,

Any update from iOS side?

Thanks,
Dilan.

*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware


On Fri, Apr 8, 2016 at 10:41 AM, Hasunie Adikari <hasu...@wso2.com> wrote:

> Hi Dilan,
>
> Passcode state and encryption state can be retrieved from windows device
> also.We have already taken those information while applying passcode
> related policies to the device.
>
> On Thu, Apr 7, 2016 at 6:31 PM, Kasun Dananjaya Delgolla <kas...@wso2.com>
> wrote:
>
>> 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" <dil...@wso2.com> wrote:
>>
>>> Adding KasunD, Milan, InoshP, Dilshan and Hasunie to the thread...
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. <http://wso2.com/>
>>> Mobile: +94766405580 <%2B94766405580>
>>> lean . enterprise . middleware
>>>
>>>
>>> -- Forwarded message --
>>> From: Dilan Udara Ariyaratne <dil...@wso2.com>
>>> 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 <dev@wso2.org>
>>>
>>>
>>> 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. <http://wso2.com/>
>>> Mobile: +94766405580 <%2B94766405580>
>>> lean . enterprise . middleware
>>>
>>>
>>>
>
>
> --
> *Hasunie Adikari*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> blog http://hasuniea.blogspot.com
> Mobile:+94715139495
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-04-07 Thread Dilan Udara Ariyaratne
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


Re: [Dev] DS server cannot publish data on gadget loads using PubSub functionality

2016-03-08 Thread Dilan Udara Ariyaratne
Hi Damith,

How about using the jquery ready() function, so that you can make sure the
function runs
just after DOM (document object model) has been fully loaded?

For ex: see the following code snippet.

var TOPIC = "publisher";
var count = 1;

function cb(start, end) {
if (count != 0) {
var message = {
timeFrom: new Date(start).getTime(),
timeTo: new Date(end).getTime()
};
console.log(message);
gadgets.Hub.publish(TOPIC, message);
}
count++;
}

$(document).ready(function () {
cb(moment().subtract(29, 'days'), moment());
});


Cheers,
Dilan.



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. 
Mobile: +94725197942
lean . enterprise . middleware

On Tue, Mar 8, 2016 at 10:03 PM, Damith Wickramasinghe 
wrote:

> HI Udara,
>
> Thanks for the response. Set time out works but is it a good approach
> since the time can be vary.
>
> Regards,
> Damith.
>
> On Tue, Mar 8, 2016 at 8:12 PM, Udara Rathnayake  wrote:
>
>> cay you try,
>>
>> setTimeout(function (){
>> cb(moment().subtract(29, 'days'), moment());
>>  }, 3000);
>>
>>
>> On Tue, Mar 8, 2016 at 9:32 AM, Damith Wickramasinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> I have a requirement of  publishing data on load of publisher gadget. I
>>> have following script
>>>
>>> $(function () {
>>>
>>> var TOPIC = "publisher";
>>>
>>> var count = 1;
>>>
>>> cb(moment().subtract(29, 'days'), moment());
>>>
>>> function cb(start, end) {
>>> if (count != 0) {
>>> var message = {
>>> timeFrom: new Date(start).getTime(),
>>> timeTo: new Date(end).getTime()
>>> };
>>> console.log(message);
>>> gadgets.Hub.publish(TOPIC, message);
>>> }
>>> count++;
>>> }
>>>
>>> });
>>>
>>>
>>> As you can see I'm calling cb(moment().subtract(29, 'days'), moment());
>>> which will publish that data. If I comment above line and call the function
>>> when a button click then publisher works. It seems publisher functionality
>>> is not available or gadget is not properly loaded if we call as above. Am I
>>> missing something here ? or is there a better way to achieve this ?
>>>
>>> Thanks,
>>> Damith.
>>>
>>>
>>> --
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> 
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94728671315 <%2B94728671315>*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Regards,
>> UdaraR
>>
>
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>
> ___
> 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] WSO2 Committers += Omindu Rathnaweera

2015-08-20 Thread Dilan Udara Ariyaratne
Congratulations, Omindu !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94725197942
lean . enterprise . middleware

On Thu, Aug 20, 2015 at 10:53 AM, Ramindu De Silva ramin...@wso2.com
wrote:

 Congratulations Omindu :)

 On Tue, Aug 18, 2015 at 12:42 PM, Harsha Thirimanna hars...@wso2.com
 wrote:


 On Tue, Aug 18, 2015 at 12:37 PM, Kasun Bandara kas...@wso2.com wrote:

 Congratulations Omindu !!


 ​Congratulations...​



 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * http://www.apache.org/*
 *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770 *
 *twitter: **http://twitter.com/ http://twitter.com/afkham_azeez*
 *harshathirimannlinked-in: **http:
 http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122*

 *Lean . Enterprise . Middleware*


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




 --
 *Ramindu De Silva*
 Software Engineer
 WSO2 Inc.: http://wso2.com
 lean.enterprise.middleware

 email: ramin...@wso2.com sanj...@wso2.com
 mob: +94 772339350
 mob: +94 782731766

 ___
 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] WSO2 Committers += Madusanka Premaratne

2015-08-20 Thread Dilan Udara Ariyaratne
Congratulations, Madusanka !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94725197942
lean . enterprise . middleware

On Tue, Aug 18, 2015 at 7:34 PM, Thanuja Jayasinghe than...@wso2.com
wrote:

 Congratz.!!!

 On Tue, Aug 18, 2015 at 11:33 AM, Harsha Kumara hars...@wso2.com wrote:

 Congratulations!

 On Tue, Aug 18, 2015 at 11:21 AM, Chamin Dias cham...@wso2.com wrote:

 Congratulations Madusanka..!!!

 On Tue, Aug 18, 2015 at 11:15 AM, Malintha Amarasinghe 
 malint...@wso2.com wrote:

 Congratzzz Madusanka :)

 On Tue, Aug 18, 2015 at 10:54 AM, Damith Wickramasinghe 
 dami...@wso2.com wrote:

 Congratulations Madusanka..!!!

 On Tue, Aug 18, 2015 at 10:06 AM, Chanuka Dissanayake 
 chan...@wso2.com wrote:

 Congratulations Maduz..!

 On Tue, Aug 18, 2015 at 2:09 AM, Akalanka Pagoda Arachchi 
 darsha...@wso2.com wrote:

 Congratz Maduz...!!!

 On Mon, Aug 17, 2015 at 11:17 AM, Tharindu Dharmarathna 
 tharin...@wso2.com wrote:

 congrats maduz !.

 On Mon, Aug 17, 2015 at 12:00 PM, Roshan Wijesena ros...@wso2.com
 wrote:

 Congratulations!

 On Sat, Aug 15, 2015 at 10:15 AM, Nuwan Dias nuw...@wso2.com
 wrote:

 Hi,

 It is with great pleasure we welcome Madusanka Premaratne as a
 WSO2 Committer. @Madusanka, congratulations and keep up the good
 work!

 Thanks,
 NuwanD.

 --
 Nuwan Dias

 Technical Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729

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




 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94719154640 %2B94719154640*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

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




 --

 *Tharindu Dharmarathna*Associate Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94779109091 %2B94779109091*

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




 --
 *Darshana Akalanka Pagoda Arachchi,*
 *Software Engineer*
 *078-4721791*

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




 --
 Chanuka Dissanayake
 *Software Engineer | **WSO2 Inc.*; http://wso2.com

 Mobile: +94 71 33 63 596
 Email: chan...@wso2.com

 ___
 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.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 lean.enterprise.middleware

 mobile: *+94728671315 %2B94728671315*


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




 --
 Malintha Amarasinghe
 Software Engineer
 *WSO2, Inc. - lean | enterprise | middleware*
 http://wso2.com/

 Mobile : +94 712383306

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




 --
 Chamin Dias
 *Software Engineer*
 Mobile : +94 (0) 716 097455 %2B94%20%280%29%20773%20451194
 Email : cham...@wso2.com
 Blog : https://chamindias.wordpress.com/

 ___
 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




 --
 *Thanuja Lakmal*
 Senior Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94715979891 +94758009992

 ___
 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] WSO2 Committers += Anuruddha Liyanarachchi

2015-08-05 Thread Dilan Udara Ariyaratne
Congratulations, Anuruddha !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Wed, Aug 5, 2015 at 11:12 AM, Lalanke Athauda lala...@wso2.com wrote:

 Congratulation Anuruddha..

 On Wed, Aug 5, 2015 at 11:09 AM, Sajith Abeywardhana saji...@wso2.com
 wrote:

 Congratulations Anuruddha !!!

 *Sajith Abeywardhana* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka.
 Mobile: +94772260485
 Email: saji...@wso2.com | Web: www.wso2.com

 On Mon, Aug 3, 2015 at 11:37 PM, Imesh Gunaratne im...@wso2.com wrote:

 s/great contributors/great contributions/g

 On Mon, Aug 3, 2015 at 11:36 PM, Imesh Gunaratne im...@wso2.com wrote:

 Hi Devs,

 It's my pleasure to welcome Anuruddha Liyanarachchi as a WSO2 Committer
 .

 Anuruddha has done great contributors to the WSO2 Private PaaS project.
 As a recognition of his work he has been voted as a WSO2 committer.

 Anuruddha, welcome aboard! Keep up the good work!

 Thanks

 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware




 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 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




 --
 Lalanke Athauda
 Software Engineer
 Mobile: 0772264301

 ___
 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] WSO2 Committers += Ravindra Ranwala

2015-07-16 Thread Dilan Udara Ariyaratne
Congratulations, Ravindra !!!

Regards,
Dilan.


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Thu, Jul 16, 2015 at 11:25 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi devs,

 Its my pleasure to welcome Ravindra Ranwala as a WSO2 Committer.
 Ravindra, welcome aboard and keep up the good work!

 Thanks.

 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/

 ___
 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] WSO2 Committers += Shiva Balachandran

2015-06-16 Thread Dilan Udara Ariyaratne
Congratulations, Shiva !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Tue, Jun 16, 2015 at 7:44 PM, Chamalee De Silva chama...@wso2.com
wrote:

 Congrats Shiva!

 On Tue, Jun 16, 2015 at 6:39 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 Congratulations Shiva

 On Tue, Jun 16, 2015 at 6:34 PM, Senduran Balasubramaniyam 
 sendu...@wso2.com wrote:

 Congratulations !!!

 On Tue, Jun 16, 2015 at 7:58 AM, Damith Wickramasinghe dami...@wso2.com
  wrote:

 Congratz machn !! :)

 On Tue, Jun 16, 2015 at 1:29 PM, Vijitha Ekanayake vijit...@wso2.com
 wrote:

 Congratulations Shiva !!

 On Tue, Jun 16, 2015 at 1:26 PM, Amal Gunatilake am...@wso2.com
 wrote:

 Congratulations Shiva !!

 On Tue, Jun 16, 2015 at 9:52 AM, Nandika Jayawardana 
 nand...@wso2.com wrote:

 Hi All,

 It's my pleasure to announce Shiva Balachandran as a WSO2 committer.
 He has been a contributor to Business Process Server product and Process
 Center Product and in recognition of his contributions, he has been 
 voted
 as a WSO2 Committer.

 Shiva, congratulations and keep up the good work.

 Regards
 Nandika

 --
 Nandika Jayawardana
 WSO2 Inc ; http://wso2.com
 lean.enterprise.middleware

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




 --
 *Amal Gunatilake*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

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




 --
 Vijitha Ekanayake
 Software Engineer*, *WSO2, Inc.; http://wso2.com/
 Mobile : +94 777 24 73 39 | +94 718 74 44 08
 lean.enterprise.middleware

 ___
 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.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 lean.enterprise.middleware

 mobile: *+94728671315 %2B94728671315*


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




 --
 *Senduran *
 Software Engineer,
 WSO2, Inc.;  http://wso2.com/ http://wso2.com/
 Mobile: +94 77 952 6548

 ___
 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




 --
 Thanks  Regards,

 *Chamalee De Silva*
 Software Engineer
 *WS**O2* Inc. .:http://wso2.com
 lean *.* enterprise *.* middleware

 Office   :- *+94 11 2145345 %2B94%2011%202145345*
 mobile  :- *+94 7 %2B94%2077%2027820391 4315942*

 ___
 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] [MDM] Platform Feature Descriptions for MDM 2.0.0 UI

2015-06-14 Thread Dilan Udara Ariyaratne
Hi Guys,

For the end-to-end completion of some operation invocation UIs  specially
for most of the policy creation UIs,
It's required to know some important details on Platform Features that we
are going to support in MDM 2.0.0.

Thus, sharing the following document to capture the necessary information.
​
 MDM Platform Feature Descriptions for UI
https://docs.google.com/a/wso2.com/spreadsheets/d/1Dsf2YA0BLfYmjNGHNFeFFgRtDli5PTPJZf-rnjNYGH4/edit?usp=drive_web
​
@KasunD, InoshP, Harhan and Milan, Can you guys have a look on necessary
details for the Android Platform and complete ?

@Dilshan, Can you have a look on necessary details for the iOS Platform and
complete ?

Thanks.

*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
lean . enterprise . middleware
Mobile: +94775149066
___
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-10 Thread Dilan Udara Ariyaratne
Hi Guys,

It seems everyone have valid points from their ends.

Since this is a problem at the context of identity management and secure
enrollment, shall we take this discussion specially to PrabathS as well?

Adding PrabathS to the discussion...

Regards,
Dilan.




*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Wed, Jun 10, 2015 at 10:48 AM, Inosh Perera ino...@wso2.com wrote:

 Hi all,

 If it is configurable whether to use the 'ask user for password or admin
 assign it(auto generated) it would be ideal.

 Regards,
 Inosh

 On Wed, Jun 10, 2015 at 10:46 AM, Dulitha Wijewantha duli...@wso2.com
 wrote:

 Hi guys,
 The usual approach will work fine for normal web application scenarios
 where the user is invited to the web app. But our scenario is specific
 where the user mainly uses the account to enroll the device. The problem
 Harshan mention is critical if we follow the proposed approach.

 How about we do this - when the admin creates the user, the a default
 password is generated and email to the user as previously. The account,
 however - is setup with limited permission whereby the user can only
 perform device enrollment. When the user logs into the MDM console we
 prompt the user to change his password since he is using a default
 generated password.

 Cheers~

 On Wed, Jun 10, 2015 at 10:30 AM, Milan Perera mi...@wso2.com wrote:

 +1. I think we should do this because user should have the freedom to
 choose the password under some kind of password policy.

 On Wed, Jun 10, 2015 at 9:59 AM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 +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 hars...@wso2.com
 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 
 praba...@wso2.com 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*




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera




 --
 Dulitha Wijewantha (Chan)
 Software Engineer - Mobile Development
 WSO2 Inc
 Lean.Enterprise.Middleware
  * ~Email   duli...@wso2.com duli...@wso2mobile.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

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


Re: [Dev] WSO2 Committers += Saneth Dharmakeerthi

2015-06-09 Thread Dilan Udara Ariyaratne
Congratulations, Saneth !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Tue, Jun 9, 2015 at 11:51 AM, Chathura Priyankara chathu...@wso2.com
wrote:

 Congratulations Saneth.

 On Tue, Jun 9, 2015 at 11:45 AM, Dharshana Warusavitharana 
 dharsha...@wso2.com wrote:

 Congratulations Saneth

 On Tue, Jun 9, 2015 at 11:41 AM, Malith Munasinghe mali...@wso2.com
 wrote:

 Congratulations Saneth!!

 On Tue, Jun 9, 2015 at 11:38 AM, Madhuranga Bandara madhura...@wso2.com
  wrote:

 Congratulations Saneth !!!

 *Madhuranga Sampath Bandara*
 Software Engineer

 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware
 Mobile: +94722241065

 On Tue, Jun 9, 2015 at 11:31 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Congratulation...!!

 ___
 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




 --
 Malith Munasinghe | Software Engineer
 M: +94 (071) 9401122
 E: mali...@wso2.com
 W: http://wso2.com

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




 --

 Dharshana Warusavitharana
 Senior Software Engineer , Test Automation
 WSO2 Inc. http://wso2.com
 email : dharsha...@wso2.com dharsha...@wso2.com
 Tel  : +94 11 214 5345
 Fax :+94 11 2145300
 cell : +94770342233
 blog : http://dharshanaw.blogspot.com

 lean . enterprise . middleware

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




 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com

 ___
 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] [EMM] Error while starting EMM 1.1.0 fresh pack

2015-06-04 Thread Dilan Udara Ariyaratne
Hi Amalka,

This log is questionable as username  password prints null.
If you go to the JAGH2 data-source configuration in master-data-source.xml,
correct username is sa and password is simply empty string, .
It seems that there is an issue in reading the configurations properly.

Adding SameeraM  Manu to the thread...



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Thu, Jun 4, 2015 at 4:59 PM, Amalka Subasinghe ama...@wso2.com wrote:

 logs

 [2015-06-04 16:53:44,694]  INFO {JAGGERY.config.app:js} -  Emitting event
 : tenantLoad
 [2015-06-04 16:53:44,846]  INFO {debugging} -
  : config {dataSource : JAGH2}
 [2015-06-04 16:53:44,846]  INFO {debugging} -
  : username null
 [2015-06-04 16:53:44,846]  INFO {debugging} -
  : password null
 [2015-06-04 16:53:45,275] ERROR
 {org.jaggeryjs.hostobjects.db.DatabaseHostObject} -  Failed to get
 connection
 org.h2.jdbc.JdbcSQLException: Wrong user name or password [8004-140]


 On Thu, Jun 4, 2015 at 4:39 PM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi Amalka,

 Can you update your EMM server pack with following file, restart the
 server and send the startup logs to see
 what is going on in this specific case.

 File to replace (with attached driver.js) :
 wso2emm-1.1.0/repository/deployment/server/jaggeryapps/publisher/modules/data/driver.js

 Cheers,
 Dilan.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Thu, Jun 4, 2015 at 2:52 PM, Amalka Subasinghe ama...@wso2.com
 wrote:

 I downloaded the pack from product page and started. didn't do any
 configuration changes.

 On Thu, Jun 4, 2015 at 2:33 PM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi Amalka,

 Did you do any configuration changes or this is just a
 newly-unzipped-pack of EMM 1.1.0.
 If it was a newly-unzipped-pack of EMM 1.1.0, this is unlikely to
 happen.

 Cheers,
 Dilan.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Wed, Jun 3, 2015 at 4:41 PM, Amalka Subasinghe ama...@wso2.com
 wrote:


 Hi,

 I got the following error when starting the EMM 1.1.0 fresh pack

 [2015-06-03 16:38:57,592] ERROR
 {org.jaggeryjs.hostobjects.db.DatabaseHostObject} -  Failed to get
 connection
 org.h2.jdbc.JdbcSQLException: Wrong user name or password [8004-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.message.DbException.get(DbException.java:133)
 at org.h2.engine.Engine.validateUserAndPassword(Engine.java:277)
 at org.h2.engine.Engine.getSession(Engine.java:133)
 at org.h2.engine.Session.createSession(Session.java:122)
 at
 org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
 at
 org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
 at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:111)
 at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:95)
 at org.h2.Driver.connect(Driver.java:73)
 at
 org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
 at
 org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
 at
 org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:127)
 at
 org.jaggeryjs.hostobjects.db.DatabaseHostObject.jsConstructor(DatabaseHostObject.java:84)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 at
 org.mozilla.javascript.FunctionObject.call(FunctionObject.java:392)
 at
 org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:343)
 at
 org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c4._c_anonymous_4(/publisher/modules/data/driver.js:40)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c4.call(/publisher/modules/data/driver.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_10(/publisher/modules/data

Re: [Dev] [EMM] Error while starting EMM 1.1.0 fresh pack

2015-06-04 Thread Dilan Udara Ariyaratne
Hi Amalka,

Did you do any configuration changes or this is just a newly-unzipped-pack
of EMM 1.1.0.
If it was a newly-unzipped-pack of EMM 1.1.0, this is unlikely to happen.

Cheers,
Dilan.



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Wed, Jun 3, 2015 at 4:41 PM, Amalka Subasinghe ama...@wso2.com wrote:


 Hi,

 I got the following error when starting the EMM 1.1.0 fresh pack

 [2015-06-03 16:38:57,592] ERROR
 {org.jaggeryjs.hostobjects.db.DatabaseHostObject} -  Failed to get
 connection
 org.h2.jdbc.JdbcSQLException: Wrong user name or password [8004-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.message.DbException.get(DbException.java:133)
 at org.h2.engine.Engine.validateUserAndPassword(Engine.java:277)
 at org.h2.engine.Engine.getSession(Engine.java:133)
 at org.h2.engine.Session.createSession(Session.java:122)
 at
 org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
 at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
 at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:111)
 at org.h2.jdbc.JdbcConnection.init(JdbcConnection.java:95)
 at org.h2.Driver.connect(Driver.java:73)
 at
 org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
 at
 org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
 at
 org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
 at
 org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:127)
 at
 org.jaggeryjs.hostobjects.db.DatabaseHostObject.jsConstructor(DatabaseHostObject.java:84)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:392)
 at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:343)
 at
 org.mozilla.javascript.ScriptRuntime.newObject(ScriptRuntime.java:2349)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c4._c_anonymous_4(/publisher/modules/data/driver.js:40)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c4.call(/publisher/modules/data/driver.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_10(/publisher/modules/data/model.manager.js:104)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
 at
 org.mozilla.javascript.gen._store__server_js_3._c_anonymous_17([store]/server.js:271)
 at
 org.mozilla.javascript.gen._store__server_js_3.call([store]/server.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
 at
 org.mozilla.javascript.gen._store__server_js_3._c_anonymous_16([store]/server.js:251)
 at
 org.mozilla.javascript.gen._store__server_js_3.call([store]/server.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_9(/publisher/modules/data/model.manager.js:103)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_17(/publisher/modules/data/model.manager.js:151)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_5(/publisher/modules/data/model.manager.js:76)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1._c_anonymous_4(/publisher/modules/data/model.manager.js:42)
 at
 org.jaggeryjs.rhino.publisher.modules.data.c1.call(/publisher/modules/data/model.manager.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 

[Dev] [MDM] [Android] Obtaining Device Storage Information Accurately

2015-06-03 Thread Dilan Udara Ariyaratne
Hi All,

In Android, as EXTERNAL_MEMORY implies both INTERNAL+EXTERNAL, to
accurately obtain information
from the agent, let's do a small calculation at the agent side to retrieve
correct values as follows.

Current payload retrieved :

{
EXTERNAL_TOTAL_MEMORY: 4.92,
INTERNAL_AVAILABLE_MEMORY: 4.78,
EXTERNAL_AVAILABLE_MEMORY: 4.78,
OPERATOR: Android,
BATTERY_LEVEL: 51,
INTERNAL_TOTAL_MEMORY: 4.92
}

Here we can obtain the correct value for EXTERNAL_TOTAL_MEMORY as
EXTERNAL_TOTAL_MEMORY = EXTERNAL_TOTAL_MEMORY - INTERNAL_TOTAL_MEMORY
Similarly, the correct value for EXTERNAL_AVAILABLE_MEMORY as
EXTERNAL_AVAILABLE_MEMORY = EXTERNAL_AVAILABLE_MEMORY -
INTERNAL_AVAILABLE_MEMORY

So the final outcome would look something similar to the following.

{
OPERATOR: Android,
BATTERY_LEVEL: 51,
INTERNAL_TOTAL_MEMORY: 4.92,
INTERNAL_AVAILABLE_MEMORY: 4.78,
EXTERNAL_TOTAL_MEMORY: 0.00,
EXTERNAL_AVAILABLE_MEMORY: 0.00
}

- - - - - - - - - - - - - - - - - - - - - - - - - -

Cheers.

*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MDM] [UX/UI] Pending UX/UI Tasks for WSO2 MDM 2.0.0

2015-06-03 Thread Dilan Udara Ariyaratne
Adding Dulitha, PrabathA, ChaturaD and Sameera to the thread...


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Thu, Jun 4, 2015 at 10:53 AM, Dilan Udara Ariyaratne dil...@wso2.com
wrote:

 Hi UX/UI Team,

 Here are the pending tasks where we need the help of you guys currently on
 completing Policy Manipulation.

 [1] Proper UI design to add/delete n number of input forms for a given
 profile feature.
  Configure multiple WIFI configurations + Install/Uninstall Multiple
 Applications as App Policy require this behavior.

 [2] With respect to Install Apps, proper UI to support listing and
 selecting Installable Apps hosted on WSO2 AppManager.

 [3] In Policy Creation Wizard step 2, i.e. configure profile, When a
 profile feature is in configured state, depending on the validity of user
 input,
  some informative way to emphasize that to the user through UI.
  (If atleast one configured feature has invalid input, user will not
 be allowed to move to next step, i.e. assign to groups).

 [4] Supporting ANY input by User(s)  User-Role(s) where UI have to
 support either ANY or some-specific-value-set.

 [5] Policy View Wireframe Design and the corresponding HTML Design for
 implementation.

 - - - - - - - - - - - - - - - - - - - - - - - -

 Let's keep updating this thread on the upcoming UI tasks as well.

 Cheers.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

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


[Dev] [MDM] [UX/UI] Pending UX/UI Tasks for WSO2 MDM 2.0.0

2015-06-03 Thread Dilan Udara Ariyaratne
Hi UX/UI Team,

Here are the pending tasks where we need the help of you guys currently on
completing Policy Manipulation.

[1] Proper UI design to add/delete n number of input forms for a given
profile feature.
 Configure multiple WIFI configurations + Install/Uninstall Multiple
Applications as App Policy require this behavior.

[2] With respect to Install Apps, proper UI to support listing and
selecting Installable Apps hosted on WSO2 AppManager.

[3] In Policy Creation Wizard step 2, i.e. configure profile, When a
profile feature is in configured state, depending on the validity of user
input,
 some informative way to emphasize that to the user through UI.
 (If atleast one configured feature has invalid input, user will not be
allowed to move to next step, i.e. assign to groups).

[4] Supporting ANY input by User(s)  User-Role(s) where UI have to
support either ANY or some-specific-value-set.

[5] Policy View Wireframe Design and the corresponding HTML Design for
implementation.

- - - - - - - - - - - - - - - - - - - - - - - -

Let's keep updating this thread on the upcoming UI tasks as well.

Cheers.

*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Himasha Guruge

2015-05-27 Thread Dilan Udara Ariyaratne
Congratz, Himasha !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Wed, May 27, 2015 at 12:25 PM, Rajith Vitharana raji...@wso2.com wrote:

 Congrats . :)

 On Wed, May 27, 2015 at 12:15 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Congratulations ...!!

 On Wed, May 27, 2015 at 12:14 PM, Milan Perera mi...@wso2.com wrote:

 Congratz Himasha..!!!

 On Wed, May 27, 2015 at 12:11 PM, Dinithi De Silva dinit...@wso2.com
 wrote:

 Congratz Himasha :)

 On Wed, May 27, 2015 at 11:46 AM, Damith Wickramasinghe 
 dami...@wso2.com wrote:

 Congrats ... :) :)

 On Wed, May 27, 2015 at 11:43 AM, Shiva Balachandran sh...@wso2.com
 wrote:

 Congrats and Good Luck Himasha! :)

 On Wed, May 27, 2015 at 11:41 AM, Maheeka Jayasuriya 
 mahe...@wso2.com wrote:

 Congratulations Himasha !!!

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

 On Wed, May 27, 2015 at 11:40 AM, Madhuranga Bandara 
 madhura...@wso2.com wrote:

 Congratulations !!!


 *Madhuranga Sampath Bandara*
 Software Engineer

 ___
 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




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/

 ___
 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.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 lean.enterprise.middleware

 mobile: *+94728671315 %2B94728671315*


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




 --
 *Dinithi De Silva*
 Associate Software Engineer, WSO2 Inc.
 m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
 | a: #20, Palm Grove, Colombo 03

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




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera

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




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

 ___
 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] [CDMF] Exception @ deletePolicy() function in deleting Tables

2015-05-26 Thread Dilan Udara Ariyaratne
Hi Guys,

I am getting following exception in trying to delete a policy from MDM UI.
It seems that several tables referenced at the function, including the
following (DM_LOCATION) do not really exist in the DB.

Caused by: org.h2.jdbc.JdbcSQLException: Table DM_LOCATION not found; SQL
statement:
DELETE FROM DM_LOCATION WHERE POLICY_ID = ? [42102-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.command.Parser.readTableOrView(Parser.java:4498)
at org.h2.command.Parser.readTableOrView(Parser.java:4478)
at org.h2.command.Parser.readSimpleTableFilter(Parser.java:683)
at org.h2.command.Parser.parseDelete(Parser.java:701)
at org.h2.command.Parser.parsePrepared(Parser.java:323)
at org.h2.command.Parser.parse(Parser.java:275)
at org.h2.command.Parser.parse(Parser.java:247)
at org.h2.command.Parser.prepare(Parser.java:201)
at org.h2.command.Parser.prepareCommand(Parser.java:214)
at org.h2.engine.Session.prepareLocal(Session.java:434)
at org.h2.engine.Session.prepareCommand(Session.java:384)
at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1071)
at
org.h2.jdbc.JdbcPreparedStatement.init(JdbcPreparedStatement.java:71)
at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:234)
at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at
org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at
org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:67)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at
org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at
org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41)
at
org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
at
org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80)
at com.sun.proxy.$Proxy13.prepareStatement(Unknown Source)
at
org.wso2.carbon.policy.mgt.core.dao.impl.PolicyDAOImpl.deleteAllPolicyRelatedConfigs(PolicyDAOImpl.java:1185)
... 61 more

- - - - - - - - - - - - - - - - - - - - - - - - -

Cheers.

*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CDMF] Exception @ deletePolicy() function in deleting Tables

2015-05-26 Thread Dilan Udara Ariyaratne
Thanks, Geeth. It works fine now.

BTW, there is some small correction to be made in error description.
It should be Exception @ deletePolicy() function in deleting *entries from*
Tables.

Cheers.



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Tue, May 26, 2015 at 1:35 PM, Geeth Munasinghe ge...@wso2.com wrote:

 Hi Dilan,

 This is fixed now.

 Thanks
 Geeth


 *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

 On Tue, May 26, 2015 at 4:04 AM, Geeth Munasinghe ge...@wso2.com wrote:

 Hi Dilan,

 I will fix this.

 Thanks
 Geeth


 *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

 On Tue, May 26, 2015 at 3:17 AM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi Guys,

 I am getting following exception in trying to delete a policy from MDM
 UI.
 It seems that several tables referenced at the function, including the
 following (DM_LOCATION) do not really exist in the DB.

 Caused by: org.h2.jdbc.JdbcSQLException: Table DM_LOCATION not found;
 SQL statement:
 DELETE FROM DM_LOCATION WHERE POLICY_ID = ? [42102-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.command.Parser.readTableOrView(Parser.java:4498)
 at org.h2.command.Parser.readTableOrView(Parser.java:4478)
 at org.h2.command.Parser.readSimpleTableFilter(Parser.java:683)
 at org.h2.command.Parser.parseDelete(Parser.java:701)
 at org.h2.command.Parser.parsePrepared(Parser.java:323)
 at org.h2.command.Parser.parse(Parser.java:275)
 at org.h2.command.Parser.parse(Parser.java:247)
 at org.h2.command.Parser.prepare(Parser.java:201)
 at org.h2.command.Parser.prepareCommand(Parser.java:214)
 at org.h2.engine.Session.prepareLocal(Session.java:434)
 at org.h2.engine.Session.prepareCommand(Session.java:384)
 at
 org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1071)
 at
 org.h2.jdbc.JdbcPreparedStatement.init(JdbcPreparedStatement.java:71)
 at
 org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:234)
 at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126)
 at
 org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
 at
 org.wso2.carbon.ndatasource.rdbms.ConnectionRollbackOnReturnInterceptor.invoke(ConnectionRollbackOnReturnInterceptor.java:51)
 at
 org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
 at
 org.apache.tomcat.jdbc.pool.interceptor.AbstractCreateStatementInterceptor.invoke(AbstractCreateStatementInterceptor.java:67)
 at
 org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
 at
 org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:153)
 at
 org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
 at
 org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:41)
 at
 org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:109)
 at
 org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:80)
 at com.sun.proxy.$Proxy13.prepareStatement(Unknown Source)
 at
 org.wso2.carbon.policy.mgt.core.dao.impl.PolicyDAOImpl.deleteAllPolicyRelatedConfigs(PolicyDAOImpl.java:1185)
 ... 61 more

 - - - - - - - - - - - - - - - - - - - - - - - - -

 Cheers.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware




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


Re: [Dev] [Jaggery] Calling javascript function from .Jag file

2015-05-25 Thread Dilan Udara Ariyaratne
Hi Himasha,

AFAIU, Are you calling a javascript alert() function within a .jag script?
If so, that should be the problem.
We cannot call client-side javascript functions like alert() at
server-side jaggery layer.

Cheers,
Dilan.


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Mon, May 25, 2015 at 10:57 AM, Himasha Guruge himas...@wso2.com wrote:

 Hi All,

 I have a .jag file(startProcess.jag) that needs to call a javascript
 function (showStatus()). In the .jag, I have added a require statement to
 get the .js file and calling the function through that like below.


 var process = require(/js/actions.js);
 process.showStatus(id);

 In the controller all the jags are included, and jquery/bootstrap
 references are added in footer.jag. My controller looks like below.

 include(/template/startProcess.jag);
   ...
 include(/template/partials/footer.jag);
 But at the execution of the process, it gives undefined error for methods
 such as 'alert'. (Methods that are used within showStatus()). What could be
 the reason for this? I came across [1] , so if this is the same issue in
 this scenario as well, is there any workaround?

 [1]
 http://stackoverflow.com/questions/1125/referenceerror-alert-is-not-defined

 Thanks,

 Himasha Guruge
 *Software Engineer*
 WS*O2* *Inc.*
 Mobile: +94 777459299
 himas...@wso2.com

 ___
 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] WSO2 Committers += Vishanth Balasubramaniam

2015-05-15 Thread Dilan Udara Ariyaratne
Congratz, Vishanth !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Fri, May 15, 2015 at 7:11 PM, Dinithi De Silva dinit...@wso2.com wrote:

 Congratulations Vishanth...

 On Fri, May 15, 2015 at 7:10 PM, Madhuranga Bandara madhura...@wso2.com
 wrote:

 Congratulations Vishanth !!!
 Madhuranga Sampath Bandara
 Software Engineer

 WSO2, Inc.;http://wso2.com/
 lean.enterprise.middleware
 Mobile: +94722241065


 On Fri, May 15, 2015 at 6:58 PM, Imesh Gunaratne im...@wso2.com wrote:
  Hi Devs,
 
  It's my pleasure to welcome Vishanth Balasubramaniam as a WSO2
 Committer.
  Vishanth, welcome aboard and keep up the good work!
 
  Thanks
 
  --
  Imesh Gunaratne
  Senior Technical Lead
  WSO2 Inc: http://wso2.com
  T: +94 11 214 5345 M: +94 77 374 2057
  W: http://imesh.gunaratne.org
  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




 --
 *Dinithi De Silva*
 Associate Software Engineer, WSO2 Inc.
 m:+94716667655 | e:dinit...@wso2.com | w: www.wso2.com
 | a: #20, Palm Grove, Colombo 03

 ___
 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] WSO2 Committers += Vinuri Perera

2015-04-27 Thread Dilan Udara Ariyaratne
Congratz, Vinuri!!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Mon, Apr 27, 2015 at 4:27 PM, Sam Sivayogam s...@wso2.com wrote:

 Congratz Vinuri !!!

 On Mon, Apr 27, 2015 at 4:23 PM, Sameera Medagammaddegedara 
 samee...@wso2.com wrote:

 Congrats Vinuri!

 On Mon, Apr 27, 2015 at 4:21 PM, Milan Perera mi...@wso2.com wrote:

 Congratz Vinuri..!!!

 On Mon, Apr 27, 2015 at 4:09 PM, Maheeka Jayasuriya mahe...@wso2.com
 wrote:

 Congrats Vinuri !

 Maheeka Jayasuriya
 Software Engineer
 Mobile : +9450661

 On Mon, Apr 27, 2015 at 3:57 PM, Jerad Rutnam je...@wso2.com wrote:

 Congratulations Vinuri! :)

 On Mon, Apr 27, 2015 at 3:42 PM, Madhuranga Bandara 
 madhura...@wso2.com wrote:

 Congratulations Vinuri ... !!!

 *Madhuranga Sampath Bandara*
 Software Engineer

 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware
 Mobile: +94722241065

 On Mon, Apr 27, 2015 at 2:19 PM, Amila Maha Arachchi ami...@wso2.com
  wrote:

 Hi all,

 Its my pleasure to welcome Vinuri Perera as a WSO2 Committer. Vinuri
 is a member of WSO2 Cloud team and she has done a great contribution to
 WSO2 Cloud and has shown great enthusiasm in her work both in 
 development
 and other cloud related work. In recognition of her contribution, she 
 has
 been voted as a WSO2 Committer.

 Vinuri, welcome aboard and keep up the good work..

 Regards,
 Amila.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


 ___
 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




 --
 *Jerad Rutnam*
 *Software Engineer*

 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com

 ___
 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




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera

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




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005

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




 --
 *Sam Sivayogam*

 Software Engineer
 Mobile  : +94 772 906 439
 Office   : +94 112 145 345
 *WSO2, Inc. :** wso2.com 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


Re: [Dev] WSO2 Committers += Mahesh Chinthaka

2015-04-27 Thread Dilan Udara Ariyaratne
Congratz, Mahesh!!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Tue, Apr 28, 2015 at 10:40 AM, Samith Dassanayake sam...@wso2.com
wrote:

 Congratz Mahesh!

 On Tue, Apr 28, 2015 at 10:28 AM, Kalpa Welivitigoda kal...@wso2.com
 wrote:

 Congratulations Mahesh !

 On Tue, Apr 28, 2015 at 10:28 AM, Tharik Kanaka tha...@wso2.com wrote:

 Congratulations Mahesh.

 On Tue, Apr 28, 2015 at 9:27 AM, Dimuthu Leelarathne dimut...@wso2.com
 wrote:

 Hi all,

 It is with great pleasure that WSO2 welcomes Mahesh Chinthaka as WSO2
 committer!

 Thank you for your hard work. Congratulation!

 thanks,
 dimuthu

 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware

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




 --

 *Tharik Kanaka* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: tha...@wso2.com | Web: www.wso2.com

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




 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

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




 --
 Best Regards

 Samith Dassanayake
 Software Engineer | Cloud TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +947 76207351

 ___
 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] WSO2 Committers += Prasanna Dangalla

2015-04-08 Thread Dilan Udara Ariyaratne
Congratz, Prasanna !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Thu, Apr 9, 2015 at 9:54 AM, Kalpa Welivitigoda kal...@wso2.com wrote:

 Congratulations Prasanna!
 On Apr 9, 2015 8:08 AM, Tharindu Edirisinghe tharin...@wso2.com wrote:

 Congratulations Prasanna !!!

 On Thu, Apr 9, 2015 at 8:06 AM, Sagara Gunathunga sag...@wso2.com
 wrote:

 It's my pleasure to welcome Prasanna Dangalla as a WSO2 committer.
 Prasanna, welcome aboard and keep up the good work.


 Thanks !
 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com


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




 --

 Tharindu Edirisinghe
 Software Engineer | WSO2 Inc
 Identity Server Team
 mobile : +94 775 181586

 ___
 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


[Dev] [MDM] Permission Model used by WSO2 MDM UI 2.0.0 Release

2015-04-08 Thread Dilan Udara Ariyaratne
Hi Folks,

I have been going through the permission model used by WSO2 MDM UI 2.0.0
Release
and found out that we are inserting a set of self-defined permissions to a
registry path
starting with the following pattern.

/_system/governance/permission/ in
registry.put(/_system/governance/permission/ + path + / +
permission.key, resource);

My first question would be:
[1] Is this some kind of standard path where we can define permissions
 as in some permission tree where a set of permissions mapped into some
defined role?

My second question would be:
[2] How does the mapping occur in between users - Roles - Permissions?
 I have seen some kind of mapping in between permissions and roles for
the following two user types
 (A) device-mgt/admin and (B) device-mgt/user
 in insertAppPermissions() function inside modules/utility.js file.
 Is this some kind of temporary touch-up for the permission model or
are we planning to have only these two user roles in the system?

Appreciate your feedback on this.

Thanks.

*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MDM] Permission Model used by WSO2 MDM UI 2.0.0 Release

2015-04-08 Thread Dilan Udara Ariyaratne
Hi Dulitha,

Thanks for the feedback.

One more question on Permissions.

If there is no role mapping in the permission tree,
how do we check whether a particular user is authorized to perform some UI
operation or not?

I see that authorization check happens at the MDM web-application API
level, but is unclear on the *checking-mechanism*
simply due to the fact that I don't see any place where permissions get
mapped to logged-in users.

Thanks,
Dilan.



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Wed, Apr 8, 2015 at 5:07 PM, Dulitha Wijewantha duli...@wso2.com wrote:



 On Wed, Apr 8, 2015 at 3:52 PM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi Folks,

 I have been going through the permission model used by WSO2 MDM UI 2.0.0
 Release
 and found out that we are inserting a set of self-defined permissions to
 a registry path
 starting with the following pattern.

 /_system/governance/permission/ in
 registry.put(/_system/governance/permission/ + path + / +
 permission.key, resource);

 My first question would be:
 [1] Is this some kind of standard path where we can define permissions
  as in some permission tree where a set of permissions mapped into
 some defined role?

 ​This is a the location used to add new permissions (but not assigining).
 What you add here will be available in the permission tree.​



 My second question would be:
 [2] How does the mapping occur in between users - Roles - Permissions?
  I have seen some kind of mapping in between permissions and roles
 for the following two user types
  (A) device-mgt/admin and (B) device-mgt/user
  in insertAppPermissions() function inside modules/utility.js file.
  Is this some kind of temporary touch-up for the permission model or
 are we planning to have only these two user roles in the system?

 ​Their is no role mapping in the permission tree. 'admin' and 'user' are
 used to categorize certain permissions. In device management context, it
 means controller other's devices vs controlling my devices. But still - we
 have to assign the permissions to the role. If a role has a ​device-mgt/admin
 permission, it can do operations/actions on others devices.


 Appreciate your feedback on this.

 Thanks.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware




 --
 Dulitha Wijewantha (Chan)
 Software Engineer - Mobile Development
 WSO2 Inc
 Lean.Enterprise.Middleware
  * ~Email   duli...@wso2.com duli...@wso2mobile.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*

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


Re: [Dev] WSO2 Committers += Amila Godwin Shrimal

2015-03-20 Thread Dilan Udara Ariyaratne
Congratz, Godwin!!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Fri, Mar 20, 2015 at 3:11 PM, Chanuka Dissanayake chan...@wso2.com
wrote:

 Congratulation Godwin.. :)

 On Fri, Mar 20, 2015 at 3:09 PM, Farasath Ahamed farasa...@wso2.com
 wrote:

 Congratulations Godwin !!!

 On Fri, Mar 20, 2015 at 3:06 PM, Pulasthi Mahawithana pulast...@wso2.com
  wrote:

 Congrats Godwin !

 On Fri, Mar 20, 2015 at 3:04 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi All,

 It's my pleasure to announce Amila Godwin Shrimal as a WSO2 Committer.
 Godwin has been a valuable contributor for WSO2 Identity Server
 product, and in recognition of his contribution to WSO2, he has been voted
 as a WSO2 Committer.

 Godwin, congratulations and keep up the good work!

 Thanks  Regards.

 --

 *Johann Dilantha Nallathamby*
 Associate Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*

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




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

 ___
 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_1999535192a...@wso2.com
 Blog: http://thepseudocode.blogspot.com/

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




 --
 Chanuka Dissanayake
 *Software Engineer | **WSO2 Inc.*; http://wso2.com

 Mobile: +94 71 33 63 596
 Email: chan...@wso2.com

 ___
 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] WSO2 Committers += Malithi Edirisinghe

2015-03-20 Thread Dilan Udara Ariyaratne
Congratulations, Malithi !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Fri, Mar 20, 2015 at 3:11 PM, Tharindu Edirisinghe tharin...@wso2.com
wrote:

 Congratulations Malithi !!!

 On Fri, Mar 20, 2015 at 3:09 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Congrats Malithi  !! :)

 On Fri, Mar 20, 2015 at 3:06 PM, Pulasthi Mahawithana pulast...@wso2.com
  wrote:

 Congrats Malithi !

 On Fri, Mar 20, 2015 at 3:04 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi All,

 It's my pleasure to announce Malithi Edirisinghe as a WSO2 Committer.
 Malithi has been a valuable contributor for WSO2 Identity Server
 product, and in recognition of her contribution to WSO2, she has been voted
 as a WSO2 Committer.

 Malithi, congratulations and keep up the good work!

 Thanks  Regards.

 --

 *Johann Dilantha Nallathamby*
 Associate Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*

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




 --
 *Pulasthi Mahawithana*
 Software Engineer
 WSO2 Inc., http://wso2.com/
 Mobile: +94-71-5179022
 Blog: http://blog.pulasthi.org

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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --

 Tharindu Edirisinghe
 Software Engineer | WSO2 Inc
 Identity Server Team
 mobile : +94 775 181586

 ___
 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] WSO2 Committers += Hemika Kodikara

2015-03-17 Thread Dilan Udara Ariyaratne
Congratz, Hemika !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Wed, Mar 18, 2015 at 11:07 AM, Pumudu Ruhunage pum...@wso2.com wrote:

 Congratulations Hemika..!!!

 On Tue, Mar 17, 2015 at 2:27 PM, Tharik Kanaka tha...@wso2.com wrote:

 Congratulations Hemika !!

 On Tue, Mar 17, 2015 at 2:06 PM, Lasitha Wattaladeniya lasit...@wso2.com
  wrote:

 Congratulations Hemika !

 On Tue, Mar 17, 2015 at 1:41 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Hemika,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 regards,

 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com


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




 --
 Lasitha Wattaladeniya
 Software Engineer
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94719397528
 Blog : techreadme.blogspot.com

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




 --

 *Tharik Kanaka* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: tha...@wso2.com | Web: www.wso2.com

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




 --
 Pumudu Ruhunage
 Associate Software Engineer | WSO2 Inc
 M: +94 779 664493  | http://wso2.com

 ___
 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] WSO2 Committers += Dinesh J Weerakkody

2015-03-12 Thread Dilan Udara Ariyaratne
Congratulations Dinesh !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Thu, Mar 12, 2015 at 12:21 PM, Harsha Kumara hars...@wso2.com wrote:

 Congratulations Dinesh!

 On Thu, Mar 12, 2015 at 12:15 PM, Prasanna Dangalla prasa...@wso2.com
 wrote:

 Congratulations...

 On Thu, Mar 12, 2015 at 11:08 AM, Sam Sivayogam s...@wso2.com wrote:

 Congrats !!!

 On Thu, Mar 12, 2015 at 10:26 AM, Kalpa Welivitigoda kal...@wso2.com
 wrote:

 Congratulations Dinesh!

 On Thu, Mar 12, 2015 at 10:22 AM, Tharindu Edirisinghe 
 tharin...@wso2.com wrote:

 Congratulations Dinesh !!

 On Thu, Mar 12, 2015 at 10:20 AM, Tharindu Dharmarathna 
 tharin...@wso2.com wrote:

 Congratz dinesh ! .

 On Thu, Mar 12, 2015 at 10:18 AM, Asok Perera as...@wso2.com wrote:

 Congratz Dinesh !

 *Asok Aravinda Perera*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware

 Mobile: +94722241032

 On Thu, Mar 12, 2015 at 10:05 AM, Kasun De Silva kas...@wso2.com
 wrote:

 Congratz !!!

 *Kasun de Silva*
 Software Engineer | *WSO2 Inc.*; http://wso2.com
 lean.enterprise.middleware

 email   : kas...@wso2.com
 mobile : +94 77 794 4260


 On Thu, Mar 12, 2015 at 10:03 AM, Niranda Perera nira...@wso2.com
 wrote:

 Congrats machan! :-)

 On Thu, Mar 12, 2015 at 10:01 AM, Jerad Rutnam je...@wso2.com
 wrote:

 Congratulations Dinesh! :)

 On Thu, Mar 12, 2015 at 9:51 AM, Madusanka Premaratne 
 madusan...@wso2.com wrote:

 Congrats Dinesh.!!!

 On Thu, Mar 12, 2015 at 9:45 AM, Thilini Cooray 
 thili...@wso2.com wrote:

 Congratulations, Dinesh.

 On Thu, Mar 12, 2015 at 9:42 AM, Chanuka Dissanayake 
 chan...@wso2.com wrote:

 Congratulations Dinesh..!

 On Thu, Mar 12, 2015 at 9:40 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Congratulations Dinesh ..!

 On Thu, Mar 12, 2015 at 8:59 AM, Lasitha Wattaladeniya 
 lasit...@wso2.com wrote:

 Congratulations Dinesh :) !

 On Thu, Mar 12, 2015 at 8:53 AM, Vijitha Ekanayake 
 vijit...@wso2.com wrote:

 Congratulations Dinesh !!!

 On Thu, Mar 12, 2015 at 8:41 AM, Tharik Kanaka 
 tha...@wso2.com wrote:

 Congratulations Dinesh

 On Thu, Mar 12, 2015 at 8:33 AM, Ravindra Ranwala 
 ravin...@wso2.com wrote:

 Congratulations Dinesh !

 On Thu, Mar 12, 2015 at 8:30 AM, Chamalee De Silva 
 chama...@wso2.com wrote:

 congrats!

 On Thu, Mar 12, 2015 at 8:24 AM, Abimaran Kugathasan 
 abima...@wso2.com wrote:

 Congrats!

 On Thu, Mar 12, 2015 at 8:17 AM, Nuwan Dias 
 nuw...@wso2.com wrote:

 Hi,

 It is with great pleasure we welcome DineshW as a WSO2
 Committer. @Dinesh, congratulations and keep up the good 
 work!

 Thanks,
 NuwanD.

 --
 Nuwan Dias

 Associate Tech Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729

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




 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/
 https://github.com/abimaran
 https://twitter.com/abimaran


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




 --

 Chamalee De Silva

 Software Engineer | WSO2

 E:chama...@wso2.com nirosh...@wso2.com
 M :0711540738| http://wso2.com http://wso2.com/

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




 --
 Ravindra Ranwala
 Software Engineer
 WSO2, Inc: http://wso2.com
 http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 Mobile: +94714198770


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




 --

 *Tharik Kanaka* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: tha...@wso2.com | Web: www.wso2.com

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




 --
 Vijitha Ekanayake
 Software Engineer*, *WSO2, Inc.; http://wso2.com/
 Mobile : +94 777 24 73 39 | +94 718 74 44 08
 lean.enterprise.middleware

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




 --
 Lasitha Wattaladeniya
 Software Engineer
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94719397528
 Blog : techreadme.blogspot.com

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




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . 

Re: [Dev] WSO2 ESB - XSLT Transformation

2015-03-10 Thread Dilan Udara Ariyaratne
Hi Suhan,

Can you check the same flow with having the SOAP Message in following order?

soapenv:Envelope
   soapenv:Header
  /soapenv:Header
  soapenv:Body
  /soapenv:Body
/soapenv:Envelope





*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Tue, Mar 10, 2015 at 10:09 AM, Suhan Dharmasuriya suh...@wso2.com
wrote:

 Hi,

 I'm following the documentation [1] with WSO2 ESB 4.8.0.
 I have enabled the wire logs and response attached herewith [2].

 My XSLT files are as follows.
 I have uploaded them to /_system/config registry (conf:/).

 *xslt1.xslt*

 xsl:stylesheet version=1.0 xmlns:xsl=
 http://www.w3.org/1999/XSL/Transform;
 xsl:template match=//people/person name=FILL_PPL
 client
 firstname
 xsl:value-of select=firstname
 /xsl:value-of/firstname
 lastname
 xsl:value-of select=lastname
 /xsl:value-of/lastname
 age
 xsl:value-of select=age
 /xsl:value-of/age
 country
 xsl:value-of select=country
 /xsl:value-of/country
 /client
 /xsl:template
 /xsl:stylesheet

 *xslt2.xslt*

 xsl:stylesheet version=1.0 xmlns:xsl=
 http://www.w3.org/1999/XSL/Transform;
 xsl:include href=xslt1.xslt
 xsl:template match=/
 clients
 xsl:for-each select=//people/person
 xsl:call-template name=FILL_PPL
 /xsl:call-template/xsl:for-each
 /clients
 /xsl:template
 /xsl:include/xsl:stylesheet

 *XSLIncludeTestProxy* *proxy* configuration is as follows.

 ?xml version=1.0 encoding=UTF-8?
 proxy xmlns=http://ws.apache.org/ns/synapse;
name=XSLIncludeTestProxy
transports=https,http
statistics=disable
trace=disable
startOnLoad=true
target
   inSequence
  xslt key=conf:/xslt2.xslt
 resource location=xslt1.xslt key=conf:/xslt1.xslt/
  /xslt
  property name=RESPONSE value=true/
   /inSequence
/target
description/
 /proxy

 *SOAP request* sending to proxy service is as follows.

 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/
 
 soapenv:Header
 soapenv:Body
 people
 person
 firstnameIsuru/firstname
 lastnameUdana/lastname
 genderMale/gender
 age26/age
 countrySriLanka/country
 /person
 person
 firstnameIshan/firstname
 lastnameJayawardena/lastname
 genderMale/gender
 age26/age
 countrySriLanka/country
 /person
 /people
 /soapenv:Body
 /soapenv:Header/soapenv:Envelope

 I'm getting the following NullPointerException [2].
 And after some time connection timeout occurs [3].

 Am I missing any required configurations?

 [1]
 https://docs.wso2.com/display/ESB481/XSLT+Mediator#XSLTMediator-Example3-AddingXSLTimportsasresources
 [2]
 [2015-03-10 10:00:41,452] DEBUG - wire  POST
 /services/XSLIncludeTestProxy.XSLIncludeTestProxyHttpSoap11Endpoint
 HTTP/1.1[\r][\n]
 [2015-03-10 10:00:41,453] DEBUG - wire  Accept-Encoding:
 gzip,deflate[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  Content-Type:
 text/xml;charset=UTF-8[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  SOAPAction:
 urn:mediate[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  Content-Length: 720[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  Host:
 Suhans-MacBook-Pro.local:8280[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  Connection: Keep-Alive[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  User-Agent:
 Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  [\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; [\n]
 [2015-03-10 10:00:41,455] DEBUG - wire  soapenv:Header [\n]
 [2015-03-10 10:00:41,455] DEBUG - wire  soapenv:Body [\n]
 [2015-03-10 10:00:41,455] DEBUG - wire  people [\n]
 [2015-03-10 10:00:41,455] DEBUG - wire  person [\n]
 [2015-03-10 10:00:41,455] DEBUG - wire  
  firstnameIsuru/firstname [\n]
 [2015-03-10 10:00:41,456] DEBUG - wire  
  lastnameUdana/lastname [\n]
 [2015-03-10 10:00:41,456] DEBUG - wire  
  genderMale/gender [\n]
 [2015-03-10 10:00:41,456] DEBUG - wire  age26/age
 [\n]
 [2015-03-10 10:00:41,456] DEBUG - wire  
  countrySriLanka/country [\n]
 [2015-03-10 10:00:41,457] DEBUG - wire  /person [\n]
 [2015-03-10 10:00:41,457] DEBUG - wire  person [\n]
 [2015-03-10 10:00:41,457] DEBUG - wire  
  firstnameIshan/firstname [\n]
 [2015-03-10 10:00:41,457] DEBUG - wire  
  lastnameJayawardena/lastname [\n]
 [2015-03-10 10:00:41,457] DEBUG - wire  
  genderMale/gender [\n]
 [2015-03-10 10:00:41,457] DEBUG - wire   

Re: [Dev] WSO2 ESB - XSLT Transformation

2015-03-10 Thread Dilan Udara Ariyaratne
Hi Suhan,

It seems that your SOAP message is out of order. Message body should
basically come outside the header element as follows.






*soapenv:Envelope   soapenv:Header   /soapenv:Header
soapenv:Body   /soapenv:Body/soapenv:Envelope*

Can you double check and verify?

Regards,
Dilan.



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Tue, Mar 10, 2015 at 11:52 AM, Dilan Udara Ariyaratne dil...@wso2.com
wrote:

 Hi Suhan,

 Can you check the same flow with having the SOAP Message in following
 order?

 soapenv:Envelope
soapenv:Header
   /soapenv:Header
   soapenv:Body
   /soapenv:Body
 /soapenv:Envelope





 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Mar 10, 2015 at 10:09 AM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 I'm following the documentation [1] with WSO2 ESB 4.8.0.
 I have enabled the wire logs and response attached herewith [2].

 My XSLT files are as follows.
 I have uploaded them to /_system/config registry (conf:/).

 *xslt1.xslt*

 xsl:stylesheet version=1.0 xmlns:xsl=
 http://www.w3.org/1999/XSL/Transform;
 xsl:template match=//people/person name=FILL_PPL
 client
 firstname
 xsl:value-of select=firstname
 /xsl:value-of/firstname
 lastname
 xsl:value-of select=lastname
 /xsl:value-of/lastname
 age
 xsl:value-of select=age
 /xsl:value-of/age
 country
 xsl:value-of select=country
 /xsl:value-of/country
 /client
 /xsl:template
 /xsl:stylesheet

 *xslt2.xslt*

 xsl:stylesheet version=1.0 xmlns:xsl=
 http://www.w3.org/1999/XSL/Transform;
 xsl:include href=xslt1.xslt
 xsl:template match=/
 clients
 xsl:for-each select=//people/person
 xsl:call-template name=FILL_PPL
 /xsl:call-template/xsl:for-each
 /clients
 /xsl:template
 /xsl:include/xsl:stylesheet

 *XSLIncludeTestProxy* *proxy* configuration is as follows.

 ?xml version=1.0 encoding=UTF-8?
 proxy xmlns=http://ws.apache.org/ns/synapse;
name=XSLIncludeTestProxy
transports=https,http
statistics=disable
trace=disable
startOnLoad=true
target
   inSequence
  xslt key=conf:/xslt2.xslt
 resource location=xslt1.xslt key=conf:/xslt1.xslt/
  /xslt
  property name=RESPONSE value=true/
   /inSequence
/target
description/
 /proxy

 *SOAP request* sending to proxy service is as follows.

 soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/;
 soapenv:Header
 soapenv:Body
 people
 person
 firstnameIsuru/firstname
 lastnameUdana/lastname
 genderMale/gender
 age26/age
 countrySriLanka/country
 /person
 person
 firstnameIshan/firstname
 lastnameJayawardena/lastname
 genderMale/gender
 age26/age
 countrySriLanka/country
 /person
 /people
 /soapenv:Body
 /soapenv:Header/soapenv:Envelope

 I'm getting the following NullPointerException [2].
 And after some time connection timeout occurs [3].

 Am I missing any required configurations?

 [1]
 https://docs.wso2.com/display/ESB481/XSLT+Mediator#XSLTMediator-Example3-AddingXSLTimportsasresources
 [2]
 [2015-03-10 10:00:41,452] DEBUG - wire  POST
 /services/XSLIncludeTestProxy.XSLIncludeTestProxyHttpSoap11Endpoint
 HTTP/1.1[\r][\n]
 [2015-03-10 10:00:41,453] DEBUG - wire  Accept-Encoding:
 gzip,deflate[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  Content-Type:
 text/xml;charset=UTF-8[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  SOAPAction:
 urn:mediate[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  Content-Length: 720[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  Host:
 Suhans-MacBook-Pro.local:8280[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  Connection: Keep-Alive[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  User-Agent:
 Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  [\r][\n]
 [2015-03-10 10:00:41,454] DEBUG - wire  soapenv:Envelope
 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; [\n]
 [2015-03-10 10:00:41,455] DEBUG - wire  soapenv:Header [\n]
 [2015-03-10 10:00:41,455] DEBUG - wire  soapenv:Body [\n]
 [2015-03-10 10:00:41,455] DEBUG - wire  people [\n]
 [2015-03-10 10:00:41,455] DEBUG - wire  person [\n]
 [2015-03-10 10:00:41,455] DEBUG - wire  
  firstnameIsuru/firstname [\n]
 [2015-03-10 10:00:41,456] DEBUG - wire  
  lastnameUdana/lastname [\n]
 [2015-03-10 10:00:41,456] DEBUG - wire  
  genderMale/gender [\n]
 [2015-03-10 10:00:41,456] DEBUG

Re: [Dev] [Announce] WSO2 Committers += Asok Perera

2015-03-09 Thread Dilan Udara Ariyaratne
Congratz, Asok...


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Tue, Mar 10, 2015 at 10:55 AM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Congratulations Asok ...!

 On Tue, Mar 10, 2015 at 10:54 AM, Inshaf Mahath ins...@wso2.com wrote:

 Congrats Asok!!

 On Tue, Mar 10, 2015 at 10:45 AM, Kevin Ratnasekera 
 djkevincr1...@gmail.com wrote:

 Congratulations Aiya !!!

 On Tue, Mar 10, 2015 at 10:36 AM, Inosh Perera ino...@wso2.com wrote:

 Congrats Asok!!

 On Tue, Mar 10, 2015 at 9:27 AM, Tharik Kanaka tha...@wso2.com wrote:

 Congratulations Asok.

 On Tue, Mar 10, 2015 at 9:25 AM, Lahiru Cooray lahi...@wso2.com
 wrote:

 Congratz Asok...

 On Tue, Mar 10, 2015 at 9:23 AM, Sameera Perera samee...@wso2.com
 wrote:

 Hi all,

 It is with great pleasure that WSO2 welcomes Asok Perera 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




 --
 *Lahiru Cooray*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 lean.enterprise.middleware

 Mobile: +94 715 654154

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




 --

 *Tharik Kanaka* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: tha...@wso2.com | Web: www.wso2.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




 --
 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




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina


 ___
 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] [Announce] WSO2 Committers += Dulitha Wijewantha

2015-03-08 Thread Dilan Udara Ariyaratne
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 samee...@wso2.com 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


Re: [Dev] WSO2 Committers += Senduran Balasubramaniyam

2015-03-08 Thread Dilan Udara Ariyaratne
Congratulations, Senduran!!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Sun, Mar 8, 2015 at 6:43 PM, Indunil Upeksha Rathnayake indu...@wso2.com
 wrote:

 Congratulations.

 Best Regards
 --
 Indunil Upeksha Rathnayake
 Software Engineer | WSO2 Inc
 Emailindu...@wso2.com
 Mobile  +94713695179

 ___
 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] WSO2 Committers += Ashan Manathunga

2015-03-06 Thread Dilan Udara Ariyaratne
Congrats Ashan!!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Fri, Mar 6, 2015 at 6:13 PM, Darshana Gunawardana darsh...@wso2.com
wrote:

 Congratulations Ashan..!!!

 On Fri, Mar 6, 2015 at 5:52 PM, Shiva Balachandran sh...@wso2.com wrote:

 Congrats Ashan! :)

 On Fri, Mar 6, 2015 at 5:48 PM, Yumani Ranaweera yum...@wso2.com wrote:

 Congrats Ashan !!

 On Fri, Mar 6, 2015 at 5:36 PM, Aiyadurai Rajeevan rajeev...@wso2.com
 wrote:

 Congrats Ashan... :)

 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 On Fri, Mar 6, 2015 at 5:29 PM, Supun Malinga sup...@wso2.com wrote:

 Congrats Ashan.. :)

 On Fri, Mar 6, 2015 at 5:27 PM, Manoj Kumara ma...@wso2.com wrote:

 Congratulations Ashan !!


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188

 On Fri, Mar 6, 2015 at 4:55 PM, Harsha Kumara hars...@wso2.com
 wrote:

 Congratulations Ashan!

 On Fri, Mar 6, 2015 at 4:53 PM, Srisunmugaraja Paraparan 
 parapa...@wso2.com wrote:

 Congratz Ashan.

 On Fri, Mar 6, 2015 at 4:45 PM, Samisa Abeysinghe sam...@wso2.com
 wrote:

 Hi All
 It's my pleasure to welcome Ashan as a WSO2 Committer.

 Ashan, welcome aboard and keep up the good work!

 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Delivery

 WSO2 Inc.
 http://wso2.com


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




 --
 Thanks  Regards
 --
 Srisunmugaraja Paraparan
 Software Engineer,
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email : parapa...@wso2.com, mobile : +94 77 0362151

 ___
 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



 ___
 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 sup...@wso2.com
 mobile: +94 (0)71 56 91 321

 ___
 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




 --


 *Yumani Ranaweera*


 WSO2 Inc. - lean . enterprise . middleware |  http://wso2.com
 Mob: + 94 95242


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




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/

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




 --
 Regards,


 *Darshana Gunawardana*Software Engineer
 WSO2 Inc.; http://wso2.com

 *E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859*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


Re: [Dev] WSO2 Committers += Chamila de Alwis

2015-03-04 Thread Dilan Udara Ariyaratne
Congratulations Chamila !!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Thu, Mar 5, 2015 at 12:50 PM, Tharindu Edirisinghe tharin...@wso2.com
wrote:

 Congratulations Chamila !!!

 On Thu, Mar 5, 2015 at 12:48 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Congratulations Chamila !

 On Thu, Mar 5, 2015 at 12:14 PM, Harsha Kumara hars...@wso2.com wrote:

 Congratulations Chamila!

 On Thu, Mar 5, 2015 at 11:22 AM, Shashika Karunatilaka 
 shashi...@wso2.com wrote:

 Congrats Chamila

 On Thu, Mar 5, 2015 at 11:19 AM, Vijitha Ekanayake vijit...@wso2.com
 wrote:

 Congratulations Chamila !!!

 On Thu, Mar 5, 2015 at 11:12 AM, Aiyadurai Rajeevan 
 rajeev...@wso2.com wrote:

 Congrats Chamila :)

 Thanks  Regards,
 S.A.Rajeevan
 Software Engineer WSO2 Inc
 E-Mail: rajeev...@wso2.com | Mobile : +94776411636

 On Thu, Mar 5, 2015 at 11:10 AM, Jerad Rutnam je...@wso2.com wrote:

 Congratulations Chamila! :)

 On Thu, Mar 5, 2015 at 11:07 AM, Dakshika Jayathilaka 
 daksh...@wso2.com wrote:

 Congratz Chamilad...!

 *Dakshika Jayathilaka*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911

 On Thu, Mar 5, 2015 at 10:22 AM, Shiva Balachandran sh...@wso2.com
  wrote:

 Congrats Chamila. :)

 Good job! ^_^

 On Thu, Mar 5, 2015 at 10:14 AM, Kasun De Silva kas...@wso2.com
 wrote:

 Congratz Chamila !!!

 *Kasun de Silva*
 Software Engineer | *WSO2 Inc.*; http://wso2.com
 lean.enterprise.middleware

 email   : kas...@wso2.com
 mobile : +94 77 794 4260


 On Thu, Mar 5, 2015 at 10:08 AM, Prasanna Dangalla 
 prasa...@wso2.com wrote:

 Congratulations Chamilad

 On Thu, Mar 5, 2015 at 10:01 AM, Imesh Gunaratne im...@wso2.com
  wrote:

 Hi Devs,

 It's my pleasure to welcome Chamila de Alwis as a WSO2
 Committer.
 Chamila, welcome aboard and keep up the good work!

 Thanks

 --
 *Imesh Gunaratne*
 Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


 ___
 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 mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/

 ___
 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




 --
 *Jerad Rutnam*
 *Software Engineer*

 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com

 ___
 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




 --
 Vijitha Ekanayake
 Software Engineer*, *WSO2, Inc.; http://wso2.com/
 Mobile : +94 777 24 73 39 | +94 718 74 44 08
 lean.enterprise.middleware

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




 --
 Shashika Prabath Karunatilaka,
 Software Engineer,
 WSO2, Inc: http://wso2.com/
 mobile : +94 77 7487792

 ___
 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




 --
 Thusitha Dayaratne
 Software Engineer | WSO2 Inc

 Emailthusit...@wso2.com
 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com


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




 --

 Tharindu Edirisinghe
 Software Engineer | WSO2 Inc
 Identity Server Team
 mobile : +94 775 181586

 ___
 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] [EMM] [IDENTITY] SSO SAML Issue when loading EMM Login-page after Server Startup with -Dsetup

2015-02-24 Thread Dilan Udara Ariyaratne
Hi All,

I have created following JIRA to track this issue.
https://wso2.org/jira/browse/EMM-783

Regards,
Dilan.



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Tue, Feb 24, 2015 at 4:39 PM, Dilan Udara Ariyaratne dil...@wso2.com
wrote:

 Hi All,

 It seems that this issue is not specific to ORACLE itself.

 The same issue pops up even in an EMM Server started, pointing to MySQL
 Data-sources.

 Regards,
 Dilan.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Feb 24, 2015 at 1:13 PM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi All,

 I tried to start the server by manually creating the tables this time and
 still the same error
 happens to pop up at the browser. So, this time, it's without the -Dsetup
 option.

 However, a secondary restart of the server will not still run into this
 issue
 as in the previous case.

 Regards,
 Dilan.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Mon, Feb 23, 2015 at 7:04 PM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi Folks,

 While testing the ORACLE Support Feature with EMM 1.1.0, I came across
 the above issue
 which is assumed to be from org.wso2.carbon.identity.sso.saml-4.2.2
 package.

 When I started the Server for the first time with -Dsetup option and
 loaded either EMM or Publisher Login page for the first time,
 a NullPoniterException from SAMLSSOProviderServlet class inside
 org.wso2.carbon.identity.sso.saml package popped up
 on the browser as in the attached image.

 This only happens to be occurring with the first server startup with
 -Dsetup option and interestingly it was also noticed that
 this would not occur on any secondary server startup after the first.

 What could be the possible cause of this issue?

 Appreciate your feedback on this.

 Thanks.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware




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


Re: [Dev] [EMM] [IDENTITY] SSO SAML Issue when loading EMM Login-page after Server Startup with -Dsetup

2015-02-24 Thread Dilan Udara Ariyaratne
Hi All,

It seems that this issue is not specific to ORACLE itself.

The same issue pops up even in an EMM Server started, pointing to MySQL
Data-sources.

Regards,
Dilan.



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Tue, Feb 24, 2015 at 1:13 PM, Dilan Udara Ariyaratne dil...@wso2.com
wrote:

 Hi All,

 I tried to start the server by manually creating the tables this time and
 still the same error
 happens to pop up at the browser. So, this time, it's without the -Dsetup
 option.

 However, a secondary restart of the server will not still run into this
 issue
 as in the previous case.

 Regards,
 Dilan.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Mon, Feb 23, 2015 at 7:04 PM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi Folks,

 While testing the ORACLE Support Feature with EMM 1.1.0, I came across
 the above issue
 which is assumed to be from org.wso2.carbon.identity.sso.saml-4.2.2
 package.

 When I started the Server for the first time with -Dsetup option and
 loaded either EMM or Publisher Login page for the first time,
 a NullPoniterException from SAMLSSOProviderServlet class inside
 org.wso2.carbon.identity.sso.saml package popped up
 on the browser as in the attached image.

 This only happens to be occurring with the first server startup with
 -Dsetup option and interestingly it was also noticed that
 this would not occur on any secondary server startup after the first.

 What could be the possible cause of this issue?

 Appreciate your feedback on this.

 Thanks.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware



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


Re: [Dev] [EMM] [IDENTITY] SSO SAML Issue when loading EMM Login-page after Server Startup with -Dsetup

2015-02-23 Thread Dilan Udara Ariyaratne
Hi All,

I tried to start the server by manually creating the tables this time and
still the same error
happens to pop up at the browser. So, this time, it's without the -Dsetup
option.

However, a secondary restart of the server will not still run into this
issue
as in the previous case.

Regards,
Dilan.



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Mon, Feb 23, 2015 at 7:04 PM, Dilan Udara Ariyaratne dil...@wso2.com
wrote:

 Hi Folks,

 While testing the ORACLE Support Feature with EMM 1.1.0, I came across the
 above issue
 which is assumed to be from org.wso2.carbon.identity.sso.saml-4.2.2
 package.

 When I started the Server for the first time with -Dsetup option and
 loaded either EMM or Publisher Login page for the first time,
 a NullPoniterException from SAMLSSOProviderServlet class inside
 org.wso2.carbon.identity.sso.saml package popped up
 on the browser as in the attached image.

 This only happens to be occurring with the first server startup with
 -Dsetup option and interestingly it was also noticed that
 this would not occur on any secondary server startup after the first.

 What could be the possible cause of this issue?

 Appreciate your feedback on this.

 Thanks.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

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


Re: [Dev] [APIM] [IDENTITY] [EMM] Overlapping DB Table Definitions on both APIM IDENTITY DB Scripts

2015-02-22 Thread Dilan Udara Ariyaratne
Hi Gayan,

What you are saying is true and off-course this not an issue when
considering the higher-level functionality of the components.

However my major concern is, in a deployment scenario, when a customer is
trying to manually execute the scripts to
get the databases ready, having this duplication will cause errors to pop
up at the SQL Prompt which is ugly and that might even make
the customer panic on whether he is doing any wrong thing.

Why can't we have those IDENTITY Tables duplicated in APIM Script within
the IDENTITY Script itself?

Regards,
Dilan.



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Mon, Feb 23, 2015 at 12:28 PM, Gayan Gunawardana ga...@wso2.com wrote:



 On Mon, Feb 23, 2015 at 6:29 AM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi Gayan,

 Does this mean that the ORACLE Script residing inside identity
 directory in emm-script/dbscripts is redundant
 and not necessary to have?


 APIM db script does not contain all  tables in IDENTITY db script so
 better to keep IDENTITY db script too.


 Thanks.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Sun, Feb 22, 2015 at 11:02 AM, Gayan Gunawardana ga...@wso2.com
 wrote:



 On Fri, Feb 20, 2015 at 11:50 PM, Dilan Udara Ariyaratne 
 dil...@wso2.com wrote:

 Hi Folks,

 While checking the database scripts of both API Manager and IDENTITY
 modules inside EMM 1.1.0,
 it has been found out that there are some DB Table definitions of
 IDENTITY repeated inside APIM DB Scripts
 as follows.

 IDN_BASE_TABLE
 IDN_OAUTH_CONSUMER_APPS
 IDN_OAUTH1A_REQUEST_TOKEN
 IDN_OAUTH1A_ACCESS_TOKEN
 IDN_OAUTH2_AUTHORIZATION_CODE
 IDN_OAUTH2_ACCESS_TOKEN
 IDN_OPENID_USER_RPS
 IDN_THRIFT_SESSION

 Do we have any valid reasons to have such duplication of these table
 definitions inside
 both APIM and IDENTITY DB Scripts?

 check EMM 1.1.0 identity.xml DataSource. I guess it is jdbc/WSO2AM_DB so
 for IDENTITY and APIM you are using tables inside APIM db script. Even
 though both DB scripts contains IDN_* tables there is no such a
 duplication.



 Appreciate your feedback on this.

 Thanks.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 ___
 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





 --
 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


Re: [Dev] [APIM] [IDENTITY] [EMM] Overlapping DB Table Definitions on both APIM IDENTITY DB Scripts

2015-02-22 Thread Dilan Udara Ariyaratne
Hi Gayan,

Does this mean that the ORACLE Script residing inside identity directory
in emm-script/dbscripts is redundant
and not necessary to have?

Thanks.



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Sun, Feb 22, 2015 at 11:02 AM, Gayan Gunawardana ga...@wso2.com wrote:



 On Fri, Feb 20, 2015 at 11:50 PM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi Folks,

 While checking the database scripts of both API Manager and IDENTITY
 modules inside EMM 1.1.0,
 it has been found out that there are some DB Table definitions of
 IDENTITY repeated inside APIM DB Scripts
 as follows.

 IDN_BASE_TABLE
 IDN_OAUTH_CONSUMER_APPS
 IDN_OAUTH1A_REQUEST_TOKEN
 IDN_OAUTH1A_ACCESS_TOKEN
 IDN_OAUTH2_AUTHORIZATION_CODE
 IDN_OAUTH2_ACCESS_TOKEN
 IDN_OPENID_USER_RPS
 IDN_THRIFT_SESSION

 Do we have any valid reasons to have such duplication of these table
 definitions inside
 both APIM and IDENTITY DB Scripts?

 check EMM 1.1.0 identity.xml DataSource. I guess it is jdbc/WSO2AM_DB so
 for IDENTITY and APIM you are using tables inside APIM db script. Even
 though both DB scripts contains IDN_* tables there is no such a
 duplication.



 Appreciate your feedback on this.

 Thanks.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 ___
 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


Re: [Dev] [EMM] API Management Table Creation Script for ORACLE has errors

2015-02-20 Thread Dilan Udara Ariyaratne
Hi All,

It seems that the API-Mngmnt ORACLE Script used by EMM 1.1.0 has not been
updated accordingly.

I have created the following JIRA to track this issue.
https://wso2.org/jira/browse/EMM-780

Thanks.
Dilan.




*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Thu, Feb 19, 2015 at 11:11 AM, Dilan Udara Ariyaratne dil...@wso2.com
wrote:

 Hi Folks,

 After going through the script, found out following to be the reasons for
 error messages popped up at the SQL-prompt.

 [1] Oracle does not support AUTO_INCREMENT syntax.

 CREATE TABLE AM_WORKFLOWS (
 WF_ID INTEGER AUTO_INCREMENT,
 WF_REFERENCE VARCHAR(255) NOT NULL,
 WF_TYPE VARCHAR(255) NOT NULL,
 WF_STATUS VARCHAR(255) NOT NULL,
 WF_CREATED_TIME TIMESTAMP,
 WF_UPDATED_TIME TIMESTAMP,
 WF_STATUS_DESC VARCHAR(1000),
 TENANT_ID INTEGER,
 TENANT_DOMAIN VARCHAR(255),
 WF_EXTERNAL_REFERENCE VARCHAR(255) NOT NULL UNIQUE,
 PRIMARY KEY (WF_ID)
 )

 [2] Missing TRIGGER word at AM_WORKFLOWS_TRIGGER operation.

 CREATE OR REPLACE AM_WORKFLOWS_TRIGGER
 BEFORE INSERT
 ON AM_WORKFLOWS
 REFERENCING NEW AS NEW
 FOR EACH ROW
 BEGIN
 SELECT AM_WORKFLOWS_SEQUENCE.nextval INTO :NEW.WF_ID
 FROM dual;
 END;


 A verification is highly appreciated.

 I was not able to find any available JIRA for this.

 Thanks.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Wed, Feb 18, 2015 at 9:06 PM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi Folks,

 I have been testing the ORACLE Support Scripts of API Management module
 that resides inside EMM 1.1.0.

 When I ran the .sql file of API Manager Table creation script of EMM,
 few errors complaining the wrong syntax of queries popped up
 as in the attached image.

 Is this an already known bug that has not yet been fixed?

 Appreciate your feedback on this.

 Thanks.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware



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


[Dev] [APIM] [IDENTITY] [EMM] Overlapping DB Table Definitions on both APIM IDENTITY DB Scripts

2015-02-20 Thread Dilan Udara Ariyaratne
Hi Folks,

While checking the database scripts of both API Manager and IDENTITY
modules inside EMM 1.1.0,
it has been found out that there are some DB Table definitions of IDENTITY
repeated inside APIM DB Scripts
as follows.

IDN_BASE_TABLE
IDN_OAUTH_CONSUMER_APPS
IDN_OAUTH1A_REQUEST_TOKEN
IDN_OAUTH1A_ACCESS_TOKEN
IDN_OAUTH2_AUTHORIZATION_CODE
IDN_OAUTH2_ACCESS_TOKEN
IDN_OPENID_USER_RPS
IDN_THRIFT_SESSION

Do we have any valid reasons to have such duplication of these table
definitions inside
both APIM and IDENTITY DB Scripts?

Appreciate your feedback on this.

Thanks.

*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] API Management Table Creation Script for ORACLE has errors

2015-02-18 Thread Dilan Udara Ariyaratne
Hi Folks,

After going through the script, found out following to be the reasons for
error messages popped up at the SQL-prompt.

[1] Oracle does not support AUTO_INCREMENT syntax.

CREATE TABLE AM_WORKFLOWS (
WF_ID INTEGER AUTO_INCREMENT,
WF_REFERENCE VARCHAR(255) NOT NULL,
WF_TYPE VARCHAR(255) NOT NULL,
WF_STATUS VARCHAR(255) NOT NULL,
WF_CREATED_TIME TIMESTAMP,
WF_UPDATED_TIME TIMESTAMP,
WF_STATUS_DESC VARCHAR(1000),
TENANT_ID INTEGER,
TENANT_DOMAIN VARCHAR(255),
WF_EXTERNAL_REFERENCE VARCHAR(255) NOT NULL UNIQUE,
PRIMARY KEY (WF_ID)
)

[2] Missing TRIGGER word at AM_WORKFLOWS_TRIGGER operation.

CREATE OR REPLACE AM_WORKFLOWS_TRIGGER
BEFORE INSERT
ON AM_WORKFLOWS
REFERENCING NEW AS NEW
FOR EACH ROW
BEGIN
SELECT AM_WORKFLOWS_SEQUENCE.nextval INTO :NEW.WF_ID
FROM dual;
END;


A verification is highly appreciated.

I was not able to find any available JIRA for this.

Thanks.



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Wed, Feb 18, 2015 at 9:06 PM, Dilan Udara Ariyaratne dil...@wso2.com
wrote:

 Hi Folks,

 I have been testing the ORACLE Support Scripts of API Management module
 that resides inside EMM 1.1.0.

 When I ran the .sql file of API Manager Table creation script of EMM,
 few errors complaining the wrong syntax of queries popped up
 as in the attached image.

 Is this an already known bug that has not yet been fixed?

 Appreciate your feedback on this.

 Thanks.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

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


Re: [Dev] WSO2 Committers += Senduran Balasubramaniyam

2015-02-18 Thread Dilan Udara Ariyaratne
Congratulations, Senduran!!!


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Thu, Feb 19, 2015 at 12:05 AM, Roshan Deniyage rosh...@wso2.com wrote:

 congrats !!!

 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406
 Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


 On Wed, Feb 18, 2015 at 11:57 PM, Chanuka Dissanayake chan...@wso2.com
 wrote:

 Congratulations Senduran..!

 On Wed, Feb 18, 2015 at 11:36 PM, Samith Dassanayake sam...@wso2.com
 wrote:

 Congratz Senduran!

 On Wed, Feb 18, 2015 at 10:25 PM, Srisunmugaraja Paraparan 
 parapa...@wso2.com wrote:

 Congratulations Senduran .

 On Wed, Feb 18, 2015 at 10:12 PM, Ravi Undupitiya r...@wso2.com
 wrote:

 Congratulations Senduran!

 On Wed, Feb 18, 2015 at 3:36 AM, Kasun Indrasiri ka...@wso2.com
 wrote:

 Hi devs,

 Its my pleasure to welcome Senduran Balasubramaniyam as a WSO2
 Committer.

 Senduran, welcome aboard and keep up the good work!

 Thanks.

 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




 --
 *Ravi Undupitiya*
 Senior Software Engineer; WSO2 http://wso2.com


 *E-mail: r...@wso2.com http://wso2.com**M: **+94 772 930 712
 %2B94%C2%A0772%20930%20712*

 Lean . Enterprise . Middleware

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




 --
 Thanks  Regards
 --
 Srisunmugaraja Paraparan
 Software Engineer,
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email : parapa...@wso2.com, mobile : +94 77 0362151

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




 --
 Best Regards

 Samith Dassanayake
 Software Engineer | Cloud TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +947 76207351

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




 --
 Chanuka Dissanayake
 *Software Engineer | **WSO2 Inc.*; http://wso2.com

 Mobile: +94 71 33 63 596
 Email: chan...@wso2.com

 ___
 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


[Dev] [EMM] API Management Table Creation Script for ORACLE has errors

2015-02-18 Thread Dilan Udara Ariyaratne
Hi Folks,

I have been testing the ORACLE Support Scripts of API Management module
that resides inside EMM 1.1.0.

When I ran the .sql file of API Manager Table creation script of EMM,
few errors complaining the wrong syntax of queries popped up
as in the attached image.

Is this an already known bug that has not yet been fixed?

Appreciate your feedback on this.

Thanks.

*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Response not receiving when payloadfactory media type is json

2015-01-25 Thread Dilan Udara Ariyaratne
Hi Udara,

What is the type of response received by ESB from the back-end? Is it XML
or JSON?
Also if your requirement was to get a JSON in return, what was the purpose
of using two payload factories within the out sequence?
Shouldn't it be only one payload factory mediator of media-type=json?

Regards,
Dilan.



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Fri, Jan 23, 2015 at 4:56 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 I tried below sequence to get a JSON response back. However no response
 received to the client. I tried having Respond mediator instead of Send in
 out sequence. What is missing which prevents response is being received.


1. sequence name=main
2.   in
3.  log level=custom
4. property name=text value=**inside main **/
5.  /log
6.  payloadFactory media-type=xml
7. format
8.m:getQuote xmlns:m=http://services.samples;
9.   m:request
10.  m:symbolIBM/m:symbol
11.   /m:request
12./m:getQuote
13. /format
14. args/
15.  /payloadFactory
16.  send
17. endpoint name=secure   address uri=
http://localhost:9000/axis2/services/SecureStockQuoteService/
18. /endpoint
19.  /send
20.   /in
21.   out
22.  log level=custom
23. property name=text value=**inside out **/
24.  /log
25.  payloadFactory media-type=xml
26. format
27.m:getQuote xmlns:m=http://services.samples;
28.   m:request
29.  m:symbol$/m:symbol
30.   /m:request
31./m:getQuote
32. /format
33. args
34.arg xmlns:m0=http://services.samples;
35.evaluator=xml
36.expression=//m0:Code/
37. /args
38.  /payloadFactory
39.  payloadFactory media-type=json
40. format
41. {
42. coordinates: null,
43. created_at: Fri Jun 24 17:43:26 + 2011,
44. truncated: false,
45. favorited: false,
46.
47. entities: {
48. urls: [
49.
50. ],
51. hashtags: [
52. {
53. indices: [
54. 35,
55. 45
56. ]
57. }
58. ],
59. user_mentions: [
60. ]
61. }
62. }
63. /format
64. args/
65.  /payloadFactory  property name=messageType value=
application/json scope=axis2/
66.  send/
67.   /out


 --

 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


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


Re: [Dev] [EMM] Automated Testing of Email Sending Functionality of EMM

2015-01-14 Thread Dilan Udara Ariyaratne
Hi Saneth  Iqbal,

To manually verify the email functionality, I can look at the terminal or
server log for any exceptions
and if there aren't any exceptions, I can look into the provided user's
email account to check the incoming message.

The problem with a Selenium test is that the success or failure of sending
an email is not reflected at the UI level.

@Iqbal
I have not gone through such APIs yet. Will have a look.

Thanks.


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Wed, Jan 14, 2015 at 2:04 PM, Saneth Dharmakeerthi sane...@wso2.com
wrote:

 Hi Dilan,

 1) If this test is done manually what is the  way to verify this?
 2) Are you still have the problem in capturing the status message of a
 dialog popup?

 Thanks and Best Regards,

 Saneth Dharmakeerthi
 Senior Software Engineer
 WSO2, Inc.
 Mobile: +94772325511

 On Wed, Jan 14, 2015 at 1:59 PM, Irham Iqbal iq...@wso2.com wrote:

 Hi Dilan,

 Can't you use an API to make sure the email has received to user's email
 account at the end to make the test pass.

 Thanks,
 Iqbal

 On Wed, Jan 14, 2015 at 12:17 PM, Dilan Udara Ariyaratne dil...@wso2.com
  wrote:

 Hi Krishantha,

 There is a problem on testing this email sending functionality using the
 UI and Selenium.
 This is because any error that occurs at the email sending level is not
 reflected at the UI level.

 What do you think?

 Regards,
 Dilan.


 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Jan 13, 2015 at 6:08 PM, Dilan Udara Ariyaratne dil...@wso2.com
  wrote:

 Hi Krisantha,

 Following are the manual steps of sending a mail to a user.

 [1] Fill email configuration details (SMTP Mail Server Settings) under
 the settings tab of admin console.
 [2] Add a new user to the system which will send an invitation email to
 the provided email address of the user.

 Herewith I am also attaching the screen-shots...

 Thanks.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Jan 13, 2015 at 2:48 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Can you list the steps required to manually verify the scenario. We
 have recently implemented GreenMail sever utility for test framework. We
 can propose how to automate based on the manual steps.

 Thanks,
 Krishantha.

 On Tue, Jan 13, 2015 at 9:14 AM, Inosh Perera ino...@wso2.com wrote:

 Hi Krishantha,
 EMM 1.1.0 uses, require('email') available in Jaggery to send email.
 The configurations are stored in the registry. So it is not necessary to
 configure mail transport AFAIK.
 Adding the mobile team.

 Regards,
 Inosh


 On Mon, Jan 12, 2015 at 6:09 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Do you need to configure mail transport in this case ? if yes, in
 which file ?

 Thanks,
 Krishantha

 On Mon, Jan 12, 2015 at 3:40 PM, Dilan Udara Ariyaratne 
 dil...@wso2.com wrote:

 Hi Folks,

 I am checking the feasibility of writing an automated test case for
 the email
 sending functionality of emm.

 When a user is created, an invitation email is sent to the
 corresponding
 user to register the device.

 sendEmail() is currently a jaggery function and is executed via a
 non-exposed api to the outside
 within EMM Jaggery web application.

 What is the best possible way to test this functionality?
 Is there a recommended SMTP mail server to use?

 If I am using Selenium, to verify success, I need to capture the
 status message
 of a dialog popup. How can I do this using Selenium?

 Appreciate any feedback on this.

 Thanks.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

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




 --
 Inosh Perera
 Software Engineer, WSO2 Inc.
 Tel: 0785293686




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




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




 --
 Irham Iqbal
 Software Engineer - Test Automation
  WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware
 phone: +94 777888452

 ___
 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] [EMM] Automated Testing of Email Sending Functionality of EMM

2015-01-13 Thread Dilan Udara Ariyaratne
Hi Krishantha,

There is a problem on testing this email sending functionality using the UI
and Selenium.
This is because any error that occurs at the email sending level is not
reflected at the UI level.

What do you think?

Regards,
Dilan.


*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware

On Tue, Jan 13, 2015 at 6:08 PM, Dilan Udara Ariyaratne dil...@wso2.com
wrote:

 Hi Krisantha,

 Following are the manual steps of sending a mail to a user.

 [1] Fill email configuration details (SMTP Mail Server Settings) under the
 settings tab of admin console.
 [2] Add a new user to the system which will send an invitation email to
 the provided email address of the user.

 Herewith I am also attaching the screen-shots...

 Thanks.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Jan 13, 2015 at 2:48 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Can you list the steps required to manually verify the scenario. We have
 recently implemented GreenMail sever utility for test framework. We can
 propose how to automate based on the manual steps.

 Thanks,
 Krishantha.

 On Tue, Jan 13, 2015 at 9:14 AM, Inosh Perera ino...@wso2.com wrote:

 Hi Krishantha,
 EMM 1.1.0 uses, require('email') available in Jaggery to send email.
 The configurations are stored in the registry. So it is not necessary to
 configure mail transport AFAIK.
 Adding the mobile team.

 Regards,
 Inosh


 On Mon, Jan 12, 2015 at 6:09 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Do you need to configure mail transport in this case ? if yes, in which
 file ?

 Thanks,
 Krishantha

 On Mon, Jan 12, 2015 at 3:40 PM, Dilan Udara Ariyaratne 
 dil...@wso2.com wrote:

 Hi Folks,

 I am checking the feasibility of writing an automated test case for
 the email
 sending functionality of emm.

 When a user is created, an invitation email is sent to the
 corresponding
 user to register the device.

 sendEmail() is currently a jaggery function and is executed via a
 non-exposed api to the outside
 within EMM Jaggery web application.

 What is the best possible way to test this functionality?
 Is there a recommended SMTP mail server to use?

 If I am using Selenium, to verify success, I need to capture the
 status message
 of a dialog popup. How can I do this using Selenium?

 Appreciate any feedback on this.

 Thanks.

 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

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




 --
 Inosh Perera
 Software Engineer, WSO2 Inc.
 Tel: 0785293686




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.



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


[Dev] [EMM] Automated Testing of Email Sending Functionality of EMM

2015-01-12 Thread Dilan Udara Ariyaratne
Hi Folks,

I am checking the feasibility of writing an automated test case for the
email
sending functionality of emm.

When a user is created, an invitation email is sent to the corresponding
user to register the device.

sendEmail() is currently a jaggery function and is executed via a
non-exposed api to the outside
within EMM Jaggery web application.

What is the best possible way to test this functionality?
Is there a recommended SMTP mail server to use?

If I am using Selenium, to verify success, I need to capture the status
message
of a dialog popup. How can I do this using Selenium?

Appreciate any feedback on this.

Thanks.

*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. http://wso2.com/
Mobile: +94775149066
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   >