Re: [Dev] Willing to Contribute in Machine Learning Projects

2017-01-03 Thread Sameera Ramasinghe
Hi Satyarth,

To have an idea about the current features and the state of our Machine
Learner product, please go through the documentation[1], and you can
download the latest released version from [2]. As you may already know, we
support a number of popular algorithms (mentioned in the documentation),
but there is certainly room from improvement.

For example, Integrating Recurrent Neural Nets to our product has been on
the waiting list for some time now. If you are interested, it will be a
good starting point for you to do some valuable contribution. Or else, if
you come through any other interesting idea, after going through the
documentation, you are always welcome to let us know and work on it. Thank
you for the interest shown in contribution to WSO2.

[1] - https://docs.wso2.com/display/ML120/WSO2+Machine+Learner+Documentation
[2]- http://wso2.com/products/machine-learner/


On Wed, Jan 4, 2017 at 10:12 AM, Vinod Kavinda  wrote:

> [Adding Nirmal, Seshika]
>
> On Tue, Jan 3, 2017 at 4:40 PM, Satyarth Praveen 
> wrote:
>
>> Hi,
>>
>> I am Satyarth and I am willing to contribute to WSO2.
>> I have been involved in the field of Machine Learning for a while now and
>> wish to contribute to a similar project.
>>
>> I found *carbon-ml* and *product-ml* repositories in WSO2 that match
>> this profile.
>>
>> It'll be great if someone could help me figure out how to proceed or if
>> there is a better machine learning project that I could work.
>>
>> Thank you
>>
>> Regards,
>> Satyarth Praveen
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Sameera Ramasinghe*
Software Engineer, WSO2 Inc.; http://wso2.com
mobile: *+94 714489682*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Integration tests for WSO2 IOT Server

2017-01-03 Thread Menaka Jayawardena
Hi Sumedha,

When using the single script, it does not start the servers. It hangs until
timeout.

I think as Nuwan mentioned, we have to write a custom extension to start
the servers that we need. But the problem it, if we do so we have to
rewrite the whole flow as test framework has concrete classes to get the
carbon home dir and start the server. We have to change that.

I also spoke to Azeez regarding this issue and he said that we have to
debug the test framework and find the issue. So we can fix it and get a
release from them.

Thanks and Regards,
Menaka


On Wed, Jan 4, 2017 at 9:31 AM, Sumedha Rubasinghe  wrote:

> Menaka,
> For now, shall we not start the servers using this single script?. It's
> bit complex to trouble shoot with all logs going to a single file.
>
> On Tue, Jan 3, 2017 at 12:48 PM, Menaka Jayawardena 
> wrote:
>
>> Hi,
>>
>> In IOTS we have 3 separate servers (Analytics, Broker and IOT Core),
>> which are invoked by a single shell script. (Or we can manually start each
>> server individually). And in order to execute a full IOT scenario, all the
>> three servers have to be up and running.
>>
>> There were some integration tests which were written before this change
>> (Separating the servers), which test scenarios such as user login, device
>> type installation, and virtual device enrollment etc.
>>
>> As Test Automation Framework looks for wso2server.sh in {carbon_home}/bin
>> directory, I renamed the script. (was start-all.sh)
>>
>> When running, I got the following error.
>>
>> I think as the servers are started in processes forked by the 'start-all'
>> script TAF does not have the access to the logs.
>>
>> Is there any fix for this issue?
>>
>> Can we change the script location in test configuration file?
>>
>> - ERROR MSG --
>>
>> INFO: Starting carbon server.
>> Jan 03, 2017 12:08:15 PM org.wso2.carbon.automation.ext
>> ensions.servers.carbonserver.CarbonServerExtension handleException
>> SEVERE: Fail to start carbon server
>> java.lang.RuntimeException: Port 9763 is not open
>> at org.wso2.carbon.automation.extensions.servers.utils.ClientCo
>> nnectionUtil.waitForPort(ClientConnectionUtil.java:248)
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
>> arbonServerManager.startServerUsingCarbonHome(CarbonServerMa
>> nager.java:120)
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.T
>> estServerManager.startServer(TestServerManager.java:116)
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
>> arbonServerExtension.onExecutionStart(CarbonServerExtension.java:50)
>> 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)
>> at org.wso2.carbon.automation.engine.extensions.TestNGExtension
>> Executor.executeExtensible(TestNGExtensionExecutor.java:75)
>> at org.wso2.carbon.automation.engine.testlisteners.TestExecutio
>> nListener.onExecutionStart(TestExecutionListener.java:47)
>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
>> at org.testng.TestNG.run(TestNG.java:1015)
>> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGEx
>> ecutor.java:295)
>> at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(
>> TestNGXmlTestSuite.java:84)
>> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestN
>> GProvider.java:90)
>> at org.apache.maven.surefire.booter.ForkedBooter.invokeProvider
>> InSameClassLoader(ForkedBooter.java:203)
>> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInPro
>> cess(ForkedBooter.java:155)
>> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoo
>> ter.java:103)
>>
>> Jan 03, 2017 12:08:15 PM org.wso2.carbon.automation.eng
>> ine.testlisteners.TestExecutionListener handleException
>> SEVERE: Execution error occurred in TestExecutionListener:-
>> java.lang.reflect.InvocationTargetException
>> 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)
>> at org.wso2.carbon.automation.engine.extensions.TestNGExtension
>> Executor.executeExtensible(TestNGExtensionExecutor.java:75)
>> at org.wso2.carbon.automation.engine.testlisteners.TestExecutio
>> nListener.onExecutionStart(TestExecutionListener.java:47)
>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
>> at org.testng.TestNG.run(TestNG.java:1015)
>> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGEx
>> ecutor.java:295)
>> at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(
>> TestNGXmlTestSuite.java:84)
>> at 

Re: [Dev] Willing to Contribute in Machine Learning Projects

2017-01-03 Thread Vinod Kavinda
[Adding Nirmal, Seshika]

On Tue, Jan 3, 2017 at 4:40 PM, Satyarth Praveen 
wrote:

> Hi,
>
> I am Satyarth and I am willing to contribute to WSO2.
> I have been involved in the field of Machine Learning for a while now and
> wish to contribute to a similar project.
>
> I found *carbon-ml* and *product-ml* repositories in WSO2 that match this
> profile.
>
> It'll be great if someone could help me figure out how to proceed or if
> there is a better machine learning project that I could work.
>
> Thank you
>
> Regards,
> Satyarth Praveen
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]

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


Re: [Dev] [Architecture] [IS] [C5] Self sign-up in C5 User Portal

2017-01-03 Thread Nuwan Dias
Having a captcha should be supported OOTB in the default portal. I assume
we've considered that to be so in C5?

On Wed, Jan 4, 2017 at 9:22 AM, Dimuthu Leelarathne 
wrote:

>
>
> On Tue, Jan 3, 2017 at 1:00 PM, Ishara Karunarathna 
> wrote:
>
>>
>>
>> On Tue, Jan 3, 2017 at 12:52 PM, Johann Nallathamby 
>> wrote:
>>
>>> What are the new user stories we are trying to implement that are not
>>> already there in IS 5.3.0? Can we come up with a list of new requirements?
>>> Isn't most of the above user stories already there in IS 5.3.0?
>>>
>> Yes in 5.3.0 we have almost complete user store. But when it comes to C5
>> implementation we can't cover it with a single milestone release,So we need
>> to start with a simple user story and use different version of that adding
>> other use cases associated with that.
>>
>>
> First we need to envision what we are going to achieve in the long run.
> Then we need to start with the simplest case. For C5 are we trying to
> achieve something different to what we already have?
>
> thanks,
> Dimuthu
>
> -Ishara
>>
>>
>>> On Tue, Jan 3, 2017 at 10:30 AM, Ishara Karunarathna 
>>> wrote:
>>>
 Hi Indunil,

 When we think about self sign up.
 basic use case is User comes to self sign up page and add his user
 informations, system will create a account and let user to login.

 But there are lot of associated use cases with this. For example.
 1. Once user self signed up need to send a verification mail.
 2. self sign up should go through a approval process.
 3. User should be assign to a particular roles.

 To cater those requirements we need additional features.  And we may
 need several version of this user story to complete this feature.
 For the 1st implementation better to implement the simple case. where
 use self sign up and login (with login permission only )

 Thanks,
 -Ishara



 On Tue, Jan 3, 2017 at 9:54 AM, Indunil Upeksha Rathnayake <
 indu...@wso2.com> wrote:

> Hi,
>
> In IS C5, we are currently implementing self sign-up in the User
> Portal and having following considerations regarding the self sign-up
> functionality.
>
> what would be the correct way of achieving self sign-up and would like
> to know how it has been implemented in other C5 based products.
> If self sign up is enabled, *users should be create their own user
> accounts and will be able to logged in immediately?* or there should
> be an *account confirmation through the email* which helps to confirm
> an actual user? or there should be configurations to enable/disable both
> registration and account confirmation?
>
> And when it comes to self sign-up, specially if there are no account
> confirmation, in C5, I think it's better to include improvements such as a
> way to *allow anyone to sign up (no restrictions) or restrict users
> to specific domains* and also a way to choose whether *administrators
> should receive an email when a new account is created*.
>
> I would appreciate your ideas/suggestions on this.
>
> Thanks and Regards
> --
> Indunil Upeksha Rathnayake
> Software Engineer | WSO2 Inc
> Emailindu...@wso2.com
> Mobile   0772182255 <077%20218%202255>
>



 --
 Ishara Karunarathna
 Associate Technical Lead
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
 +94717996791 <+94%2071%20799%206791>



>>>
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> *Johann Dilantha Nallathamby*
>>> Technical Lead & Product Lead of WSO2 Identity Server
>>> Governance Technologies Team
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - *+9476950*
>>> Blog - *http://nallaa.wordpress.com *
>>>
>>
>>
>>
>> --
>> Ishara Karunarathna
>> Associate Technical Lead
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
>> +94717996791 <071%20799%206791>
>>
>>
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Dimuthu Leelarathne
> Director, Solutions Architecture
>
> WSO2, Inc. (http://wso2.com)
> email: dimut...@wso2.com
> Mobile: +94773661935 <+94%2077%20366%201935>
> Blog: http://muthulee.blogspot.com
>
> Lean . Enterprise . Middleware
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Nuwan Dias

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

Re: [Dev] Integration tests for WSO2 IOT Server

2017-01-03 Thread Sumedha Rubasinghe
Menaka,
For now, shall we not start the servers using this single script?. It's bit
complex to trouble shoot with all logs going to a single file.

On Tue, Jan 3, 2017 at 12:48 PM, Menaka Jayawardena  wrote:

> Hi,
>
> In IOTS we have 3 separate servers (Analytics, Broker and IOT Core), which
> are invoked by a single shell script. (Or we can manually start each server
> individually). And in order to execute a full IOT scenario, all the three
> servers have to be up and running.
>
> There were some integration tests which were written before this change
> (Separating the servers), which test scenarios such as user login, device
> type installation, and virtual device enrollment etc.
>
> As Test Automation Framework looks for wso2server.sh in {carbon_home}/bin
> directory, I renamed the script. (was start-all.sh)
>
> When running, I got the following error.
>
> I think as the servers are started in processes forked by the 'start-all'
> script TAF does not have the access to the logs.
>
> Is there any fix for this issue?
>
> Can we change the script location in test configuration file?
>
> - ERROR MSG --
>
> INFO: Starting carbon server.
> Jan 03, 2017 12:08:15 PM org.wso2.carbon.automation.ext
> ensions.servers.carbonserver.CarbonServerExtension handleException
> SEVERE: Fail to start carbon server
> java.lang.RuntimeException: Port 9763 is not open
> at org.wso2.carbon.automation.extensions.servers.utils.ClientCo
> nnectionUtil.waitForPort(ClientConnectionUtil.java:248)
> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
> arbonServerManager.startServerUsingCarbonHome(CarbonServerMa
> nager.java:120)
> at org.wso2.carbon.automation.extensions.servers.carbonserver.T
> estServerManager.startServer(TestServerManager.java:116)
> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
> arbonServerExtension.onExecutionStart(CarbonServerExtension.java:50)
> 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)
> at org.wso2.carbon.automation.engine.extensions.TestNGExtension
> Executor.executeExtensible(TestNGExtensionExecutor.java:75)
> at org.wso2.carbon.automation.engine.testlisteners.TestExecutio
> nListener.onExecutionStart(TestExecutionListener.java:47)
> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
> at org.testng.TestNG.run(TestNG.java:1015)
> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGEx
> ecutor.java:295)
> at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(
> TestNGXmlTestSuite.java:84)
> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestN
> GProvider.java:90)
> at org.apache.maven.surefire.booter.ForkedBooter.invokeProvider
> InSameClassLoader(ForkedBooter.java:203)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInPro
> cess(ForkedBooter.java:155)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoo
> ter.java:103)
>
> Jan 03, 2017 12:08:15 PM org.wso2.carbon.automation.eng
> ine.testlisteners.TestExecutionListener handleException
> SEVERE: Execution error occurred in TestExecutionListener:-
> java.lang.reflect.InvocationTargetException
> 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)
> at org.wso2.carbon.automation.engine.extensions.TestNGExtension
> Executor.executeExtensible(TestNGExtensionExecutor.java:75)
> at org.wso2.carbon.automation.engine.testlisteners.TestExecutio
> nListener.onExecutionStart(TestExecutionListener.java:47)
> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
> at org.testng.TestNG.run(TestNG.java:1015)
> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGEx
> ecutor.java:295)
> at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(
> TestNGXmlTestSuite.java:84)
> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestN
> GProvider.java:90)
> at org.apache.maven.surefire.booter.ForkedBooter.invokeProvider
> InSameClassLoader(ForkedBooter.java:203)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInPro
> cess(ForkedBooter.java:155)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoo
> ter.java:103)
> Caused by: java.lang.RuntimeException: Fail to start carbon server
> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
> arbonServerExtension.handleException(CarbonServerExtension.java:70)
> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
> arbonServerExtension.onExecutionStart(CarbonServerExtension.java:54)
> ... 14 more
> Caused by: 

Re: [Dev] [Architecture] [IS] [C5] Self sign-up in C5 User Portal

2017-01-03 Thread Dimuthu Leelarathne
On Tue, Jan 3, 2017 at 1:00 PM, Ishara Karunarathna 
wrote:

>
>
> On Tue, Jan 3, 2017 at 12:52 PM, Johann Nallathamby 
> wrote:
>
>> What are the new user stories we are trying to implement that are not
>> already there in IS 5.3.0? Can we come up with a list of new requirements?
>> Isn't most of the above user stories already there in IS 5.3.0?
>>
> Yes in 5.3.0 we have almost complete user store. But when it comes to C5
> implementation we can't cover it with a single milestone release,So we need
> to start with a simple user story and use different version of that adding
> other use cases associated with that.
>
>
First we need to envision what we are going to achieve in the long run.
Then we need to start with the simplest case. For C5 are we trying to
achieve something different to what we already have?

thanks,
Dimuthu

-Ishara
>
>
>> On Tue, Jan 3, 2017 at 10:30 AM, Ishara Karunarathna 
>> wrote:
>>
>>> Hi Indunil,
>>>
>>> When we think about self sign up.
>>> basic use case is User comes to self sign up page and add his user
>>> informations, system will create a account and let user to login.
>>>
>>> But there are lot of associated use cases with this. For example.
>>> 1. Once user self signed up need to send a verification mail.
>>> 2. self sign up should go through a approval process.
>>> 3. User should be assign to a particular roles.
>>>
>>> To cater those requirements we need additional features.  And we may
>>> need several version of this user story to complete this feature.
>>> For the 1st implementation better to implement the simple case. where
>>> use self sign up and login (with login permission only )
>>>
>>> Thanks,
>>> -Ishara
>>>
>>>
>>>
>>> On Tue, Jan 3, 2017 at 9:54 AM, Indunil Upeksha Rathnayake <
>>> indu...@wso2.com> wrote:
>>>
 Hi,

 In IS C5, we are currently implementing self sign-up in the User Portal
 and having following considerations regarding the self sign-up
 functionality.

 what would be the correct way of achieving self sign-up and would like
 to know how it has been implemented in other C5 based products.
 If self sign up is enabled, *users should be create their own user
 accounts and will be able to logged in immediately?* or there should
 be an *account confirmation through the email* which helps to confirm
 an actual user? or there should be configurations to enable/disable both
 registration and account confirmation?

 And when it comes to self sign-up, specially if there are no account
 confirmation, in C5, I think it's better to include improvements such as a
 way to *allow anyone to sign up (no restrictions) or restrict users to
 specific domains* and also a way to choose whether *administrators
 should receive an email when a new account is created*.

 I would appreciate your ideas/suggestions on this.

 Thanks and Regards
 --
 Indunil Upeksha Rathnayake
 Software Engineer | WSO2 Inc
 Emailindu...@wso2.com
 Mobile   0772182255 <077%20218%202255>

>>>
>>>
>>>
>>> --
>>> Ishara Karunarathna
>>> Associate Technical Lead
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
>>> +94717996791 <+94%2071%20799%206791>
>>>
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Technical Lead & Product Lead of WSO2 Identity Server
>> Governance Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com *
>>
>
>
>
> --
> Ishara Karunarathna
> Associate Technical Lead
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
> +94717996791 <071%20799%206791>
>
>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Dimuthu Leelarathne
Director, Solutions Architecture

WSO2, Inc. (http://wso2.com)
email: dimut...@wso2.com
Mobile: +94773661935
Blog: http://muthulee.blogspot.com

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


Re: [Dev] Integration tests for WSO2 IOT Server

2017-01-03 Thread Menaka Jayawardena
Looping IOT team

On Tue, Jan 3, 2017 at 5:04 PM, Menaka Jayawardena  wrote:

> Hi Nuwan,
>
> The Server does not start and the testing process hangs at 'INFO: Starting
> Carbon Server...' until the timeout.
>
> Another way is that You can write an extension to start the servers
>> separately
>
>
> Yes. I also think this would be a better option. I'll look into that.
>
> Thank you very much Nuwan.
>
> Best regards.
> Menaka
>
>
>
> On Tue, Jan 3, 2017 at 1:58 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Menaka,
>>
>> Is the server started on port 9763? Please make sure that service is
>> started properly
>>
>> Another ways is that You can write a extension to start the servers
>> separately.
>>
>> Thanks,
>> Nuwanw
>>
>> On Tue, Jan 3, 2017 at 12:48 PM, Menaka Jayawardena 
>> wrote:
>>
>>> Hi,
>>>
>>> In IOTS we have 3 separate servers (Analytics, Broker and IOT Core),
>>> which are invoked by a single shell script. (Or we can manually start each
>>> server individually). And in order to execute a full IOT scenario, all the
>>> three servers have to be up and running.
>>>
>>> There were some integration tests which were written before this change
>>> (Separating the servers), which test scenarios such as user login, device
>>> type installation, and virtual device enrollment etc.
>>>
>>> As Test Automation Framework looks for wso2server.sh in
>>> {carbon_home}/bin directory, I renamed the script. (was start-all.sh)
>>>
>>> When running, I got the following error.
>>>
>>> I think as the servers are started in processes forked by the
>>> 'start-all' script TAF does not have the access to the logs.
>>>
>>> Is there any fix for this issue?
>>>
>>> Can we change the script location in test configuration file?
>>>
>>> - ERROR MSG --
>>>
>>> INFO: Starting carbon server.
>>> Jan 03, 2017 12:08:15 PM org.wso2.carbon.automation.ext
>>> ensions.servers.carbonserver.CarbonServerExtension handleException
>>> SEVERE: Fail to start carbon server
>>> java.lang.RuntimeException: Port 9763 is not open
>>> at org.wso2.carbon.automation.extensions.servers.utils.ClientCo
>>> nnectionUtil.waitForPort(ClientConnectionUtil.java:248)
>>> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
>>> arbonServerManager.startServerUsingCarbonHome(CarbonServerMa
>>> nager.java:120)
>>> at org.wso2.carbon.automation.extensions.servers.carbonserver.T
>>> estServerManager.startServer(TestServerManager.java:116)
>>> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
>>> arbonServerExtension.onExecutionStart(CarbonServerExtension.java:50)
>>> 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)
>>> at org.wso2.carbon.automation.engine.extensions.TestNGExtension
>>> Executor.executeExtensible(TestNGExtensionExecutor.java:75)
>>> at org.wso2.carbon.automation.engine.testlisteners.TestExecutio
>>> nListener.onExecutionStart(TestExecutionListener.java:47)
>>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
>>> at org.testng.TestNG.run(TestNG.java:1015)
>>> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGEx
>>> ecutor.java:295)
>>> at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(
>>> TestNGXmlTestSuite.java:84)
>>> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestN
>>> GProvider.java:90)
>>> at org.apache.maven.surefire.booter.ForkedBooter.invokeProvider
>>> InSameClassLoader(ForkedBooter.java:203)
>>> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInPro
>>> cess(ForkedBooter.java:155)
>>> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoo
>>> ter.java:103)
>>>
>>> Jan 03, 2017 12:08:15 PM org.wso2.carbon.automation.eng
>>> ine.testlisteners.TestExecutionListener handleException
>>> SEVERE: Execution error occurred in TestExecutionListener:-
>>> java.lang.reflect.InvocationTargetException
>>> 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)
>>> at org.wso2.carbon.automation.engine.extensions.TestNGExtension
>>> Executor.executeExtensible(TestNGExtensionExecutor.java:75)
>>> at org.wso2.carbon.automation.engine.testlisteners.TestExecutio
>>> nListener.onExecutionStart(TestExecutionListener.java:47)
>>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
>>> at org.testng.TestNG.run(TestNG.java:1015)
>>> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGEx
>>> ecutor.java:295)
>>> at 

Re: [Dev] Logs in Wso2 IS

2017-01-03 Thread Chamila Wijayarathna
I reporter issue with audit logs in profile update at [1
]. Please feel free to close if
not relevant.

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

On Wed, Jan 4, 2017 at 10:01 AM, Chamila Wijayarathna <
cdwijayarat...@gmail.com> wrote:

> Hi Koné,
>
> You can find logs for user creation and deletion at /repository/logs/audit
> file. It also logs change password events. However it does not seem to log
> user profile update events which IMO should be logged as well.
>
> @Johann : Is there any particular reason for not logging user profile
> updates at audit logs?
>
> Regards!
>
> On Wed, Jan 4, 2017 at 4:05 AM, Koné Alioune Badara <
> kon...@etna-alternance.net> wrote:
>
>> Hello,
>>
>> Where can I find the logs of user created/updated/deleted in Wso2IS
>> management console?
>>
>> Regards,
>>
>> --
>> Cordialement,
>>
>> Alioune B KONÉ.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chamila Dilshan Wijayarathna,
> PhD Research Student
> The University of New South Wales (UNSW Canberra)
> Australian Centre for Cyber Security
> Australian Defence Force Academy
> PO Box 7916, Canberra BA ACT 2610
> Australia
> Mobile:(+61)416895795 <+61%20416%20895%20795>
>
>


-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for Cyber Security
Australian Defence Force Academy
PO Box 7916, Canberra BA ACT 2610
Australia
Mobile:(+61)416895795
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Logs in Wso2 IS

2017-01-03 Thread Chamila Wijayarathna
Hi Koné,

You can find logs for user creation and deletion at /repository/logs/audit
file. It also logs change password events. However it does not seem to log
user profile update events which IMO should be logged as well.

@Johann : Is there any particular reason for not logging user profile
updates at audit logs?

Regards!

On Wed, Jan 4, 2017 at 4:05 AM, Koné Alioune Badara <
kon...@etna-alternance.net> wrote:

> Hello,
>
> Where can I find the logs of user created/updated/deleted in Wso2IS
> management console?
>
> Regards,
>
> --
> Cordialement,
>
> Alioune B KONÉ.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for Cyber Security
Australian Defence Force Academy
PO Box 7916, Canberra BA ACT 2610
Australia
Mobile:(+61)416895795
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Logs in Wso2 IS

2017-01-03 Thread Koné Alioune Badara
Hello,

Where can I find the logs of user created/updated/deleted in Wso2IS
management console?

Regards,

-- 
Cordialement,

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


Re: [Dev] [WSO2 IS] Regression in user permissions management in 5.3.0-rc1

2017-01-03 Thread Isura Karunaratne
Hi Hanen,

We have done some permission refactoring and it is required
"/permission/admin/manage/identity/usermgt" permission to view user
management UI in management console. Anyway, we reverted that change[ 1] to
support backward compatibility. So, In IS 5.3.0 RC2 pack users who have
only login permission will be able to change their password from mangement
console.


[1] https://github.com/wso2/carbon-identity-framework/pull/843

Thanks
Isura.


*Isura Dilhara Karunaratne*
Senior Software Engineer | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810 <+94%2077%20225%204810>
Blog : http://isurad.blogspot.com/




On Tue, Jan 3, 2017 at 7:33 PM, Hanen Ben Rhouma  wrote:

> Hello,
>
> When I create a user and assign him a role having "Login" as permission he
> can only login without any further actions within his Management Console,
> while in the previous version 5.2 the same kind of permission gives him the
> possibility to change his password. Is it a regression?
>
> If I want my user to be able to login, change his password and edit his
> profile (and nothing more) what are the permissions I need to affect him?
>
>
> Regards,
> Hanen
>
> ___
> 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 carbon identity server

2017-01-03 Thread Koné Alioune Badara
Hi,

Thank you for your answer, is the Rest based AskPassword will be enable
through the management console, if yes when willl that be?

Regards.

2017-01-03 16:37 GMT+01:00 Isura Karunaratne :

> Hi kone,
>
> There are two ways to support Ask Password feature in IS 5.3.0. You can
> follow [1] for more details.
>
>
> If you are using old method (SOAP based) the confirmation codes are stored
> in the registry in  "/_system/config/repository/c
> omponents/org.wso2.carbon.identity.mgt/data"  location.
>
> If you are using the new method (Rest based) the confirmation codes are
> stored in the IDN_RECOVERY_DATA table.
>
> In the self-signup scenario, the email field is a mandatory field. The
> user needs to fill email address.
>
>
> [1] https://docs.wso2.com/display/IS530/Creating+Users+
> using+the+Ask+Password+Option#CreatingUsersusingtheAskPasswo
> rdOption-UsingtheRESTAPI
> Thanks
> Isura.
>
>
> *Isura Dilhara Karunaratne*
> Senior Software Engineer | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810 <+94%2077%20225%204810>
> Blog : http://isurad.blogspot.com/
>
>
>
>
> On Thu, Dec 22, 2016 at 9:50 PM, Koné Alioune Badara <
> kon...@etna-alternance.net> wrote:
>
>> Hi,
>>
>> I have a question on the wso2 Identity Server product, when you create
>> user via the Ask password or The self sign up features,  in which table of
>> the database are stocked the confirmation's code?
>>
>> In the Self sign up case, how do you fill in the email which will be used
>> to send the link to confirm?
>>
>> Note: I'm using the 5.3.0-beta.
>>
>> Regards
>>
>> Alioune B KONÉ.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Cordialement,

Alioune B KONÉ.
MASTER ETNA 2016.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Wso2 carbon identity server

2017-01-03 Thread Isura Karunaratne
Hi kone,

There are two ways to support Ask Password feature in IS 5.3.0. You can
follow [1] for more details.


If you are using old method (SOAP based) the confirmation codes are stored
in the registry in
"/_system/config/repository/components/org.wso2.carbon.identity.mgt/data"
 location.

If you are using the new method (Rest based) the confirmation codes are
stored in the IDN_RECOVERY_DATA table.

In the self-signup scenario, the email field is a mandatory field. The user
needs to fill email address.


[1]
https://docs.wso2.com/display/IS530/Creating+Users+using+the+Ask+Password+Option#CreatingUsersusingtheAskPasswordOption-UsingtheRESTAPI
Thanks
Isura.


*Isura Dilhara Karunaratne*
Senior Software Engineer | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810 <+94%2077%20225%204810>
Blog : http://isurad.blogspot.com/




On Thu, Dec 22, 2016 at 9:50 PM, Koné Alioune Badara <
kon...@etna-alternance.net> wrote:

> Hi,
>
> I have a question on the wso2 Identity Server product, when you create
> user via the Ask password or The self sign up features,  in which table of
> the database are stocked the confirmation's code?
>
> In the Self sign up case, how do you fill in the email which will be used
> to send the link to confirm?
>
> Note: I'm using the 5.3.0-beta.
>
> Regards
>
> Alioune B KONÉ.
>
> ___
> 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] [WSO2 IS] Regression in user permissions management in 5.3.0-rc1

2017-01-03 Thread Hanen Ben Rhouma
Hello,

When I create a user and assign him a role having "Login" as permission he
can only login without any further actions within his Management Console,
while in the previous version 5.2 the same kind of permission gives him the
possibility to change his password. Is it a regression?

If I want my user to be able to login, change his password and edit his
profile (and nothing more) what are the permissions I need to affect him?


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


Re: [Dev] [Architecture] [VOTE] Release WSO2 Identity Server 5.3.0- RC1

2017-01-03 Thread Pulasthi Mahawithana
Hi all,

Thanks for testing.
We are calling off this vote due to the issue reported above. We'll fix it
and do a RC2 soon.

On Tue, Jan 3, 2017 at 6:44 PM, Lahiru Manohara  wrote:

> Tested with Oracle db and found an issue in oauth openid flow. Reported
> the issue with IDENTITY-5552.
>
> [-] Broken - do not release
>
>
> On Jan 3, 2017 12:18 PM, "Rasika Perera"  wrote:
>
> Tested out component version 5.7.0 with IoT pack.
>
>[+] Stable - go ahead and release
>
> On Mon, Jan 2, 2017 at 12:28 PM, Pulasthi Mahawithana 
> wrote:
>
>> Hi All,
>>
>> This is the 1st Release Candidate of WSO2 Identity Server 5.3.0
>>
>> Please download, test the product and vote. Vote will be open for 72
>> hours or as needed.
>>
>> This release fixes the following issues:
>>
>> Runtime : https://wso2.org/jira/issues/?filter=13612
>> Analytics : https://wso2.org/jira/issues/?filter=13614
>>
>> Source and distribution
>>
>> Run-time   : https://github.com/wso2/prod
>> uct-is/releases/tag/v5.3.0-rc1
>> Analytics   : https://github.com/wso2/anal
>> ytics-is/releases/tag/v5.3.0-rc1
>>
>> Please vote as follows.
>> [+] Stable - go ahead and release
>> [-] Broken - do not release (explain why)
>>
>> Thanks,
>> - WSO2 Identity Server Team -
>>
>> --
>> *Pulasthi Mahawithana*
>> Senior Software Engineer
>> WSO2 Inc., http://wso2.com/
>> Mobile: +94-71-5179022 <+94%2071%20517%209022>
>> Blog: http://blog.pulasthi.org
>>
>> 
>>
>> ___
>> 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
>
>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Pulasthi Mahawithana*
Senior 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


Re: [Dev] [VOTE] Release WSO2 Identity Server 5.3.0- RC1

2017-01-03 Thread Lahiru Manohara
Tested with Oracle db and found an issue in oauth openid flow. Reported the
issue with IDENTITY-5552.

[-] Broken - do not release


On Jan 3, 2017 12:18 PM, "Rasika Perera"  wrote:

Tested out component version 5.7.0 with IoT pack.

   [+] Stable - go ahead and release

On Mon, Jan 2, 2017 at 12:28 PM, Pulasthi Mahawithana 
wrote:

> Hi All,
>
> This is the 1st Release Candidate of WSO2 Identity Server 5.3.0
>
> Please download, test the product and vote. Vote will be open for 72 hours
> or as needed.
>
> This release fixes the following issues:
>
> Runtime : https://wso2.org/jira/issues/?filter=13612
> Analytics : https://wso2.org/jira/issues/?filter=13614
>
> Source and distribution
>
> Run-time   : https://github.com/wso2/prod
> uct-is/releases/tag/v5.3.0-rc1
> Analytics   : https://github.com/wso2/anal
> ytics-is/releases/tag/v5.3.0-rc1
>
> Please vote as follows.
> [+] Stable - go ahead and release
> [-] Broken - do not release (explain why)
>
> Thanks,
> - WSO2 Identity Server Team -
>
> --
> *Pulasthi Mahawithana*
> Senior Software Engineer
> WSO2 Inc., http://wso2.com/
> Mobile: +94-71-5179022 <+94%2071%20517%209022>
> Blog: http://blog.pulasthi.org
>
> 
>
> ___
> 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


Re: [Dev] Integration tests for WSO2 IOT Server

2017-01-03 Thread Menaka Jayawardena
Hi Nuwan,

The Server does not start and the testing process hangs at 'INFO: Starting
Carbon Server...' until the timeout.

Another way is that You can write an extension to start the servers
> separately


Yes. I also think this would be a better option. I'll look into that.

Thank you very much Nuwan.

Best regards.
Menaka



On Tue, Jan 3, 2017 at 1:58 PM, Nuwan Wimalasekara  wrote:

> Hi Menaka,
>
> Is the server started on port 9763? Please make sure that service is
> started properly
>
> Another ways is that You can write a extension to start the servers
> separately.
>
> Thanks,
> Nuwanw
>
> On Tue, Jan 3, 2017 at 12:48 PM, Menaka Jayawardena 
> wrote:
>
>> Hi,
>>
>> In IOTS we have 3 separate servers (Analytics, Broker and IOT Core),
>> which are invoked by a single shell script. (Or we can manually start each
>> server individually). And in order to execute a full IOT scenario, all the
>> three servers have to be up and running.
>>
>> There were some integration tests which were written before this change
>> (Separating the servers), which test scenarios such as user login, device
>> type installation, and virtual device enrollment etc.
>>
>> As Test Automation Framework looks for wso2server.sh in {carbon_home}/bin
>> directory, I renamed the script. (was start-all.sh)
>>
>> When running, I got the following error.
>>
>> I think as the servers are started in processes forked by the 'start-all'
>> script TAF does not have the access to the logs.
>>
>> Is there any fix for this issue?
>>
>> Can we change the script location in test configuration file?
>>
>> - ERROR MSG --
>>
>> INFO: Starting carbon server.
>> Jan 03, 2017 12:08:15 PM org.wso2.carbon.automation.ext
>> ensions.servers.carbonserver.CarbonServerExtension handleException
>> SEVERE: Fail to start carbon server
>> java.lang.RuntimeException: Port 9763 is not open
>> at org.wso2.carbon.automation.extensions.servers.utils.ClientCo
>> nnectionUtil.waitForPort(ClientConnectionUtil.java:248)
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
>> arbonServerManager.startServerUsingCarbonHome(CarbonServerMa
>> nager.java:120)
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.T
>> estServerManager.startServer(TestServerManager.java:116)
>> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
>> arbonServerExtension.onExecutionStart(CarbonServerExtension.java:50)
>> 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)
>> at org.wso2.carbon.automation.engine.extensions.TestNGExtension
>> Executor.executeExtensible(TestNGExtensionExecutor.java:75)
>> at org.wso2.carbon.automation.engine.testlisteners.TestExecutio
>> nListener.onExecutionStart(TestExecutionListener.java:47)
>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
>> at org.testng.TestNG.run(TestNG.java:1015)
>> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGEx
>> ecutor.java:295)
>> at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(
>> TestNGXmlTestSuite.java:84)
>> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestN
>> GProvider.java:90)
>> at org.apache.maven.surefire.booter.ForkedBooter.invokeProvider
>> InSameClassLoader(ForkedBooter.java:203)
>> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInPro
>> cess(ForkedBooter.java:155)
>> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoo
>> ter.java:103)
>>
>> Jan 03, 2017 12:08:15 PM org.wso2.carbon.automation.eng
>> ine.testlisteners.TestExecutionListener handleException
>> SEVERE: Execution error occurred in TestExecutionListener:-
>> java.lang.reflect.InvocationTargetException
>> 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)
>> at org.wso2.carbon.automation.engine.extensions.TestNGExtension
>> Executor.executeExtensible(TestNGExtensionExecutor.java:75)
>> at org.wso2.carbon.automation.engine.testlisteners.TestExecutio
>> nListener.onExecutionStart(TestExecutionListener.java:47)
>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
>> at org.testng.TestNG.run(TestNG.java:1015)
>> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGEx
>> ecutor.java:295)
>> at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(
>> TestNGXmlTestSuite.java:84)
>> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestN
>> GProvider.java:90)
>> at org.apache.maven.surefire.booter.ForkedBooter.invokeProvider
>> 

[Dev] Willing to Contribute in Machine Learning Projects

2017-01-03 Thread Satyarth Praveen
Hi,

I am Satyarth and I am willing to contribute to WSO2.
I have been involved in the field of Machine Learning for a while now and
wish to contribute to a similar project.

I found *carbon-ml* and *product-ml* repositories in WSO2 that match this
profile.

It'll be great if someone could help me figure out how to proceed or if
there is a better machine learning project that I could work.

Thank you

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


[Dev] [WSO2 IS] Can't login with tenant users: password is hashed in external LDAP

2017-01-03 Thread Hanen Ben Rhouma
Hello,

I have a question regarding user password hashing when using external LDAP
user store.
After creating a CustomUserStore I created some users from WSO2 IS
Management Console and assigned them a custom role which has enough
permissions (including login).
Once they're created I tried to login with but I couldn't and I noticed
that the method doAuthenticate is taking correct username but the password
is encrypted and passed as org.wso2.carbon.utils.Secret@3d1c01cc.
How can I change this knowing that I'm on a Mint distribution (Debian
based) and  that for the same WSO2 version installed with another LDAP on
Centos the behavior is different and the password passed to doAuthenticate
methos is clear.

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


Re: [Dev] Bug on AskPassword feature

2017-01-03 Thread Sherene Mahanama
Hi,

Thank you for raising this. The documentation is now updated [1].

[1]
https://docs.wso2.com/display/IS530/Creating+Users+using+the+Ask+Password+Option#CreatingUsersusingtheAskPasswordOption-UsingtheRESTAPI

Thanks,
Sherene Mahanama
Associate Technical Writer

WSO2 (pvt.) Ltd.
Colombo, Sri Lanka
(+94) 777 <%28%2B94%29%20773131798>*994805*

On Tue, Jan 3, 2017 at 10:21 AM, Isura Karunaratne  wrote:

> Hi Kone,
>
> This is not a bug. In IS 5.3.0 we introduced account recovery rest APIs
> and self-signup rest APIs. In IS 5.2.0 it was there only soap APIs for
> account recovery and self-registration scenarios. To support the backward
> compatibility IS 5.3.0 OOTB supports both rest APIs and soap APIs for
> account recovery and self-registration features.
>
>
> So, there are two ways to support Ask Password feature in IS 5.3.0.
>
>
>- Using old method (SOAP)
>- Using new method (REST)
>
> There are two steps associated with ASK password flow, First needs to send
> an email and then need to confirm that email. The reason why you got above
> error is, email was sent using the old method and try to confirm using the
> new method.
>
>
> We will update the documentation with further details.  Please use one of
> the following ways to support ask password feature in IS 5.3.0
>
>
>
>- *Using old method.*
>
> Then you need to enable old listener and disable new listeners in
> identity.xml file as follows
>
>
>  name="org.wso2.carbon.identit
> y.mgt.IdentityMgtEventListener"
>orderId="50" enable="*true*"/>
> name="org.wso2.carbon.identit
> y.governance.listener.IdentityMgtEventListener"
>orderId="95" enable="*false*"/>
> orderId="97" enable="*false*">
>
>
>
> Then follow the steps in the [1]. You need to change the email template
> and use Info-recovery sample web APP to support this feature. (Identity
> Server dashboard supports only for rest APIs)
>
>
>
>- *Using new method.*
>
> Then you need to disable old listener and enable new listeners in
> identity.xml file as follows
>
>  name="org.wso2.carbon.identit
> y.mgt.IdentityMgtEventListener"
>orderId="50" enable="*false*"/>
> name="org.wso2.carbon.identit
> y.governance.listener.IdentityMgtEventListener"
>orderId="95" enable="*true*"/>
> orderId="97" enable="*true*">
>
>
> You can't use Identity Server management console to add users with ask
> password feature. You have to use RemoteUserStoreManagerServe, UserAdmin
> Service or SCIM APIs to support new ASK password feature.
>
> Enable ask password as follows from management console
>
>
>
> ​
>
>
> Then use RemoteUserStoreManagerService AddUser method with askPassword
> claim as follows
>
>
>  http://schemas.
> xmlsoap.org/soap/envelope/" xmlns:ser="http://service.ws.u
> m.carbon.wso2.org" xmlns:xsd="http://common.mgt.user.carbon.wso2.org/xsd;>
>
>
>   
>  test123
>  test123
>  
> http://wso2.org/claims/emailaddress URI>
> is...@wso2.com 
>  
>  
> http://wso2.org/claims/lastname
> lastname
>  
>  
> http://wso2.org/claims/givenname
> givenname
>  
>   *   *
> *http://wso2.org/claims/identity/askPassword
> *
> *true*
> * *
>
>  default
>  false
>   
>
> 
>
>
> You need to configure email settings in 
> /repository/conf/output-event-adapters.xml
> file as step 2 in blog post [2]
>
>
>
>
> We will update documentation asap. Please let us know if you need further
> clarifications.
>
> Thanks
> Isura
>
>
> [1] https://docs.wso2.com/display/IS530/Creating+Users+using
> +the+Ask+Password+Option
> [2] http://isurad.blogspot.com/2016/12/self-user-
> registration-features-wso2.html
>
>
>
>
> *Isura Dilhara Karunaratne*
> Senior Software Engineer | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810 <+94%2077%20225%204810>
> Blog : http://isurad.blogspot.com/
>
>
>
>
> On Mon, Jan 2, 2017 at 3:23 PM, Koné Alioune Badara <
> kon...@etna-alternance.net> wrote:
>
>> Hello Ishara,
>>
>> Thank you for the answer, do you think it will be resolved for the 5.3.0
>> official release? And by the way, what is the is date of that release?
>>
>> Regards,
>>
>> 2016-12-25 21:49 GMT+01:00 Ishara Cooray :
>>
>>> Hi Alioune,
>>>
>>> This is because by default Identity Server shipped with LDAP store but
>>> it tries to load user recovery data from JDBCRecoveryDataStore.
>>>
>>> Please refer jira[1] to track the issue.
>>>
>>> [1] https://wso2.org/jira/browse/IDENTITY-5544
>>>
>>> Thanks & Regards,
>>> Ishara Cooray
>>> Senior Software 

Re: [Dev] Integration tests for WSO2 IOT Server

2017-01-03 Thread Nuwan Wimalasekara
Hi Menaka,

Is the server started on port 9763? Please make sure that service is
started properly

Another ways is that You can write a extension to start the servers
separately.

Thanks,
Nuwanw

On Tue, Jan 3, 2017 at 12:48 PM, Menaka Jayawardena  wrote:

> Hi,
>
> In IOTS we have 3 separate servers (Analytics, Broker and IOT Core), which
> are invoked by a single shell script. (Or we can manually start each server
> individually). And in order to execute a full IOT scenario, all the three
> servers have to be up and running.
>
> There were some integration tests which were written before this change
> (Separating the servers), which test scenarios such as user login, device
> type installation, and virtual device enrollment etc.
>
> As Test Automation Framework looks for wso2server.sh in {carbon_home}/bin
> directory, I renamed the script. (was start-all.sh)
>
> When running, I got the following error.
>
> I think as the servers are started in processes forked by the 'start-all'
> script TAF does not have the access to the logs.
>
> Is there any fix for this issue?
>
> Can we change the script location in test configuration file?
>
> - ERROR MSG --
>
> INFO: Starting carbon server.
> Jan 03, 2017 12:08:15 PM org.wso2.carbon.automation.ext
> ensions.servers.carbonserver.CarbonServerExtension handleException
> SEVERE: Fail to start carbon server
> java.lang.RuntimeException: Port 9763 is not open
> at org.wso2.carbon.automation.extensions.servers.utils.ClientCo
> nnectionUtil.waitForPort(ClientConnectionUtil.java:248)
> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
> arbonServerManager.startServerUsingCarbonHome(CarbonServerMa
> nager.java:120)
> at org.wso2.carbon.automation.extensions.servers.carbonserver.T
> estServerManager.startServer(TestServerManager.java:116)
> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
> arbonServerExtension.onExecutionStart(CarbonServerExtension.java:50)
> 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)
> at org.wso2.carbon.automation.engine.extensions.TestNGExtension
> Executor.executeExtensible(TestNGExtensionExecutor.java:75)
> at org.wso2.carbon.automation.engine.testlisteners.TestExecutio
> nListener.onExecutionStart(TestExecutionListener.java:47)
> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
> at org.testng.TestNG.run(TestNG.java:1015)
> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGEx
> ecutor.java:295)
> at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(
> TestNGXmlTestSuite.java:84)
> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestN
> GProvider.java:90)
> at org.apache.maven.surefire.booter.ForkedBooter.invokeProvider
> InSameClassLoader(ForkedBooter.java:203)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInPro
> cess(ForkedBooter.java:155)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoo
> ter.java:103)
>
> Jan 03, 2017 12:08:15 PM org.wso2.carbon.automation.eng
> ine.testlisteners.TestExecutionListener handleException
> SEVERE: Execution error occurred in TestExecutionListener:-
> java.lang.reflect.InvocationTargetException
> 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)
> at org.wso2.carbon.automation.engine.extensions.TestNGExtension
> Executor.executeExtensible(TestNGExtensionExecutor.java:75)
> at org.wso2.carbon.automation.engine.testlisteners.TestExecutio
> nListener.onExecutionStart(TestExecutionListener.java:47)
> at org.testng.TestNG.runExecutionListeners(TestNG.java:1068)
> at org.testng.TestNG.run(TestNG.java:1015)
> at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGEx
> ecutor.java:295)
> at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(
> TestNGXmlTestSuite.java:84)
> at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestN
> GProvider.java:90)
> at org.apache.maven.surefire.booter.ForkedBooter.invokeProvider
> InSameClassLoader(ForkedBooter.java:203)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInPro
> cess(ForkedBooter.java:155)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBoo
> ter.java:103)
> Caused by: java.lang.RuntimeException: Fail to start carbon server
> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
> arbonServerExtension.handleException(CarbonServerExtension.java:70)
> at org.wso2.carbon.automation.extensions.servers.carbonserver.C
> 

Re: [Dev] [Architecture] [C5] MSF4J Interceptors need to be configurable.

2017-01-03 Thread Ishara Cooray
Hi,

What could be the status of this? Do we have a time line defined?

Thanks & Regards,
Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

On Fri, Dec 9, 2016 at 2:18 PM, Sagara Gunathunga  wrote:

>
>
> On Fri, Dec 9, 2016 at 2:15 PM, Sanjeewa Malalgoda 
> wrote:
>
>> Hi All,
>> Please find inline comments.
>>
>> On Fri, Dec 9, 2016 at 12:49 PM, Sagara Gunathunga 
>> wrote:
>>
>>>
>>>
>>> On Thu, Dec 8, 2016 at 6:59 PM, Ishara Cooray  wrote:
>>>
 To overcome the above limitation where we cannot plug custom
 authentication, i came up with the below approach.

 Having one interceptor and delegate authentication to an interface.
 Implementation of the interface is configurable so that we can plug custom
 authentication as well.

 [image: Inline image 1]

 One limitation here is we can have only one auth type active at a time.

 Hi Sanjeewa,

 Shall we continue with this approach until we get a proper fix from
 msf4j?

>>>
>>> It's ok to use above  approach as a temporary workaround till we get
>>> proper solution from MSF4J, but please make sure to implement only required
>>> features in a simple manner because you have to discard this and have to
>>> use proper MSF4J approach before any release.
>>>
>>> By looking at issues faced by API-M and IS teams we have few issues to
>>> solve,
>>>
>>>
>>> 1. Ability to apply/skip Interceptors in global and per-service levels
>>> 2. Ability to define the order of Interceptors
>>> 3. Ability to intercept response messages
>>>
>> Ability to build security and user context in a way we can access it from
>> service implementation.
>> Most of the other platforms allowed to do that and people who work on
>> service implementation can get real advantage of that.
>>
>>>
>>> The good news is JAX-RS 2.0 spec is already solved these issues and we
>>> can adopt their concepts easily to MSF4J programming model. Please refer
>>> solution for each issue below.
>>>
>>>
>>> *1. Ability to intercept response messages *
>>>
>>> JAX-RS defines 2 interfaces as ContainerRequestFilter[1] and
>>> ContainerResponseFilter[2] to intercept request and response messages, IMO
>>> these 2 interfaces are much clean and standard then current MSF4J
>>> Interceptor[3] concept where response intercepting is not simple.
>>>
>>>
>>> *2.  Ability to apply/skip Interceptors  in global and per-service
>>> levels *
>>>
>>> Annotation driven NameBinding[4] concept defined for JAX-RS Filters is
>>> very flexible and easy to use as well. This NameBinding[4] feature enables
>>> to apply JAX-RS Filters at global, per-Resource or even per-sub-Resource
>>> level.
>>>
>>> *3. Define the order of Interceptors *
>>>
>>> JAX-RS defines several message processing extension points such as Pre,
>>> PreMatch, Post, it's possible to apply Filters during some of these message
>>> processing stages, as an example refer PreMatching[5] annotation.
>>>
>>> Further, to define fine grained order of Filters JAX-RS reuse Java's
>>> standard Priority[1] annotation, through this annotation numeric priority
>>> value can be define per Filters basis. JAX-RS already provide set of
>>> pre-defined Priories here[6]
>>>
>> Ability to engage in different phases is definitely a good feature. But
>> there can be situations where we need to engage multiple interceptors at
>> same phase with order of execution. As example i need to engage both
>> authenticate and authorization interceptors in pre invoke phase but
>> authenticator first and then authorizer as 2nd interceptor. In that case we
>> need to mention phase and order within phase in some way. It seems CXF and
>> other run times already handled this in different ways.
>>
>
> This requirement is well handled by the JAX-RS concept I described above.
>
> Thanks !
>
>>
>>
>> [1]http://cxf.apache.org/docs/interceptors.html
>>
>> Thanks,
>> sanjeewa.
>>
>>>
>>>
>>> I have setup a meeting in next Wednesday, if we can cater current
>>> requirements using above concepts let's go ahead with JAX-RS Filters.
>>>
>>>
>>> [1] - https://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/in
>>> dex.html?javax/ws/rs/container/ContainerRequestFilter.html
>>> [2] - https://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/ja
>>> vax/ws/rs/container/ContainerResponseFilter.html
>>> [3] - https://github.com/wso2/msf4j/blob/master/core/src/main/ja
>>> va/org/wso2/msf4j/Interceptor.java
>>> [4] - https://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/in
>>> dex.html?javax/ws/rs/NameBinding.html
>>> [5] - https://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/in
>>> dex.html?javax/ws/rs/container/PreMatching.html
>>> [6] - https://jax-rs-spec.java.net/nonav/2.0/apidocs/javax/ws/rs
>>> /Priorities.html
>>>
>>> Thanks !
>>>
 ​


 Thanks & Regards,
 Ishara Cooray
 Senior Software