Re: [Dev] [GSoC][Proposal 8]Participation in GSoC 2017

2017-02-27 Thread Randika Navagamuwa
Hi Pubudu,
 I forgot to mention that I have completed my internship at WSO2. During my
internship I have contributed[1] to WSO2 API manager. Though I have worked
with the API manager, I'm not familiar with C5 based API Manager
implementation and GO language. I'll look into these and get back to you.
Thank you for the quick reply.

[1] https://github.com/wso2/carbon-apimgt/commits/master?author=rnavagamuwa

Thank You,


*Randika Navagamuwa,*

*Department of Computer Science & Engineering,*

*University of Moratuwa,*
*Sri Lanka.*
*www.rnavagamuwa.com *
[image: lk.linkedin.com/in/rnavagamuwa/]
 [image:
https://www.facebook.com/rnavagamuwa] 
 [image: https://twitter.com/rnavagamuwa]
 [image:
https://plus.google.com/+RandikaNavagamuwa/]


On Tue, Feb 28, 2017 at 12:26 PM, Pubudu Gunatilaka 
wrote:

> Hi Randika,
>
> Thank you for your interest in the project.
>
> First of all, you can try out WSO2 API Manager 2.1.0 and get familiar with
> the product [1] and the concepts [2]. Additionally, you can try out API
> export/import feature [3] and the API Manager 2.1.0 REST APIs [4] to tryout
> the product.
>
> Currently, WSO2 API Manager team is working on Carbon 5(C5) based API
> Manager implementation and you can find the relevant repos in [5] and [6].
> When you are developing the CLI, you should use the C5 REST APIs. API
> Manager team has already added most important REST APIs and we are working
> on adding new REST APIs based on the functionalities. Meantime, you can
> also get familiar with GO language and learn the concepts.
>
> As described in the project description you need to develop a CLI tool for
> API Manager. You can also check the available CLI tools and get an idea how
> you can develop the CLI in a more user-friendly way.
>
> [1] - http://wso2.com/products/api-manager/
> [2] - https://docs.wso2.com/display/AM210/Key+Concepts
> [3] - https://docs.wso2.com/display/AM210/Migrating+the+APIs+to+
> a+Different+Environment
> [4] - https://docs.wso2.com/display/AM210/WSO2+APIs
> [5] - https://github.com/wso2/carbon-apimgt/tree/C5
> [6] - https://github.com/wso2/product-apim/tree/C5
>
> Thank you!
>
> On Tue, Feb 28, 2017 at 12:09 PM, Nuwan Dias  wrote:
>
>> [Adding Pubudu and Sajith]
>>
>> On Tue, Feb 28, 2017 at 5:12 PM, Randika Navagamuwa <
>> randika...@cse.mrt.ac.lk> wrote:
>>
>>> Hi ,
>>>  I am Randika Navagamuwa and I am a final year undergraduate of Department
>>> of Computer Science and Engineering , University
>>> of Moratuwa, Srilanka . Last year also I
>>> have participated and completed GSoC with Eclipse foundation [1].  This
>>> year I thought of applying for "*Proposal 8: CLI tool for WSO2 API
>>> Manager*"[2]  with WSo2. Since there is plenty of time before applying
>>> as a student, I thought of getting familiar with the project. Will you be
>>> able to guide me through the process.
>>>
>>> [1] https://summerofcode.withgoogle.com/archive/2016/project
>>> s/4930443140923392/
>>> [2] https://docs.wso2.com/display/GSoC/Project+Proposals+for+201
>>> 7#ProjectProposalsfor2017-Proposal8:CLItoolforWSO2APIManager
>>>
>>> Thank You,
>>>
>>> *Randika Navagamuwa,*
>>>
>>> *Department of Computer Science & Engineering,*
>>>
>>> *University of Moratuwa,*
>>> *Sri Lanka.*
>>>
>>> *www.rnavagamuwa.com *[image:
>>> lk.linkedin.com/in/rnavagamuwa/]
>>>  [image:
>>> https://www.facebook.com/rnavagamuwa]
>>>  [image:
>>> https://twitter.com/rnavagamuwa]  [image:
>>> https://plus.google.com/+RandikaNavagamuwa/]
>>> 
>>>
>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Software Architect - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729 <+94%2077%20777%205729>
>>
>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774078049 <%2B94772207163>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC][Proposal 8]Participation in GSoC 2017

2017-02-27 Thread Pubudu Gunatilaka
Hi Randika,

Thank you for your interest in the project.

First of all, you can try out WSO2 API Manager 2.1.0 and get familiar with
the product [1] and the concepts [2]. Additionally, you can try out API
export/import feature [3] and the API Manager 2.1.0 REST APIs [4] to tryout
the product.

Currently, WSO2 API Manager team is working on Carbon 5(C5) based API
Manager implementation and you can find the relevant repos in [5] and [6].
When you are developing the CLI, you should use the C5 REST APIs. API
Manager team has already added most important REST APIs and we are working
on adding new REST APIs based on the functionalities. Meantime, you can
also get familiar with GO language and learn the concepts.

As described in the project description you need to develop a CLI tool for
API Manager. You can also check the available CLI tools and get an idea how
you can develop the CLI in a more user-friendly way.

[1] - http://wso2.com/products/api-manager/
[2] - https://docs.wso2.com/display/AM210/Key+Concepts
[3] - https://docs.wso2.com/display/AM210/Migrating+the+APIs+to+a+Different+
Environment
[4] - https://docs.wso2.com/display/AM210/WSO2+APIs
[5] - https://github.com/wso2/carbon-apimgt/tree/C5
[6] - https://github.com/wso2/product-apim/tree/C5

Thank you!

On Tue, Feb 28, 2017 at 12:09 PM, Nuwan Dias  wrote:

> [Adding Pubudu and Sajith]
>
> On Tue, Feb 28, 2017 at 5:12 PM, Randika Navagamuwa <
> randika...@cse.mrt.ac.lk> wrote:
>
>> Hi ,
>>  I am Randika Navagamuwa and I am a final year undergraduate of Department
>> of Computer Science and Engineering , University
>> of Moratuwa, Srilanka . Last year also I have
>> participated and completed GSoC with Eclipse foundation [1].  This year
>> I thought of applying for "*Proposal 8: CLI tool for WSO2 API Manager*"[2]
>>  with WSo2. Since there is plenty of time before applying as a student, I
>> thought of getting familiar with the project. Will you be able to guide me
>> through the process.
>>
>> [1] https://summerofcode.withgoogle.com/archive/2016/project
>> s/4930443140923392/
>> [2] https://docs.wso2.com/display/GSoC/Project+Proposals+for+201
>> 7#ProjectProposalsfor2017-Proposal8:CLItoolforWSO2APIManager
>>
>> Thank You,
>>
>> *Randika Navagamuwa,*
>>
>> *Department of Computer Science & Engineering,*
>>
>> *University of Moratuwa,*
>> *Sri Lanka.*
>>
>> *www.rnavagamuwa.com *[image:
>> lk.linkedin.com/in/rnavagamuwa/]  
>> [image:
>> https://www.facebook.com/rnavagamuwa]
>>  [image:
>> https://twitter.com/rnavagamuwa]  [image:
>> https://plus.google.com/+RandikaNavagamuwa/]
>> 
>>
>
>
>
> --
> Nuwan Dias
>
> Software Architect - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729 <+94%2077%20777%205729>
>



-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: Security questions are encoded

2017-02-27 Thread Denuwanthi De Silva
Issue is created in [1]

[1]https://github.com/wso2/carbon-uuf/issues/193

Thanks

On Tue, Feb 28, 2017 at 11:53 AM, Nuwandi Wickramasinghe 
wrote:

> Does this encoding work properly when sent in javascript attributes as
> well? I recently noticed that following type of calls do not work as
> expected if the value  *question *contains a single quote.
>
> 
>
>
> On Tue, Jan 31, 2017 at 11:04 PM, Manuranga Perera  wrote:
>
>> UUF automatically escaping sensitive characters [1]. Please don't use
>> 'encoding' for 'escaping'.
>>
>> [1] https://github.com/jknack/handlebars.java/blob/1f6c48e606dc1
>> 303d1e92a0a0eaa94120eba64fd/handlebars/src/main/java/com/git
>> hub/jknack/handlebars/EscapingStrategy.java#L82
>>
>> On Tue, Jan 31, 2017 at 5:23 PM, Jayanga Kaushalya 
>> wrote:
>>
>>> Hi Manuranga,
>>>
>>> This is not because of a security reason. The security question set id
>>> may contains html special characters. So the set id is sent to the UI after
>>> encoding to Base64.
>>>
>>> Thanks!
>>>
>>> *Jayanga Kaushalya*
>>> Software Engineer
>>> Mobile: +94777860160 <+94%2077%20786%200160>
>>> WSO2 Inc. | http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> On Tue, Jan 31, 2017 at 10:42 PM, Manuranga Perera 
>>> wrote:
>>>

 -- Forwarded message --
 From: Manuranga Perera 
 Date: Tue, Jan 31, 2017 at 5:11 PM
 Subject: Security questions are encoded
 To: Johann Nallathamby , Jayanga Kaushalya <
 jayan...@wso2.com>, Isura Karunaratne 


 Security questions are base64 encoded [1]. If they are encrypted (eg:
 RSA) or hashed (eg SHA) I can understand that it's for security reasons.
 All this does is obfuscation, poorly even at that, since base64 can be
 easily decoded.

 Or is it done for non-security reasons, like escaping special
 characters?

 [1] https://github.com/wso2/product-is/blob/6.0.x-C5_m3/portal/o
 sgi-services/org.wso2.is.portal.user.client.api/src/main/jav
 a/org/wso2/is/portal/user/client/api/ChallengeQuestionManage
 rClientServiceImpl.java#L113

 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.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


>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
>
> Best Regards,
>
> Nuwandi Wickramasinghe
>
> Software Engineer
>
> WSO2 Inc.
>
> Web : http://wso2.com
>
> Mobile : 0719214873
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [GSoC][Proposal 8]Participation in GSoC 2017

2017-02-27 Thread Nuwan Dias
[Adding Pubudu and Sajith]

On Tue, Feb 28, 2017 at 5:12 PM, Randika Navagamuwa <
randika...@cse.mrt.ac.lk> wrote:

> Hi ,
>  I am Randika Navagamuwa and I am a final year undergraduate of Department
> of Computer Science and Engineering , University
> of Moratuwa, Srilanka . Last year also I have
> participated and completed GSoC with Eclipse foundation [1].  This year I
> thought of applying for "*Proposal 8: CLI tool for WSO2 API Manager*"[2]
>  with WSo2. Since there is plenty of time before applying as a student, I
> thought of getting familiar with the project. Will you be able to guide me
> through the process.
>
> [1] https://summerofcode.withgoogle.com/archive/2016/project
> s/4930443140923392/
> [2] https://docs.wso2.com/display/GSoC/Project+Proposals+for+
> 2017#ProjectProposalsfor2017-Proposal8:CLItoolforWSO2APIManager
>
> Thank You,
>
> *Randika Navagamuwa,*
>
> *Department of Computer Science & Engineering,*
>
> *University of Moratuwa,*
> *Sri Lanka.*
>
> *www.rnavagamuwa.com *[image:
> lk.linkedin.com/in/rnavagamuwa/]  
> [image:
> https://www.facebook.com/rnavagamuwa]
>  [image:
> https://twitter.com/rnavagamuwa]  [image:
> https://plus.google.com/+RandikaNavagamuwa/]
> 
>



-- 
Nuwan Dias

Software Architect - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2017-02-27 Thread Hasitha Jayasundara
Hi,

I am a final year undergraduate of Electronic and Telecommunication
Engineering, University of Moratuwa. My experience with Java
8,rx-java,carbon transport and WSO2 integration server motivated me to
select this project as my GSoC project for 2017. I was an intern at
WSo2( Integration team) for 6 months implementing several features for new
Integration server using Java8 and rxJava. Please provide me some guide
lines and materials for study and get a clear understanding about the
mentioned project.

Thanks

-- 
*D.M.Hasitha Nadishan Jayasundara*
*Department of Electronic and Telecommunication Engineering*
University of Moratuwa
*mobile:* *+94711959266*
*blogspot*: learnjavawithisla.blogspot.com/  *email:*
hasithajayasunda...@gmail.com



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


Re: [Dev] Fwd: Security questions are encoded

2017-02-27 Thread Nuwandi Wickramasinghe
Does this encoding work properly when sent in javascript attributes as
well? I recently noticed that following type of calls do not work as
expected if the value  *question *contains a single quote.




On Tue, Jan 31, 2017 at 11:04 PM, Manuranga Perera  wrote:

> UUF automatically escaping sensitive characters [1]. Please don't use
> 'encoding' for 'escaping'.
>
> [1] https://github.com/jknack/handlebars.java/blob/
> 1f6c48e606dc1303d1e92a0a0eaa94120eba64fd/handlebars/src/
> main/java/com/github/jknack/handlebars/EscapingStrategy.java#L82
>
> On Tue, Jan 31, 2017 at 5:23 PM, Jayanga Kaushalya 
> wrote:
>
>> Hi Manuranga,
>>
>> This is not because of a security reason. The security question set id
>> may contains html special characters. So the set id is sent to the UI after
>> encoding to Base64.
>>
>> Thanks!
>>
>> *Jayanga Kaushalya*
>> Software Engineer
>> Mobile: +94777860160 <+94%2077%20786%200160>
>> WSO2 Inc. | http://wso2.com
>> lean.enterprise.middleware
>>
>> On Tue, Jan 31, 2017 at 10:42 PM, Manuranga Perera  wrote:
>>
>>>
>>> -- Forwarded message --
>>> From: Manuranga Perera 
>>> Date: Tue, Jan 31, 2017 at 5:11 PM
>>> Subject: Security questions are encoded
>>> To: Johann Nallathamby , Jayanga Kaushalya <
>>> jayan...@wso2.com>, Isura Karunaratne 
>>>
>>>
>>> Security questions are base64 encoded [1]. If they are encrypted (eg:
>>> RSA) or hashed (eg SHA) I can understand that it's for security reasons.
>>> All this does is obfuscation, poorly even at that, since base64 can be
>>> easily decoded.
>>>
>>> Or is it done for non-security reasons, like escaping special characters?
>>>
>>> [1] https://github.com/wso2/product-is/blob/6.0.x-C5_m3/portal/o
>>> sgi-services/org.wso2.is.portal.user.client.api/src/main/jav
>>> a/org/wso2/is/portal/user/client/api/ChallengeQuestionManage
>>> rClientServiceImpl.java#L113
>>>
>>> --
>>> With regards,
>>> *Manu*ranga Perera.
>>>
>>> phone : 071 7 70 20 50
>>> mail : m...@wso2.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
>>>
>>>
>>
>
>
> --
> 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
>
>


-- 

Best Regards,

Nuwandi Wickramasinghe

Software Engineer

WSO2 Inc.

Web : http://wso2.com

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


[Dev] [GSoC][Proposal 8]Participation in GSoC 2017

2017-02-27 Thread Randika Navagamuwa
Hi ,
 I am Randika Navagamuwa and I am a final year undergraduate of Department
of Computer Science and Engineering , University
of Moratuwa, Srilanka . Last year also I have
participated and completed GSoC with Eclipse foundation [1].  This year I
thought of applying for "*Proposal 8: CLI tool for WSO2 API Manager*"[2]
 with WSo2. Since there is plenty of time before applying as a student, I
thought of getting familiar with the project. Will you be able to guide me
through the process.

[1] https://summerofcode.withgoogle.com/archive/2016/
projects/4930443140923392/
[2]
https://docs.wso2.com/display/GSoC/Project+Proposals+for+2017#ProjectProposalsfor2017-Proposal8:CLItoolforWSO2APIManager

Thank You,

*Randika Navagamuwa,*

*Department of Computer Science & Engineering,*

*University of Moratuwa,*
*Sri Lanka.*

*www.rnavagamuwa.com *[image:
lk.linkedin.com/in/rnavagamuwa/]
 [image:
https://www.facebook.com/rnavagamuwa]
 [image:
https://twitter.com/rnavagamuwa]  [image:
https://plus.google.com/+RandikaNavagamuwa/]

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


Re: [Dev] [C5] Set Location Header for all POST requests

2017-02-27 Thread Fazlan Nazeem
Hi Malintha,

On Tue, Feb 28, 2017 at 8:45 AM, Malintha Amarasinghe 
wrote:

> [Re-sending due to "Too many recipients"]
> On Tue, Feb 28, 2017 at 8:33 AM, Malintha Amarasinghe 
> wrote:
>
>> Hi,
>>
>> On Tue, Feb 28, 2017 at 8:20 AM, Abimaran Kugathasan 
>> wrote:
>>
>>> +Dev
>>>
>>> We need to add this Location Header in all response of HTTP POST
>>> requests.
>>>
>>> There is a confusion whether to add absolute URL or relativeURL [1]. If
>>> we add absolute URL, then there can be a problem when a proxy is fronted.
>>>
>> I guess many proxy services are capable of handling absolute URIs; i.e.
>> re-writing the Location header to the proxy URL so that would not be a
>> problem I guess. Keeping the absolute URL is easier for the client.
>>
>> (nginx) https://www.cyberciti.biz/faq/proxy_redirect-change-replace-
>> location-refresh-response-headers/
>> (apache proxy) http://www.microhowto.info/howto/configure_apache_as_
>> a_reverse_proxy.html#idp39904
>>
>>
>>> [1] : https://tools.ietf.org/html/rfc7231#section-7.1.2
>>>
>>> On Tue, Feb 28, 2017 at 1:04 AM, Ishara Cooray  wrote:
>>>
 Hi Fazlan,

   LOCATION_HEADER_INCORRECT(900322, "Invalid URL for location", 500, "
 Invalid URL in location header");

>>> From the code I see this happens when there's an exception happen in the
>> server when trying to build a URI object. So that is acually a server side
>> error and 500 is correct IMO. But I guess the error description need to be
>> changed. May be like Error while obtaining URI for Location header ..
>> WDYT?
>>
>
Yes that seems a better description. Will update the PR.
And yes 500 should be the correct status since this is not an error in the
request and the client is not responsible.

>
>> Thanks!
>> Malintha
>>
>>>
 I think more appropriate error code would be something in 4xx
 range(client error), but 500 means it's more like a server error.

 How about using *406* Not Acceptable?

 [1] https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

 Thanks & Regards,
 Ishara Cooray
 Senior Software Engineer
 Mobile : +9477 262 9512 <+94%2077%20262%209512>
 WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 On Mon, Feb 27, 2017 at 10:32 PM, Roshan Wijesena 
 wrote:

>
> On Mon, Feb 27, 2017 at 6:26 PM, Fazlan Nazeem 
> wrote:
>
>> @Roshan,
>> can you review the PR and check whether this violates any concept we
>> discussed during error and exception handling discussion. The usual 
>> method
>> had to be altered a bit because we don't have an errorHandler object 
>> within
>> the exception object in this case.
>>
>
> This change is fine.
>
>
> --
> Roshan Wijesena.
> Senior Software Engineer-WSO2 Inc.
> Mobile: *+94719154640 <+94%2071%20915%204640>*
> Email: ros...@wso2.com
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>


>>>
>>>
>>> --
>>> Thanks
>>> Abimaran Kugathasan
>>> Senior Software Engineer - API Technologies
>>>
>>> Email : abima...@wso2.com
>>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>>
>>> 
>>> 
>>>   
>>> 
>>>
>>>
>>
>>
>> --
>> Malintha Amarasinghe
>> Software Engineer
>> *WSO2, Inc. - lean | enterprise | middleware*
>> http://wso2.com/
>>
>> Mobile : +94 712383306 <+94%2071%20238%203306>
>>
>
>
>
> --
> Malintha Amarasinghe
> Software Engineer
> *WSO2, Inc. - lean | enterprise | middleware*
> http://wso2.com/
>
> Mobile : +94 712383306 <+94%2071%20238%203306>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards,

Fazlan Nazeem

*Software Engineer*

*WSO2 Inc*
Mobile : +94772338839
<%2B94%20%280%29%20773%20451194>
fazl...@wso2.com
___
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-02-27 Thread Upul Bandara
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.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Regarding gsoc 2017

2017-02-27 Thread Upul Bandara
Hi Anshu,

Great!
Also, please verify your eligibility as per the GSoC rules:
https://summerofcode.withgoogle.com/rules/

Thanks,
Upul

On Mon, Feb 27, 2017 at 11:34 AM, ANSHU ADITYA 
wrote:

> Thanks.
> I start exploring it.
> ᐧ
>
> On Mon, Feb 27, 2017 at 11:31 AM, Upul Bandara  wrote:
>
>> Hi Anshu,
>>
>> We are glad to see your interest!
>>
>> The main objective of the 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 27, 2017 at 11:23 AM, ANSHU ADITYA 
>> wrote:
>>
>>> Hi,
>>> I am a data lover and decided to go with *Real Time ML toolkit for
>>> Siddh*i.I like maths and I think I will enjoy its implementation too.
>>> Please guide me how to proceed further?
>>>
>>> --
>>> Thanks & Regards !!
>>>
>>> *Anshu Aditya*
>>> Final Year
>>> *Electronics & Communication*
>>> *The LNMIIT, Jaipur*
>>> *Contact No : +91-8527696121 <+91%2085276%2096121>*
>>> *Alternate Email Id: annshu0...@gmail.com *
>>> 
>>> *gitHub* 
>>>
>>>
>>>
>>>
>>> ᐧ
>>>
>>
>>
>>
>> --
>> Upul Bandara,
>> Associate Technical Lead, WSO2, Inc.,
>> Mob: +94 715 468 345 <+94%2071%20546%208345>.
>>
>
>
>
> --
> Thanks & Regards !!
>
> *Anshu Aditya*
> Final Year
> *Electronics & Communication*
> *The LNMIIT, Jaipur*
> *Contact No : +91-8527696121 <+91%2085276%2096121>*
> *Alternate Email Id: annshu0...@gmail.com *
> 
> *gitHub* 
>
>
>
>
>


-- 
Upul Bandara,
Associate Technical Lead, WSO2, Inc.,
Mob: +94 715 468 345.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Please Review and Merge the PR - MSF4J Interceptors

2017-02-27 Thread Sanjeewa Malalgoda
Thanks Vidura.

On Tue, Feb 28, 2017 at 9:24 AM, Vidura Nanayakkara 
wrote:

> [Adding Waruna, Ashen]
>
> Hi Sanjeewa,
>
> As per the offline discussion, we had on the 21st of February, the
> following tasks have to be proceeded with before releasing MSF4J with the
> above enhancement.
>
>- MSF4J and carbon-transports depends on carbon-metrics. Therefore we
>need to have a carbon-metrics released in order to proceed with the MSF4J
>and carbon-transports releases.
>- ThusithaD is currently working on carbon-transports. However, this
>can be released only after carbon-metrics is released.
>- MSF4J needs to be released first with the carbon-metrics and
>carbon-transports.
>
> We will provide an ETA ASAP
>
>
> On Mon, Feb 27, 2017 at 7:18 PM, Sanjeewa Malalgoda 
> wrote:
>
>> Hi Azeez, Thusitha,
>> Can we get MSF4J release with this fix?
>>
>> Thanks,
>> sanjeewa.
>>
>> On Thu, Feb 16, 2017 at 3:25 PM, Vidura Nanayakkara 
>> wrote:
>>
>>> Hi all,
>>>
>>> Please review and merge the PR [1]
>>> . The relevant GitHub issues
>>> are [2]  and [3]
>>> . The relevant email
>>> discussion in the Architecture mail thread could be found at [4]
>>> 
>>> .
>>>
>>> Please do clarify any issue with me if anything is not clear or feel
>>> free to ask for a meeting if required :)
>>>
>>> [1] https://github.com/wso2/msf4j/pull/338
>>> 
>>> [2] https://github.com/wso2/msf4j/issues/335
>>> 
>>> [3] https://github.com/wso2/msf4j/issues/336
>>> 
>>> [4] http://wso2-oxygen-tank.10903.n7.nabble.com/MSF4J-MSF4J-
>>> Filter-Configuration-td145277.html
>>> 
>>>
>>> Best Regards,
>>>
>>> *Vidura Nanayakkara*
>>> Software Engineer
>>>
>>> Email : vidu...@wso2.com
>>> Mobile : +94 (0) 717 919277 <071%20791%209277>
>>> Web : http://wso2.com
>>> Blog : https://medium.com/@viduran 
>>> Twitter : http://twitter.com/viduranana
>>> LinkedIn : https://lk.linkedin.com/in/vidura-nanayakkara
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Sanjeewa Malalgoda*
>> WSO2 Inc.
>> Mobile : +94713068779 <+94%2071%20306%208779>
>>
>> blog
>> :http://sanjeewamalalgoda.blogspot.com/
>> 
>>
>>
>>
>
>
> --
> Best Regards,
>
> *Vidura Nanayakkara*
> Software Engineer
>
> Email : vidu...@wso2.com
> Mobile : +94 (0) 717 919277 <071%20791%209277>
> Web : http://wso2.com
> Blog : https://medium.com/@viduran 
> Twitter : http://twitter.com/viduranana
> LinkedIn : https://lk.linkedin.com/in/vidura-nanayakkara
> 
>



-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

blog
:http://sanjeewamalalgoda.blogspot.com/

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


Re: [Dev] [MSF4J] Please Review and Merge the PR - MSF4J Interceptors

2017-02-27 Thread Vidura Nanayakkara
[Adding Waruna, Ashen]

Hi Sanjeewa,

As per the offline discussion, we had on the 21st of February, the
following tasks have to be proceeded with before releasing MSF4J with the
above enhancement.

   - MSF4J and carbon-transports depends on carbon-metrics. Therefore we
   need to have a carbon-metrics released in order to proceed with the MSF4J
   and carbon-transports releases.
   - ThusithaD is currently working on carbon-transports. However, this can
   be released only after carbon-metrics is released.
   - MSF4J needs to be released first with the carbon-metrics and
   carbon-transports.

We will provide an ETA ASAP


On Mon, Feb 27, 2017 at 7:18 PM, Sanjeewa Malalgoda 
wrote:

> Hi Azeez, Thusitha,
> Can we get MSF4J release with this fix?
>
> Thanks,
> sanjeewa.
>
> On Thu, Feb 16, 2017 at 3:25 PM, Vidura Nanayakkara 
> wrote:
>
>> Hi all,
>>
>> Please review and merge the PR [1]
>> . The relevant GitHub issues are
>> [2]  and [3]
>> . The relevant email
>> discussion in the Architecture mail thread could be found at [4]
>> 
>> .
>>
>> Please do clarify any issue with me if anything is not clear or feel free
>> to ask for a meeting if required :)
>>
>> [1] https://github.com/wso2/msf4j/pull/338
>> 
>> [2] https://github.com/wso2/msf4j/issues/335
>> 
>> [3] https://github.com/wso2/msf4j/issues/336
>> 
>> [4] http://wso2-oxygen-tank.10903.n7.nabble.com/MSF4J-MSF4J-
>> Filter-Configuration-td145277.html
>> 
>>
>> Best Regards,
>>
>> *Vidura Nanayakkara*
>> Software Engineer
>>
>> Email : vidu...@wso2.com
>> Mobile : +94 (0) 717 919277 <071%20791%209277>
>> Web : http://wso2.com
>> Blog : https://medium.com/@viduran 
>> Twitter : http://twitter.com/viduranana
>> LinkedIn : https://lk.linkedin.com/in/vidura-nanayakkara
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779 <+94%2071%20306%208779>
>
> blog :http://sanjeewamalalgoda.
> blogspot.com/ 
>
>
>


-- 
Best Regards,

*Vidura Nanayakkara*
Software Engineer

Email : vidu...@wso2.com
Mobile : +94 (0) 717 919277
Web : http://wso2.com
Blog : https://medium.com/@viduran 
Twitter : http://twitter.com/viduranana
LinkedIn : https://lk.linkedin.com/in/vidura-nanayakkara 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5] Set Location Header for all POST requests

2017-02-27 Thread Malintha Amarasinghe
[Re-sending due to "Too many recipients"]
On Tue, Feb 28, 2017 at 8:33 AM, Malintha Amarasinghe 
wrote:

> Hi,
>
> On Tue, Feb 28, 2017 at 8:20 AM, Abimaran Kugathasan 
> wrote:
>
>> +Dev
>>
>> We need to add this Location Header in all response of HTTP POST requests.
>>
>> There is a confusion whether to add absolute URL or relativeURL [1]. If
>> we add absolute URL, then there can be a problem when a proxy is fronted.
>>
> I guess many proxy services are capable of handling absolute URIs; i.e.
> re-writing the Location header to the proxy URL so that would not be a
> problem I guess. Keeping the absolute URL is easier for the client.
>
> (nginx) https://www.cyberciti.biz/faq/proxy_redirect-change-replace-
> location-refresh-response-headers/
> (apache proxy) http://www.microhowto.info/howto/configure_apache_as_
> a_reverse_proxy.html#idp39904
>
>
>> [1] : https://tools.ietf.org/html/rfc7231#section-7.1.2
>>
>> On Tue, Feb 28, 2017 at 1:04 AM, Ishara Cooray  wrote:
>>
>>> Hi Fazlan,
>>>
>>>   LOCATION_HEADER_INCORRECT(900322, "Invalid URL for location", 500, "
>>> Invalid URL in location header");
>>>
>> From the code I see this happens when there's an exception happen in the
> server when trying to build a URI object. So that is acually a server side
> error and 500 is correct IMO. But I guess the error description need to be
> changed. May be like Error while obtaining URI for Location header ..
> WDYT?
>
> Thanks!
> Malintha
>
>>
>>> I think more appropriate error code would be something in 4xx
>>> range(client error), but 500 means it's more like a server error.
>>>
>>> How about using *406* Not Acceptable?
>>>
>>> [1] https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
>>>
>>> Thanks & Regards,
>>> Ishara Cooray
>>> Senior Software Engineer
>>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>>> WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> On Mon, Feb 27, 2017 at 10:32 PM, Roshan Wijesena 
>>> wrote:
>>>

 On Mon, Feb 27, 2017 at 6:26 PM, Fazlan Nazeem 
 wrote:

> @Roshan,
> can you review the PR and check whether this violates any concept we
> discussed during error and exception handling discussion. The usual method
> had to be altered a bit because we don't have an errorHandler object 
> within
> the exception object in this case.
>

 This change is fine.


 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94719154640 <+94%2071%20915%204640>*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com *
 lean.enterprise.middleware.

>>>
>>>
>>
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>> Senior Software Engineer - API Technologies
>>
>> Email : abima...@wso2.com
>> Mobile : +94 773922820 <+94%2077%20392%202820>
>>
>> 
>> 
>>   
>> 
>>
>>
>
>
> --
> Malintha Amarasinghe
> Software Engineer
> *WSO2, Inc. - lean | enterprise | middleware*
> http://wso2.com/
>
> Mobile : +94 712383306 <+94%2071%20238%203306>
>



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

Mobile : +94 712383306 <+94%2071%20238%203306>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2017-02-27 Thread Chanaka Lakmal
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] - https://docs.wso2.com/display/ESB490/File+Inbound+Protocol

Thank you.

Best Regards.

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

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


[Dev] GSoC 2017- Proposal 4: Idea Plugin for Siddhi

2017-02-27 Thread Raveen Rathnayake
Hi,
I am a second year Software Engineering student from Informatics Institute
of Technology. Since I have a good knowledge in Java and I am familiar with
IDEA, I selected the *Proposal 4: Idea Plugin for Siddhi *from the GSoC
project proposals. I want to get to know more about the Siddhi. If you all
can help me and give a guide for me, it will be a great start for me on
this project.

Thank you.

Best Regards,
Raveen Savinda Rathnayake.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Environments Support for WSO2 API Manager

2017-02-27 Thread Ravindu Perera
Okay thanks alot Kasun ,i will do so and when i am done with all the work i
will get back
thank you


On Mon, Feb 27, 2017 at 11:54 PM, Kasun Thennakoon  wrote:

> Hi Ravindu.
>
> This is kind of a known issue. For the time being, can you comment out
> those two dependencies from following locations and try to build the
> product.
>
> 
>> com.microsoft.sqlserver
>> sqljdbc4
>> 4.0
>> test
>> 
>> 
>> com.oracle
>> ojdbc6
>> 12.1.0.1-atlassian-hosted
>> test
>> 
>
>
> Comment out above two dependencies from
>
> *[carbon-apimgt]/pom.xml*
>
>
> and
>
> 
>> com.microsoft.sqlserver
>> sqljdbc4
>> test
>> 
>> 
>> com.oracle
>> ojdbc6
>> test
>> 
>
>
> from
>
> *[carbon-apimgt]/components/apimgt/org.wso2.carbon.apimgt.core/pom.xml *
>
>
>
> Regards
> ~KasunTe
>
> On Mon, Feb 27, 2017 at 10:18 AM, Ravindu Perera <
> ravindu.2014...@iit.ac.lk> wrote:
>
>> hi
>> I started working on the given links but i encountered and problem when i
>> build the carbon- aoimgt
>> so can you please help me to solve the issue , thank you
>>
>> On Mon, Feb 27, 2017 at 7:51 AM, Kasun Thennakoon 
>> wrote:
>>
>>> [+Dev]
>>>
>>>
>>> On Fri, Feb 24, 2017 at 10:44 PM, Ravindu Perera <
>>> ravindu.2014...@iit.ac.lk> wrote:
>>>
 Hi Kasun
 I started working on the given links but i encountered and problem when
 i build the carbon- aoimgt
 so can you please help me to solve the issue , thank you

 On Tue, Feb 21, 2017 at 12:47 PM, Ravindu Perera <
 ravindu.2014...@iit.ac.lk> wrote:

> Thanks *Kasun *,
>  yes i start building from the samples given , and gain more knowledge
> on UUF-Framework and try out all the the things mentioned in your mail ,
> and i will get back to you within one to two days   after completing and
> going through the tasks i should do.
>
> Thank you
>
> On Tue, Feb 21, 2017 at 11:19 AM, Kasun Thennakoon 
> wrote:
>
>> Hi Ravindu,
>>
>> We are glad to see your interest in WSO2 API manager and the GSOC
>> project. It is good to see that you already have experience on working 
>> with
>> WSO2 API Manager.
>> As we have mentioned in the project description[1], the expectation
>> of this project is to develop an UI feature to seamlessly switch between
>> different environments and perform user operations on that selected
>> environment.To get started with the work, I would suggest you build the
>> product from source[2][3] and walk through the current implementation
>> details of the store and publisher and try to get familiar with those 
>> apps.
>> And also since API manager C5  UIs are built with UUF framework[4] it
>> would be great if you can try out the samples in UUF core[5] and UUF
>> commons[6] repositories and learn about the features and capabilities in
>> UUF framework.
>>
>> Regards
>> ~KasunTe
>>
>> [1] : https://docs.wso2.com/display/GSoC/Project+Proposals+for+2
>> 017#ProjectProposalsfor2017-Proposal7:EnvironmentsSupportfor
>> WSO2APIManager
>>
>> [2] : https://github.com/wso2/carbon-apimgt/tree/C5
>>
>> [3] : https://github.com/wso2/product-apim/tree/C5
>>
>> [4] : https://github.com/wso2/carbon-uuf
>>
>> [5] : https://github.com/wso2/carbon-uuf/tree/master/samples
>>
>> [6] : https://github.com/wso2/carbon-uuf-common/tree/master/samples
>>
>>
>> On Tue, Feb 21, 2017 at 9:27 AM, Ravindu Perera <
>> ravindu.2014...@iit.ac.lk> wrote:
>>
>>> Hi
>>> I am a 3rd year student from Informatics Institute of technology and
>>> i got 3 years experience in HTML, CSS, Javascript and knowledge and
>>> also knowledge in using rest service , and experience on using the WSO2 
>>> API
>>> Manger cloud as well , familiar  handlebars.js . And have a good 
>>> confident
>>> level for this project , so can you all please provide more information 
>>> and
>>> guidance to start the project off.
>>>
>>> Thank you
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Kasun Thennakoon*
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 711661919
>>
>
>

>>>
>>>
>>> --
>>> *Kasun Thennakoon*
>>> Software Engineer
>>> WSO2, Inc.
>>> Mobile:+94 711661919
>>>
>>
>>
>
>
> --
> *Kasun Thennakoon*
> Software Engineer
> WSO2, Inc.
> Mobile:+94 711661919
>
___
Dev mailing list
Dev@wso2.org

Re: [Dev] Environments Support for WSO2 API Manager

2017-02-27 Thread Kasun Thennakoon
Hi Ravindu.

This is kind of a known issue. For the time being, can you comment out
those two dependencies from following locations and try to build the
product.


> com.microsoft.sqlserver
> sqljdbc4
> 4.0
> test
> 
> 
> com.oracle
> ojdbc6
> 12.1.0.1-atlassian-hosted
> test
> 


Comment out above two dependencies from

*[carbon-apimgt]/pom.xml*


and


> com.microsoft.sqlserver
> sqljdbc4
> test
> 
> 
> com.oracle
> ojdbc6
> test
> 


from

*[carbon-apimgt]/components/apimgt/org.wso2.carbon.apimgt.core/pom.xml *



Regards
~KasunTe

On Mon, Feb 27, 2017 at 10:18 AM, Ravindu Perera 
wrote:

> hi
> I started working on the given links but i encountered and problem when i
> build the carbon- aoimgt
> so can you please help me to solve the issue , thank you
>
> On Mon, Feb 27, 2017 at 7:51 AM, Kasun Thennakoon 
> wrote:
>
>> [+Dev]
>>
>>
>> On Fri, Feb 24, 2017 at 10:44 PM, Ravindu Perera <
>> ravindu.2014...@iit.ac.lk> wrote:
>>
>>> Hi Kasun
>>> I started working on the given links but i encountered and problem when
>>> i build the carbon- aoimgt
>>> so can you please help me to solve the issue , thank you
>>>
>>> On Tue, Feb 21, 2017 at 12:47 PM, Ravindu Perera <
>>> ravindu.2014...@iit.ac.lk> wrote:
>>>
 Thanks *Kasun *,
  yes i start building from the samples given , and gain more knowledge
 on UUF-Framework and try out all the the things mentioned in your mail ,
 and i will get back to you within one to two days   after completing and
 going through the tasks i should do.

 Thank you

 On Tue, Feb 21, 2017 at 11:19 AM, Kasun Thennakoon 
 wrote:

> Hi Ravindu,
>
> We are glad to see your interest in WSO2 API manager and the GSOC
> project. It is good to see that you already have experience on working 
> with
> WSO2 API Manager.
> As we have mentioned in the project description[1], the expectation of
> this project is to develop an UI feature to seamlessly switch between
> different environments and perform user operations on that selected
> environment.To get started with the work, I would suggest you build the
> product from source[2][3] and walk through the current implementation
> details of the store and publisher and try to get familiar with those 
> apps.
> And also since API manager C5  UIs are built with UUF framework[4] it
> would be great if you can try out the samples in UUF core[5] and UUF
> commons[6] repositories and learn about the features and capabilities in
> UUF framework.
>
> Regards
> ~KasunTe
>
> [1] : https://docs.wso2.com/display/GSoC/Project+Proposals+for+2
> 017#ProjectProposalsfor2017-Proposal7:EnvironmentsSupportfor
> WSO2APIManager
>
> [2] : https://github.com/wso2/carbon-apimgt/tree/C5
>
> [3] : https://github.com/wso2/product-apim/tree/C5
>
> [4] : https://github.com/wso2/carbon-uuf
>
> [5] : https://github.com/wso2/carbon-uuf/tree/master/samples
>
> [6] : https://github.com/wso2/carbon-uuf-common/tree/master/samples
>
>
> On Tue, Feb 21, 2017 at 9:27 AM, Ravindu Perera <
> ravindu.2014...@iit.ac.lk> wrote:
>
>> Hi
>> I am a 3rd year student from Informatics Institute of technology and
>> i got 3 years experience in HTML, CSS, Javascript and knowledge and
>> also knowledge in using rest service , and experience on using the WSO2 
>> API
>> Manger cloud as well , familiar  handlebars.js . And have a good 
>> confident
>> level for this project , so can you all please provide more information 
>> and
>> guidance to start the project off.
>>
>> Thank you
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kasun Thennakoon*
> Software Engineer
> WSO2, Inc.
> Mobile:+94 711661919
>


>>>
>>
>>
>> --
>> *Kasun Thennakoon*
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 711661919
>>
>
>


-- 
*Kasun Thennakoon*
Software Engineer
WSO2, Inc.
Mobile:+94 711661919
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2GREG-5.2.0- Writing extension to replicate more artifact metadata in Store

2017-02-27 Thread Ayesha Dissanayaka
Hi Trem,

Glad that the tutorial was helpful to you.

You can achieve your desired behavior by applying custom javascript to your
page.
I have explained a sample scenario in this post

.

[1]
http://asadistechspace.blogspot.com/2017/02/wso2greg-520-writing-extension-to-bind.html#.WLRO717h77A

Regards,
-Ayesha


On Mon, Feb 27, 2017 at 9:50 AM, Trem Stamp  wrote:

> Hi Ayesha,
>
> Thanks for the tutorial on your blog for WSO2GREG-5.2.0- Writing
> extension to replicate more artifact metadata in Store
> .
> It was very helpful.  I was wondering if it's also possible to use a url to
> refer to an asset page with a particular metadata tab opened by default.
> At the moment the first tab is opened by default when going to the
> particular page in the store.  If for example I wanted to go directly to
> the page with the third tab opened, how would I go about doing that?
>
> Thanks in advance.
>
> Cheers,
> Trem
>
>


-- 
*Ayesha Dissanayaka*
Senior Software Engineer,
WSO2, Inc : http://wso2.com

20, Palm grove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSoC 2017

2017-02-27 Thread Isuru Haththotuwa
Hi Dhanuka,

Great to see your interest in GSoC!

Please find the list of tentative proposals by WSO2 for GSoC 2017 [1].
Please go through them, and don't hesitate to raise any questions you might
have in the WSO2 Dev list. Good luck!

[1]. https://docs.wso2.com/display/GSoC/Project+Proposals+for+2017

On Mon, Feb 27, 2017 at 8:57 PM, Dhanuka  wrote:

> Hi, My name is Dhanuka. And I'm a final year computer science student from
> Open University of Sri Lanka. I'm really looking forward to contributing
> to wso2 as a GSoC student. So, can anyone please guide me how to get
> started?
>
> Thank you.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] GSoC 2017

2017-02-27 Thread Dhanuka
Hi, My name is Dhanuka. And I'm a final year computer science student 
from Open University of Sri Lanka. I'm really looking forward to 
contributing to wso2 as a GSoC student. So, can anyone please guide me 
how to get started?


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


Re: [Dev] Error while initiating response builder

2017-02-27 Thread Harsha Thirimanna
Thanks Gayan, Great finding.

On Feb 27, 2017 7:03 PM, "Thusitha Thilina Dayaratne" 
wrote:

> Hi Gayan,
>
> Yes, MSF4JRuntimeDelegate uses the MSF4J response Builder.  Overall the
> jaxrs-delegate bundle require for the MSF4J Since we have implmented some
> jax-rs interfaces in that bundle.
> e.g. MSF4JResponse, MediaTypeHeaderProvider etc..
>
> Thanks
> Thusitha
>
> On Mon, Feb 27, 2017 at 5:26 PM, Gayan Gunawardana  wrote:
>
>> @Thusitha
>>
>> Is there any reason behind this ?
>>
>> Does it require MSF4JRuntimeDelegate from jaxrs-delegates. As I can
>> remember we added noStart() to jaxrs-delegates since it is a fragment
>> bundle.
>>
>> Thanks,
>> Gayan
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <+94%2071%20275%206809>
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Please Review and Merge the PR - MSF4J Interceptors

2017-02-27 Thread Sanjeewa Malalgoda
Hi Azeez, Thusitha,
Can we get MSF4J release with this fix?

Thanks,
sanjeewa.

On Thu, Feb 16, 2017 at 3:25 PM, Vidura Nanayakkara 
wrote:

> Hi all,
>
> Please review and merge the PR [1]
> . The relevant GitHub issues are
> [2]  and [3]
> . The relevant email discussion
> in the Architecture mail thread could be found at [4]
> 
> .
>
> Please do clarify any issue with me if anything is not clear or feel free
> to ask for a meeting if required :)
>
> [1] https://github.com/wso2/msf4j/pull/338
> 
> [2] https://github.com/wso2/msf4j/issues/335
> 
> [3] https://github.com/wso2/msf4j/issues/336
> 
> [4] http://wso2-oxygen-tank.10903.n7.nabble.com/MSF4J-
> MSF4J-Filter-Configuration-td145277.html
> 
>
> Best Regards,
>
> *Vidura Nanayakkara*
> Software Engineer
>
> Email : vidu...@wso2.com
> Mobile : +94 (0) 717 919277 <071%20791%209277>
> Web : http://wso2.com
> Blog : https://medium.com/@viduran 
> Twitter : http://twitter.com/viduranana
> LinkedIn : https://lk.linkedin.com/in/vidura-nanayakkara
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

blog
:http://sanjeewamalalgoda.blogspot.com/

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


Re: [Dev] Error while initiating response builder

2017-02-27 Thread Thusitha Thilina Dayaratne
Hi Gayan,

Yes, MSF4JRuntimeDelegate uses the MSF4J response Builder.  Overall the
jaxrs-delegate bundle require for the MSF4J Since we have implmented some
jax-rs interfaces in that bundle.
e.g. MSF4JResponse, MediaTypeHeaderProvider etc..

Thanks
Thusitha

On Mon, Feb 27, 2017 at 5:26 PM, Gayan Gunawardana  wrote:

> @Thusitha
>
> Is there any reason behind this ?
>
> Does it require MSF4JRuntimeDelegate from jaxrs-delegates. As I can
> remember we added noStart() to jaxrs-delegates since it is a fragment
> bundle.
>
> Thanks,
> Gayan
>
>


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

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

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


Re: [Dev] New Lead from - Student - APAC- Contact Us

2017-02-27 Thread Maheshika Goonetilleke
Hi Anushu

Please call me Maheshika. :)

You can select a project form the GSoC idea list [1] which we have
published. Please, forward your interest to dev@wso2.org and our team will
guide you.

[1] https://docs.wso2.com/display/GSoC/Project+Proposals+for+2017



On Mon, Feb 27, 2017 at 5:37 PM, ANSHU ADITYA 
wrote:

> Hi,
> Ma'am please guide me how to get started.
> Should I first wait for you org acceptance in GSoC 2017 ?
> ᐧ
>
> On Mon, Feb 27, 2017 at 5:33 PM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Anshu
>>
>> We are glad you are interested in GSoC 2017.
>>
>> Yes, we have applied and awaiting for a positive response from them.
>>
>> Please apply for a project through the GSoC 2017 site.
>>
>>
>>
>> -- Forwarded message --
>> From: Devaka Randeniya 
>> Date: Sun, Feb 26, 2017 at 11:38 PM
>> Subject: New Lead from - Student - APAC- Contact Us
>> To: "biz...@wso2.com" 
>> Cc: "sql-gr...@wso2.com" 
>>
>>
>> ref:00Q441Kz3y3
>>
>> Hi
>>
>> The Lead below was allocated to you. Please click on the link below to
>> review the activity history in Salesforce.
>>
>> Lead Link:  https://wso2.my.salesforce.com/00Q441Kz3y3
>>
>> Name:  ANSHU ADITYA
>>
>> Email: annshu.adit...@gmail.com
>>
>> Phone: +918527696121
>>
>> Title: Want to work for your projects in gsoc 2017
>>
>> Company Name: Student
>>
>> Existing Account Name:
>>
>> Date of Contact Us First Submission: 26/02/2017 05:00
>>
>> Description: I am a data enthusiast and working in deep learning and data
>> science since 3 years.I want to contribute in your open source Ideas as
>> gsoc 2017 if you are participating in this year as well.
>>
>> EMM CSR Link:
>>
>> Please contact this Lead within One Hour if the Lead is from a Contact us
>> Form ( see Subject). Even if this is a junk Lead please go to Salesforce to
>> disqualify the Lead.
>>
>> Thank you
>>
>>
>>
>> --
>>
>> Thanks & Best Regards,
>>
>> Maheshika Goonetilleke
>> Senior Engineering Process Coordinator
>>
>> *WSO2 Inc*
>> *email   : mahesh...@wso2.com *
>> *mobile : +94 773 596707 <+94%2077%20359%206707>*
>> *www: :http://wso2.com *lean . enterprise . middleware
>>
>>
>>
>>
>>
>
>
> --
> Thanks & Regards !!
>
> *Anshu Aditya*
> Final Year
> *Electronics & Communication*
> *The LNMIIT, Jaipur*
> *Contact No : +91-8527696121 <+91%2085276%2096121>*
> *Alternate Email Id: annshu0...@gmail.com *
> 
> *gitHub* 
>
>
>
>
>


-- 

Thanks & Best Regards,

Maheshika Goonetilleke
Senior Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com *
*mobile : +94 773 596707*
*www: :http://wso2.com *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while initiating response builder

2017-02-27 Thread Gayan Gunawardana
@Thusitha

Is there any reason behind this ?

Does it require MSF4JRuntimeDelegate from jaxrs-delegates. As I can
remember we added noStart() to jaxrs-delegates since it is a fragment
bundle.

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


Re: [Dev] Error while initiating response builder

2017-02-27 Thread Hasintha Indrajee
Hi Gayan,

This resolved the issue. Thanks for your inputs.

On Mon, Feb 27, 2017 at 6:38 AM, Gayan Gunawardana  wrote:

> @Hasintha
>
> Please add this to user dependency list and check.
>
> 
> org.wso2.msf4j
> jaxrs-delegates
> ${msf4j.version}
> test
> 
>
> optionList.add(mavenBundle().
> groupId("org.wso2.msf4j").
> artifactId("jaxrs-delegates")
> .versionAsInProject().noStart())
>
> Thanks,
>
> Gayan
>
>
> On Sat, Feb 25, 2017 at 9:07 PM, Hasintha Indrajee 
> wrote:
>
>> @KasunG : We cannot exclude this dependency since it's required to build
>> up osgi environment for tests. I checked and removed all other transitive
>> ways of inheriting this dependency. But still the issue is there.
>>
>> @Thusitha : This is not due to picking two bundles. Rather picking a
>> bundle and a maven dependency I guess. So we need to to find a way to
>> exclude this maven dependency from test run time. I checked adding
>> different scopes (ex - test, compile) But still couldn't get it solved.
>>
>> On Sat, Feb 25, 2017 at 5:17 PM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Hasintha,
>>>
>>> According to the stacktrace, it seems that RuntimeDelegate class is
>>> loaded from 2 bundles. Can you check if you have 2 dependecnies which
>>> provided this class ?
>>>
>>> Thanks
>>> Thusitha
>>>
>>> On Sat, Feb 25, 2017 at 5:10 PM, Hasintha Indrajee 
>>> wrote:
>>>

 Hi all,

 I am getting the following class cast exception while initiating a
 Response builder. Following is the line of code causing this issue. Note
 that I am only getting this while running tests. Any Idea about the cause
 of this issue ?

 Response.ResponseBuilder builder = Response.noContent();


 msf4j-core[org.wso2.msf4j.internal.MSF4JMessageProcessor] : Unmapped
 exception
 java.lang.LinkageError: ClassCastException: attempting to
 castjar:file:/home/hasinthaindrajee/.m2/repository/javax/ws/
 rs/javax.ws.rs-api/2.0/javax.ws.rs-api-2.0.jar!/javax/ws/rs/ext/RuntimeDelegate.class
 to bundleresource://53.fwk689654773/javax/ws/rs/ext/RuntimeDele
 gate.class
 at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate
 .java:146)
 at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.
 java:120)
 at javax.ws.rs.core.Response$ResponseBuilder.newInstance(Respon
 se.java:848)
 at javax.ws.rs.core.Response.status(Response.java:590)
 at javax.ws.rs.core.Response.status(Response.java:601)
 at javax.ws.rs.core.Response.accepted(Response.java:709)
 at org.wso2.carbon.identity.sample.outbound.response.ACSRequest
 ResponseBuilderFactory.createBuilder(ACSRequestResponseBuild
 erFactory.java:16)
 at org.wso2.carbon.identity.gateway.resource.GatewayManager.exe
 cute(GatewayManager.java:86)
 at org.wso2.carbon.identity.gateway.resource.GatewayResource.pr
 ocessGet(GatewayResource.java:59)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
 ssorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
 thodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(HttpMet
 hodInfo.java:132)
 at org.wso2.msf4j.internal.MSF4JMessageProcessor.dispatchMethod
 (MSF4JMessageProcessor.java:130)
 at org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JM
 essageProcessor.java:72)
 at org.wso2.carbon.transport.http.netty.listener.WorkerPoolDisp
 atchingSourceHandler.lambda$publishToWorkerPool$12(WorkerPoo
 lDispatchingSourceHandler.java:125)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
 Executor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
 lExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)

 --
 Hasintha Indrajee
 WSO2, Inc.
 Mobile:+94 771892453 <+94%2077%20189%202453>


>>>
>>>
>>> --
>>> Thusitha Dayaratne
>>> Software Engineer
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> Mobile  +94712756809 <071%20275%206809>
>>> Blog  alokayasoya.blogspot.com
>>> Abouthttp://about.me/thusithathilina
>>> 
>>>
>>>
>>
>>
>> --
>> Hasintha Indrajee
>> WSO2, Inc.
>> Mobile:+94 771892453 <+94%2077%20189%202453>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
Hasintha Indrajee
WSO2, Inc.
Mobile:+94 771892453
___
Dev mailing list
Dev@wso2.org

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

2017-02-27 Thread Malintha Amarasinghe
Hi Thusitha and all,

Thank you very much for considering this.

@Vidura, Thanks a lot for the detailed response. I will go through it and
get back to you.

Thanks!
Malintha


On Mon, Feb 27, 2017 at 2:54 PM, Vidura Nanayakkara 
wrote:

> [Adding Azeez]
>
> Hi,
>
> In relation to the offline discussion we had, it was clear that the above
> functionality is not sufficient for your requirement. As per the offline
> discussion, the suggested approach was to use custom contexts. [1]
> , [2]
> 
>  describes
> an Apache CXF example of using custom contexts.
>
> Currently in MSF4J using @Context annotation we can inject the Request,
> Response, HttpStreamer, FormParamIterator and MultivaluedMap instances.
> However, these are not accessible via interceptors as per the current
> implementation. The approach we were using to inject values is by using the
> approach I have explained in the previous email.
>
> Therefore to solve the above problem, there are 2 solutions we can
> introduce to MSF4J.
>
>1. *Introduce custom injection and lifecycle management [1]
>, [2]
>
> 
>to MSF4J.*
>
> Using this approach what you should basically do is:
>
>
>- Write a custom context provider of your own which will describe how
>   the injected value is generated by implementing a certain interface.
>   - Register the custom context provider to the MSF4J
>   - Inject the value using @Context annotation (Ex:- @Context(String
>   key) Object[] arguments)
>
>
>1. *Have a Map map that could be injected using
>@Context annotation*
>
> Using this approach what you basically do is:
>
>
>- Add the arguments you need to inject using the @Context annotation
>   using @SetContext(String key, Object value). This can be done inside
>   interceptors or HTTP methods
>   - Inject the value to using @Context(String key)
>
> WDYT?
>
> [1] Custom Injection and Lifecycle Management
> 
> [2] Custom Context Providers for CXF with the Context Annotation
> 
>
> On Mon, Feb 27, 2017 at 9:59 AM, Vidura Nanayakkara 
> wrote:
>
>> Hi Malintha,
>>
>> You can access the `Request` instance from the interceptors. You also can
>> access the same Request instance from the HTTP resource by injecting the
>> request to the HTTP method (`@Context Request request`). You also can set
>> any argument in the request using `request.setProperty(String key, Object
>> value)` method and retrieve the value using `request.getProperty(String
>> key)` method. Will this be sufficient for your requirement?
>>
>>
>>
>> On Mon, Feb 27, 2017 at 5:55 AM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Malintha,
>>>
>>> Thank you very much for the PR. We did some restructuring for the
>>> interceptors to cater product requirementsts[1]. Therefore we won't be able
>>> to directly merge this. But surely we will check what we can do with this.
>>>
>>> [1] - https://github.com/wso2/msf4j/pull/338
>>>
>>> Thanks
>>> Thusitha
>>>
>>> On Sun, Feb 26, 2017 at 4:04 PM, Malintha Amarasinghe <
>>> malint...@wso2.com> wrote:
>>>
 Hi,

 Currently in MSF4J Interceptor level, we can get the HTTP handler
 method which would be invoked by calling  serviceMethodInfo.get
 Method().

 Additionally, It will be useful to have request parameters as well in
 order to perform various types of request validations in Interceptor level
 such as Bean validation and ETag validation.

 Tried to do a fix which adds a new field to ServiceMethodInfo class as
 args[] [1]. But this required some API changes.

 Thanks!

 [1] https://github.com/wso2/msf4j/pull/356

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

 Mobile : +94 712383306P

>>>
>>>
>>>
>>> --
>>> Thusitha Dayaratne
>>> Software Engineer
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> Mobile  +94712756809 <+94%2071%20275%206809>
>>> Blog  alokayasoya.blogspot.com
>>> Abouthttp://about.me/thusithathilina
>>> 
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards,
>>
>> *Vidura Nanayakkara*
>> Software Engineer
>>
>> Email : vidu...@wso2.com
>> Mobile : +94 (0) 717 919277 <+94%2071%20791%209277>
>> Web : http://wso2.com
>> Blog : https://medium.com/@viduran 
>> Twitter : 

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

2017-02-27 Thread Vidura Nanayakkara
[Adding Azeez]

Hi,

In relation to the offline discussion we had, it was clear that the above
functionality is not sufficient for your requirement. As per the offline
discussion, the suggested approach was to use custom contexts. [1] , [2]

describes
an Apache CXF example of using custom contexts.

Currently in MSF4J using @Context annotation we can inject the Request,
Response, HttpStreamer, FormParamIterator and MultivaluedMap instances.
However, these are not accessible via interceptors as per the current
implementation. The approach we were using to inject values is by using the
approach I have explained in the previous email.

Therefore to solve the above problem, there are 2 solutions we can
introduce to MSF4J.

   1. *Introduce custom injection and lifecycle management [1]
   , [2]
   

   to MSF4J.*

Using this approach what you should basically do is:


   - Write a custom context provider of your own which will describe how
  the injected value is generated by implementing a certain interface.
  - Register the custom context provider to the MSF4J
  - Inject the value using @Context annotation (Ex:- @Context(String
  key) Object[] arguments)


   1. *Have a Map map that could be injected using @Context
   annotation*

Using this approach what you basically do is:


   - Add the arguments you need to inject using the @Context annotation
  using @SetContext(String key, Object value). This can be done inside
  interceptors or HTTP methods
  - Inject the value to using @Context(String key)

WDYT?

[1] Custom Injection and Lifecycle Management

[2] Custom Context Providers for CXF with the Context Annotation


On Mon, Feb 27, 2017 at 9:59 AM, Vidura Nanayakkara 
wrote:

> Hi Malintha,
>
> You can access the `Request` instance from the interceptors. You also can
> access the same Request instance from the HTTP resource by injecting the
> request to the HTTP method (`@Context Request request`). You also can set
> any argument in the request using `request.setProperty(String key, Object
> value)` method and retrieve the value using `request.getProperty(String
> key)` method. Will this be sufficient for your requirement?
>
>
>
> On Mon, Feb 27, 2017 at 5:55 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Malintha,
>>
>> Thank you very much for the PR. We did some restructuring for the
>> interceptors to cater product requirementsts[1]. Therefore we won't be able
>> to directly merge this. But surely we will check what we can do with this.
>>
>> [1] - https://github.com/wso2/msf4j/pull/338
>>
>> Thanks
>> Thusitha
>>
>> On Sun, Feb 26, 2017 at 4:04 PM, Malintha Amarasinghe > > wrote:
>>
>>> Hi,
>>>
>>> Currently in MSF4J Interceptor level, we can get the HTTP handler method
>>> which would be invoked by calling  serviceMethodInfo.getMethod().
>>>
>>> Additionally, It will be useful to have request parameters as well in
>>> order to perform various types of request validations in Interceptor level
>>> such as Bean validation and ETag validation.
>>>
>>> Tried to do a fix which adds a new field to ServiceMethodInfo class as
>>> args[] [1]. But this required some API changes.
>>>
>>> Thanks!
>>>
>>> [1] https://github.com/wso2/msf4j/pull/356
>>>
>>> --
>>> Malintha Amarasinghe
>>> Software Engineer
>>> *WSO2, Inc. - lean | enterprise | middleware*
>>> http://wso2.com/
>>>
>>> Mobile : +94 712383306P
>>>
>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Best Regards,
>
> *Vidura Nanayakkara*
> Software Engineer
>
> Email : vidu...@wso2.com
> Mobile : +94 (0) 717 919277 <+94%2071%20791%209277>
> Web : http://wso2.com
> Blog : https://medium.com/@viduran 
> Twitter : http://twitter.com/viduranana
> LinkedIn : https://lk.linkedin.com/in/vidura-nanayakkara
> 
>



-- 
Best Regards,

*Vidura Nanayakkara*
Software Engineer

Email : vidu...@wso2.com
Mobile : +94 (0) 717 919277
Web : http://wso2.com
Blog : https://medium.com/@viduran 
Twitter : http://twitter.com/viduranana
LinkedIn : https://lk.linkedin.com/in/vidura-nanayakkara 

Re: [Dev] GSOC 2017 - Atom Plugin for Siddhi

2017-02-27 Thread Mahendra Thennakoon
Hi Ramindu,

Thank you for the references. I will go through them and come up with a way
to create a similar syntax highlighter for Siddhi QL.

Best regards.

On Mon, Feb 27, 2017 at 1:51 PM, Ramindu De Silva  wrote:

> Hi Mahendra,
>
> Your approach is correct. It'll be useful if you try to understand Siddhi
> grammar[1] and Siddhi QL[2] and try to implement the syntax highlighting
> accordingly.
>
> [1] https://github.com/wso2/siddhi/blob/master/modules/
> siddhi-query-compiler/src/main/antlr4/org/wso2/siddhi/
> query/compiler/SiddhiQL.g4
> [2] https://docs.wso2.com/display/CEP420/SiddhiQL+Guide+3.1
>
> Best regards,
>
> On Mon, Feb 27, 2017 at 12:16 PM, Nirmal Fernando  wrote:
>
>> [Looping the mentors]
>>
>> On Mon, Feb 27, 2017 at 11:51 AM, Mahendra Thennakoon <
>> mahendrathennak...@gmail.com> wrote:
>>
>>> Hi Ramindu, Suho,
>>>
>>> I created an Atom package 'language-javascript-alt'[1] that can
>>> highlight a select set of Javascript syntax.
>>>
>>> [image: Inline image 1]
>>>
>>> [image: Inline image 2]
>>>
>>> I used the TextMate documentation for Language Grammars[2] and MDN
>>> reference on Javascript lexical grammar[3] for my reference. Any feedback
>>> is greatly appreciated.
>>>
>>> Thank you.
>>>
>>> [1]: https://github.com/MahendraTennakoon/language-javascript-alt
>>> [2]: http://manual.macromates.com/en/language_grammars.html
>>> [3]: https://developer.mozilla.org/en-US/docs/Web/JavaScript
>>> /Reference/Lexical_grammar
>>>
>>>
>>>
>>> ___
>>> 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/
>>
>>
>>
>
>
> --
> *Ramindu De Silva*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94 772339350
> mob: +94 719678895
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2017 - Atom Plugin for Siddhi

2017-02-27 Thread Ramindu De Silva
Hi Mahendra,

Your approach is correct. It'll be useful if you try to understand Siddhi
grammar[1] and Siddhi QL[2] and try to implement the syntax highlighting
accordingly.

[1]
https://github.com/wso2/siddhi/blob/master/modules/siddhi-query-compiler/src/main/antlr4/org/wso2/siddhi/query/compiler/SiddhiQL.g4
[2] https://docs.wso2.com/display/CEP420/SiddhiQL+Guide+3.1

Best regards,

On Mon, Feb 27, 2017 at 12:16 PM, Nirmal Fernando  wrote:

> [Looping the mentors]
>
> On Mon, Feb 27, 2017 at 11:51 AM, Mahendra Thennakoon <
> mahendrathennak...@gmail.com> wrote:
>
>> Hi Ramindu, Suho,
>>
>> I created an Atom package 'language-javascript-alt'[1] that can highlight
>> a select set of Javascript syntax.
>>
>> [image: Inline image 1]
>>
>> [image: Inline image 2]
>>
>> I used the TextMate documentation for Language Grammars[2] and MDN
>> reference on Javascript lexical grammar[3] for my reference. Any feedback
>> is greatly appreciated.
>>
>> Thank you.
>>
>> [1]: https://github.com/MahendraTennakoon/language-javascript-alt
>> [2]: http://manual.macromates.com/en/language_grammars.html
>> [3]: https://developer.mozilla.org/en-US/docs/Web/JavaScript
>> /Reference/Lexical_grammar
>>
>>
>>
>> ___
>> 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/
>
>
>


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

email: ramin...@wso2.com 
mob: +94 772339350
mob: +94 719678895
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev