Re: [Dev] Shall we implement transformation methods in claim API.

2017-03-14 Thread Pushpalanka Jayawardhana
On Wed, Mar 15, 2017 at 11:07 AM, Harsha Thirimanna 
wrote:

> Yes, as you said, we have to provide a service by merging the dialect and
> profile. We can provide different service for that and there will more
> aggregate method that can be reusable in future.
>
+1. To avoid multiple service calls, it will be OK to provide the
functionality as mentioned, in service layer.

>
> On Wed, Mar 15, 2017 at 10:42 AM, Pushpalanka Jayawardhana  > wrote:
>
>> Hi Harsha,
>>
>> Please find the comments inline.
>>
>> On Tue, Mar 14, 2017 at 4:32 PM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Lanka,
>>>
>>> Shall we implement these two methods also in claim service side by
>>> merging dialect and profile ?
>>>
>>> public Set transformToNativeDialect(Set otherDialectClaims, 
>>> String claimDialect, Optional
>>> profile) {
>>>
>>> Assume the usage is given a set of external claim URIs, the dialect URI
>> and a profile, get a set of claims which are mapped to default claim
>> dialect and filtered by the profile. So that only the claims defined in
>> profile will be returned. Please correct me if this understanding is
>> incorrect.
>>
>> If that is the case aren't we merging two functionalities here? Mapping
>> from one dialect to another is a task the claim mapping service, while
>> filtering according to the profile should be done by a service for profile.
>> This same applies to below method too.
>>
>>> public Set transformToOtherDialect(Set nativeDialectClaims, 
>>> String dialect, Optional
>>> profile) {
>>>
>>>
>>> thanks
>>>
>>> *Harsha Thirimanna*
>>> *Associate Tech Lead | WSO2*
>>>
>>> Email: hars...@wso2.com
>>> Mob: +94715186770 <071%20518%206770>
>>> Blog: http://harshathirimanna.blogspot.com/
>>> Twitter: http://twitter.com/harshathirimann
>>> Linked-In: linked-in: http://www.linkedin.com/pub/ha
>>> rsha-thirimanna/10/ab8/122
>>> 
>>>
>>
>>
>>
>> --
>> Pushpalanka.
>> --
>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>> Mobile: +94779716248
>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn: lk.linkedin.com/in/p
>> ushpalanka/ | Twitter: @pushpalanka
>>
>>
>


-- 
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shall we implement transformation methods in claim API.

2017-03-14 Thread Harsha Thirimanna
Yes, as you said, we have to provide a service by merging the dialect and
profile. We can provide different service for that and there will more
aggregate method that can be reusable in future.

On Wed, Mar 15, 2017 at 10:42 AM, Pushpalanka Jayawardhana 
wrote:

> Hi Harsha,
>
> Please find the comments inline.
>
> On Tue, Mar 14, 2017 at 4:32 PM, Harsha Thirimanna 
> wrote:
>
>> Hi Lanka,
>>
>> Shall we implement these two methods also in claim service side by
>> merging dialect and profile ?
>>
>> public Set transformToNativeDialect(Set otherDialectClaims, 
>> String claimDialect, Optional
>> profile) {
>>
>> Assume the usage is given a set of external claim URIs, the dialect URI
> and a profile, get a set of claims which are mapped to default claim
> dialect and filtered by the profile. So that only the claims defined in
> profile will be returned. Please correct me if this understanding is
> incorrect.
>
> If that is the case aren't we merging two functionalities here? Mapping
> from one dialect to another is a task the claim mapping service, while
> filtering according to the profile should be done by a service for profile.
> This same applies to below method too.
>
>> public Set transformToOtherDialect(Set nativeDialectClaims, 
>> String dialect, Optional
>> profile) {
>>
>>
>> thanks
>>
>> *Harsha Thirimanna*
>> *Associate Tech Lead | WSO2*
>>
>> Email: hars...@wso2.com
>> Mob: +94715186770 <071%20518%206770>
>> Blog: http://harshathirimanna.blogspot.com/
>> Twitter: http://twitter.com/harshathirimann
>> Linked-In: linked-in: http://www.linkedin.com/pub/ha
>> rsha-thirimanna/10/ab8/122
>> 
>>
>
>
>
> --
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn: lk.linkedin.com/in/
> pushpalanka/ | Twitter: @pushpalanka
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shall we implement transformation methods in claim API.

2017-03-14 Thread Pushpalanka Jayawardhana
Hi Harsha,

Please find the comments inline.

On Tue, Mar 14, 2017 at 4:32 PM, Harsha Thirimanna  wrote:

> Hi Lanka,
>
> Shall we implement these two methods also in claim service side by merging
> dialect and profile ?
>
> public Set transformToNativeDialect(Set otherDialectClaims, 
> String claimDialect, Optional
> profile) {
>
> Assume the usage is given a set of external claim URIs, the dialect URI
and a profile, get a set of claims which are mapped to default claim
dialect and filtered by the profile. So that only the claims defined in
profile will be returned. Please correct me if this understanding is
incorrect.

If that is the case aren't we merging two functionalities here? Mapping
from one dialect to another is a task the claim mapping service, while
filtering according to the profile should be done by a service for profile.
This same applies to below method too.

> public Set transformToOtherDialect(Set nativeDialectClaims, 
> String dialect, Optional
> profile) {
>
>
> thanks
>
> *Harsha Thirimanna*
> *Associate Tech Lead | WSO2*
>
> Email: hars...@wso2.com
> Mob: +94715186770 <071%20518%206770>
> Blog: http://harshathirimanna.blogspot.com/
> Twitter: http://twitter.com/harshathirimann
> Linked-In: linked-in: http://www.linkedin.com/pub/
> harsha-thirimanna/10/ab8/122
> 
>



-- 
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2017 - Proposal 20: [IS] OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-03-14 Thread Dinuksha Ishwari
Hi,

When I was going through the code base, I observed that Nimbus and Apache
Oltu libraries are used for the OAuth2.0 implementation. Could you kindly
let me know what other libraries are used?

Thanks,
Dinuksha



On Mon, Feb 27, 2017 at 9:51 AM, Dinuksha Ishwari <
dinuksha.ishw...@gmail.com> wrote:

> Hi Ishara,
>
> I have read the OAuth2.0 DCR and DCRM specification and familiarized
> myself with the WSO2 Identity Server DCR implementation. I have also
> written a few blog posts [1][2] in order to share my experience.
>
> I would be very much grateful if you could update the jira tickets[3][4]
> providing more information so that I can attempt to identify the problem
> and fix the issue.
>
> [1] http://dinukshaish.blogspot.com/2017/02/oauth-20-in-nutshell.html
> [2] http://dinukshaish.blogspot.com/2017/02/oauth-20-dynamic-
> client-registration.html
> [3] https://wso2.org/jira/browse/IDENTITY-5184
> [4] https://wso2.org/jira/browse/IDENTITY-5185
>
> Thanks,
> Dinuksha
>
> On Fri, Feb 24, 2017 at 11:53 AM, Ishara Karunarathna 
> wrote:
>
>>
>>
>> On Fri, Feb 24, 2017 at 11:16 AM, Dinuksha Ishwari <
>> dinuksha.ishw...@gmail.com> wrote:
>> [+ dev]
>>
>>> Hi Ishara,
>>>
>>> Thank you for the information. I'm in the process of reading the related
>>> specifications and getting familiar with the code base further. Will get
>>> back to you soon.
>>>
>>> Thanks,
>>> Dinuksha.
>>>
>>> On Fri, Feb 24, 2017 at 10:14 AM, Ishara Karunarathna 
>>> wrote:
>>>
 Hi Dinuksha,

 Thank you for your interest in GSoC and the effort on WSO2IS DCRM
 implementation.
 It’s great  that you have already started working with IS code base.
 Further you can go through current DCR implementation from
 here[1] and go through that code.

 You may find open jiras here[2]. Following are related to current DCR
 implementation
 https://wso2.org/jira/browse/IDENTITY-5185
 https://wso2.org/jira/browse/IDENTITY-5184

 Thanks,
 Ishara

 [1] https://github.com/wso2-extensions/identity-inbound-auth-oauth
 [2] https://wso2.org/jira/projects/IDENTITY/issues/IDENTITY-5723
 ?filter=allopenissues


 On Mon, Feb 20, 2017 at 4:45 PM, Dinuksha Ishwari <
 dinuksha.ishw...@gmail.com> wrote:

> Hi All,
>
>
> I am Dinuksha Kanda Samanage, a 3rd year undergraduate from Sri Lanka
> Institute of Information Technology, following the Software Engineering
> specialization.
>
>
> This is to convey my interest in implementing the OAuth 2.0 Dynamic
> Client Registration Management Protocol Support for Identity Server
> (Proposal 20) in GSoC 2017.
>
>
> I am well versed in Java and also familiar with Maven and Git. I have
> been involved in implementing an OAuth 2.0 and OpenID Connect related
> project for almost 7 months during my internship.
>
>
> I have already started to get familiar with WSO2 codebase and fixed
> the JIRA [1] where the pull request is already merged to the WSO2 
> codebase.
> I will continue fixing more open JIRA tickets on Identity Server. (If you
> can suggest some, that would be great too)
>
>
> In order to get ready for this project, I already setup OAuth 2.0
> Playground2 sample with Identity Server 5.3.0 and wrote the blog post [2]
> for sharing my experience. When running this flow, I faced an issue and
> raised it in the Dev mail [3] and have got the answer now.
>
>
> My GitHub profile can be found at [4].
>
>
> Therefore I believe I can learn the required concepts/technologies and
> implement this project for GSoC 2017.
>
>
> I appreciate if you can guide me on proceeding further with the
> project.
>
>
> [1] https://wso2.org/jira/browse/IDENTITY-5241
>
> [2] http://dinukshaish.blogspot.com/2017/02/getting-started-with
> -oauth-20-using.html
>
> [3] [Dev] Mandatory Claims in OAuth 2.0 with Identity Server 5.3.0
>
> [4] https://github.com/dinuish94
>
>
> Best Regards,
>
> Dinuksha
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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



>>>
>>
>>
>> --
>> 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>
>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Idea Plugin for Siddhi

2017-03-14 Thread Sriskandarajah Suhothayan
Yes, that will be good.

Regards
Suho

On Wed, Mar 15, 2017 at 8:02 AM, Nipuna Sankalpa <
nipunasankalpa...@cse.mrt.ac.lk> wrote:

> Thank you for your response. I went through some materials and found that
> idea is not supporting for Antlr grammar file directly but there was plugin
> which allowed me to generate the required parser(from the given grammar
> file) for the implementation of plugin. So as first step I'll try to
> resolve this issue and send you a prototype of the project then proceed for
> the project proposal.
>
> Thank you
> Best regards
> On 13 Mar 2017 21:42, "Sriskandarajah Suhothayan"  wrote:
>
>> No need to implement siddhi execution and debugging, but we need to have
>> syntax highlighting and autocompletion.
>>
>> Regards
>> Suho
>>
>> On Sun, Mar 12, 2017 at 5:10 PM, Nipuna Sankalpa <
>> nipunasankalpa...@cse.mrt.ac.lk> wrote:
>>
>>> Hi,
>>> I am an undergraduate from Department of Computer Science and
>>> Engineering University of Moratuwa. I'm interested on Gsoc project proposal
>>> No.4 : " *Idea Plugin for Siddhi* " which is listed under Wso2 proposal
>>> list. I have recently contributed to a project related to the Siddhi CEP
>>> [Real Time Value at Risk Computation] and now I'm familiar with with Siddhi
>>> CEP up to considerable level.
>>> I went through the proposal description and want to clarify,
>>> whether I need to include siddhi execution and debugging as a task for
>>> the proposal?? or else shall I prepare the proposal without it and complete
>>> the execution and debugging part if only the time permits.
>>>
>>> Thanks,
>>> Best Regards,
>>> --
>>>
>>> Nipuna Sankalpa,
>>>
>>> Undergraduate,
>>>
>>> Department of Computer Science & Engineering,
>>> University of Moratuwa,
>>>
>>> Sri Lanka.
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Associate Director / Architect & Team Lead of WSO2 Complex Event
>> Processor
>> *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>


-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Custom Password Grant Validator

2017-03-14 Thread Danushka Fernando
Seems all request parameters are send if its a custom grant type only.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Wed, Mar 15, 2017 at 9:49 AM, Danushka Fernando 
wrote:

> Hi All
> I followed [1] and tried to implement a custom pwd grant validator. I ran
> server in debug mode. My validator get called and the my custom param get
> added to the required params. And in the flow I see it till it goes to
> token endpoint. But when it comes to password grant handler request params
> are null in message context.
>
> Can anybody shed some light here.
>
> [1]https://docs.wso2.com/display/IS530/Writing+a+
> Custom+OAuth+2.0+Grant+Type
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729 <+94%2071%20633%202729>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Custom Password Grant Validator

2017-03-14 Thread Danushka Fernando
Hi All
I followed [1] and tried to implement a custom pwd grant validator. I ran
server in debug mode. My validator get called and the my custom param get
added to the required params. And in the flow I see it till it goes to
token endpoint. But when it comes to password grant handler request params
are null in message context.

Can anybody shed some light here.

[1]https://docs.wso2.com/display/IS530/Writing+a+Custom+OAuth+2.0+Grant+Type

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Idea Plugin for Siddhi

2017-03-14 Thread Nipuna Sankalpa
Thank you for your response. I went through some materials and found that
idea is not supporting for Antlr grammar file directly but there was plugin
which allowed me to generate the required parser(from the given grammar
file) for the implementation of plugin. So as first step I'll try to
resolve this issue and send you a prototype of the project then proceed for
the project proposal.

Thank you
Best regards
On 13 Mar 2017 21:42, "Sriskandarajah Suhothayan"  wrote:

> No need to implement siddhi execution and debugging, but we need to have
> syntax highlighting and autocompletion.
>
> Regards
> Suho
>
> On Sun, Mar 12, 2017 at 5:10 PM, Nipuna Sankalpa <
> nipunasankalpa...@cse.mrt.ac.lk> wrote:
>
>> Hi,
>> I am an undergraduate from Department of Computer Science and Engineering
>> University of Moratuwa. I'm interested on Gsoc project proposal No.4 : " 
>> *Idea
>> Plugin for Siddhi* " which is listed under Wso2 proposal list. I have
>> recently contributed to a project related to the Siddhi CEP [Real Time
>> Value at Risk Computation] and now I'm familiar with with Siddhi CEP up to
>> considerable level.
>> I went through the proposal description and want to clarify,
>> whether I need to include siddhi execution and debugging as a task for
>> the proposal?? or else shall I prepare the proposal without it and complete
>> the execution and debugging part if only the time permits.
>>
>> Thanks,
>> Best Regards,
>> --
>>
>> Nipuna Sankalpa,
>>
>> Undergraduate,
>>
>> Department of Computer Science & Engineering,
>> University of Moratuwa,
>>
>> Sri Lanka.
>>
>
>
>
> --
>
> *S. Suhothayan*
> Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] GSoC 2017 - Real-Time Machine Learning Toolkit for Siddhi

2017-03-14 Thread Upul Bandara
Hi Kasun,

Sounds good. Also, please start working on the project proposal as well.
The proposal should be included following high-level sections and please
feel free to add sub-sections as needed.

1. Description
2. Deliverables
3. Timeline
4. Implementation


Thanks,
Upul

On Tue, Mar 14, 2017 at 9:54 AM, Kasun Weerakoon  wrote:

> Hi,
>
> Sorry for being late to communicate my progress with you, because of my
> academic works. From now on I will be able to work on this project with my
> full potential.
>
> I went through the CEP quick start guide and created  event flow, received
> events via HTTP transport, processed events with an execution plan and
> published events to dashboard successfully.
>
> I also went through the Apache SAMOA getting start guide and did some
> tutorials.
>
> I'm currently reading Chapter 12 of the Mining of Massive Datasets book as
> you mentioned and hope your guidance to carry out the work.
>
> Thanks and Regards,
>
> *Kasun Bandara*
> Faculty of Information Technology, University of Moratuwa
> 0715787004 | kasun...@gmail.com
> 
>   
>
> On Tue, Feb 28, 2017 at 12:06 PM, Kasun Weerakoon 
> wrote:
>
>> Hi,
>>
>> According to the rules mentioned,  I think I'm eligible to the program.
>>
>> Thanks and Regards,
>>
>> *Kasun Bandara*
>> Faculty of Information Technology, University of Moratuwa
>> 0715787004 | kasun...@gmail.com
>> 
>>   
>>
>> On Tue, Feb 28, 2017 at 10:59 AM, Upul Bandara  wrote:
>>
>>> Hi Kasun,
>>>
>>> Great!
>>> Also, please verify your eligibility as per the GSoC rules:
>>> https://summerofcode.withgoogle.com/rules/
>>>
>>> Thanks,
>>> Upul
>>>
>>> On Tue, Feb 21, 2017 at 9:52 AM, Kasun Weerakoon 
>>> wrote:
>>>
 Hi Upul,

 Thanks you for your reply. I'll go through above mentioned guides and
 get back to you later.

 Regards,
 Kasun Weerakoon.

 On Tue, 21 Feb 2017, 08:39 Upul Bandara,  wrote:

 Hi Kasun,

 We are glad to see your interest!

 The main objective of this project is to develop a real-time machine
 learning toolkit for Siddhi [1]. Siddhi CEP is a lightweight, easy-to-use
 Open Source Complex Event Processing Engine (CEP) released as a Java
 Library under Apache Software License v2.0. The readme page of the Siddhi's
 Github repository contains a good overview of the Siddhi library. Also,
 SiddhiQL Guide [2] will be helpful you to understand Siddhi Query Language.

 Most probably, we will be writing this toolkit as a Siddhi extension.
 Therefore, please go through Siddhi Extension Guide [3] to get a quick
 overview regarding how to write Siddhi extensions.

 In addition to that, if you are not familiar with general machine
 learning concepts, I think Chapter 12 of the Mining of Massive Datasets
 book (link is provided in the GSco project page) will be really helpful.
 Also, if you have some free time please look at other streaming machine
 learning libraries such as Apache Samoa[4].

 Please go through these Siddhi/ML tutorials/guides. They will be
 helpful when it comes to writing your project proposal.

 Thanks,
 Upul

 [1]. https://github.com/wso2/siddhi
 [2]. https://docs.wso2.com/display/CEP420/SiddhiQL+Guide+3.1
 [3] https://docs.wso2.com/display/CEP420/Writing+Extensions+to+Siddhi
 [4] https://samoa.incubator.apache.org/

 On Mon, Feb 20, 2017 at 7:00 PM, Kasun Weerakoon 
 wrote:

 Hi all,

 I'm Kasun Weerakoon, final year undergraduate of University of
 Moratuwa, Sri Lanka. I'm interested about above mentioned project idea as
 I'm passionate about machine learning and deep learning techniques. I have
 used ML in my final year project and have followed the Coursera machine
 learning course by Stanford University as well as a ML course module in the
 university. I've recently participated to the Deep Learning meetup held in
 your organization. I use Java as my major programming language and
 currently  I'm following tutorials on Siddhi. I believe I'm a good
 candidate for this project and hope your guidance for this project.

 Regards,
 Kasun Weerakoon.

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




 --
 Upul Bandara,
 Mob: +94 715 468 345 <+94%2071%20546%208345>.


>>>
>>>
>>> --
>>> Upul Bandara,
>>> Associate Technical Lead, WSO2, Inc.,
>>> Mob: +94 715 468 345 <071%20546%208345>.
>>>
>>
>>
>


-- 
Upul Bandara,
Associate Technical Lead, WSO2, 

Re: [Dev] GSOC : OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-03-14 Thread Maduranga Siriwardena
Hi Abilashini,

We are glad to see your interest in doing GSoC with WSO2.

The requirement of the project is to fully implement the Dynamic Client
Registration Management Protocol [1]. The current implementation of Dynamic
Client Registration is in repo [2] and particularly component in [3].
Documentation for OpenID Connect Dynamic Client Registration is in [4].

If you need to get familiarize with the code, you can fix jira already
reported regarding dcr implementation which are in [5] (or you can fix any
jira in Identity Server project as a start).

[1] https://tools.ietf.org/html/rfc7592
[2] https://github.com/wso2-extensions/identity-inbound-auth-oauth
[3]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/tree/master/components/org.wso2.carbon.identity.oauth.dcr
[4]
https://docs.wso2.com/display/IS530/OpenID+Connect+Dynamic+Client+Registration
[5] https://goo.gl/ghqqgE

Thanks,

On Tue, Mar 14, 2017 at 1:06 AM, Abilashini Thiyagarajah <
abilashini...@cse.mrt.ac.lk> wrote:

> Hi,
>
> I am Abilashini from Department of Computer Science and Engineering,
> University of Moratuwa. I have done my internship at WSO2 last year (July -
> December) and worked in the implementation of tomcat extension of OpenID
> Connect [1]. So I am a little bit familiar with OAuth 2.0 and OpenID
> Connect protocols. I found the project 'OAuth 2.0 Dynamic Client
> Registration Management Protocol Support' as interesting to work on. Can
> I have some assistance to understand the details and requirements more
> clearly behind this project idea?
> Also can I have the locations of documentation and code base related to
> dynamic client registration?
>
> [1] https://github.com/wso2-extensions/tomcat-extension-openidsso
>
> Thanks and Regards
> Abilashini
>
> *Thiyagarajah Abilashini*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa, Sri Lanka
>



-- 
Maduranga Siriwardena
Software Engineer
WSO2 Inc; http://wso2.com/

Email: madura...@wso2.com
Mobile: +94718990591
Blog: *https://madurangasiriwardena.wordpress.com/
*

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


Re: [Dev] GSoC, Proposal 4: Idea Plugin for Siddhi

2017-03-14 Thread Sriskandarajah Suhothayan
Please google on this project title you can find some basic resources about
this project in other emails at d...@wso2.com, which are shared based on
other students request.

Regards
Suho

On Wed, Mar 15, 2017 at 12:54 AM, Nur-Magomed  wrote:

> Hi!
>
> I’m Nur-Magomed Dzhamiev, 4th year student from institute of information
> technology (major: computer security) of North-Caucasus Federal University
> (Russia). I have experience with Java, SQL, Web (HTML, CSS, JavaScript,
> PHP) and also I designed Android apps.
>
> I would love to contribute to the project "Proposal 4: Idea Plugin for
> Siddhi ". Please provide me some guide lines and additional materials for
> study and get a clear understanding about the mentioned project. Thank you!
>
>
> Regards
>
> Nur-Magomed
>
> GitHub: https://github.com/nmago/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-14 Thread Sriskandarajah Suhothayan
As the first step focus on building APIs such that we can write the
following test case[1] in python.

[1]
https://github.com/wso2/siddhi/blob/master/modules/siddhi-samples/quick-start-samples/src/main/java/org/wso2/siddhi/sample/SimpleFilterSample.java

Regards
Suho

On Tue, Mar 14, 2017 at 9:55 AM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
> Thank you for your quick reply.
>
> Since directly using Siddhi Library is the more general case, I'll first
> focus on it.
>
> 1) I am thinking about following the same structure in JAVA API, centered
> around Siddhi Manager. Any opinions on this?
> 2) Any idea on extent to which lower level/internal components should be
> exposed? (e.g. - Exposing "StreamDefinition" class in addition to creating
> stream via Siddhi query using "siddhiManager.createExecutionPlanRuntime").
> I have heard that it is usually discouraged to use lower level components
> instead of the query approach.
>
> Will try to send you a prototype covering basic functionality through
> Siddhi Java API, before making the proposal for entire project.
>
> Madhawa
>
> On Mon, Mar 13, 2017 at 9:53 PM, Sriskandarajah Suhothayan 
> wrote:
>
>>
>>
>> On Sun, Mar 12, 2017 at 12:37 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi.
>>>
>>> I am an undergraduate from Department of Computer Science and
>>> Engineering, University of Moratuwa. I recently completed my internship at
>>> WSO2 working with the Support Team on the project WSO2 Support Knowledge
>>> Base.
>>>
>>> I am interested on GSOC Project* "Proposal 16: Python API for Siddhi
>>> CEP"*. My internship project at WSO2 was almost entirely done using
>>> Python. Additionally, I used Py4J Framework to interface certain parts of
>>> the project to JAVA APIs. Furthermore, I have a certain amount of exposure
>>> with Siddhi/CEP through the WHACK project I took part.
>>>
>>> I went through the provided details in WSO2 GSOC 2017 Project List page
>>> and I am interested to know some more details.
>>>
>>>1. What version of CEP/Siddhi should be used by the API?
>>>
>>> You need to support the latest released version of Siddhi and DAS which
>> is in DAS 3.1 and also for the latest Siddhi (4.0)
>>
>>>
>>>1. In the description, does "Service APIs" refer to "Admin Services
>>>API" which is usually used by Admin Panel to communicate with CEP?
>>>
>>> Yes, to deploy the queries and to send and receive events
>>
>>>
>>>1. Should the Siddhi Python API require WSO2 CEP to be running in
>>>order to make Python API usable?
>>>
>>> Not necessay it should both work with the running CEP/DAS and use Siddhi
>> library in the ohter cases.
>>
>>>
>>>1. Is the Python API expected to do configuring of Siddhi CEP,
>>>streaming events to/from Siddhi CEP, or both?
>>>
>>> Yes in terms of queries.
>>
>>
>>
>>> Thank You
>>>
>>>
>>> --
>>> *Madhawa Vidanapathirana*
>>> Student
>>> Department of Computer Science and Engineering
>>> University of Moratuwa
>>> Sri Lanka
>>>
>>> Mobile: (+94) 716874425 <071%20687%204425>
>>> Email: madhawavidanapathir...@gmail.com
>>> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Associate Director / Architect & Team Lead of WSO2 Complex Event
>> Processor
>> *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <+94%2077%20975%206757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>
>
>
> --
> *Madhawa Vidanapathirana*
> Student
> Department of Computer Science and Engineering
> University of Moratuwa
> Sri Lanka
>
> Mobile: (+94) 716874425 <071%20687%204425>
> Email: madhawavidanapathir...@gmail.com
> Linked-In: https://lk.linkedin.com/in/madhawa-vidanapathirana-3430b94
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2017 Project proposal 6: Eclipse plugin for Siddhi

2017-03-14 Thread Sriskandarajah Suhothayan
Ack.

On Tue, Mar 14, 2017 at 5:14 PM, Udeshika Sewwandi <
sewwandikaus...@cse.mrt.ac.lk> wrote:

> Hi,
> I have skipped the path with Xtext. I have already started implementing
> using Antlr and I am on implementing the PoC for syntax highlighting and
> content assistance(auto completion) for a sample grammar file based on
> simple maths expressions for now. I will update about it in the near
> future. Thank you.
>
> Best Regards,
> -Sewwandi
>
> On 13 March 2017 at 21:02, Sriskandarajah Suhothayan 
> wrote:
>
>> We can do this but this will take a lot of effort in implementing Antlr
>> to Xtext which will be a bit of a work and may be a bit hard to
>> maintain.
>> +1 If no other options.
>>
>> Regards
>> Suho
>>
>> On Mon, Mar 13, 2017 at 10:38 AM, Udeshika Sewwandi <
>> sewwandikaus...@cse.mrt.ac.lk> wrote:
>>
>>> Hi,
>>> For the project can I use Antlr 4 IDE in Eclipse which is built on Xtext
>>> ? From that an Antlr 4 project can be created and grammar file,lexer and
>>> parser are generated automatically. If not through command line the same
>>> lexer and parser can be generated using the grammar file and can be
>>> imported in eclipse IDE for further development. What is your idea on this?
>>> Thank you.
>>>
>>> Best Regards,
>>> -Sewwandi
>>>
>>> On 8 March 2017 at 17:27, Udeshika Sewwandi <
>>> sewwandikaus...@cse.mrt.ac.lk> wrote:
>>>
 Hi,
 I have gone through almost all the references given. I found that
 instead of antlr we can use Xtext framework [1] which has features for
 Eclipse also. Currently I am following the references given in [2],[3] to
 get familiarize with editor plugins for Eclipse. Is there any eclipse
 version that needs to be used for the project? Actually I couldn't test the
 sample plugin in a tutorial since I couldn't reach the run-time workbench
 of Eclipse. Do you have any idea why this is happening ? Thank you.


 [1] https://eclipse.org/Xtext/
 [2] http://www.wideskills.com/eclipse-plugin-tutorial/eclips
 e-plugin-editors-tutorial
 [3] http://www.vogella.com/tutorials/EclipseEditors/article.html

 Best Regards,
 -Sewwandi

 On 7 March 2017 at 16:19, Nirmal Fernando  wrote:

> Great. Please keep the discussion in dev@wso2.org mailing list.
>
> On Tue, Mar 7, 2017 at 3:37 PM, Udeshika Sewwandi <
> sewwandikaus...@cse.mrt.ac.lk> wrote:
>
>> Hi,
>> Thank you very much for replying. Currently I am familiarizing with
>> the Eclipse plugin environment and Siddhi.
>>
>> Best Regards,
>> -Sewwandi
>>
>> On 7 March 2017 at 12:25, Sriskandarajah Suhothayan 
>> wrote:
>>
>>> We need an editor that supports Siddhi grammar
>>> https://github.com/wso2/siddhi/blob/master/modules/siddhi-qu
>>> ery-compiler/src/main/antlr4/org/wso2/siddhi/query/compiler/
>>> SiddhiQL.g4
>>>
>>> Can start with a PoC on implementing an editor with syntax
>>> highlighting and auto-completion not necessary for Siddhi but for some
>>> sample language and then look into how we can do the same for Siddhi.
>>>
>>> Regards
>>> Suho
>>>
>>> On Tue, Mar 7, 2017 at 10:24 AM, Nirmal Fernando 
>>> wrote:
>>>
 Hi Udeshika,

 Thanks for your interest in this project. Suho (CCied) and I will
 be your mentors. You can start familiarizing yourself with Siddhi and
 Eclipse plugin development. Let us know if you have any specific 
 questions.

 On Mon, Mar 6, 2017 at 11:20 AM, Udeshika Sewwandi <
 sewwandikaus...@cse.mrt.ac.lk> wrote:

> Hi,
> I am Udeshika Sewwandi, a final year undergraduate of Department
> of Computer Science and Engineering of University of Moratuwa. I am
> interested with the GSoC 2017 Proposal 6: "Eclipse plugin for Siddhi" 
> .I'm
> going through the references provided for the project and can you 
> please
> direct me to the responsible mentors to get more familiarize with the
> project. We are going to integrate WSO2 CEP for my final year 
> project. So I
> thought of contributing to Siddhi which will be useful for future 
> Siddhi
> users. Thank you.
>
> Best Regards,
> -Sewwandi
>
> --
> K.A.U.Sewwandi
> Undergraduate
> Department of Computer Science and Engineering
> Faculty of Engineering
> University of Moratuwa
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 Thanks & regards,
 Nirmal

 Technical Lead - Analytics Team, WSO2 Inc.
 Mobile: +94715779733 

Re: [Dev] [GSOC][CEP] Atom Plugin for Siddhi

2017-03-14 Thread Sriskandarajah Suhothayan
Sorry for the late reply,

On Tue, Mar 14, 2017 at 6:56 PM, Dimuth Menikgama 
wrote:

> Hi,
> I'm willing to develop a prototype for the above mentioned GSOC project.
> Can you give me any suggestions on what things to try first in the plugin.
>
> Thank you.
>
> -- Forwarded message --
> From: Dimuth Menikgama 
> Date: 11 March 2017 at 19:49
> Subject: [Dev][GSOC][CEP] Atom Plugin for Siddhi
> To: dev@wso2.org
>
>
> Hi,
>
> I am Dimuth Menikgama, a Computer Science and Engineering Undergraduate at
> University of Moratuwa, Faculty of Engineering. I worked in WSO2 in the
> previous year as an Software Engineering Intern.
>
> I'm willing to participate GSOC 2017 and I'm interested in the Project
> titled as "Atom Plugin for Siddhi". I read through the description provided
> in the document. I like to know more about this project regarding Error
> reporting.
>
> Error reporting in this context mean showing alerts for syntax, semantics
> or logical errors right? Not for things like compile time/run-time errors?
>

Error reporting is about highlighting syntax, semantic & logical errors and
also compile time errors, if you can run Siddhi in the back-end siddhi can
be used to validate and get error conditions related to all these.

Regards
Suho

>
> Thank you
>
> Regards,
> Dimuth Menikgama
>
> --
> M. Dimuth Tharaka MenikgamaDepartment of Computer Science and Engineering,
> University of Moratuwa
>
> www.neverstopcodingblog.wordpress.comdimuthu...@cse.mrt.ac.lk | +94 71
> 466 9103 <+94%2071%20466%209103>
> 
>   
>   
>
>
>
>
> --
> M. Dimuth Tharaka MenikgamaDepartment of Computer Science and Engineering,
> University of Moratuwa
>
> www.neverstopcodingblog.wordpress.comdimuthu...@cse.mrt.ac.lk | +94 71
> 466 9103 <071%20466%209103>
> 
>   
>   
>
>


-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] GSoC Project - Siddhi Extension Doc Auto Generation

2017-03-14 Thread Sriskandarajah Suhothayan
On Tue, Mar 14, 2017 at 7:38 PM, Nadun De Silva  wrote:

> Hi,
>
> Thank you for the response. I have researched a bit more and have few more
> follow-up questions
>
> It will not be in the current Siddhi format, we are thinking of a plain
>> HTML and MD files which can be part of Siddhi Docs in Github.
>
>
> Then I think when the Mojo is executed, I should create the HTML and MD
> files inside the maven project so that with each push, the GitHub repos are
> updated. Is this what is expected?
>
Yes

>
> Can have multiple pages (one per namespace) and having index and
>> navigation across is good. Please present your suggestion we can discuss
>> and come to a conclusion on this.
>>
>
> Since by the time the combination happens, all the documentation is in
> GitHub repos, my suggestion would be to get the content of the generated
> HTML files using the GitHub contents API [1] and then combine them. But
> this will be a separate program which will be run for the combination alone.
>
> If we decide to use this approach, I would suggest implementing one of the
> following or any other method for rerunning the combination process.
>
>- A server listening to GitHub webhooks [2]
>- A scheduled task
>
> What is your opinion about this approach?
>
> We are moving extensions to wso2-extensions repo[5] and going to host all
of them in the extension store[6] so each extension will have it's own doc,
and siddhi-core might have one with the predefined functions. We might not
need to combine multiple repos together at this point, but when there are
multiple extsnsions within the same repo they need to be properly
organized. If time permits we can explore how we can merge then, but it's
not a requirement at this point.

[5]https://github.com/wso2-extensions/?q=siddhi==
[6]https://store.wso2.com/store/assets/analyticsextension/list


> I also have a question about the Siddhi annotations. At the moment, all
> the details are in one annotation called "@Extension" [3] and it does not
> contain the "return value" of the extension. How can I fetch the return
> value of functions from the current annotation system?
>
> We have to change the previous implementation to bring all into one
annotation as we did some improvements to optimize extension class
loading and that needed a single extension annotation.
To identify the return value use the "returnAttributes()":  for functions
this will have only the return type and no names, for windows this will
return empty, and for stream processors this can have some attributes with
names.

Regards
Suho

[1] https://developer.github.com/v3/repos/contents/#get-contents
> [2] https://developer.github.com/webhooks/
> [3] https://github.com/wso2/siddhi/blob/master/modules/
> siddhi-annotations/src/main/java/org/wso2/siddhi/annotation/Extension.java
>
> Thank you.
>
> On Mon, Mar 13, 2017 at 10:04 PM, Sriskandarajah Suhothayan  > wrote:
>
>>
>>
>> On Sat, Mar 11, 2017 at 8:45 PM, Nadun De Silva 
>> wrote:
>>
>>> Hi,
>>>
>>> I am an undergraduate at the University of Moratuwa in my final year. I
>>> also worked as an intern at WSO2 last year.
>>>
>>> I am interested in *"Siddhi Extension Doc Auto Generation"* GSoC
>>> project. I have worked with WSO2 CEP and Siddhi during my internship and I
>>> am also familiar with the Siddhi annotations.
>>>
>>> I went through the references provided and I would be very grateful if I
>>> can get more guidance on how I can learn more details about the project.
>>> Some of the questions I have are as follows.
>>>
>>>1. Does the final HTML pages need to be deployed into the current
>>>Siddhi documentation and if so is that part of the project scope?
>>>
>>> It will not be in the current Siddhi format, we are thinking of a plain
>> HTML and MD files which can be part of Siddhi Docs in Github.
>>
>>>
>>>1. Does the combined documentation (Deliverable 3) need to be in the
>>>same structure the current documentation is in? (If not the combination 
>>> can
>>>maybe be achieved by having separate pages for extension namespaces with
>>>proper navigation between them)
>>>
>>> Can have multiple pages (one per namespace) and having index and
>> navigation across is good. Please present your suggestion we can discuss
>> and come to a conclusion on this.
>>
>>>
>>>1. If I understood correctly the project does not cover the inbuilt
>>>processors. Please correct me if I'm wrong.
>>>
>>> We have now done some improvements, and now the internal functions too
>> support annotations, so they can also be generated with the approach.
>>
>> Regards
>> Suho
>>
>>
>>> Thank you.
>>>
>>> Nadun De Silva
>>> Undergraduate of Computer Science and Engineering
>>> University of Moratuwa
>>> https://lk.linkedin.com/in/nadundesilva
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Associate Director / Architect & Team Lead of WSO2 Complex Event
>> Processor
>> *WSO2 Inc. *http://wso2.com
>> * 

[Dev] GSoC, Proposal 4: Idea Plugin for Siddhi

2017-03-14 Thread Nur-Magomed
Hi!

I’m Nur-Magomed Dzhamiev, 4th year student from institute of information
technology (major: computer security) of North-Caucasus Federal University
(Russia). I have experience with Java, SQL, Web (HTML, CSS, JavaScript,
PHP) and also I designed Android apps.

I would love to contribute to the project "Proposal 4: Idea Plugin for
Siddhi ". Please provide me some guide lines and additional materials for
study and get a clear understanding about the mentioned project. Thank you!


Regards

Nur-Magomed

GitHub: https://github.com/nmago/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2017 - Siddhi Extension Doc Auto Generation

2017-03-14 Thread Sriskandarajah Suhothayan
We can't use JavaDocs but we have to generate something like JavaDoc with
the help of the @Extension annotation that we use, we also have JavaDocs
for documenting Java classes and that will not work in this case.
The motivation is to document extensions such that its easy to refer what's
supported by Siddhi.

Regards
Suho

On Wed, Mar 15, 2017 at 12:24 AM, Pushpitha Dilhan <
pushpitha...@cse.mrt.ac.lk> wrote:

> Hi,
>
> I studied several ways on how to generate HTML documentation and I think
> javadoc will be an easy solution for generating Documentation HTML pages. I
> have studied how to do that using command line and have written an article
> with an example in [1]my blog. If we are going to use javadoc for this
> documentation generation we have to add javadoc comments to each of the
> extension class. Then connecting this process with maven plugin will be the
> next step. project proposal description says that it is expected to have a
> documentation similar to Java Docs[2] and will this be an approach to the
> project and I would like to know any better suggestions.
>
> [1] http://pushpithadilhan.blogspot.com/2017/03/javadoc-
> html-documentation-generator.html#.WMgyPVV97IU
> [2] https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
> 
>
> Thank you.
>
> On 7 March 2017 at 10:18, Nirmal Fernando  wrote:
>
>> Hi Dilhan,
>>
>> Thanks for your interest in the project. Let us know if you have any
>> specific questions. You may try to build a sample maven plugin to start
>> with and also start to build the proposal.
>>
>> On Sat, Mar 4, 2017 at 1:40 PM, Pushpitha Dilhan <
>> pushpitha...@cse.mrt.ac.lk> wrote:
>>
>>> Hi,
>>>
>>> I am Pushpitha Dilhan and I am a 3rd year undergraduate student at
>>> University of Moratuwa, Department of Computer Science and Engineering. I
>>> am interested in the project "Siddhi Extension Doc Auto Generation" and
>>> currently I have started studying about [2]maven plugin development and
>>> [1]extensions in Siddhi. I hope to have some guidance as a beginning of
>>> this project.
>>>
>>> [1] https://docs.wso2.com/display/CEP400/Siddhi+Extensions
>>> [2] https://maven.apache.org/guides/plugin/guide-java-plugin
>>> -development.html
>>>
>>> Thank you.
>>>
>>> --
>>> Pushpitha Dilhan
>>> Undergraduate  University of Moratuwa
>>> Department of Computer Science and Engineering
>>> +94 775880305 <+94%2077%20588%200305>
>>>
>>> ..
>>> .
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Technical Lead - Analytics Team, WSO2 Inc.
>> Mobile: +94715779733 <+94%2071%20577%209733>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
> Pushpitha Dilhan
> Undergraduate  University of Moratuwa
> Department of Computer Science and Engineering
> +94 775880305 <077%20588%200305>
>
> .
> .
> .
>



-- 

*S. Suhothayan*
Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2017 - Siddhi Extension Doc Auto Generation

2017-03-14 Thread Pushpitha Dilhan
Hi,

I studied several ways on how to generate HTML documentation and I think
javadoc will be an easy solution for generating Documentation HTML pages. I
have studied how to do that using command line and have written an article
with an example in [1]my blog. If we are going to use javadoc for this
documentation generation we have to add javadoc comments to each of the
extension class. Then connecting this process with maven plugin will be the
next step. project proposal description says that it is expected to have a
documentation similar to Java Docs[2] and will this be an approach to the
project and I would like to know any better suggestions.

[1]
http://pushpithadilhan.blogspot.com/2017/03/javadoc-html-documentation-generator.html#.WMgyPVV97IU
[2] https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html


Thank you.

On 7 March 2017 at 10:18, Nirmal Fernando  wrote:

> Hi Dilhan,
>
> Thanks for your interest in the project. Let us know if you have any
> specific questions. You may try to build a sample maven plugin to start
> with and also start to build the proposal.
>
> On Sat, Mar 4, 2017 at 1:40 PM, Pushpitha Dilhan <
> pushpitha...@cse.mrt.ac.lk> wrote:
>
>> Hi,
>>
>> I am Pushpitha Dilhan and I am a 3rd year undergraduate student at
>> University of Moratuwa, Department of Computer Science and Engineering. I
>> am interested in the project "Siddhi Extension Doc Auto Generation" and
>> currently I have started studying about [2]maven plugin development and
>> [1]extensions in Siddhi. I hope to have some guidance as a beginning of
>> this project.
>>
>> [1] https://docs.wso2.com/display/CEP400/Siddhi+Extensions
>> [2] https://maven.apache.org/guides/plugin/guide-java-plugin
>> -development.html
>>
>> Thank you.
>>
>> --
>> Pushpitha Dilhan
>> Undergraduate  University of Moratuwa
>> Department of Computer Science and Engineering
>> +94 775880305 <+94%2077%20588%200305>
>>
>> ..
>> .
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Technical Lead - Analytics Team, WSO2 Inc.
> Mobile: +94715779733 <+94%2071%20577%209733>
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 
Pushpitha Dilhan
Undergraduate  University of Moratuwa
Department of Computer Science and Engineering
+94 775880305

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


Re: [Dev] [UUF]Handling events of fragments

2017-03-14 Thread Manuranga Perera
>
> Fragment is a self contained re usable component. I think its better to
>  have the all the front end logic related to the fragment inside that
> fragment.
>
+1

On Tue, Mar 14, 2017 at 4:36 PM, Rajith Roshan  wrote:

> Hi
>
> On Tue, Mar 14, 2017 at 7:32 PM, Denuwanthi De Silva 
> wrote:
>
>> Hi,
>>
>> I'm currently rendering a fragment inside a page using
>> 'UUFClient.renderFragment' method.
>> Then I display it in the page using "{{#defineZone}} helper.
>>
>> This fragment contains a button.
>> When I click that button I need to do an ajax call to a micro service.
>>
>> I make the ajax call inside the front-end js of the current page.
>> This seems not to be working, as the button is in the fragment.
>>
> This is may be due to, by the time you are registering the on click event
> for button the dom does not actually have the button element, since
> uufrender client works asynchronously.
> If you use onclick attribute on the button element itself and write your
> logic in the current page then this should work. No need to move it to the
> fragment.
>
>>
>> So, is it ok to define a front-end js in the fragment and do the ajax
>> call from it, instead of the front-end js of the current page .?
>>
>
> Fragment is a self contained re usable component. I think its better to
>  have the all the front end logic related to the fragment inside that
> fragment.
>
>>
>>
>> Thanks
>>
>> --
>> Denuwanthi De Silva
>> Senior Software Engineer;
>> WSO2 Inc.; http://wso2.com,
>> Email: denuwan...@wso2.com
>> Blog: https://denuwanthi.wordpress.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Roshan
> Software Engineer, WSO2 Inc.
> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>



-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UUF]Handling events of fragments

2017-03-14 Thread Rajith Roshan
Hi

On Tue, Mar 14, 2017 at 7:32 PM, Denuwanthi De Silva 
wrote:

> Hi,
>
> I'm currently rendering a fragment inside a page using
> 'UUFClient.renderFragment' method.
> Then I display it in the page using "{{#defineZone}} helper.
>
> This fragment contains a button.
> When I click that button I need to do an ajax call to a micro service.
>
> I make the ajax call inside the front-end js of the current page.
> This seems not to be working, as the button is in the fragment.
>
This is may be due to, by the time you are registering the on click event
for button the dom does not actually have the button element, since
uufrender client works asynchronously.
If you use onclick attribute on the button element itself and write your
logic in the current page then this should work. No need to move it to the
fragment.

>
> So, is it ok to define a front-end js in the fragment and do the ajax call
> from it, instead of the front-end js of the current page .?
>

Fragment is a self contained re usable component. I think its better to
 have the all the front end logic related to the fragment inside that
fragment.

>
>
> Thanks
>
> --
> Denuwanthi De Silva
> Senior Software Engineer;
> WSO2 Inc.; http://wso2.com,
> Email: denuwan...@wso2.com
> Blog: https://denuwanthi.wordpress.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Roshan
Software Engineer, WSO2 Inc.
Mobile: +94-72-642-8350 <%2B94-71-554-8430>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UUF]Handling events of fragments

2017-03-14 Thread Manuranga Perera
Hi Denuwanthi,
This is not a UUF related issue, this is how DOM works. To fix register
listener to a higher node [1]. In the given sample they are using
'document', but as a best practice you should use the closest know parent,
eg: parent div of the zone you are rendering the fragment into.
For more info on how this works please read more on dom even model [2].


[1]
http://stackoverflow.com/questions/19371141/jquery-on-isnt-binding-click-events-to-dynamically-created-elements
[2] http://javascript.info/tutorial/bubbling-and-capturing

On Tue, Mar 14, 2017 at 2:02 PM, Denuwanthi De Silva 
wrote:

> Hi,
>
> I'm currently rendering a fragment inside a page using
> 'UUFClient.renderFragment' method.
> Then I display it in the page using "{{#defineZone}} helper.
>
> This fragment contains a button.
> When I click that button I need to do an ajax call to a micro service.
>
> I make the ajax call inside the front-end js of the current page.
> This seems not to be working, as the button is in the fragment.
>
> So, is it ok to define a front-end js in the fragment and do the ajax call
> from it, instead of the front-end js of the current page .?
>
>
> Thanks
>
> --
> Denuwanthi De Silva
> Senior Software Engineer;
> WSO2 Inc.; http://wso2.com,
> Email: denuwan...@wso2.com
> Blog: https://denuwanthi.wordpress.com/
>



-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] GSoC Project - Siddhi Extension Doc Auto Generation

2017-03-14 Thread Nadun De Silva
Hi,

Thank you for the response. I have researched a bit more and have few more
follow-up questions

It will not be in the current Siddhi format, we are thinking of a plain
> HTML and MD files which can be part of Siddhi Docs in Github.


Then I think when the Mojo is executed, I should create the HTML and MD
files inside the maven project so that with each push, the GitHub repos are
updated. Is this what is expected?

Can have multiple pages (one per namespace) and having index and navigation
> across is good. Please present your suggestion we can discuss and come to a
> conclusion on this.
>

Since by the time the combination happens, all the documentation is in
GitHub repos, my suggestion would be to get the content of the generated
HTML files using the GitHub contents API [1] and then combine them. But
this will be a separate program which will be run for the combination alone.

If we decide to use this approach, I would suggest implementing one of the
following or any other method for rerunning the combination process.

   - A server listening to GitHub webhooks [2]
   - A scheduled task

What is your opinion about this approach?

I also have a question about the Siddhi annotations. At the moment, all the
details are in one annotation called "@Extension" [3] and it does not
contain the "return value" of the extension. How can I fetch the return
value of functions from the current annotation system?

[1] https://developer.github.com/v3/repos/contents/#get-contents
[2] https://developer.github.com/webhooks/
[3]
https://github.com/wso2/siddhi/blob/master/modules/siddhi-annotations/src/main/java/org/wso2/siddhi/annotation/Extension.java

Thank you.

On Mon, Mar 13, 2017 at 10:04 PM, Sriskandarajah Suhothayan 
wrote:

>
>
> On Sat, Mar 11, 2017 at 8:45 PM, Nadun De Silva 
> wrote:
>
>> Hi,
>>
>> I am an undergraduate at the University of Moratuwa in my final year. I
>> also worked as an intern at WSO2 last year.
>>
>> I am interested in *"Siddhi Extension Doc Auto Generation"* GSoC
>> project. I have worked with WSO2 CEP and Siddhi during my internship and I
>> am also familiar with the Siddhi annotations.
>>
>> I went through the references provided and I would be very grateful if I
>> can get more guidance on how I can learn more details about the project.
>> Some of the questions I have are as follows.
>>
>>1. Does the final HTML pages need to be deployed into the current
>>Siddhi documentation and if so is that part of the project scope?
>>
>> It will not be in the current Siddhi format, we are thinking of a plain
> HTML and MD files which can be part of Siddhi Docs in Github.
>
>>
>>1. Does the combined documentation (Deliverable 3) need to be in the
>>same structure the current documentation is in? (If not the combination 
>> can
>>maybe be achieved by having separate pages for extension namespaces with
>>proper navigation between them)
>>
>> Can have multiple pages (one per namespace) and having index and
> navigation across is good. Please present your suggestion we can discuss
> and come to a conclusion on this.
>
>>
>>1. If I understood correctly the project does not cover the inbuilt
>>processors. Please correct me if I'm wrong.
>>
>> We have now done some improvements, and now the internal functions too
> support annotations, so they can also be generated with the approach.
>
> Regards
> Suho
>
>
>> Thank you.
>>
>> Nadun De Silva
>> Undergraduate of Computer Science and Engineering
>> University of Moratuwa
>> https://lk.linkedin.com/in/nadundesilva
>>
>
>
>
> --
>
> *S. Suhothayan*
> Associate Director / Architect & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <077%20975%206757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>



-- 

[image: profile_pic.jpg]

Nadun De Silva

Undergraduate of Computer Science and Engineering

University of Moratuwa

[image: GitHub.png]  [image: LinkedIn.png]
 [image: Facebook.png]


Mobile:

(+94) 77 8 222 607

Email:

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


[Dev] [UUF]Handling events of fragments

2017-03-14 Thread Denuwanthi De Silva
Hi,

I'm currently rendering a fragment inside a page using
'UUFClient.renderFragment' method.
Then I display it in the page using "{{#defineZone}} helper.

This fragment contains a button.
When I click that button I need to do an ajax call to a micro service.

I make the ajax call inside the front-end js of the current page.
This seems not to be working, as the button is in the fragment.

So, is it ok to define a front-end js in the fragment and do the ajax call
from it, instead of the front-end js of the current page .?


Thanks

-- 
Denuwanthi De Silva
Senior Software Engineer;
WSO2 Inc.; http://wso2.com,
Email: denuwan...@wso2.com
Blog: https://denuwanthi.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: [GSOC][CEP] Atom Plugin for Siddhi

2017-03-14 Thread Dimuth Menikgama
Hi,
I'm willing to develop a prototype for the above mentioned GSOC project.
Can you give me any suggestions on what things to try first in the plugin.

Thank you.

-- Forwarded message --
From: Dimuth Menikgama 
Date: 11 March 2017 at 19:49
Subject: [Dev][GSOC][CEP] Atom Plugin for Siddhi
To: dev@wso2.org


Hi,

I am Dimuth Menikgama, a Computer Science and Engineering Undergraduate at
University of Moratuwa, Faculty of Engineering. I worked in WSO2 in the
previous year as an Software Engineering Intern.

I'm willing to participate GSOC 2017 and I'm interested in the Project
titled as "Atom Plugin for Siddhi". I read through the description provided
in the document. I like to know more about this project regarding Error
reporting.

Error reporting in this context mean showing alerts for syntax, semantics
or logical errors right? Not for things like compile time/run-time errors?

Thank you

Regards,
Dimuth Menikgama

-- 
M. Dimuth Tharaka MenikgamaDepartment of Computer Science and Engineering,
University of Moratuwa

www.neverstopcodingblog.wordpress.comdimuthu...@cse.mrt.ac.lk | +94 71 466
9103 <+94%2071%20466%209103>

  





-- 
M. Dimuth Tharaka MenikgamaDepartment of Computer Science and Engineering,
University of Moratuwa

www.neverstopcodingblog.wordpress.comdimuthu...@cse.mrt.ac.lk | +94 71 466
9103

  

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


Re: [Dev] GSOC 2017 - Native inbound and connector for FTP/SFTP operations

2017-03-14 Thread Chanaka Lakmal
Hi Malaka,

Sure. Thanks for the suggestion. I will see to it and get back to you.

Thanks.

Best Regards.

*Chanaka Lakmal,*
Undergraduate B.Sc.Eng.(Hons.)
Department of Computer Science & Engineering,
University of Moratuwa,
Sri Lanka.

[image: LinkedIn] 

On Tue, Mar 14, 2017 at 1:41 PM, Malaka Silva  wrote:

> Hi Chanaka,
>
> Can we also try the following? This is more optimized.
>
> [1] http://java-nio-ftp-library.soft112.com/
>
> On Mon, Mar 13, 2017 at 5:04 PM, Chanaka Lakmal 
> wrote:
>
>> Hi Malaka,
>>
>> I researched for the libraries that we can use for FTP/SFTP operations in
>> addition to using Apache Commons VFS. I found out about some widely used
>> libraries such as SSHJ [1] and JSch [2] and did a comparison among them.
>> With the use of those findings I created a comparison on SSHJ, Apache
>> Commons VFS and JSch and published on my blog [3].
>>
>> Also, I have experience in JSch since I had previously worked on
>> developing a SCP transport using JSch [4] [5]. I believe its ability to
>> execute shell commands with the help of the library is a great feature in
>> JSch. According to the comparison and my experiences, JSch looks like the
>> best candidate among them and I hope to hear others' thoughts about this.
>>
>> Please share your recommendations and suggestions to get a better
>> approach to this project.
>>
>> [1] SSHJ - https://github.com/hierynomus/sshj
>> [2] JSch - http://www.jcraft.com/jsch/
>> [3] SSHJ, Apache Commons VFS and JSch comparison (blog post) -
>> https://medium.com/@ldclakmal/comparison-of-commons-vfs-sshj
>> -and-jsch-libraries-for-sftp-support-cd5a0db2fbce#.d6bux0q0f
>> [4] My SCP project (blog post) - https://medium.com/@ldclakmal/
>> scp-with-java-b7b7dbcdbc85#.b05pinv1o
>> [5] My SCP project (git) - https://github.com/ldclakmal/SCPTransport
>>
>> Thanks.
>>
>>
>> Best Regards.
>>
>> *Chanaka Lakmal,*
>> Undergraduate B.Sc.Eng.(Hons.)
>> Department of Computer Science & Engineering,
>> University of Moratuwa,
>> Sri Lanka.
>>
>> [image: LinkedIn] 
>>
>> On Fri, Mar 3, 2017 at 8:57 AM, Malaka Silva  wrote:
>>
>>> Hi Chanaka,
>>>
>>> Sounds good. Looking forward to hear from you soon.
>>>
>>> On Thu, Mar 2, 2017 at 6:54 PM, Chanaka Lakmal 
>>> wrote:
>>>
 Hi Malaka,

 Thank you for your response.

 As you mentioned, you have done a similar development to optimize and
 manage local file system using Java NIO [1] instead of Commons-vfs. [2] So
 my goal is to find such mechanism which is more unique to ftp/sftp
 protocol, in order to support file operations via ftp/sftp protocol.

 So, I will come up with my suggestions with best mechanism that is to
 be used for file operations via ftp/sftp protocol rather than Commons-vfs.
 Please share if you have any recommended methods or suggestions to get
 a better approach to this project.

 Also I do confirm that I am a full time student and eligible to
 participate GSoC.

 [1] https://store.wso2.com/store/assets/esbconnector/details
 /9ac7accf-6535-46c2-853e-9ca75c23cdef
 [2] http://commons.apache.org/proper/commons-vfs/index.html

 Thanks.

 Best Regards.

 *Chanaka Lakmal,*
 Undergraduate B.Sc.Eng.(Hons.)
 Department of Computer Science & Engineering,
 University of Moratuwa,
 Sri Lanka.

 [image: LinkedIn] 

 On Tue, Feb 28, 2017 at 10:29 PM, Malaka Silva  wrote:

> Hi Chanaka,
>
> Thank you for sending the mail.
>
> Currently we have file inbound endpoint [1] and file connector [2] to
> support file operations in WSO2 ESB.
>
> However this is written on top of common-vfs. Common vfs support
> variety of file systems or protocols. eg: ftp, samba etc. Due to that this
> is not optimum for ftp/sftp. Also this provides limited options.
>
> We have done a similar development to manage local file system using
> Java NIO. [3] The idea of this project is to come up with similar inbound
> and connector for ftp/sftp protocol.
>
> Also please confirm that you are a full time student and currently not
> employed since it is against GSoC rules.
>
> [1] https://docs.wso2.com/display/ESB500/File+Inbound+Protocol
> [2] https://store.wso2.com/store/assets/esbconnector/details
> /48bab332-c6a6-4f5a-9b79-17e29c7ad4c6
> [3] https://store.wso2.com/store/assets/esbconnector/details
> /9ac7accf-6535-46c2-853e-9ca75c23cdef
>
> On Tue, Feb 28, 2017 at 7:53 AM, Chanaka Lakmal 
> wrote:
>
>> Hi,
>>
>> I'm interested in the project *Native inbound and connector for
>> FTP/SFTP operations*. I would like to know more information
>> regarding this.

Re: [Dev] [MSF4J] Can we provide HTTP handler args in Interceptor level?

2017-03-14 Thread Malintha Amarasinghe
Thanks for the update Vidura!

On Tue, Mar 14, 2017 at 3:50 PM, Vidura Nanayakkara 
wrote:

> Hi Sanjeewa and Malintha,
>
> Myself and Azeez had a discussion on the discussed enhancement in MSF4J
> and we agreed to deliver it. We will be releasing MSF4J along with this
> change, Carbon Metrics and Interceptors. We will let you know the ETA
> probably in this week.
>
> Thank you,
> Vidura Nanayakkara
>
> On Tue, Mar 14, 2017 at 1:20 PM, Sanjeewa Malalgoda 
> wrote:
>
>> Hi All,
>> Appreciate your urgent attention on this as we are depend on this feature
>> for our M2 release.
>>
>> Thanks,
>> sanjeewa.
>>
>> On Thu, Mar 9, 2017 at 6:18 PM, Malintha Amarasinghe 
>> wrote:
>>
>>> Hi Azeez,
>>>
>>> We would be very grateful if you can review the suggested approach above
>>> by Vidura.
>>>
>>> Thanks!and
>>> Malintha
>>>
>>> On Thu, Mar 2, 2017 at 12:41 PM, Vidura Nanayakkara 
>>> wrote:
>>>
 Hi Azeez,

 We had a discussion regarding this. Following are the solutions we
 decided

- Set object handler as a property in the Request instance (just
like we are setting the HTTP method according to [1]
)

 With this change you can access the handler through the Request
 instance just like as shown below:

 request.getProperty("HANDLER")


- Include method arguments in the Request instance.

 As for what we suggested in the previous discussion,

 *I have also tried is to build the Request inside the Interceptor and
 get the Java method and the args from the Request (which was suggested
 during the offline discussion)*

 With the pull request [1]  we
 are building the Request before the interceptors are executed. So this is
 handled.

 WDYT?

 [1] Interceptors pull request 

 On Thu, Mar 2, 2017 at 10:33 AM, Vidura Nanayakkara 
 wrote:

> Hi Malintha,
>
> As for the questions, you asked regarding the 1st approach I suggested:
>
>
> * - Write a custom context provider of your own which will describe
> how the injected value is generated by implementing a certain interface.In
> the custom context provider, will we have access to the internal objects
> like [1] so that we can use them to generate the custom context object?*
>
> As per my understanding using approach 1 (custom context providers) it
> would be a no. As I mentioned in the previous response, by default we can
> access the Request, Response, HttpStreamer, FormParamIterator and
> MultivaluedMap instances using the @Context annotation. If you need access
> to the MSF4J internal objects like [1]
> ,
> we need to make it accessible by default using the @Context annotation.
>
> The purpose of the custom context provider is to help you inject
> custom values by specifying the logic on how the value are generated
> (probably to feed the arguments to your interceptors and the HTTP 
> methods).
>
>- *Register the custom context provider to the MSF4J*
>- *Inject the value using @Context annotation (Ex:-
>@Context(String key) Object[] arguments)*
>
> *Will it be possible to access the injected values within
> Interceptors? Since one of our requirement is to come up with an
> Interceptor to validate ETags in a central place, we need to access them
> within the Interceptor.*
>
> Yes, this would be an enhancement to MSF4J (with or without custom
> context provider implementation).
>
> However, it would be great if we can have a discussion regarding this.
>
> [1] HttpResourceModel MSF4J internal object
> 
>
>
> On Wed, Mar 1, 2017 at 10:41 AM, Malintha Amarasinghe <
> malint...@wso2.com> wrote:
>
>>
>>
>> On Wed, Mar 1, 2017 at 9:19 AM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Malintha,
>>>
>>> ATM if you try to access the request payload at the interceptor
>>> level, you won't be able to access that again in the service level and 
>>> it
>>> will cause the particular thread to get wait.
>>> Shall we have a quick discussion on that today? That will help to
>>> come up with a solution for this.
>>>
>> Sure Thusitha. Let's have a discussion today. That would be great.
>>
>> Thanks!
>> Malintha
>>
>>>
>>> Thanks
>>> Thusitha
>>>
>>> On Tue, Feb 28, 2017 at 10:29 PM, Malintha 

Re: [Dev] How to Wrap Java Exception in UUF

2017-03-14 Thread Gayan Gunawardana
I could able to get errorCode as well since cause.getTargetException()
provide UserPortalUIException.

On Tue, Mar 14, 2017 at 9:24 AM, Gayan Gunawardana  wrote:

>
>
> On Tue, Mar 14, 2017 at 9:17 AM, Ayesha Dissanayaka 
> wrote:
>
>> Hi,
>>
>> I think this[1] has to be fixed from UUF in order to be able to access
>> original exception.
>>
> Still cause.getTargetException() gives original exception, how can we get
> errorCode in that case?
>
>>
>> [1] https://github.com/wso2/carbon-uuf/issues/177
>>
>> Thanks!
>> -Ayesha
>>
>>
>> On Tue, Mar 14, 2017 at 9:10 AM, Gayan Gunawardana 
>> wrote:
>>
>>>
>>> Hi UUF team,
>>>
>>> Client OSGI service throw  UserPortalUIException with error message
>>> (message) and error code (errorCode).
>>>
>>> String error = "Failed to update user password.";
>>> LOGGER.error(error, e);
>>> throw new UserPortalUIException(error, e.getErrorCode());
>>>
>>> Form client side .js I can retrieve error message as below
>>>
>>> } catch (e) {
>>> var message = e.message;
>>> var cause = e.getCause();
>>> if (cause != null) {
>>> //the exceptions thrown by the actual osgi service method is 
>>> wrapped inside a InvocationTargetException.
>>> if (cause instanceof 
>>> java.lang.reflect.InvocationTargetException) {
>>> message = cause.getTargetException().message;
>>> }
>>> }
>>>
>>> Is there a way to retrieve errorCode as well ?
>>>
>>> Thanks,
>>> Gayan
>>>
>>> --
>>> Gayan Gunawardana
>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>> Email: ga...@wso2.com
>>> Mobile: +94 (71) 8020933
>>>
>>
>>
>>
>> --
>> *Ayesha Dissanayaka*
>> Senior Software Engineer,
>> WSO2, Inc : http://wso2.com
>> 
>> 20, Palm grove Avenue, Colombo 3
>> E-Mail: aye...@wso2.com 
>>
>
>
>
> --
> 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] GSoC 2017 Project proposal 6: Eclipse plugin for Siddhi

2017-03-14 Thread Udeshika Sewwandi
Hi,
I have skipped the path with Xtext. I have already started implementing
using Antlr and I am on implementing the PoC for syntax highlighting and
content assistance(auto completion) for a sample grammar file based on
simple maths expressions for now. I will update about it in the near
future. Thank you.

Best Regards,
-Sewwandi

On 13 March 2017 at 21:02, Sriskandarajah Suhothayan  wrote:

> We can do this but this will take a lot of effort in implementing Antlr to 
> Xtext
> which will be a bit of a work and may be a bit hard to maintain.
> +1 If no other options.
>
> Regards
> Suho
>
> On Mon, Mar 13, 2017 at 10:38 AM, Udeshika Sewwandi <
> sewwandikaus...@cse.mrt.ac.lk> wrote:
>
>> Hi,
>> For the project can I use Antlr 4 IDE in Eclipse which is built on Xtext
>> ? From that an Antlr 4 project can be created and grammar file,lexer and
>> parser are generated automatically. If not through command line the same
>> lexer and parser can be generated using the grammar file and can be
>> imported in eclipse IDE for further development. What is your idea on this?
>> Thank you.
>>
>> Best Regards,
>> -Sewwandi
>>
>> On 8 March 2017 at 17:27, Udeshika Sewwandi <
>> sewwandikaus...@cse.mrt.ac.lk> wrote:
>>
>>> Hi,
>>> I have gone through almost all the references given. I found that
>>> instead of antlr we can use Xtext framework [1] which has features for
>>> Eclipse also. Currently I am following the references given in [2],[3] to
>>> get familiarize with editor plugins for Eclipse. Is there any eclipse
>>> version that needs to be used for the project? Actually I couldn't test the
>>> sample plugin in a tutorial since I couldn't reach the run-time workbench
>>> of Eclipse. Do you have any idea why this is happening ? Thank you.
>>>
>>>
>>> [1] https://eclipse.org/Xtext/
>>> [2] http://www.wideskills.com/eclipse-plugin-tutorial/eclips
>>> e-plugin-editors-tutorial
>>> [3] http://www.vogella.com/tutorials/EclipseEditors/article.html
>>>
>>> Best Regards,
>>> -Sewwandi
>>>
>>> On 7 March 2017 at 16:19, Nirmal Fernando  wrote:
>>>
 Great. Please keep the discussion in dev@wso2.org mailing list.

 On Tue, Mar 7, 2017 at 3:37 PM, Udeshika Sewwandi <
 sewwandikaus...@cse.mrt.ac.lk> wrote:

> Hi,
> Thank you very much for replying. Currently I am familiarizing with
> the Eclipse plugin environment and Siddhi.
>
> Best Regards,
> -Sewwandi
>
> On 7 March 2017 at 12:25, Sriskandarajah Suhothayan 
> wrote:
>
>> We need an editor that supports Siddhi grammar
>> https://github.com/wso2/siddhi/blob/master/modules/siddhi-qu
>> ery-compiler/src/main/antlr4/org/wso2/siddhi/query/compiler/
>> SiddhiQL.g4
>>
>> Can start with a PoC on implementing an editor with syntax
>> highlighting and auto-completion not necessary for Siddhi but for some
>> sample language and then look into how we can do the same for Siddhi.
>>
>> Regards
>> Suho
>>
>> On Tue, Mar 7, 2017 at 10:24 AM, Nirmal Fernando 
>> wrote:
>>
>>> Hi Udeshika,
>>>
>>> Thanks for your interest in this project. Suho (CCied) and I will be
>>> your mentors. You can start familiarizing yourself with Siddhi and 
>>> Eclipse
>>> plugin development. Let us know if you have any specific questions.
>>>
>>> On Mon, Mar 6, 2017 at 11:20 AM, Udeshika Sewwandi <
>>> sewwandikaus...@cse.mrt.ac.lk> wrote:
>>>
 Hi,
 I am Udeshika Sewwandi, a final year undergraduate of Department of
 Computer Science and Engineering of University of Moratuwa. I am 
 interested
 with the GSoC 2017 Proposal 6: "Eclipse plugin for Siddhi" .I'm going
 through the references provided for the project and can you please 
 direct
 me to the responsible mentors to get more familiarize with the 
 project. We
 are going to integrate WSO2 CEP for my final year project. So I 
 thought of
 contributing to Siddhi which will be useful for future Siddhi users. 
 Thank
 you.

 Best Regards,
 -Sewwandi

 --
 K.A.U.Sewwandi
 Undergraduate
 Department of Computer Science and Engineering
 Faculty of Engineering
 University of Moratuwa

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


>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Technical Lead - Analytics Team, WSO2 Inc.
>>> Mobile: +94715779733 <071%20577%209733>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Associate Director / Architect & Team Lead of WSO2 Complex Event
>> Processor
>> 

Re: [Dev] WSO2 Committers += Lakshani Gamage

2017-03-14 Thread Chamalee De Silva
Congrats Lakshani !!!

On Tue, Mar 14, 2017 at 12:32 PM, Harshan Liyanage  wrote:

> Congratz Lakshani 
>
> Harshan Liyanage
> EMM/IoT TG
> Mobile: *+94765672894*
> Email: hars...@wso2.com
> Blog : http://harshanliyanage.blogspot.com/
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
> On Tue, Mar 14, 2017 at 11:43 AM, Menaka Jayawardena 
> wrote:
>
>> Congratz Lakshani!
>>
>> On Tue, Mar 14, 2017 at 9:42 AM, Rushmin Fernando 
>> wrote:
>>
>>> Hi All,
>>>
>>> It's my pleasure to welcome Lakshani Gamage as a WSO2 Committer.
>>>
>>> Lakshani had been a valuable contributor to the App Manager team and
>>> she is currently a member of the IoT team. In recognition of her
>>> contribution, dedication, and commitment she has been voted as a WSO2
>>> committer.
>>>
>>> Lakshani, welcome aboard and keep up the good work!
>>>
>>> Regards,
>>>
>>> --
>>> *Best Regards*
>>>
>>> *Rushmin Fernando*
>>> *Technical Lead*
>>>
>>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>>
>>> mobile : +94775615183
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Menaka Jayawardena*
>> *Software Engineer - WSO2 Inc*
>> *Tel : 071 350 5470*
>> *LinkedIn: https://lk.linkedin.com/in/menakajayawardena
>> *
>> *Blog: https://menakamadushanka.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
>
>


-- 
Thanks & Regards,

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

Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Shall we implement transformation methods in claim API.

2017-03-14 Thread Harsha Thirimanna
Hi Lanka,

Shall we implement these two methods also in claim service side by merging
dialect and profile ?

public Set transformToNativeDialect(Set
otherDialectClaims, String claimDialect, Optional
profile) {

public Set transformToOtherDialect(Set
nativeDialectClaims, String dialect, Optional
profile) {


thanks

*Harsha Thirimanna*
*Associate Tech Lead | WSO2*

Email: hars...@wso2.com
Mob: +94715186770
Blog: http://harshathirimanna.blogspot.com/
Twitter: http://twitter.com/harshathirimann
Linked-In: linked-in:
http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122

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


Re: [Dev] [MSF4J] Can we provide HTTP handler args in Interceptor level?

2017-03-14 Thread Vidura Nanayakkara
Hi Sanjeewa and Malintha,

Myself and Azeez had a discussion on the discussed enhancement in MSF4J and
we agreed to deliver it. We will be releasing MSF4J along with this change,
Carbon Metrics and Interceptors. We will let you know the ETA probably in
this week.

Thank you,
Vidura Nanayakkara

On Tue, Mar 14, 2017 at 1:20 PM, Sanjeewa Malalgoda 
wrote:

> Hi All,
> Appreciate your urgent attention on this as we are depend on this feature
> for our M2 release.
>
> Thanks,
> sanjeewa.
>
> On Thu, Mar 9, 2017 at 6:18 PM, Malintha Amarasinghe 
> wrote:
>
>> Hi Azeez,
>>
>> We would be very grateful if you can review the suggested approach above
>> by Vidura.
>>
>> Thanks!and
>> Malintha
>>
>> On Thu, Mar 2, 2017 at 12:41 PM, Vidura Nanayakkara 
>> wrote:
>>
>>> Hi Azeez,
>>>
>>> We had a discussion regarding this. Following are the solutions we
>>> decided
>>>
>>>- Set object handler as a property in the Request instance (just
>>>like we are setting the HTTP method according to [1]
>>>)
>>>
>>> With this change you can access the handler through the Request instance
>>> just like as shown below:
>>>
>>> request.getProperty("HANDLER")
>>>
>>>
>>>- Include method arguments in the Request instance.
>>>
>>> As for what we suggested in the previous discussion,
>>>
>>> *I have also tried is to build the Request inside the Interceptor and
>>> get the Java method and the args from the Request (which was suggested
>>> during the offline discussion)*
>>>
>>> With the pull request [1]  we
>>> are building the Request before the interceptors are executed. So this is
>>> handled.
>>>
>>> WDYT?
>>>
>>> [1] Interceptors pull request 
>>>
>>> On Thu, Mar 2, 2017 at 10:33 AM, Vidura Nanayakkara 
>>> wrote:
>>>
 Hi Malintha,

 As for the questions, you asked regarding the 1st approach I suggested:


 * - Write a custom context provider of your own which will describe how
 the injected value is generated by implementing a certain interface.In the
 custom context provider, will we have access to the internal objects like
 [1] so that we can use them to generate the custom context object?*

 As per my understanding using approach 1 (custom context providers) it
 would be a no. As I mentioned in the previous response, by default we can
 access the Request, Response, HttpStreamer, FormParamIterator and
 MultivaluedMap instances using the @Context annotation. If you need access
 to the MSF4J internal objects like [1]
 ,
 we need to make it accessible by default using the @Context annotation.

 The purpose of the custom context provider is to help you inject custom
 values by specifying the logic on how the value are generated (probably to
 feed the arguments to your interceptors and the HTTP methods).

- *Register the custom context provider to the MSF4J*
- *Inject the value using @Context annotation (Ex:- @Context(String
key) Object[] arguments)*

 *Will it be possible to access the injected values within Interceptors?
 Since one of our requirement is to come up with an Interceptor to validate
 ETags in a central place, we need to access them within the Interceptor.*

 Yes, this would be an enhancement to MSF4J (with or without custom
 context provider implementation).

 However, it would be great if we can have a discussion regarding this.

 [1] HttpResourceModel MSF4J internal object
 


 On Wed, Mar 1, 2017 at 10:41 AM, Malintha Amarasinghe <
 malint...@wso2.com> wrote:

>
>
> On Wed, Mar 1, 2017 at 9:19 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Malintha,
>>
>> ATM if you try to access the request payload at the interceptor
>> level, you won't be able to access that again in the service level and it
>> will cause the particular thread to get wait.
>> Shall we have a quick discussion on that today? That will help to
>> come up with a solution for this.
>>
> Sure Thusitha. Let's have a discussion today. That would be great.
>
> Thanks!
> Malintha
>
>>
>> Thanks
>> Thusitha
>>
>> On Tue, Feb 28, 2017 at 10:29 PM, Malintha Amarasinghe <
>> malint...@wso2.com> wrote:
>>
>>> + NuwanD, Sanjeewa
>>>
>>> On Tue, Feb 28, 2017 at 10:28 PM, Malintha Amarasinghe <
>>> malint...@wso2.com> wrote:
>>>
 Hi Vidura,

 I went through the links and the approaches 

Re: [Dev] [GSoC 2017][ESB]Native inbound and connector for FTP/SFTP operations

2017-03-14 Thread Hasitha Jayasundara
Hi Malaka,

Thank you for the reply.The server part was an additional implementation I
went through to get an understanding about client server programming in
java using sockets.I'll study the links provided and let you know if
there's any issue.

Thanks

On Tue, Mar 14, 2017 at 1:43 PM, Malaka Silva  wrote:

> Hi Hasitha,
>
> Thank you for the explanation. But you have misunderstood the requirement.
>
> Basically the requirement is FTP / SFTP server will already exists and
> with the new connectors user should be able to access the files already
> exists in the server using ESB.
>
> What I see is you tried to implement the server which is not in the scope
> of this project.
>
> Following may help your research.
>
> [1] http://java-nio-ftp-library.soft112.com/
> [2] http://www.onkarjoshi.com/blog/126/which-library-to-use-
> for-ftp-sftp-ftps-file-transfer-in-java/
>
> On Tue, Mar 14, 2017 at 7:23 AM, Hasitha Jayasundara <
> hasithajayasunda...@gmail.com> wrote:
>
>> Hi all,
>>
>> I did some changes in FTP client and server so that it can be tested
>> easily. Refer the readme [1] for further information.
>>
>> Thanks
>>
>> [1] https://github.com/hasithajayasundara/Simple-FTP-client-and-server
>>
>> On Tue, Mar 14, 2017 at 6:53 AM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> On my research I found many java SSH libraries that support SFTP.The
>>> main differences between these libraries can be given as,
>>>
>>>- client authentication over password / public key
>>>- server authentication
>>>- upload /download files from local host over SFTP
>>>- download files to local host over SFTP
>>>- file operations on the remote host like move, delete, list all
>>>children of a given folder (filtering after type like file or folder) 
>>> over
>>>SFTP
>>>- execute plain shell commands
>>>
>>> Considering the popularity and the ease of implementation JSch and SSHJ
>>> are the best libraries I found other than apacheVFS .The details on how
>>> these libraries differ from each other according to above mentioned points
>>> are included in the following link.[1] Currently the implementation only
>>> supports apache-vfs.I will update my implementation with JScH and SSHJ soon.
>>>
>>> Thanks
>>>
>>> [1] https://www.javacodegeeks.com/2015/08/commons-vfs-sshj-and-j
>>> sch-in-comparison.html (Comparison of apache-vfs , SSHJ and JScH )
>>>
>>> On Tue, Mar 14, 2017 at 3:32 AM, Hasitha Jayasundara <
>>> hasithajayasunda...@gmail.com> wrote:
>>>
 Hi all,

 I 've added sftp support to the implementation [2] in order to get an
 idea about how apache vfs is used in file transferring.I used
 com.jcraft(jsch),apache.commons and commons-logging dependencies in
 the implementation which you can find in the pom.
 To run the program,

 1.Add server details to the SFTPProperties.txt

 serverAddress=[server address]
 userId=[userId]
 password=[user password]
 remoteDirectory=[Remote folder name]/
 localDirectory=/LocalSFTP/  *don't change this

 You can simply setup a openssh sftp server [1] and add the credentials
 to the txt file above mentioned
 Your local file folder is LocalSFTP.Add files you want to exchange in
 that folder.
 Your remote file folder is [Remote folder name](You can create a folder
 with a name you preferred in the server)

 2. Build the pom.xml
 3. Run the scripts SFTPDownload.java and SFTPUpload.java

 [1] http://askubuntu.com/questions/420652/how-to-setup-a-restric
 ted-sftp-server-on-ubuntu
 [2] https://github.com/hasithajayasundara/Simple-FTP-client-and-server

 On Mon, Mar 13, 2017 at 7:16 PM, Hasitha Jayasundara <
 hasithajayasunda...@gmail.com> wrote:

> Hi Malaka,
>
> No need to install any Server locally.You can find the server
> implementation in FTPServer.java.
>
> 1. Run FTPServer.java
> 2. Run FTPClient.java
> 3. In the folders Client and Server include the files you need to
> exchange.
> (Change file paths according to your development environment
>   eg - File f=new File("Add your file path/Client/"+fileName);
>  File f=new File("Add your file path/Server/"+fileName);)
> 4.In FTPClient.java console you can find
>   1.SendFile
>   2.ReceiveFile
>
> Include the number of the operation you need.(eg - 1 for SendFile, 2
> for ReceiveFile ).And you can see it's working.(Include files inside 
> Client
> and Server folders.Otherwise the console would outputs "File not found").
>
> On Mon, Mar 13, 2017 at 6:09 PM, Malaka Silva  wrote:
>
>> +Kevin
>>
>> On Mon, Mar 13, 2017 at 6:09 PM, Malaka Silva 
>> wrote:
>>
>>> Hi Hasitha,
>>>
>>> How did you test the sample?
>>>
>>> Did you install a FTP/SFTP server locally and 

Re: [Dev] [GSoC 2017][ESB]Native inbound and connector for FTP/SFTP operations

2017-03-14 Thread Malaka Silva
Hi Hasitha,

Thank you for the explanation. But you have misunderstood the requirement.

Basically the requirement is FTP / SFTP server will already exists and with
the new connectors user should be able to access the files already exists
in the server using ESB.

What I see is you tried to implement the server which is not in the scope
of this project.

Following may help your research.

[1] http://java-nio-ftp-library.soft112.com/
[2]
http://www.onkarjoshi.com/blog/126/which-library-to-use-for-ftp-sftp-ftps-file-transfer-in-java/

On Tue, Mar 14, 2017 at 7:23 AM, Hasitha Jayasundara <
hasithajayasunda...@gmail.com> wrote:

> Hi all,
>
> I did some changes in FTP client and server so that it can be tested
> easily. Refer the readme [1] for further information.
>
> Thanks
>
> [1] https://github.com/hasithajayasundara/Simple-FTP-client-and-server
>
> On Tue, Mar 14, 2017 at 6:53 AM, Hasitha Jayasundara <
> hasithajayasunda...@gmail.com> wrote:
>
>> Hi all,
>>
>> On my research I found many java SSH libraries that support SFTP.The main
>> differences between these libraries can be given as,
>>
>>- client authentication over password / public key
>>- server authentication
>>- upload /download files from local host over SFTP
>>- download files to local host over SFTP
>>- file operations on the remote host like move, delete, list all
>>children of a given folder (filtering after type like file or folder) over
>>SFTP
>>- execute plain shell commands
>>
>> Considering the popularity and the ease of implementation JSch and SSHJ
>> are the best libraries I found other than apacheVFS .The details on how
>> these libraries differ from each other according to above mentioned points
>> are included in the following link.[1] Currently the implementation only
>> supports apache-vfs.I will update my implementation with JScH and SSHJ soon.
>>
>> Thanks
>>
>> [1] https://www.javacodegeeks.com/2015/08/commons-vfs-sshj-and-j
>> sch-in-comparison.html (Comparison of apache-vfs , SSHJ and JScH )
>>
>> On Tue, Mar 14, 2017 at 3:32 AM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I 've added sftp support to the implementation [2] in order to get an
>>> idea about how apache vfs is used in file transferring.I used
>>> com.jcraft(jsch),apache.commons and commons-logging dependencies in the
>>> implementation which you can find in the pom.
>>> To run the program,
>>>
>>> 1.Add server details to the SFTPProperties.txt
>>>
>>> serverAddress=[server address]
>>> userId=[userId]
>>> password=[user password]
>>> remoteDirectory=[Remote folder name]/
>>> localDirectory=/LocalSFTP/  *don't change this
>>>
>>> You can simply setup a openssh sftp server [1] and add the credentials
>>> to the txt file above mentioned
>>> Your local file folder is LocalSFTP.Add files you want to exchange in
>>> that folder.
>>> Your remote file folder is [Remote folder name](You can create a folder
>>> with a name you preferred in the server)
>>>
>>> 2. Build the pom.xml
>>> 3. Run the scripts SFTPDownload.java and SFTPUpload.java
>>>
>>> [1] http://askubuntu.com/questions/420652/how-to-setup-a-restric
>>> ted-sftp-server-on-ubuntu
>>> [2] https://github.com/hasithajayasundara/Simple-FTP-client-and-server
>>>
>>> On Mon, Mar 13, 2017 at 7:16 PM, Hasitha Jayasundara <
>>> hasithajayasunda...@gmail.com> wrote:
>>>
 Hi Malaka,

 No need to install any Server locally.You can find the server
 implementation in FTPServer.java.

 1. Run FTPServer.java
 2. Run FTPClient.java
 3. In the folders Client and Server include the files you need to
 exchange.
 (Change file paths according to your development environment
   eg - File f=new File("Add your file path/Client/"+fileName);
  File f=new File("Add your file path/Server/"+fileName);)
 4.In FTPClient.java console you can find
   1.SendFile
   2.ReceiveFile

 Include the number of the operation you need.(eg - 1 for SendFile, 2
 for ReceiveFile ).And you can see it's working.(Include files inside Client
 and Server folders.Otherwise the console would outputs "File not found").

 On Mon, Mar 13, 2017 at 6:09 PM, Malaka Silva  wrote:

> +Kevin
>
> On Mon, Mar 13, 2017 at 6:09 PM, Malaka Silva  wrote:
>
>> Hi Hasitha,
>>
>> How did you test the sample?
>>
>> Did you install a FTP/SFTP server locally and try this use case?
>>
>> On Mon, Mar 13, 2017 at 8:05 AM, Hasitha Jayasundara <
>> hasithajayasunda...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I have implemented a simple FTP client and server using Java [1] to
>>> get a better understanding and trying to extend this to support SFTP 
>>> also.
>>> Will update the implementation with new technologies and mechanisms 
>>> found.
>>>
>>> [1] 

Re: [Dev] GSOC 2017 - Native inbound and connector for FTP/SFTP operations

2017-03-14 Thread Malaka Silva
Hi Chanaka,

Can we also try the following? This is more optimized.

[1] http://java-nio-ftp-library.soft112.com/

On Mon, Mar 13, 2017 at 5:04 PM, Chanaka Lakmal  wrote:

> Hi Malaka,
>
> I researched for the libraries that we can use for FTP/SFTP operations in
> addition to using Apache Commons VFS. I found out about some widely used
> libraries such as SSHJ [1] and JSch [2] and did a comparison among them.
> With the use of those findings I created a comparison on SSHJ, Apache
> Commons VFS and JSch and published on my blog [3].
>
> Also, I have experience in JSch since I had previously worked on
> developing a SCP transport using JSch [4] [5]. I believe its ability to
> execute shell commands with the help of the library is a great feature in
> JSch. According to the comparison and my experiences, JSch looks like the
> best candidate among them and I hope to hear others' thoughts about this.
>
> Please share your recommendations and suggestions to get a better approach
> to this project.
>
> [1] SSHJ - https://github.com/hierynomus/sshj
> [2] JSch - http://www.jcraft.com/jsch/
> [3] SSHJ, Apache Commons VFS and JSch comparison (blog post) -
> https://medium.com/@ldclakmal/comparison-of-commons-vfs-sshj
> -and-jsch-libraries-for-sftp-support-cd5a0db2fbce#.d6bux0q0f
> [4] My SCP project (blog post) - https://medium.com/@ldclakmal/
> scp-with-java-b7b7dbcdbc85#.b05pinv1o
> [5] My SCP project (git) - https://github.com/ldclakmal/SCPTransport
>
> Thanks.
>
>
> Best Regards.
>
> *Chanaka Lakmal,*
> Undergraduate B.Sc.Eng.(Hons.)
> Department of Computer Science & Engineering,
> University of Moratuwa,
> Sri Lanka.
>
> [image: LinkedIn] 
>
> On Fri, Mar 3, 2017 at 8:57 AM, Malaka Silva  wrote:
>
>> Hi Chanaka,
>>
>> Sounds good. Looking forward to hear from you soon.
>>
>> On Thu, Mar 2, 2017 at 6:54 PM, Chanaka Lakmal 
>> wrote:
>>
>>> Hi Malaka,
>>>
>>> Thank you for your response.
>>>
>>> As you mentioned, you have done a similar development to optimize and
>>> manage local file system using Java NIO [1] instead of Commons-vfs. [2] So
>>> my goal is to find such mechanism which is more unique to ftp/sftp
>>> protocol, in order to support file operations via ftp/sftp protocol.
>>>
>>> So, I will come up with my suggestions with best mechanism that is to be
>>> used for file operations via ftp/sftp protocol rather than Commons-vfs.
>>> Please share if you have any recommended methods or suggestions to get
>>> a better approach to this project.
>>>
>>> Also I do confirm that I am a full time student and eligible to
>>> participate GSoC.
>>>
>>> [1] https://store.wso2.com/store/assets/esbconnector/details
>>> /9ac7accf-6535-46c2-853e-9ca75c23cdef
>>> [2] http://commons.apache.org/proper/commons-vfs/index.html
>>>
>>> Thanks.
>>>
>>> Best Regards.
>>>
>>> *Chanaka Lakmal,*
>>> Undergraduate B.Sc.Eng.(Hons.)
>>> Department of Computer Science & Engineering,
>>> University of Moratuwa,
>>> Sri Lanka.
>>>
>>> [image: LinkedIn] 
>>>
>>> On Tue, Feb 28, 2017 at 10:29 PM, Malaka Silva  wrote:
>>>
 Hi Chanaka,

 Thank you for sending the mail.

 Currently we have file inbound endpoint [1] and file connector [2] to
 support file operations in WSO2 ESB.

 However this is written on top of common-vfs. Common vfs support
 variety of file systems or protocols. eg: ftp, samba etc. Due to that this
 is not optimum for ftp/sftp. Also this provides limited options.

 We have done a similar development to manage local file system using
 Java NIO. [3] The idea of this project is to come up with similar inbound
 and connector for ftp/sftp protocol.

 Also please confirm that you are a full time student and currently not
 employed since it is against GSoC rules.

 [1] https://docs.wso2.com/display/ESB500/File+Inbound+Protocol
 [2] https://store.wso2.com/store/assets/esbconnector/details
 /48bab332-c6a6-4f5a-9b79-17e29c7ad4c6
 [3] https://store.wso2.com/store/assets/esbconnector/details
 /9ac7accf-6535-46c2-853e-9ca75c23cdef

 On Tue, Feb 28, 2017 at 7:53 AM, Chanaka Lakmal 
 wrote:

> Hi,
>
> I'm interested in the project *Native inbound and connector for
> FTP/SFTP operations*. I would like to know more information regarding
> this.
>
> I am Chanaka Lakmal, an final year undergraduate from Department of
> Computer Science and Engineering, University of Moratuwa. I have the basic
> knowledge on Java NIO, File Systems and I have been working with ESB and
> connectors.
>
> Initially I went through following [1] to understand about File
> Inbound Protocol and I would like to know more about this project,
> especially on the expected outcomes and the scope of the project.
>
> [1] - 

Re: [Dev] [IS] Returning to application with authentication failure state

2017-03-14 Thread Danushka Fernando
Managed to return to application with following. But still working on
sending a response with this.

I added this parameter to authenticator

public boolean isMaxRetriesExceeded = false;

Then I override the retryAuthenticationEnabled as follows.

@Override
protected boolean retryAuthenticationEnabled() {

return !isMaxRetriesExceeded;
}

When authentication failed I called following code.

isMaxRetriesExceeded = AuthenticatorUtils.isMaxRetryNoExceeded(context);


public static boolean isMaxRetryNoExceeded(AuthenticationContext context) {

Map parameters = new HashMap();

if (context.getProperties() != null) {
parameters.putAll(context.getProperties());
}
Object retryCountString = parameters.get("RetryCount");
int retryCount = 1;
if (retryCountString != null) {
retryCount = Integer.parseInt(String.valueOf(retryCountString));
}
if (retryCount >= 3) {
return true;
}
retryCount++;
parameters.remove("RetryCount");
parameters.put("RetryCount", String.valueOf(retryCount));
context.setProperties(parameters);
return false;

}

Please let me know if there are concerns.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Tue, Mar 14, 2017 at 11:34 AM, Danushka Fernando 
wrote:

> Hi Harsha
> What I wants to achieve is to return a failed response to application side
> with some failure details after no of failed attempts.
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729 <+94%2071%20633%202729>
>
> On Tue, Mar 14, 2017 at 11:31 AM, Harsha Thirimanna 
> wrote:
>
>>
>> On Tue, Mar 14, 2017 at 11:07 AM, Danushka Fernando 
>> wrote:
>>
>>> Hi All
>>>
>>> I am trying to work on $subject. While looking in to $subject I found a
>>> status in AuthenticatorFlowStatus class named FAIL_COMPLETED but we
>>> haven't used it in the code. So even from the authenticator I set that
>>> value it won't take an effect. I guess we should have use that state and
>>> since we are using same framework
>>>
>>
>> ​No We are not using same framework for IS .6.0.0.
>> ​
>>
>>> for IS 6 shall we do that for IS 6?
>>>
>>
>> ​IS 6, we have  wrapper classes to return status and response object
>> instead of Enum as in first class. And around the top level handlers in
>> gateway, we have different status to handle like, CONTINUE, REDIRECT. But
>> in authentication layer, we have INCOMPLETE, AUTHENTICATE​D like that. So
>> we have two different return types in IS 6.0.0. And yes, we are using these
>> status to control the flow in IS 6.0.0.
>>
>>
>>
>>>
>>> Meanwhile have anybody tried to achieve this in IS 5.x and succeeded?
>>> Any ideas are appreciated.
>>>
>> ​What  do you exactly want to do with this framework ?​
>>
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Senior Software Engineer
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729 <+94%2071%20633%202729>
>>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Can we provide HTTP handler args in Interceptor level?

2017-03-14 Thread Sanjeewa Malalgoda
Hi All,
Appreciate your urgent attention on this as we are depend on this feature
for our M2 release.

Thanks,
sanjeewa.

On Thu, Mar 9, 2017 at 6:18 PM, Malintha Amarasinghe 
wrote:

> Hi Azeez,
>
> We would be very grateful if you can review the suggested approach above
> by Vidura.
>
> Thanks!and
> Malintha
>
> On Thu, Mar 2, 2017 at 12:41 PM, Vidura Nanayakkara 
> wrote:
>
>> Hi Azeez,
>>
>> We had a discussion regarding this. Following are the solutions we decided
>>
>>- Set object handler as a property in the Request instance (just like
>>we are setting the HTTP method according to [1]
>>)
>>
>> With this change you can access the handler through the Request instance
>> just like as shown below:
>>
>> request.getProperty("HANDLER")
>>
>>
>>- Include method arguments in the Request instance.
>>
>> As for what we suggested in the previous discussion,
>>
>> *I have also tried is to build the Request inside the Interceptor and get
>> the Java method and the args from the Request (which was suggested during
>> the offline discussion)*
>>
>> With the pull request [1]  we
>> are building the Request before the interceptors are executed. So this is
>> handled.
>>
>> WDYT?
>>
>> [1] Interceptors pull request 
>>
>> On Thu, Mar 2, 2017 at 10:33 AM, Vidura Nanayakkara 
>> wrote:
>>
>>> Hi Malintha,
>>>
>>> As for the questions, you asked regarding the 1st approach I suggested:
>>>
>>>
>>> * - Write a custom context provider of your own which will describe how
>>> the injected value is generated by implementing a certain interface.In the
>>> custom context provider, will we have access to the internal objects like
>>> [1] so that we can use them to generate the custom context object?*
>>>
>>> As per my understanding using approach 1 (custom context providers) it
>>> would be a no. As I mentioned in the previous response, by default we can
>>> access the Request, Response, HttpStreamer, FormParamIterator and
>>> MultivaluedMap instances using the @Context annotation. If you need access
>>> to the MSF4J internal objects like [1]
>>> ,
>>> we need to make it accessible by default using the @Context annotation.
>>>
>>> The purpose of the custom context provider is to help you inject custom
>>> values by specifying the logic on how the value are generated (probably to
>>> feed the arguments to your interceptors and the HTTP methods).
>>>
>>>- *Register the custom context provider to the MSF4J*
>>>- *Inject the value using @Context annotation (Ex:- @Context(String
>>>key) Object[] arguments)*
>>>
>>> *Will it be possible to access the injected values within Interceptors?
>>> Since one of our requirement is to come up with an Interceptor to validate
>>> ETags in a central place, we need to access them within the Interceptor.*
>>>
>>> Yes, this would be an enhancement to MSF4J (with or without custom
>>> context provider implementation).
>>>
>>> However, it would be great if we can have a discussion regarding this.
>>>
>>> [1] HttpResourceModel MSF4J internal object
>>> 
>>>
>>>
>>> On Wed, Mar 1, 2017 at 10:41 AM, Malintha Amarasinghe <
>>> malint...@wso2.com> wrote:
>>>


 On Wed, Mar 1, 2017 at 9:19 AM, Thusitha Thilina Dayaratne <
 thusit...@wso2.com> wrote:

> Hi Malintha,
>
> ATM if you try to access the request payload at the interceptor level,
> you won't be able to access that again in the service level and it will
> cause the particular thread to get wait.
> Shall we have a quick discussion on that today? That will help to come
> up with a solution for this.
>
 Sure Thusitha. Let's have a discussion today. That would be great.

 Thanks!
 Malintha

>
> Thanks
> Thusitha
>
> On Tue, Feb 28, 2017 at 10:29 PM, Malintha Amarasinghe <
> malint...@wso2.com> wrote:
>
>> + NuwanD, Sanjeewa
>>
>> On Tue, Feb 28, 2017 at 10:28 PM, Malintha Amarasinghe <
>> malint...@wso2.com> wrote:
>>
>>> Hi Vidura,
>>>
>>> I went through the links and the approaches you suggested and I have
>>> a couple of questions. I have also tried is to build the Request inside 
>>> the
>>> Interceptor and get the Java method and the args from the Request (which
>>> was suggested during the offline discussion). For that, I tried to get 
>>> this
>>> block of code [1] (which builds the request) inside the Interceptor. And
>>> that was successful, but I needed access to some of the internal 
>>> objects in
>>> MSF4J request path. Ex: HttpResourceModel 

Re: [Dev] [DEV][APIM][C5] - Caching requirement for OAuth2 protected microservices

2017-03-14 Thread Rajith Roshan
+Azeez, +Kishanthan

On Tue, Mar 14, 2017 at 12:57 PM, Harsha Thirimanna 
wrote:

> Hi Rajith,
>
> Yes as Shani said, do we have any final decision to do this as a platform
> level solution  ?
>
> *Harsha Thirimanna*
> *Associate Tech Lead | WSO2*
>
> Email: hars...@wso2.com
> Mob: +94715186770 <+94%2071%20518%206770>
> Blog: http://harshathirimanna.blogspot.com/
> Twitter: http://twitter.com/harshathirimann
> Linked-In: linked-in: http://www.linkedin.com/pub/
> harsha-thirimanna/10/ab8/122
> 
>
> On Mon, Mar 13, 2017 at 5:55 PM, Shani Ranasinghe  wrote:
>
>> Hi all,
>>
>> Just want to know if there has been a final decision being made on the
>> cache used?
>>
>> On Sat, Feb 25, 2017 at 12:47 AM, Rajith Roshan  wrote:
>>
>>> Hi all,
>>> Since distributed caches are no longer used in C5, we thought of using
>>> this as a local cache. If the token is missing in the cache then it will be
>>> validated using the key manager. So having this as a local cache is enough
>>> for our scenario.
>>> But the only issue we have is if token is revoked from one node, then
>>> invalid token can be there in the cache of the other node. We need a way to
>>> handle that scenario maybe using notification based cache synchorinization,
>>> JMS or using small validity period for tokens.
>>> Since IS have a requirement to replicate local cache in real time, Its
>>> better to use a platform wise caching mechanism with such capability. WDYT?
>>>
>>> Thanks!
>>> Rajith
>>>
>>> On Fri, Feb 24, 2017 at 10:22 PM, Harsha Thirimanna 
>>> wrote:
>>>
 We also did some poc using Memcache and it is like a centralized
 caching system rather than distributing cache among the nodes. And it is
 released only very light weight engine and we have to implement our own way
 to manage it.
 Anyway, don't you guys have to replicate loca cache among the other
 node in real time ? Because in that case we have to go either centralize or
 some notification based local cache synchronizer mechanism. Otherwise we
 have to find another solution for IS. Because we have that requirement. I
 think we can try out the Redis also if we think about the the cluster.
 Anyway we can't think about a distributed cache like Hazelecast again
 because of it is giving lot of issues.

 *Harsha Thirimanna*
 *Associate Tech Lead | WSO2*

 Email: hars...@wso2.com
 Mob: +94715186770 <+94%2071%20518%206770>
 Blog: http://harshathirimanna.blogspot.com/
 Twitter: http://twitter.com/harshathirimann
 Linked-In: linked-in: http://www.linkedin.com/pub/ha
 rsha-thirimanna/10/ab8/122
 

 On Fri, Feb 24, 2017 at 1:45 PM, Uvindra Dias Jayasinha <
 uvin...@wso2.com> wrote:

> Its great if we can have some feedback about this, active C5
> development needs this moving forward.
>
> @Azeez and @Kishanthan, do we have any preferences?
>
> On 24 February 2017 at 13:12, Sagara Gunathunga 
> wrote:
>
>>
>>
>>
>>
>>
>> On Fri, Feb 24, 2017 at 7:28 AM, Uvindra Dias Jayasinha <
>> uvin...@wso2.com> wrote:
>>
>>> This will function like any of the local container classes we
>>> use(example: HashMap). I think its fine to use one of the available
>>> implementations(such as Guava since we already have it as a dependency) 
>>> for
>>> this. Testing will reveal its suitability but I don't anticipate any 
>>> issues
>>> since this is not as complicated as a distributed cache.
>>>
>>
>> It's ok to pick one of the local cache implementations but make sure
>> you discuss with others without limiting to your own use case and pick a
>> good one so that others can use the same for their local caching
>> requirements, it's really ugly to use several local caching F/W across 
>> the
>> platform other than really exceptional cases.
>>
>> Thanks !
>>
>>>
>>> On 16 February 2017 at 22:45, Maduranga Siriwardena <
>>> madura...@wso2.com> wrote:
>>>
 Hi Rajith,

 I think this is a generic requirement for all the C5 based products
 rather than for this specific use case. So we need to come up with a
 solution that can be used across the platform.

 Thanks,

 On Thu, Feb 16, 2017 at 12:37 AM, Rajith Roshan 
 wrote:

> Hi all,
>
> In C5 API Manager  back end REST APIs (micro services) are
> protected using oauth2 token. Every time request comes to micro 
> services,
> interceptor will validate the access token sent in the authorization 
> header
> of the request. In order to validate the token we need to do a
> introspection call to the key manager.  We can not 

Re: [Dev] [DEV][APIM][C5] - Caching requirement for OAuth2 protected microservices

2017-03-14 Thread Harsha Thirimanna
Hi Rajith,

Yes as Shani said, do we have any final decision to do this as a platform
level solution  ?

*Harsha Thirimanna*
*Associate Tech Lead | WSO2*

Email: hars...@wso2.com
Mob: +94715186770
Blog: http://harshathirimanna.blogspot.com/
Twitter: http://twitter.com/harshathirimann
Linked-In: linked-in:
http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122


On Mon, Mar 13, 2017 at 5:55 PM, Shani Ranasinghe  wrote:

> Hi all,
>
> Just want to know if there has been a final decision being made on the
> cache used?
>
> On Sat, Feb 25, 2017 at 12:47 AM, Rajith Roshan  wrote:
>
>> Hi all,
>> Since distributed caches are no longer used in C5, we thought of using
>> this as a local cache. If the token is missing in the cache then it will be
>> validated using the key manager. So having this as a local cache is enough
>> for our scenario.
>> But the only issue we have is if token is revoked from one node, then
>> invalid token can be there in the cache of the other node. We need a way to
>> handle that scenario maybe using notification based cache synchorinization,
>> JMS or using small validity period for tokens.
>> Since IS have a requirement to replicate local cache in real time, Its
>> better to use a platform wise caching mechanism with such capability. WDYT?
>>
>> Thanks!
>> Rajith
>>
>> On Fri, Feb 24, 2017 at 10:22 PM, Harsha Thirimanna 
>> wrote:
>>
>>> We also did some poc using Memcache and it is like a centralized caching
>>> system rather than distributing cache among the nodes. And it is released
>>> only very light weight engine and we have to implement our own way to
>>> manage it.
>>> Anyway, don't you guys have to replicate loca cache among the other node
>>> in real time ? Because in that case we have to go either centralize or some
>>> notification based local cache synchronizer mechanism. Otherwise we have to
>>> find another solution for IS. Because we have that requirement. I think we
>>> can try out the Redis also if we think about the the cluster. Anyway we
>>> can't think about a distributed cache like Hazelecast again because of it
>>> is giving lot of issues.
>>>
>>> *Harsha Thirimanna*
>>> *Associate Tech Lead | WSO2*
>>>
>>> Email: hars...@wso2.com
>>> Mob: +94715186770 <+94%2071%20518%206770>
>>> Blog: http://harshathirimanna.blogspot.com/
>>> Twitter: http://twitter.com/harshathirimann
>>> Linked-In: linked-in: http://www.linkedin.com/pub/ha
>>> rsha-thirimanna/10/ab8/122
>>> 
>>>
>>> On Fri, Feb 24, 2017 at 1:45 PM, Uvindra Dias Jayasinha <
>>> uvin...@wso2.com> wrote:
>>>
 Its great if we can have some feedback about this, active C5
 development needs this moving forward.

 @Azeez and @Kishanthan, do we have any preferences?

 On 24 February 2017 at 13:12, Sagara Gunathunga 
 wrote:

>
>
>
>
>
> On Fri, Feb 24, 2017 at 7:28 AM, Uvindra Dias Jayasinha <
> uvin...@wso2.com> wrote:
>
>> This will function like any of the local container classes we
>> use(example: HashMap). I think its fine to use one of the available
>> implementations(such as Guava since we already have it as a dependency) 
>> for
>> this. Testing will reveal its suitability but I don't anticipate any 
>> issues
>> since this is not as complicated as a distributed cache.
>>
>
> It's ok to pick one of the local cache implementations but make sure
> you discuss with others without limiting to your own use case and pick a
> good one so that others can use the same for their local caching
> requirements, it's really ugly to use several local caching F/W across the
> platform other than really exceptional cases.
>
> Thanks !
>
>>
>> On 16 February 2017 at 22:45, Maduranga Siriwardena <
>> madura...@wso2.com> wrote:
>>
>>> Hi Rajith,
>>>
>>> I think this is a generic requirement for all the C5 based products
>>> rather than for this specific use case. So we need to come up with a
>>> solution that can be used across the platform.
>>>
>>> Thanks,
>>>
>>> On Thu, Feb 16, 2017 at 12:37 AM, Rajith Roshan 
>>> wrote:
>>>
 Hi all,

 In C5 API Manager  back end REST APIs (micro services) are
 protected using oauth2 token. Every time request comes to micro 
 services,
 interceptor will validate the access token sent in the authorization 
 header
 of the request. In order to validate the token we need to do a
 introspection call to the key manager.  We can not do this 
 introspection
 call to the key manager for each and every request. We need a caching 
 layer
 at the interceptor level in order to cache the access tokens.

 We are going to use local cache with small cache 

Re: [Dev] WSO2 Committers += Lakshani Gamage

2017-03-14 Thread Harshan Liyanage
Congratz Lakshani 

Harshan Liyanage
EMM/IoT TG
Mobile: *+94765672894*
Email: hars...@wso2.com
Blog : http://harshanliyanage.blogspot.com/
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.

On Tue, Mar 14, 2017 at 11:43 AM, Menaka Jayawardena 
wrote:

> Congratz Lakshani!
>
> On Tue, Mar 14, 2017 at 9:42 AM, Rushmin Fernando 
> wrote:
>
>> Hi All,
>>
>> It's my pleasure to welcome Lakshani Gamage as a WSO2 Committer.
>>
>> Lakshani had been a valuable contributor to the App Manager team and she
>> is currently a member of the IoT team. In recognition of her contribution,
>> dedication, and commitment she has been voted as a WSO2 committer.
>>
>> Lakshani, welcome aboard and keep up the good work!
>>
>> Regards,
>>
>> --
>> *Best Regards*
>>
>> *Rushmin Fernando*
>> *Technical Lead*
>>
>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>
>> mobile : +94775615183
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Menaka Jayawardena*
> *Software Engineer - WSO2 Inc*
> *Tel : 071 350 5470*
> *LinkedIn: https://lk.linkedin.com/in/menakajayawardena
> *
> *Blog: https://menakamadushanka.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


Re: [Dev] WSO2 Committers += Lakshani Gamage

2017-03-14 Thread Menaka Jayawardena
Congratz Lakshani!

On Tue, Mar 14, 2017 at 9:42 AM, Rushmin Fernando  wrote:

> Hi All,
>
> It's my pleasure to welcome Lakshani Gamage as a WSO2 Committer.
>
> Lakshani had been a valuable contributor to the App Manager team and she
> is currently a member of the IoT team. In recognition of her contribution,
> dedication, and commitment she has been voted as a WSO2 committer.
>
> Lakshani, welcome aboard and keep up the good work!
>
> Regards,
>
> --
> *Best Regards*
>
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> mobile : +94775615183
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Menaka Jayawardena*
*Software Engineer - WSO2 Inc*
*Tel : 071 350 5470*
*LinkedIn: https://lk.linkedin.com/in/menakajayawardena
*
*Blog: https://menakamadushanka.wordpress.com/
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Returning to application with authentication failure state

2017-03-14 Thread Danushka Fernando
Hi Harsha
What I wants to achieve is to return a failed response to application side
with some failure details after no of failed attempts.

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Tue, Mar 14, 2017 at 11:31 AM, Harsha Thirimanna 
wrote:

>
> On Tue, Mar 14, 2017 at 11:07 AM, Danushka Fernando 
> wrote:
>
>> Hi All
>>
>> I am trying to work on $subject. While looking in to $subject I found a
>> status in AuthenticatorFlowStatus class named FAIL_COMPLETED but we
>> haven't used it in the code. So even from the authenticator I set that
>> value it won't take an effect. I guess we should have use that state and
>> since we are using same framework
>>
>
> ​No We are not using same framework for IS .6.0.0.
> ​
>
>> for IS 6 shall we do that for IS 6?
>>
>
> ​IS 6, we have  wrapper classes to return status and response object
> instead of Enum as in first class. And around the top level handlers in
> gateway, we have different status to handle like, CONTINUE, REDIRECT. But
> in authentication layer, we have INCOMPLETE, AUTHENTICATE​D like that. So
> we have two different return types in IS 6.0.0. And yes, we are using these
> status to control the flow in IS 6.0.0.
>
>
>
>>
>> Meanwhile have anybody tried to achieve this in IS 5.x and succeeded? Any
>> ideas are appreciated.
>>
> ​What  do you exactly want to do with this framework ?​
>
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729 <+94%2071%20633%202729>
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Returning to application with authentication failure state

2017-03-14 Thread Harsha Thirimanna
On Tue, Mar 14, 2017 at 11:07 AM, Danushka Fernando 
wrote:

> Hi All
>
> I am trying to work on $subject. While looking in to $subject I found a
> status in AuthenticatorFlowStatus class named FAIL_COMPLETED but we
> haven't used it in the code. So even from the authenticator I set that
> value it won't take an effect. I guess we should have use that state and
> since we are using same framework
>

​No We are not using same framework for IS .6.0.0.
​

> for IS 6 shall we do that for IS 6?
>

​IS 6, we have  wrapper classes to return status and response object
instead of Enum as in first class. And around the top level handlers in
gateway, we have different status to handle like, CONTINUE, REDIRECT. But
in authentication layer, we have INCOMPLETE, AUTHENTICATE​D like that. So
we have two different return types in IS 6.0.0. And yes, we are using these
status to control the flow in IS 6.0.0.



>
> Meanwhile have anybody tried to achieve this in IS 5.x and succeeded? Any
> ideas are appreciated.
>
​What  do you exactly want to do with this framework ?​

>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729 <+94%2071%20633%202729>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev