Re: [Dev] Merge changes done for https://wso2.org/jira/browse/CPARENT-6

2016-08-09 Thread Isuru Perera
Hi Kasun,

On Wed, Aug 10, 2016 at 9:54 AM, KasunG Gajasinghe  wrote:

> Hi Isuru,
>
> Javadoc and source generation happens when you use the maven release
> plugin. We are already doing it. [1]
>
I don't see the source jar in the location you mentioned.

> That is the only place we need these two plugins as I understand. When
> doing a build locally, you don't really need sources/javadoc jars because
> you already have the source code.
>
> [1] https://maven.wso2.org/nexus/content/repositories/
> releases/org/wso2/carbon/org.wso2.carbon.ndatasource.core/4.4.7/
>
> Thanks,
> KasunG
>
> On Tue, Aug 9, 2016 at 7:24 PM, Isuru Perera  wrote:
>
>> Hi,
>>
>> On Tue, Aug 9, 2016 at 3:10 PM, Jayanga Dissanayake 
>> wrote:
>>
>>> Hi Isuru,
>>>
>>> It seems to be the culprit. I removed the jacoco plugin from
>>> carbon-kernel/parent/pom.xml and it builds.
>>>
>>> One other concern is, in this PR, you have moved the doc and source
>>> plugins into plugin section, which cause it to run always. But we usually
>>>  don't want src and docs to be generated at each build. Could you please
>>> explain why those plugins were moved into plugin section.
>>>
>> I added java doc and source plugins to parent pom as we need to have
>> sources jars and java docs every time we build the source.
>>
>> If you look at our previous releases based on Carbon 4.x, there are no
>> source jars for most of the components. Without having sources jars, it is
>> very difficult to debug as well.
>>
>> Even though, we expected our developers to release the sources jars
>> during release time, we can see that it's not happening most of the time.
>>
>> Java Doc generation is also very important and Java Doc Plugin shows
>> warnings if there are any issues with our Java Docs. It's easy to fix such
>> warnings before the release.
>>
>> If the build time is the main concern for local builds, we can disable
>> Java doc plugin as it takes some time. The source plugin doesn't take much
>> time.
>>
>> For local builds, we can skip java docs using the parameter:
>> "-Dmaven.javadoc.skip=true".
>>
>> I think having these plugins in parent pom is very important.
>>
>>>
>>> Thanks,
>>> Jayanga.
>>>
>>> Thanks,
>>> Jayanga.
>>>
>>> *Jayanga Dissanayake*
>>> Associate Technical Lead
>>> WSO2 Inc. - http://wso2.com/
>>> lean . enterprise . middleware
>>> email: jaya...@wso2.com
>>> mobile: +94772207259
>>> 
>>>
>>> On Tue, Aug 9, 2016 at 2:34 PM, Isuru Perera  wrote:
>>>
 Did you remove existing Jacoco plugin in Carbon Kernel?

 Isuru Perera

 On 9 Aug 2016 2:29 p.m., "Jayanga Dissanayake" 
 wrote:

> Hi Isuru,
>
> When I try to build the carbon kernel with new parent pom with your
> updates, the following error happens.
> It seems to be an issue in jacoco plugin, any idea?
>
> [ERROR] Failed to execute goal 
> org.jacoco:jacoco-maven-plugin:0.7.5.201505241946:report
> (post-unit-test) on project org.wso2.carbon.launcher: An error has 
> occurred
> in JaCoCo Test report generation. Error while creating report: Error while
> analyzing class /tmp/1/carbon-kernel/launcher/
> target/classes/org/wso2/carbon/launcher/CarbonServer.class. Class
> org/wso2/carbon/launcher/CarbonServer is already instrumented. ->
> [Help 1]
>
> Thanks,
> Jayanga.
>
> *Jayanga Dissanayake*
> Associate Technical Lead
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com
> mobile: +94772207259
> 
>
> On Tue, Aug 9, 2016 at 12:24 PM, Isuru Perera  wrote:
>
>> Hi Jayanga,
>>
>> I didn't update maven bundle plugin. Could you please check on that
>> too?
>>
>> Please use following command to check plugin updates.
>>
>> mvn versions:display-plugin-updates
>>
>> Thanks!
>>
>> On Tue, Aug 9, 2016 at 11:39 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Hi Jayanga,
>>>
>>> Let's merge this and do a release along with kernel 5.2.0.
>>>
>>> On Wed, Jul 27, 2016 at 3:44 PM, Isuru Perera 
>>> wrote:
>>>
 Hi,

 Could you please review the PR in [1].

 I also noticed that carbon-parent version 5 is released [2], but
 the master branch still has 5-SNAPSHOT [3].

 [1] https://wso2.org/jira/browse/CPARENT-6
 [2] https://github.com/wso2/carbon-parent/releases/tag/carbon-pa
 rent-5
 [3] https://github.com/wso2/carbon-parent/blob/master/pom.xml#L22

 --
 Isuru Perera
 Associate Technical Lead | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha
 Contact: +IsuruPereraWSO2
 

Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.3.0 RC 2

2016-08-09 Thread Sameera Medagammaddegedara
*EDIT*: Please note "refer to ES 2.1.0 Sheet" should be "*Refer to G-REG
5.3.0 Sheet"*

On Wed, Aug 10, 2016 at 11:10 AM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hi All,
>
> [+] Stable - go ahead and release
>
> Please find the test cases below (refer to ES 2.1.0 Sheet) :
> https://docs.google.com/a/wso2.com/spreadsheets/d/
> 1rSxlUqFE0a_-psBly55p4KSfl_pkgNYLQ0mlsrQ-KdA/edit?usp=sharing
>
> Thanks,
> Sameera
>
> On Wed, Aug 10, 2016 at 12:17 AM, Prasanna Dangalla 
> wrote:
>
>> Hi All,
>>
>> Tested the following scenarios in a two node cluster mounted setup using
>> MySQL as the database which is deployed in Amazon EC2 instances with an
>> NGINX load balancer.
>>
>>
>>- Basic auth
>>- SOAP service creation
>>- REST service creation
>>- WSDL upload
>>- Tags in Publisher
>>- Notes in Publisher
>>- Subscription for Publisher notification (Lifecycle upload)
>>- WSDL Diff view
>>- Dependency graph
>>- Unbounded filed search
>>- Time in lifecycle feature
>>- Governance REST API option text field values, associations in GET
>>Request
>>- Deleting an Asset
>>
>> [+] Stable - go ahead and release
>>
>> Regards,
>> *Prasanna Dangalla*
>> Senior Software Engineer, WSO2, Inc.; http://wso2.com/
>> lean.enterprise.middleware
>>
>>
>> *cell: +94 718 11 27 51*
>> *twitter: @prasa77*
>>
>> On Tue, Aug 9, 2016 at 7:41 PM, Rajith Roshan  wrote:
>>
>>> Hi all,
>>>
>>> Tested the following scenarios [1] in a mounted setup using oracle 11
>>>
>>> [1] - https://docs.google.com/a/wso2.com/spreadsheets/d/1hQJ3m2D
>>> DWkBPYfJsRITRYmYz2bmd49RnhNPVuh-pbKE/edit?usp=sharing
>>>
>>> No issues found
>>>
>>> [+] Stable - go ahead and release
>>>
>>> Thanks!
>>> Rajith
>>>
>>>
>>> On Tue, Aug 9, 2016 at 6:16 PM, Chanaka Jayasena 
>>> wrote:
>>>
 Following senarios tested and found no issue. [+] Stable - go ahead and
 release.

 Create new user
 sign in from the new user
 comment and rate other users assets

 Create new taxonomy
 Assign taxonomy to asset type
 Apply taxonomies terms to assets
 Filter asset by adding, editing removing taxonomy filters.

 Asset filtering by defining categorization from the rxt.

 Search assets
 By Asset Name
 By Asset Content
 By Asset Tag
 By Asset Version
 By Lifecycle Name
 By Lifecycle State

 Filter by tags
 Remove tag filter

 Sort by date/time
 Sort by name

 Create new asset type
 Override default icon with a custom asset extension

 Create new asset
 Update asset
 Change lifecycle state
 Copy an asset to a new version
 Delete asset

 thanks,
 Chanaka

 On Tue, Aug 9, 2016 at 5:26 PM, Madawa Soysa  wrote:

> Hi All,
> Tested the scenarios[1] in a mounted setup. (MySQL 5.7).
> No issues found.
>
> [+] Stable - go ahead and release
>
>
> [1] - https://docs.google.com/a/wso2.com/spreadsheets/d/1oG6ZyKp
> R-oFTR_UbowFBieOEpItGINrTbXDs8XoJbOU/edit?usp=sharing
>
>
> On Tue, Aug 9, 2016 at 4:56 PM, Malintha Fernando  > wrote:
>
>> Tested the following scenarios and verified.
>>
>> Registry operations on store, publisher and admin console.
>> Publisher RXT field validations against different regular expressions
>> UI operations on Microsoft Edge and IE 11
>> Registry operations on a clustered setup with 2 nodes with shared
>> registry and user databases (MySQL)
>> Pointing user, registry and social databases to MsSQL databases
>> Social reviews with PostgreSQL database.
>> Moving between store and publisher pages on different browsers after
>> caramel load cache disabling. (Firefox, Chrome, IE11, Edge)
>>
>> Hence voting +1 and stable.
>>
>>
>> On Fri, Aug 5, 2016 at 8:38 PM, Rajith Roshan 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> WSO2 Governance Registry 5.3.0 RC2 Release Vote.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/browse/REGISTRY-3854?filter=13166
>>>
>>> Please download, test and vote. Please refer the release
>>> verification guide for detailed information on verifying this release.
>>>
>>> Source & binary distribution files:
>>> https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.3.0/rc2/
>>>
>>> Maven staging repo:
>>> https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1008
>>>
>>> The tag to be voted upon:
>>> https://github.com/wso2/product-greg/tree/v5.3.0-rc2
>>>
>>> [+] Stable - go ahead and release
>>> [-]  Broken - do not release (please explain why)
>>>
>>> Thanks and Regards
>>> ES/G-Reg team
>>>
>>> --
>>> Rajith Roshan
>>> Software Engineer, WSO2 Inc.
>>> Mobile: 

[Dev] [Architecture] WSO2 Message Broker 3.2.0-M2 Released !

2016-08-09 Thread Indika Sampath
Hi All,

The WSO2 Message Broker team is pleased to announce the 2nd milestone
release of WSO2 Message Broker (MB)  3.2.0.

Source & binary distribution files of WSO2 Message Broker :

 Runtime : https://github.com/wso2/product-mb/releases/tag/v3.2.0-M2
 Analytics :
https://github.com/wso2/analytics-mb/releases/tag/v3.2.0-M2

All the known issues identified are listed in JIRA.[1][2].

[1] https://wso2.org/jira/browse/MB
[2] https://wso2.org/jira/browse/ANLYMB

Regards,
~MB Team~

-- 
Indika Sampath
Senior Software Engineer
WSO2 Inc.
http://wso2.com

Phone: +94 716 424 744
Blog: http://indikasampath.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.3.0 RC 2

2016-08-09 Thread Sameera Medagammaddegedara
Hi All,

[+] Stable - go ahead and release

Please find the test cases below (refer to ES 2.1.0 Sheet) :
https://docs.google.com/a/wso2.com/spreadsheets/d/1rSxlUqFE0a_-psBly55p4KSfl_pkgNYLQ0mlsrQ-KdA/edit?usp=sharing

Thanks,
Sameera

On Wed, Aug 10, 2016 at 12:17 AM, Prasanna Dangalla 
wrote:

> Hi All,
>
> Tested the following scenarios in a two node cluster mounted setup using
> MySQL as the database which is deployed in Amazon EC2 instances with an
> NGINX load balancer.
>
>
>- Basic auth
>- SOAP service creation
>- REST service creation
>- WSDL upload
>- Tags in Publisher
>- Notes in Publisher
>- Subscription for Publisher notification (Lifecycle upload)
>- WSDL Diff view
>- Dependency graph
>- Unbounded filed search
>- Time in lifecycle feature
>- Governance REST API option text field values, associations in GET
>Request
>- Deleting an Asset
>
> [+] Stable - go ahead and release
>
> Regards,
> *Prasanna Dangalla*
> Senior Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
>
> *cell: +94 718 11 27 51*
> *twitter: @prasa77*
>
> On Tue, Aug 9, 2016 at 7:41 PM, Rajith Roshan  wrote:
>
>> Hi all,
>>
>> Tested the following scenarios [1] in a mounted setup using oracle 11
>>
>> [1] - https://docs.google.com/a/wso2.com/spreadsheets/d/1hQJ3m2D
>> DWkBPYfJsRITRYmYz2bmd49RnhNPVuh-pbKE/edit?usp=sharing
>>
>> No issues found
>>
>> [+] Stable - go ahead and release
>>
>> Thanks!
>> Rajith
>>
>>
>> On Tue, Aug 9, 2016 at 6:16 PM, Chanaka Jayasena 
>> wrote:
>>
>>> Following senarios tested and found no issue. [+] Stable - go ahead and
>>> release.
>>>
>>> Create new user
>>> sign in from the new user
>>> comment and rate other users assets
>>>
>>> Create new taxonomy
>>> Assign taxonomy to asset type
>>> Apply taxonomies terms to assets
>>> Filter asset by adding, editing removing taxonomy filters.
>>>
>>> Asset filtering by defining categorization from the rxt.
>>>
>>> Search assets
>>> By Asset Name
>>> By Asset Content
>>> By Asset Tag
>>> By Asset Version
>>> By Lifecycle Name
>>> By Lifecycle State
>>>
>>> Filter by tags
>>> Remove tag filter
>>>
>>> Sort by date/time
>>> Sort by name
>>>
>>> Create new asset type
>>> Override default icon with a custom asset extension
>>>
>>> Create new asset
>>> Update asset
>>> Change lifecycle state
>>> Copy an asset to a new version
>>> Delete asset
>>>
>>> thanks,
>>> Chanaka
>>>
>>> On Tue, Aug 9, 2016 at 5:26 PM, Madawa Soysa  wrote:
>>>
 Hi All,
 Tested the scenarios[1] in a mounted setup. (MySQL 5.7).
 No issues found.

 [+] Stable - go ahead and release


 [1] - https://docs.google.com/a/wso2.com/spreadsheets/d/1oG6ZyKp
 R-oFTR_UbowFBieOEpItGINrTbXDs8XoJbOU/edit?usp=sharing


 On Tue, Aug 9, 2016 at 4:56 PM, Malintha Fernando 
 wrote:

> Tested the following scenarios and verified.
>
> Registry operations on store, publisher and admin console.
> Publisher RXT field validations against different regular expressions
> UI operations on Microsoft Edge and IE 11
> Registry operations on a clustered setup with 2 nodes with shared
> registry and user databases (MySQL)
> Pointing user, registry and social databases to MsSQL databases
> Social reviews with PostgreSQL database.
> Moving between store and publisher pages on different browsers after
> caramel load cache disabling. (Firefox, Chrome, IE11, Edge)
>
> Hence voting +1 and stable.
>
>
> On Fri, Aug 5, 2016 at 8:38 PM, Rajith Roshan 
> wrote:
>
>> Hi Devs,
>>
>> WSO2 Governance Registry 5.3.0 RC2 Release Vote.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/browse/REGISTRY-3854?filter=13166
>>
>> Please download, test and vote. Please refer the release verification
>> guide for detailed information on verifying this release.
>>
>> Source & binary distribution files:
>> https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.3.0/rc2/
>>
>> Maven staging repo:
>> https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1008
>>
>> The tag to be voted upon:
>> https://github.com/wso2/product-greg/tree/v5.3.0-rc2
>>
>> [+] Stable - go ahead and release
>> [-]  Broken - do not release (please explain why)
>>
>> Thanks and Regards
>> ES/G-Reg team
>>
>> --
>> 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
>>
>>
>
>
> --
> Malintha Fernando
> Software Engineer
> WSO2 Inc. | http://wso2.com
> Mobile : +94 718874922
> Blog : 

Re: [Dev] [GSoC Dockerfiles] Added ability to run smoke tests from test framework

2016-08-09 Thread Vishanth Balasubramaniam
Hi,

Shall we have the demo on Friday Afternoon (IST)?

Regards,
Vishanth

On Tue, Aug 9, 2016 at 4:28 PM, Abhishek Tiwari <
abhishek.tiwari0...@gmail.com> wrote:

> Hi Mentors,
>
> Dockerfiles test framework is now able to run smoke tests, with smoke
> tests for ESB added at this point. Developers can extend the framework to
> add product specific smoke tests.
>
> Smoke test for ESB are implemented as follows:
> 1. Once a new docker image is deployed and the container is up, the script
> does a login to WSO2 carbon server and maintains cookies so that it can use
> logged in state in subsequent requests.
>
> 2. Creates a new pass-through proxy service. [1]
>
> 3. Validates the newly created proxy service is accessible (validates Http
> response code for the proxy testing url [2])
>
> 4. Removes the newly created proxy service. [3]
>
> I would like to demo the current state of the project, please provide your
> preferred date and time.
>
> Thanks
> Abhishek
>
> [1]. Http post using /carbon/proxyservices/template_pass-through.jsp
> [2]. Http get  using /carbon/services/?tryit
> [3]. Http get using /carbon/service-mgt/delete_service_groups.jsp
>



-- 
*Vishanth Balasubramaniam*
Committer & PMC Member, Apache Stratos,
Software Engineer, WSO2 Inc.; http://wso2.com

mobile: *+94 77 17 377 18*
about me: *http://about.me/vishanth *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] multi-tenant monetization

2016-08-09 Thread Thilini Cooray
Hi,

WSO2 API Manager has the capability to enable monetization.
You can get a clear idea about how to integrate your billing engine to API
Manager by referring the article [1] and webinar [2].

[1]
http://wso2.com/library/articles/2016/07/article-enabling-monetization-of-apis-with-wso2-api-manager/
[2]
http://wso2.com/library/webinars/2016/03/how-to-enable-monetization-of-your-api-ecosystem/

Thanks.

On Tue, Aug 9, 2016 at 8:32 PM, Roger Giuffre  wrote:

> I am exploring the architecture of your wso2am few months. I would now
> like to understand if it is already set up an option to register a tenant
> from a registration page after login with the identity server. I'm
> working on integration with killbill and I want to create a subscription
> plan on using the tenant by registered user.
>
> Anyway congratulations for the immense work you have done over the years
>
> Right now I'm implementing the KillbillTenantManager class to handle the
> persistence and save the data for the tenant created in killbill.
>
> In generating how you plan to proceed with regard to the integration with
> third-party billing-engine?
>
> Roger
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : thili...@wso2.com

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Merge changes done for https://wso2.org/jira/browse/CPARENT-6

2016-08-09 Thread KasunG Gajasinghe
Hi Isuru,

Javadoc and source generation happens when you use the maven release
plugin. We are already doing it. [1] That is the only place we need these
two plugins as I understand. When doing a build locally, you don't really
need sources/javadoc jars because you already have the source code.

[1]
https://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.ndatasource.core/4.4.7/

Thanks,
KasunG

On Tue, Aug 9, 2016 at 7:24 PM, Isuru Perera  wrote:

> Hi,
>
> On Tue, Aug 9, 2016 at 3:10 PM, Jayanga Dissanayake 
> wrote:
>
>> Hi Isuru,
>>
>> It seems to be the culprit. I removed the jacoco plugin from
>> carbon-kernel/parent/pom.xml and it builds.
>>
>> One other concern is, in this PR, you have moved the doc and source
>> plugins into plugin section, which cause it to run always. But we usually
>>  don't want src and docs to be generated at each build. Could you please
>> explain why those plugins were moved into plugin section.
>>
> I added java doc and source plugins to parent pom as we need to have
> sources jars and java docs every time we build the source.
>
> If you look at our previous releases based on Carbon 4.x, there are no
> source jars for most of the components. Without having sources jars, it is
> very difficult to debug as well.
>
> Even though, we expected our developers to release the sources jars during
> release time, we can see that it's not happening most of the time.
>
> Java Doc generation is also very important and Java Doc Plugin shows
> warnings if there are any issues with our Java Docs. It's easy to fix such
> warnings before the release.
>
> If the build time is the main concern for local builds, we can disable
> Java doc plugin as it takes some time. The source plugin doesn't take much
> time.
>
> For local builds, we can skip java docs using the parameter:
> "-Dmaven.javadoc.skip=true".
>
> I think having these plugins in parent pom is very important.
>
>>
>> Thanks,
>> Jayanga.
>>
>> Thanks,
>> Jayanga.
>>
>> *Jayanga Dissanayake*
>> Associate Technical Lead
>> WSO2 Inc. - http://wso2.com/
>> lean . enterprise . middleware
>> email: jaya...@wso2.com
>> mobile: +94772207259
>> 
>>
>> On Tue, Aug 9, 2016 at 2:34 PM, Isuru Perera  wrote:
>>
>>> Did you remove existing Jacoco plugin in Carbon Kernel?
>>>
>>> Isuru Perera
>>>
>>> On 9 Aug 2016 2:29 p.m., "Jayanga Dissanayake"  wrote:
>>>
 Hi Isuru,

 When I try to build the carbon kernel with new parent pom with your
 updates, the following error happens.
 It seems to be an issue in jacoco plugin, any idea?

 [ERROR] Failed to execute goal 
 org.jacoco:jacoco-maven-plugin:0.7.5.201505241946:report
 (post-unit-test) on project org.wso2.carbon.launcher: An error has occurred
 in JaCoCo Test report generation. Error while creating report: Error while
 analyzing class /tmp/1/carbon-kernel/launcher/
 target/classes/org/wso2/carbon/launcher/CarbonServer.class. Class
 org/wso2/carbon/launcher/CarbonServer is already instrumented. ->
 [Help 1]

 Thanks,
 Jayanga.

 *Jayanga Dissanayake*
 Associate Technical Lead
 WSO2 Inc. - http://wso2.com/
 lean . enterprise . middleware
 email: jaya...@wso2.com
 mobile: +94772207259
 

 On Tue, Aug 9, 2016 at 12:24 PM, Isuru Perera  wrote:

> Hi Jayanga,
>
> I didn't update maven bundle plugin. Could you please check on that
> too?
>
> Please use following command to check plugin updates.
>
> mvn versions:display-plugin-updates
>
> Thanks!
>
> On Tue, Aug 9, 2016 at 11:39 AM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Hi Jayanga,
>>
>> Let's merge this and do a release along with kernel 5.2.0.
>>
>> On Wed, Jul 27, 2016 at 3:44 PM, Isuru Perera 
>> wrote:
>>
>>> Hi,
>>>
>>> Could you please review the PR in [1].
>>>
>>> I also noticed that carbon-parent version 5 is released [2], but the
>>> master branch still has 5-SNAPSHOT [3].
>>>
>>> [1] https://wso2.org/jira/browse/CPARENT-6
>>> [2] https://github.com/wso2/carbon-parent/releases/tag/carbon-pa
>>> rent-5
>>> [3] https://github.com/wso2/carbon-parent/blob/master/pom.xml#L22
>>>
>>> --
>>> Isuru Perera
>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>> Contact: +IsuruPereraWSO2
>>> 
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> 

Re: [Dev] [BPS] Substitute API - Change substitute API method

2016-08-09 Thread Vinod Kavinda
Hi Gayan,

Find my comments inline.

On Wed, Aug 10, 2016 at 2:07 AM, Gayan Gunarathne  wrote:

>
> What is the use case of the BPS change substitution api method in [1] ? Is
> it change whole the existing substitute records(I mean old records
> + future records) of the user?
>
It allows to change the substitute. There is no such thing called old
records and future records. A user can have only one substitution record.
Change substitute will change the substitute of the existing record.

>
> Also what is the different between update substitution record and Change
> substitute?Seems we don't have much information in the documentation.
>
> Change substitution allows to change only the substitute
user. Update allows to change all the substitution parameters.

[1]https://docs.wso2.com/display/BPS360/Substitution+REST+APIs
>
> Thanks,
> Gayan
>
> --
>
> Gayan Gunarathne
> Technical Lead, WSO2 Inc. (http://wso2.com)
> Committer & PMC Member, Apache Stratos
> email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
>
>
>



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

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


Re: [Dev] GSoC Project: HTTP Load Balancer on Top of WSO2 Gateway Discussion

2016-08-09 Thread Kasun Indrasiri
Hi Venkat,

The drop of the performance of LB compared to GW Framework seems to be way
too much. I think we can't afford to lose nearly 50% of throughput because
of the LB components. Let's try to identify the bottlenecks related to LB
code.

On Tue, Aug 9, 2016 at 4:18 PM, Venkat Raman  wrote:

> Hi Isuru & Kasun,
>
> Please find the attached results document.  As discussed, I created a new
> VM for bench-marking.
>
> It seems like TPS of 20,000 (from yesterday's results) even at higher
> concurrency level is not accurate.  Sorry for the confusion caused.
> Most of the time endpoints were marked as unHealthy and direct error
> response is returned by LB Mediator which resulted in high TPS.  I tried
> multiple bench-marking from yesterday and I was never able to achieve that
> result.
>
> In this test, to avoid such cases, higher no of unHealthyRetries count has
> been configured.
>
> Also, I've bench-marked performance of GW-FMW using i-server with this
> simple
> 
> configuration.  It is a simple route even without if-else conditions.
>
> As you can see, It is performing 2X faster than LB.
>
> Next steps would be to do memory benchmark and plot graphs with these
> values.  Once repo, documentation and blog is ready, I'll be using JFR to
> identify bottle necks and on fine-tuning LB's performance.
>
> Will be looking forward to hear your feedback on this.
>
>
>
>
>
> *Thanks,*
> *Venkat.*
>
> On Tue, Aug 9, 2016 at 1:13 AM, Venkat Raman  wrote:
>
>> Sure Kasun, I'll do a perf-benchmark between iserver and LB in a new VM
>> as discussed.
>>
>> Thanks,
>> Venkat.
>> On Aug 9, 2016 12:55 AM, "Kasun Indrasiri"  wrote:
>>
>>>
>>> - Compare GW framework perf vs LB (need to identify if any perf impact
>>> from the LB related code).
>>> - Identify the reason for the apparent perf bottleneck with high
>>> concurrency.
>>>
>>> On Mon, Aug 8, 2016 at 10:55 AM, Venkat Raman 
>>> wrote:
>>>
 Hi Kasun,

 Please find the latest results after Saturday's code review.




 *Thanks,*
 *Venkat.*

 On Mon, Aug 8, 2016 at 10:06 AM, Venkat Raman 
 wrote:

> Hi Isuru,
>
> Good morning.  Please find 11th week's progress.
>
> 1) Had code reviews and made few suggested corrections.
> 2) Did some groundwork for using JFR
>
> Will be continuing to work on performance tuning.
>
> @Kasun - Tomorrow is August 9th.  Can we have demo ?
>
>
>
> *Thanks,*
> *Venkat.*
>
> On Sat, Aug 6, 2016 at 10:16 PM, Venkat Raman 
> wrote:
>
>> Hi Isuru,
>>
>> Here are the findings from today's review:
>>
>> 1) Change CallMediatorMap from ConcurrentHashMap to HashMap
>> 2) Remove unnecessary Synchronized block while checking
>> areAllEndpointsUnhealthy()
>> 3) Rename LoadBalancerCallMediator to LBEndpointsCallMediator
>> 4) Give a PR by adding getUri() method to gateway-framework
>> 5) Use JavaFlightRecorder while doing benchmark to identify
>> bottlenecks
>>
>>
>>
>>
>> *Venkat.*
>>
>> On Fri, Aug 5, 2016 at 1:43 PM, Venkat Raman 
>> wrote:
>>
>>> Hi Isuru,
>>>
>>> Please find the attached latest bench-mark without synchronization,
>>> callBackpool, healthcheck.
>>>
>>> Throughput is just 1000 times faster than my current
>>> implementation.
>>>
>>> It is drastically falling because of some other reason.
>>>
>>>
>>> *Thanks,*
>>> *Venkat.*
>>>
>>> On Fri, Aug 5, 2016 at 10:09 AM, Venkat Raman 
>>> wrote:
>>>
 Hi IsuruU,

 FYI



 *Thanks,*
 *Venkat.*

 -- Forwarded message --
 From: Venkat Raman 
 Date: Thu, Aug 4, 2016 at 10:39 AM
 Subject: Re: GSoC Project: HTTP Load Balancer on Top of WSO2
 Gateway Discussion
 To: Isuru Ranawaka , Kasun Indrasiri <
 ka...@wso2.com>
 Cc: DEV , Senduran Balasubramaniyam <
 sendu...@wso2.com>


 Hi Isuru & Kasun,

 Please find the attached result document
 (raw-engine-transport.xlsx).  I've done test with raw-engine-transport
 without any BE.  It is performing great  and is close to Netty based 
 BE !!

 Problem is with LB only.

 My guess is that CallbackPool (using concurrent HashMap) that we
 are using to determine timeout is the bottle neck.  I'll disable 
 Callback
 pool and do bench-mark and update you on that.



[Dev] [BPS] Substitute API - Change substitute API method

2016-08-09 Thread Gayan Gunarathne
What is the use case of the BPS change substitution api method in [1] ? Is
it change whole the existing substitute records(I mean old records
+ future records) of the user?

Also what is the different between update substitution record and Change
substitute?Seems we don't have much information in the documentation.

[1]https://docs.wso2.com/display/BPS360/Substitution+REST+APIs

Thanks,
Gayan

-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release - WSO2 Enterprise Service Bus 5.0.0 RC3

2016-08-09 Thread Nadeeshaan Gunasinghe
Hi all,

This is the third release candidate of WSO2 Enterprise Service Bus 5.0.0.

Please download, test the product and vote. Vote will be open for 72 hours
or as needed.

*Source and distribution*

   - Run time :
   https://github.com/wso2/product-esb/releases/tag/v5.0.0-rc3
   - Tooling:
   https://github.com/wso2/devstudio-tooling-esb/releases/tag/v5.0.0-rc3
   - Analytics :
   https://github.com/wso2/analytics-esb/releases/tag/v5.0.0-rc3

Please vote as following,
[+] Stable - Go ahead and release
[-]  Broken - Do not release (Explain why)

Thanks,
- WSO2 ESB Team -

*Nadeeshaan Gunasinghe*
Software Engineer, WSO2 Inc. http://wso2.com
+94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe <#>

  

Get a signature like this: Click here!

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


[Dev] carbon-mediation-4.6.5 Released

2016-08-09 Thread Jagath Sisirakumara Ariyarathne
Hi All,

Carbon-mediation 4.6.5 released.

org.wso2.carbon.mediation
carbon-mediation
4.6.5

Thanks.

-- 
Jagath Ariyarathne
Technical Lead
WSO2 Inc.  http://wso2.com/
Email: jaga...@wso2.com
Mob  : +94 77 386 7048

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


Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.3.0 RC 2

2016-08-09 Thread Prasanna Dangalla
Hi All,

Tested the following scenarios in a two node cluster mounted setup using
MySQL as the database which is deployed in Amazon EC2 instances with an
NGINX load balancer.


   - Basic auth
   - SOAP service creation
   - REST service creation
   - WSDL upload
   - Tags in Publisher
   - Notes in Publisher
   - Subscription for Publisher notification (Lifecycle upload)
   - WSDL Diff view
   - Dependency graph
   - Unbounded filed search
   - Time in lifecycle feature
   - Governance REST API option text field values, associations in GET
   Request
   - Deleting an Asset

[+] Stable - go ahead and release

Regards,
*Prasanna Dangalla*
Senior Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware


*cell: +94 718 11 27 51*
*twitter: @prasa77*

On Tue, Aug 9, 2016 at 7:41 PM, Rajith Roshan  wrote:

> Hi all,
>
> Tested the following scenarios [1] in a mounted setup using oracle 11
>
> [1] - https://docs.google.com/a/wso2.com/spreadsheets/d/
> 1hQJ3m2DDWkBPYfJsRITRYmYz2bmd49RnhNPVuh-pbKE/edit?usp=sharing
>
> No issues found
>
> [+] Stable - go ahead and release
>
> Thanks!
> Rajith
>
>
> On Tue, Aug 9, 2016 at 6:16 PM, Chanaka Jayasena  wrote:
>
>> Following senarios tested and found no issue. [+] Stable - go ahead and
>> release.
>>
>> Create new user
>> sign in from the new user
>> comment and rate other users assets
>>
>> Create new taxonomy
>> Assign taxonomy to asset type
>> Apply taxonomies terms to assets
>> Filter asset by adding, editing removing taxonomy filters.
>>
>> Asset filtering by defining categorization from the rxt.
>>
>> Search assets
>> By Asset Name
>> By Asset Content
>> By Asset Tag
>> By Asset Version
>> By Lifecycle Name
>> By Lifecycle State
>>
>> Filter by tags
>> Remove tag filter
>>
>> Sort by date/time
>> Sort by name
>>
>> Create new asset type
>> Override default icon with a custom asset extension
>>
>> Create new asset
>> Update asset
>> Change lifecycle state
>> Copy an asset to a new version
>> Delete asset
>>
>> thanks,
>> Chanaka
>>
>> On Tue, Aug 9, 2016 at 5:26 PM, Madawa Soysa  wrote:
>>
>>> Hi All,
>>> Tested the scenarios[1] in a mounted setup. (MySQL 5.7).
>>> No issues found.
>>>
>>> [+] Stable - go ahead and release
>>>
>>>
>>> [1] - https://docs.google.com/a/wso2.com/spreadsheets/d/1oG6ZyKp
>>> R-oFTR_UbowFBieOEpItGINrTbXDs8XoJbOU/edit?usp=sharing
>>>
>>>
>>> On Tue, Aug 9, 2016 at 4:56 PM, Malintha Fernando 
>>> wrote:
>>>
 Tested the following scenarios and verified.

 Registry operations on store, publisher and admin console.
 Publisher RXT field validations against different regular expressions
 UI operations on Microsoft Edge and IE 11
 Registry operations on a clustered setup with 2 nodes with shared
 registry and user databases (MySQL)
 Pointing user, registry and social databases to MsSQL databases
 Social reviews with PostgreSQL database.
 Moving between store and publisher pages on different browsers after
 caramel load cache disabling. (Firefox, Chrome, IE11, Edge)

 Hence voting +1 and stable.


 On Fri, Aug 5, 2016 at 8:38 PM, Rajith Roshan  wrote:

> Hi Devs,
>
> WSO2 Governance Registry 5.3.0 RC2 Release Vote.
>
> This release fixes the following issues:
> https://wso2.org/jira/browse/REGISTRY-3854?filter=13166
>
> Please download, test and vote. Please refer the release verification
> guide for detailed information on verifying this release.
>
> Source & binary distribution files:
> https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.3.0/rc2/
>
> Maven staging repo:
> https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1008
>
> The tag to be voted upon:
> https://github.com/wso2/product-greg/tree/v5.3.0-rc2
>
> [+] Stable - go ahead and release
> [-]  Broken - do not release (please explain why)
>
> Thanks and Regards
> ES/G-Reg team
>
> --
> 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
>
>


 --
 Malintha Fernando
 Software Engineer
 WSO2 Inc. | http://wso2.com
 Mobile : +94 718874922
 Blog : http://blog.malintha.org

 Lean . Enterprise . Middleware







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


>>>
>>>
>>> --
>>>
>>> Madawa Soysa / Software Engineer
>>> mada...@wso2.com / +94714616050
>>>
>>> *WSO2 Inc.*
>>> lean.enterprise.middleware
>>>
>>>   
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> 

Re: [Dev] GSOC 2016: Proposal 7

2016-08-09 Thread Dinanjana Gunaratne
Dear all,
We had a meeting today & came to below conclusions.

   - Instead of having a report with aggregated details on possible esb
   events, have reports per event.
   - It is better if we can have this report and other collected details on
   an one archive. So the user can directly send the archive for inspection
   when an incident occured
   - Integration of JFR
   - Thread usage details

Thanks and B.R,
Dinanjana

On Thu, Aug 4, 2016 at 2:45 AM, Dinanjana Gunaratne <
dinanjanagunara...@gmail.com> wrote:

> Hi all,
> Problem solved
>
> On Thu, Aug 4, 2016 at 2:08 AM, Dinanjana Gunaratne <
> dinanjanagunara...@gmail.com> wrote:
>
>> Hello all,
>> I tried to build a carbon component by referring to this[1] tutorial and
>> my attempts keep getting failed. I couldn't get the wsdl doc generated for
>> service. Tomcat returns 404 whenever I try that . Is there a way to find
>> out whether a service is deployed in carbon sever by observing logs
>> ?(without looking at the mgt console)
>>
>> B.r,
>> Dinanjana
>>
>> [1] :http://wso2.com/library/tutorials/2014/03/how-to-
>> create-a-feature-from-wso2-carbon-component/
>>
>> On Mon, Jul 25, 2016 at 1:59 PM, Dinanjana Gunaratne <
>> dinanjanagunara...@gmail.com> wrote:
>>
>>> Hi Kasun,
>>> Currently our solution has following capabilities.
>>> Monitoring memory and CPU loads
>>> Monitoring request load
>>> Monitoring responsiveness of ESB.
>>> Creating thread and heap dumps
>>> Creating a report
>>> Storing request count and relevant details in Derby embedded db
>>> When any adverse effect taking place on esb this variables can indicate
>>> that. Currently we are monitoring those aspects in an event based system.
>>> Each event can be configured by the user by changing parameters in
>>> respective config files. So when an anomaly detected by those monitors
>>> respective event will be triggered. This will result in logging the event
>>> in a report. Also thread dumps heap dumps will be collected according to
>>> users specifications. We can schedule a demo on Wednesday preferably in the
>>> night since I have an interview on the same day. I will confirm it once I
>>> discuss this with my mentors
>>>
>>> On Jul 25, 2016 9:30 AM, "Kasun Indrasiri"  wrote:
>>>
 What's the current state of this project? Shall we do a end to end demo
 on what you have done so far?

 On Tue, Jun 21, 2016 at 6:24 PM, Dinanjana Gunaratne <
 dinanjanagunara...@gmail.com> wrote:

> Here are the minutes of the review meeting we had yesterda
> y
>  -Some code refactoring was suggested. Reducing use of static
> variables and static methods was suggested.
>  -As the next milestone adding user configurable esb issue reporting
> suggested. This will change the current implementation to event   base
> implementation.There will be pre defined events for monitoring tool.
>   -E.g Out of memory event
>  Configurable options :Memory threshold
>  Outcomes (heap
> dumps,thread dumps)
>  Frequency of extracting
> dumps
>
> - Creating a class diagram
>
>
>
> On Wed, Jun 1, 2016 at 10:13 PM, Dinanjana Gunaratne <
> dinanjanagunara...@gmail.com> wrote:
>
>> Hello all,
>>
>> Progress of the tool so far
>>
>> The tool can be deployed in a remote machine to monitor ESB instance.
>> It connects to MBanServer of the targeted machine through RMI. Currently 
>> it
>> monitors memory usage, CPU usage and Network traffic of the ESB. Network
>> traffic details are gathered through PassThruHttpSender/receiver mbeans.
>> These metrics values are queried periodically. Period can be defined on a
>> property file under the resources folder inside the working dir. There 
>> are
>> three threads running inside the tool.
>>
>> Thread 1: Periodically query memory and operating system mbeans to
>> find out about heap memory usage & cpu load avearge
>>Threshold values for max memory usage and max cpu load
>> average can be set on the property file. So is the period.
>>If memory usage exceeds this max value heap dump will
>> be automatically generated on the remote ESB Home. User can
>>specify any location. By default it will be created on ESB home. If 
>> the
>> average CPU load exceeds the max value the Threaddump 
>> will
>> be generated inside the tool. Location to thread dumps to be saved can be
>> specified by the user. Each time a heapdump requested a
>> seperate thread will be created to handle it.
>>
>> Thread 2: Periodically monitors network traffic from
>> PassThruHTTPSender/receiver mbeans. As we discussed earlier network 
>> details
>>are persisted to an embedded derby db. 

Re: [Dev] Clarification on "-Dsetup" option for IS 5.2.0 with MySQL 5.7

2016-08-09 Thread Thilini Cooray
Hi,

In API Manager, -Dsetup would not take MySQL 5.7 scripts (for registry, um
and apimgt) to execute by default.
However you can rename those scripts to mysql.sql and then those can be
executed with -Dsetup.

Since -Dsetup is only a development time option, as Maduranga has
mentioned, kernel 4.4.7  has removed -Dsetup default support  for mysql 5.7
[1].

@IS team : shall we modify your "Setting up MySQL" documentation either by
removing -Dsetup option as per APIM doc [2] or explaining the file renaming
approach as per kernel doc [3]?
Also IMO, it is better to rename identity script as *mysql5.7.sql* instead
of mysql-5.7+.sql to comply with kernel's script naming.

We removed the -Dsetup option from the APIM documentation as file renaming
can be confusing for the users and most of the time this option does not
use in real production deployments.

[1] [Dev] [MySql5.7] Concern about MySql 5.7 scripts running with -Dsetup
[2] https://docs.wso2.com/display/AM200/Setting+up+MySQL
[3] https://docs.wso2.com/display/ADMIN447/Setting+up+MySQL

Thanks.



On Tue, Aug 9, 2016 at 5:22 PM, Maduranga Siriwardena 
wrote:

> Hi Sewmini,
>
> Kernel 4.4.6 had the feature to execute mysql 5.7 scripts with -Dsetup.
> But it is removed from kernel 4.4.7 release.
>
> This feature was added to identity components based on the fact that the
> kernel had this feature. But as this no longer in kernel, there is no point
> of having it in identity component. So I guess this feature should be
> removed from identity components also.
>
> @Thilini, what is the status of this feature in APIM 2.0.0?
>
> Thanks,
> Maduranga.
>
> On Mon, Aug 8, 2016 at 2:24 PM, Sewmini Jayaweera 
> wrote:
>
>> Hi IS team,
>>
>> I pointed carbon, registry and user DBs to MySQL 5.7 and tried starting
>> with -dsetup. What I observed was;
>>
>> - In order to registry and user tables to get created with -Dsetup,
>> 'mysql5.7.sql'  script should be renamed to mysql.sql. But in order for
>> identity tables to get created it requires 'mysql-5.7+.sql' script.
>>
>> Reason why I renamed script which creates registry and user tables is
>> Jira [1] and mail thread [2]. According to mail thread [2] Kapila has
>> initially done the fix to work -Dsetup without renaming the script but he
>> has revered it.
>>
>> How are we going to handle above?
>>
>>
>> [1]. https://wso2.org/jira/browse/DOCUMENTATION-3604
>> [2]. WSO2 Carbon Kernel 4.4.6 throws exceptions when rinning Oracle DB
>> script
>>
>> Thank you.
>> Kind Regards,
>>
>> Sewmini Jayaweera
>> *Software Engineer - QA Team*
>> Mobile: +94 (0) 773 381 250
>> sewm...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Maduranga Siriwardena
> Software Engineer
> WSO2 Inc.
>
> mobile: +94718990591
>



-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : thili...@wso2.com

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [IS] [Analytics] Improvement to use Siddhi streams to send notifications

2016-08-09 Thread Sriskandarajah Suhothayan
Based on the chat with Johann he suggested to support claims at event
publisher.
@Indunil, can you get the full requirements and update the thread.

Regards
Suho

On Mon, Aug 1, 2016 at 11:24 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
>
> On Mon, Aug 1, 2016 at 8:38 PM, Indunil Upeksha Rathnayake <
> indu...@wso2.com> wrote:
>
>> Hi Suhothayan,
>>
>> Hi Indunil,
>
> I like to add some comments on this.. Please find them below..
>
>
>> There was an issue in EventPublisherServiceDS where
>> setConfigurationContextService() method get invoked after the bundle get
>> activated. Due to that, when we are trying to invoke
>> deployEventPublisherConfiguration() of EventPublisherService from the
>> activate method of an osgi bundle in IS side, it's receiving a null
>> pointer(Since it refers the ConfigurationContextService object in
>> EventPublisherServiceValueHolder). I think you can resolve it by
>> changing the osgi reference cardinality in [1] as "1..1"(Mandatory), if
>> there is no specific reason for making it optional.
>>
>
> There is a valid reason for this..
> I believe, as you know we cannot guarantee about OSGI bundle loading in
> carbon environment.. In this case, there is a possibility where axis2
> deployment can start before bundle activation of a OSGI component. To avoid
> this we'll follow a similar approach like below,
>
> 
>
>org.wso2.carbon.event.publisher.core.EventPublisherService
>
> 
>
> Here, we are adding the reference of the corresponding OSGI service which
> is exposed by relevant OSGI module.. If you want to use above approach
> (Axis2RequiredServices), we cannot have 1..1 mapping for
> ConfigurationContextService since it causes cyclic dependency and affects
> bundle loading..
>
> In IS side we were able to get rid of the null pointer by adding an osgi
>> reference for ConfigurationContextService in the service component and
>> invoked the deployEventPublisherConfiguration() in activate() method.
>>
>
> No, above solution is not correct and will not work all the time.. There
> is a possibility where you'll encounter same issue when
> ConfigurationContextService is bind to you component first and takes
> sometime to resolve for Event Publisher..
>
> What is the usecase for creating an Event Publisher in server restart ?
> Can you ship the pack with an Event Publisher or deploy an event publisher
> for first event if it is not there..
>
>
>> And also there was an issue in filling out dynamic properties of an
>> output adapter from the arbitrary data values, and sent a PR for that.
>> Please review and merge the PR in [2].
>>
>
> Thanks, Merged it..
>
> Regards,
> Mohan
>
>
>>
>> [1] https://github.com/wso2/carbon-analytics-common/blob/
>> master/components/event-publisher/org.wso2.carbon.
>> event.publisher.core/src/main/java/org/wso2/carbon/event/
>> publisher/core/internal/ds/EventPublisherServiceDS.java#L56
>> [2] https://github.com/wso2/carbon-analytics-common/pull/306/files
>>
>> Thanks and Regards
>>
>> On Mon, Aug 1, 2016 at 3:06 PM, Sriskandarajah Suhothayan 
>> wrote:
>>
>>> HI Indunil
>>>
>>> Any update on this? Was the provided solution working?
>>>
>>> We released CEP 4.2-RC1. If we need new features/improvements for this
>>> effort, we can incorporate them in the next component release.
>>>
>>> Regards
>>> Suho
>>>
>>> On Fri, Jul 22, 2016 at 3:10 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>


 On Fri, Jul 22, 2016 at 3:00 PM, Johann Nallathamby 
 wrote:

>
>
> On Fri, Jul 22, 2016 at 8:33 AM, Indunil Upeksha Rathnayake <
> indu...@wso2.com> wrote:
>
>> Hi,
>>
>> On Fri, Jul 22, 2016 at 12:28 PM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>>
>>>
>>> On Fri, Jul 22, 2016 at 12:00 PM, Indunil Upeksha Rathnayake <
>>> indu...@wso2.com> wrote:
>>>
 Hi,

 Please find the meeting notes in [1].  I have following
 considerations regarding the improvements we have discussed.

 (1) Even though we have configured to load the email template from
 EventPublisher(analytics side), the placeholder values has to be sent 
 as
 meta data/correlation data/payload data/arbitrary data, since in 
 analytics
 side, the user claim values are not getting from the user store.
 In order to send the placeholder values from IS side, anyway we
 have to load the email template and retrieve the placeholders. So as I 
 have
 understood, for email notifications, it's not needed to use the email
 template loading part in analytics, since it'll be a redundant task. 
 (Refer
 [2])

>>>
>>> Here we can set the claim values as arbitrary data, and the
>>> notification specific details as the meta, correlation & payload data.
>>> Then we can use the template 

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

2016-08-09 Thread Nuwan Dias
If you do that and depend on OAuth 2.0 scopes to determine the data to be
returned from your Application, you're basically tying a core Application
logic to the security protocol of the API. What happens if you later decide
to remove OAuth and use some other protocol to secure your API?

In my view the correct solution is to have the Application deal with this
logic and the fronting API layer should provide the Application the
necessary data it needs to make that decision. So in this context, the API
should create a JWT containing the data the App needs (permissions, roles,
claims or whatever) and provide the JWT to the Application. Since JWT is a
standard mechanism of of passing information between entities, it is not
tied to the security protocol of the API.

On Tue, Aug 9, 2016 at 6:25 PM, Dilan Udara Ariyaratne 
wrote:

> Hi Nuwan,
>
> The responsibility of this authorization check could be assigned to either
> one of the layers that you have mentioned.
> Currently, we have assigned this responsibility to API layer of the
> backend system.
>
> Cheers,
> Dilan.
>
> *Dilan U. Ariyaratne*
> Senior Software Engineer
> WSO2 Inc. 
> Mobile: +94766405580 <%2B94766405580>
> lean . enterprise . middleware
>
>
> On Tue, Aug 9, 2016 at 8:33 AM, Nuwan Dias  wrote:
>
>> Whose responsibility is it to decide what details to return in the
>> response based on the user who's requesting it? Is it the fronting API's
>> responsibility to decide this or should it be the core back-end of the
>> Application who should be deciding who gets what?
>>
>> On Tue, Aug 9, 2016 at 6:47 AM, Dilan Udara Ariyaratne 
>> wrote:
>>
>>> Adding the thread to architecture, as this proposes an architectural
>>> change to existing OAuth scopes @ APIM level.
>>>
>>> Regards,
>>> Dilan.
>>>
>>> *Dilan U. Ariyaratne*
>>> Senior Software Engineer
>>> WSO2 Inc. 
>>> Mobile: +94766405580 <%2B94766405580>
>>> lean . enterprise . middleware
>>>
>>>
>>> On Tue, Aug 9, 2016 at 6:30 AM, Dilan Udara Ariyaratne 
>>> wrote:
>>>
 Hi Sam,

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

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

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

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

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

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

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

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

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

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

 Although this also seems doable, now we are simply in a process of
 complicating permission management side of our application.
 Since the capability of retrieving details of all devices is already
 provided by a predefined role, now we do not have the
 luxury of creating one single role having the same capability + another
 set of capabilities simply because of the fact that a role cannot be
 assigned to another role.
 With this limitation, as of now if an administrator wants to assign a
 user the capability of retrieving details of all devices + another set
 of capabilities,
 he cannot simply do that by assigning the user a single role, instead
 he 

[Dev] multi-tenant monetization

2016-08-09 Thread Roger Giuffre
I am exploring the architecture of your wso2am few months. I would now like to
understand if it is already set up an option to register a tenant from a
registration page after login with the identity server. I'm working on
integration
with killbill and I want to create a subscription plan on using the tenant
by registered user.

Anyway congratulations for the immense work you have done over the years

Right now I'm implementing the KillbillTenantManager class to handle the
persistence and save the data for the tenant created in killbill.

In generating how you plan to proceed with regard to the integration with
third-party billing-engine?

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


Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.3.0 RC 2

2016-08-09 Thread Rajith Roshan
Hi all,

Tested the following scenarios [1] in a mounted setup using oracle 11

[1] -
https://docs.google.com/a/wso2.com/spreadsheets/d/1hQJ3m2DDWkBPYfJsRITRYmYz2bmd49RnhNPVuh-pbKE/edit?usp=sharing

No issues found

[+] Stable - go ahead and release

Thanks!
Rajith


On Tue, Aug 9, 2016 at 6:16 PM, Chanaka Jayasena  wrote:

> Following senarios tested and found no issue. [+] Stable - go ahead and
> release.
>
> Create new user
> sign in from the new user
> comment and rate other users assets
>
> Create new taxonomy
> Assign taxonomy to asset type
> Apply taxonomies terms to assets
> Filter asset by adding, editing removing taxonomy filters.
>
> Asset filtering by defining categorization from the rxt.
>
> Search assets
> By Asset Name
> By Asset Content
> By Asset Tag
> By Asset Version
> By Lifecycle Name
> By Lifecycle State
>
> Filter by tags
> Remove tag filter
>
> Sort by date/time
> Sort by name
>
> Create new asset type
> Override default icon with a custom asset extension
>
> Create new asset
> Update asset
> Change lifecycle state
> Copy an asset to a new version
> Delete asset
>
> thanks,
> Chanaka
>
> On Tue, Aug 9, 2016 at 5:26 PM, Madawa Soysa  wrote:
>
>> Hi All,
>> Tested the scenarios[1] in a mounted setup. (MySQL 5.7).
>> No issues found.
>>
>> [+] Stable - go ahead and release
>>
>>
>> [1] - https://docs.google.com/a/wso2.com/spreadsheets/d/1oG6ZyKp
>> R-oFTR_UbowFBieOEpItGINrTbXDs8XoJbOU/edit?usp=sharing
>>
>>
>> On Tue, Aug 9, 2016 at 4:56 PM, Malintha Fernando 
>> wrote:
>>
>>> Tested the following scenarios and verified.
>>>
>>> Registry operations on store, publisher and admin console.
>>> Publisher RXT field validations against different regular expressions
>>> UI operations on Microsoft Edge and IE 11
>>> Registry operations on a clustered setup with 2 nodes with shared
>>> registry and user databases (MySQL)
>>> Pointing user, registry and social databases to MsSQL databases
>>> Social reviews with PostgreSQL database.
>>> Moving between store and publisher pages on different browsers after
>>> caramel load cache disabling. (Firefox, Chrome, IE11, Edge)
>>>
>>> Hence voting +1 and stable.
>>>
>>>
>>> On Fri, Aug 5, 2016 at 8:38 PM, Rajith Roshan  wrote:
>>>
 Hi Devs,

 WSO2 Governance Registry 5.3.0 RC2 Release Vote.

 This release fixes the following issues:
 https://wso2.org/jira/browse/REGISTRY-3854?filter=13166

 Please download, test and vote. Please refer the release verification
 guide for detailed information on verifying this release.

 Source & binary distribution files:
 https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.3.0/rc2/

 Maven staging repo:
 https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1008

 The tag to be voted upon:
 https://github.com/wso2/product-greg/tree/v5.3.0-rc2

 [+] Stable - go ahead and release
 [-]  Broken - do not release (please explain why)

 Thanks and Regards
 ES/G-Reg team

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


>>>
>>>
>>> --
>>> Malintha Fernando
>>> Software Engineer
>>> WSO2 Inc. | http://wso2.com
>>> Mobile : +94 718874922
>>> Blog : http://blog.malintha.org
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Madawa Soysa / Software Engineer
>> mada...@wso2.com / +94714616050
>>
>> *WSO2 Inc.*
>> lean.enterprise.middleware
>>
>>   
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chanaka Jayasena
> Associate Tech Lead,
> email: chan...@wso2.com; cell: +94 77 4464006
> blog: http://chanaka3d.blogspot.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] Merge changes done for https://wso2.org/jira/browse/CPARENT-6

2016-08-09 Thread Isuru Perera
Hi,

On Tue, Aug 9, 2016 at 3:10 PM, Jayanga Dissanayake 
wrote:

> Hi Isuru,
>
> It seems to be the culprit. I removed the jacoco plugin from
> carbon-kernel/parent/pom.xml and it builds.
>
> One other concern is, in this PR, you have moved the doc and source
> plugins into plugin section, which cause it to run always. But we usually
>  don't want src and docs to be generated at each build. Could you please
> explain why those plugins were moved into plugin section.
>
I added java doc and source plugins to parent pom as we need to have
sources jars and java docs every time we build the source.

If you look at our previous releases based on Carbon 4.x, there are no
source jars for most of the components. Without having sources jars, it is
very difficult to debug as well.

Even though, we expected our developers to release the sources jars during
release time, we can see that it's not happening most of the time.

Java Doc generation is also very important and Java Doc Plugin shows
warnings if there are any issues with our Java Docs. It's easy to fix such
warnings before the release.

If the build time is the main concern for local builds, we can disable Java
doc plugin as it takes some time. The source plugin doesn't take much time.

For local builds, we can skip java docs using the parameter:
"-Dmaven.javadoc.skip=true".

I think having these plugins in parent pom is very important.

>
> Thanks,
> Jayanga.
>
> Thanks,
> Jayanga.
>
> *Jayanga Dissanayake*
> Associate Technical Lead
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com
> mobile: +94772207259
> 
>
> On Tue, Aug 9, 2016 at 2:34 PM, Isuru Perera  wrote:
>
>> Did you remove existing Jacoco plugin in Carbon Kernel?
>>
>> Isuru Perera
>>
>> On 9 Aug 2016 2:29 p.m., "Jayanga Dissanayake"  wrote:
>>
>>> Hi Isuru,
>>>
>>> When I try to build the carbon kernel with new parent pom with your
>>> updates, the following error happens.
>>> It seems to be an issue in jacoco plugin, any idea?
>>>
>>> [ERROR] Failed to execute goal 
>>> org.jacoco:jacoco-maven-plugin:0.7.5.201505241946:report
>>> (post-unit-test) on project org.wso2.carbon.launcher: An error has occurred
>>> in JaCoCo Test report generation. Error while creating report: Error while
>>> analyzing class /tmp/1/carbon-kernel/launcher/
>>> target/classes/org/wso2/carbon/launcher/CarbonServer.class. Class
>>> org/wso2/carbon/launcher/CarbonServer is already instrumented. -> [Help
>>> 1]
>>>
>>> Thanks,
>>> Jayanga.
>>>
>>> *Jayanga Dissanayake*
>>> Associate Technical Lead
>>> WSO2 Inc. - http://wso2.com/
>>> lean . enterprise . middleware
>>> email: jaya...@wso2.com
>>> mobile: +94772207259
>>> 
>>>
>>> On Tue, Aug 9, 2016 at 12:24 PM, Isuru Perera  wrote:
>>>
 Hi Jayanga,

 I didn't update maven bundle plugin. Could you please check on that too?

 Please use following command to check plugin updates.

 mvn versions:display-plugin-updates

 Thanks!

 On Tue, Aug 9, 2016 at 11:39 AM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> Hi Jayanga,
>
> Let's merge this and do a release along with kernel 5.2.0.
>
> On Wed, Jul 27, 2016 at 3:44 PM, Isuru Perera  wrote:
>
>> Hi,
>>
>> Could you please review the PR in [1].
>>
>> I also noticed that carbon-parent version 5 is released [2], but the
>> master branch still has 5-SNAPSHOT [3].
>>
>> [1] https://wso2.org/jira/browse/CPARENT-6
>> [2] https://github.com/wso2/carbon-parent/releases/tag/carbon-pa
>> rent-5
>> [3] https://github.com/wso2/carbon-parent/blob/master/pom.xml#L22
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2
>> 
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com
> *
> Twitter - *http://twitter.com/kishanthan
> *
>



 --
 Isuru Perera
 Associate Technical Lead | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha
 Contact: +IsuruPereraWSO2
 

>>>
>>>
>


-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 
___
Dev mailing list
Dev@wso2.org

Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.3.0 RC 2

2016-08-09 Thread Thushara Ranawaka
Hi all,

I tested following scenarios,

Running getting started guide in Windows environment.

Store/Publisher Notification support in IE11
Publisher Lifecycle operations in IE11
Publisher Association operations in IE11
Store/Publisher Taxonomy operations in IE11
Utility bar(visualize, Copy2clipbored, Show dependancy, etc...) in IE11

Basic/SSO login in IE11

Restricted permission views for normal user
Restricted permission views for tenant user

I didn't found any blocking issues.

[X] Stable - Go ahead and release

Thanks,
Thushara.

On Tue, Aug 9, 2016 at 6:16 PM, Chanaka Jayasena  wrote:

> Following senarios tested and found no issue. [+] Stable - go ahead and
> release.
>
> Create new user
> sign in from the new user
> comment and rate other users assets
>
> Create new taxonomy
> Assign taxonomy to asset type
> Apply taxonomies terms to assets
> Filter asset by adding, editing removing taxonomy filters.
>
> Asset filtering by defining categorization from the rxt.
>
> Search assets
> By Asset Name
> By Asset Content
> By Asset Tag
> By Asset Version
> By Lifecycle Name
> By Lifecycle State
>
> Filter by tags
> Remove tag filter
>
> Sort by date/time
> Sort by name
>
> Create new asset type
> Override default icon with a custom asset extension
>
> Create new asset
> Update asset
> Change lifecycle state
> Copy an asset to a new version
> Delete asset
>
> thanks,
> Chanaka
>
> On Tue, Aug 9, 2016 at 5:26 PM, Madawa Soysa  wrote:
>
>> Hi All,
>> Tested the scenarios[1] in a mounted setup. (MySQL 5.7).
>> No issues found.
>>
>> [+] Stable - go ahead and release
>>
>>
>> [1] - https://docs.google.com/a/wso2.com/spreadsheets/d/1oG6ZyKp
>> R-oFTR_UbowFBieOEpItGINrTbXDs8XoJbOU/edit?usp=sharing
>>
>>
>> On Tue, Aug 9, 2016 at 4:56 PM, Malintha Fernando 
>> wrote:
>>
>>> Tested the following scenarios and verified.
>>>
>>> Registry operations on store, publisher and admin console.
>>> Publisher RXT field validations against different regular expressions
>>> UI operations on Microsoft Edge and IE 11
>>> Registry operations on a clustered setup with 2 nodes with shared
>>> registry and user databases (MySQL)
>>> Pointing user, registry and social databases to MsSQL databases
>>> Social reviews with PostgreSQL database.
>>> Moving between store and publisher pages on different browsers after
>>> caramel load cache disabling. (Firefox, Chrome, IE11, Edge)
>>>
>>> Hence voting +1 and stable.
>>>
>>>
>>> On Fri, Aug 5, 2016 at 8:38 PM, Rajith Roshan  wrote:
>>>
 Hi Devs,

 WSO2 Governance Registry 5.3.0 RC2 Release Vote.

 This release fixes the following issues:
 https://wso2.org/jira/browse/REGISTRY-3854?filter=13166

 Please download, test and vote. Please refer the release verification
 guide for detailed information on verifying this release.

 Source & binary distribution files:
 https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.3.0/rc2/

 Maven staging repo:
 https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1008

 The tag to be voted upon:
 https://github.com/wso2/product-greg/tree/v5.3.0-rc2

 [+] Stable - go ahead and release
 [-]  Broken - do not release (please explain why)

 Thanks and Regards
 ES/G-Reg team

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


>>>
>>>
>>> --
>>> Malintha Fernando
>>> Software Engineer
>>> WSO2 Inc. | http://wso2.com
>>> Mobile : +94 718874922
>>> Blog : http://blog.malintha.org
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Madawa Soysa / Software Engineer
>> mada...@wso2.com / +94714616050
>>
>> *WSO2 Inc.*
>> lean.enterprise.middleware
>>
>>   
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chanaka Jayasena
> Associate Tech Lead,
> email: chan...@wso2.com; cell: +94 77 4464006
> blog: http://chanaka3d.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks,
Thushara Kasun Ranawaka
Software Engineer
WSO2 Inc.;  
lean.enterprise.middleware
Mobile : *+94 (0) 773438949*
*thusha...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Architecture] WSO2 Identity Server 5.3.0 Milestone 4 Released..!!

2016-08-09 Thread Harsha Thirimanna
​​
*WSO2 Identity Server 5.3.0 Milestone 4 Released..!!*


The WSO2 Identity Server team is pleased to announce the 4th Milestone of
WSO2 Identity Server 5.3.0. You can download this distribution from
https://github.com/wso2/product-is/releases/tag/v5.3.0-m4
Following list contains all the features, improvements and bug fixes
available with this milestone.
New Features

   - [IDENTITY-3113 ] -
   Manually Terminate User Session.
   - [IDENTITY-4828 ] - JWKS
   endpoint for OIDC.
   - [IDENTITY-4742 ] - Generic
   Authentication Mechanism to all the REST APIs.


Tasks

   - [IDENTITY-4900 ] -
   Improvements to Identity Recovery APIs with swagger definitions.
   - [IDENTITY-4902 ] - Create
   Users endpoint and modify Self Registration APIs with Swagger Definitions.
   - [IDENTITY-4901 ] - Modify
   accountrecoveryendpoint webApp with restructured Identity Recovery Rest
   APIs.
   - [IDENTITY-4903 ] - Modify
   accountrecoveryendpoint web app with new self registration endpoints.

Improvements

   - [IDENTITY-4929 ]
   - Improvement to use Siddhi streams to send notifications.
   - [IDENTITY-4894 ] - Add new
   column in SP_INBOUND_AUTH to specify the UI authenticator type.
   - [IDENTITY-4817 ]
   - Improvements to Challenge Question Add UI.


Bugs Fixes

   - [IDENTITY-4840 ]
   - Providing support for max_age parameter in OIDC.
   - [IDENTITY-4797 ] - Custom
   Inbound Authenticator configs and UIs not working as expected.
   - [IDENTITY-4753 ] - Change
   Redirection Flow in Authentication Framework.




*How To Contribute*
Your feedback are most welcome! Mailing ListsJoin our mailing list and
correspond with the developers directly.

   - Developer List : dev@wso2.org | Subscribe  | Mail
   Archive 
   - User forum : StackOverflow
   

Reporting Issues
We encourage you to report issues, improvements and feature requests
regarding WSO2 Identity Server through public WSO2 Identity Server JIRA
https://wso2.org/jira/browse/IDENTITY


~ The WSO2 Identity Server Team ~


*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/ha
rsha-thirimanna/10/ab8/122

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


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

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

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

Cheers,
Dilan.

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


On Tue, Aug 9, 2016 at 8:33 AM, Nuwan Dias  wrote:

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

 Sometimes based on the scopes we might need to authorize the APIs to
 get different responses.

 Eg: Facebook scopes [1]. At the login we can send multiple scopes,
 generate the token and authorize an API based on scopes.

 It is not possible if only one scope is assigned to one API (resource).

 IMO 

Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.3.0 RC 2

2016-08-09 Thread Chanaka Jayasena
Following senarios tested and found no issue. [+] Stable - go ahead and
release.

Create new user
sign in from the new user
comment and rate other users assets

Create new taxonomy
Assign taxonomy to asset type
Apply taxonomies terms to assets
Filter asset by adding, editing removing taxonomy filters.

Asset filtering by defining categorization from the rxt.

Search assets
By Asset Name
By Asset Content
By Asset Tag
By Asset Version
By Lifecycle Name
By Lifecycle State

Filter by tags
Remove tag filter

Sort by date/time
Sort by name

Create new asset type
Override default icon with a custom asset extension

Create new asset
Update asset
Change lifecycle state
Copy an asset to a new version
Delete asset

thanks,
Chanaka

On Tue, Aug 9, 2016 at 5:26 PM, Madawa Soysa  wrote:

> Hi All,
> Tested the scenarios[1] in a mounted setup. (MySQL 5.7).
> No issues found.
>
> [+] Stable - go ahead and release
>
>
> [1] - https://docs.google.com/a/wso2.com/spreadsheets/d/1oG6ZyKpR-oFTR_
> UbowFBieOEpItGINrTbXDs8XoJbOU/edit?usp=sharing
>
>
> On Tue, Aug 9, 2016 at 4:56 PM, Malintha Fernando 
> wrote:
>
>> Tested the following scenarios and verified.
>>
>> Registry operations on store, publisher and admin console.
>> Publisher RXT field validations against different regular expressions
>> UI operations on Microsoft Edge and IE 11
>> Registry operations on a clustered setup with 2 nodes with shared
>> registry and user databases (MySQL)
>> Pointing user, registry and social databases to MsSQL databases
>> Social reviews with PostgreSQL database.
>> Moving between store and publisher pages on different browsers after
>> caramel load cache disabling. (Firefox, Chrome, IE11, Edge)
>>
>> Hence voting +1 and stable.
>>
>>
>> On Fri, Aug 5, 2016 at 8:38 PM, Rajith Roshan  wrote:
>>
>>> Hi Devs,
>>>
>>> WSO2 Governance Registry 5.3.0 RC2 Release Vote.
>>>
>>> This release fixes the following issues:
>>> https://wso2.org/jira/browse/REGISTRY-3854?filter=13166
>>>
>>> Please download, test and vote. Please refer the release verification
>>> guide for detailed information on verifying this release.
>>>
>>> Source & binary distribution files:
>>> https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.3.0/rc2/
>>>
>>> Maven staging repo:
>>> https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1008
>>>
>>> The tag to be voted upon:
>>> https://github.com/wso2/product-greg/tree/v5.3.0-rc2
>>>
>>> [+] Stable - go ahead and release
>>> [-]  Broken - do not release (please explain why)
>>>
>>> Thanks and Regards
>>> ES/G-Reg team
>>>
>>> --
>>> 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
>>>
>>>
>>
>>
>> --
>> Malintha Fernando
>> Software Engineer
>> WSO2 Inc. | http://wso2.com
>> Mobile : +94 718874922
>> Blog : http://blog.malintha.org
>>
>> Lean . Enterprise . Middleware
>>
>>
>>
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Madawa Soysa / Software Engineer
> mada...@wso2.com / +94714616050
>
> *WSO2 Inc.*
> lean.enterprise.middleware
>
>   
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chanaka Jayasena
Associate Tech Lead,
email: chan...@wso2.com; cell: +94 77 4464006
blog: http://chanaka3d.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Enterprise Store 2.1.0 RC 2

2016-08-09 Thread Chanaka Jayasena
Following senarios tested and found no issue. [+] Stable - go ahead and
release.

Create new user
sign in from the new user
comment and rate other users assets
bookmark  and unbookmark assets

Search assets
By Asset Name
By Asset Content
By Asset Tag
By Asset Version
By Lifecycle Name
By Lifecycle State

Filter by tags
Remove tag filter

Sort by date/time
Sort by name

Create new asset type
Override default icon with a custom asset extension

Create new asset
Update asset
Change lifecycle state
Copy an asset to a new version
Delete asset

thanks,
Chanaka

On Fri, Aug 5, 2016 at 8:40 PM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hi Devs,
>
> WSO2 Enterprise Store 2.1.0 RC2 Release Vote
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=13171
>
> Please download, test and vote. Please refer the release verification
> guide for detailed information on verifying this release.
>
> Source & binary distribution files:
>  https://svn.wso2.org/repos/wso2/scratch/ES/2.1.0/rc2/
>
> Maven staging repo:
> https://maven.wso2.org/nexus/content/repositories/orgwso2es-1006/
>
> The tag to be voted upon:
> https://github.com/wso2/product-es/tree/v2.1.0-rc2
>
>
> [+] Stable - go ahead and release
> [-]  Broken - do not release (please explain why)
>
> Thanks and Regards
> ES/G-Reg team
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chanaka Jayasena
Associate Tech Lead,
email: chan...@wso2.com; cell: +94 77 4464006
blog: http://chanaka3d.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.3.0 RC 2

2016-08-09 Thread Madawa Soysa
Hi All,
Tested the scenarios[1] in a mounted setup. (MySQL 5.7).
No issues found.

[+] Stable - go ahead and release


[1] -
https://docs.google.com/a/wso2.com/spreadsheets/d/1oG6ZyKpR-oFTR_UbowFBieOEpItGINrTbXDs8XoJbOU/edit?usp=sharing


On Tue, Aug 9, 2016 at 4:56 PM, Malintha Fernando 
wrote:

> Tested the following scenarios and verified.
>
> Registry operations on store, publisher and admin console.
> Publisher RXT field validations against different regular expressions
> UI operations on Microsoft Edge and IE 11
> Registry operations on a clustered setup with 2 nodes with shared registry
> and user databases (MySQL)
> Pointing user, registry and social databases to MsSQL databases
> Social reviews with PostgreSQL database.
> Moving between store and publisher pages on different browsers after
> caramel load cache disabling. (Firefox, Chrome, IE11, Edge)
>
> Hence voting +1 and stable.
>
>
> On Fri, Aug 5, 2016 at 8:38 PM, Rajith Roshan  wrote:
>
>> Hi Devs,
>>
>> WSO2 Governance Registry 5.3.0 RC2 Release Vote.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/browse/REGISTRY-3854?filter=13166
>>
>> Please download, test and vote. Please refer the release verification
>> guide for detailed information on verifying this release.
>>
>> Source & binary distribution files:
>> https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.3.0/rc2/
>>
>> Maven staging repo:
>> https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1008
>>
>> The tag to be voted upon:
>> https://github.com/wso2/product-greg/tree/v5.3.0-rc2
>>
>> [+] Stable - go ahead and release
>> [-]  Broken - do not release (please explain why)
>>
>> Thanks and Regards
>> ES/G-Reg team
>>
>> --
>> 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
>>
>>
>
>
> --
> Malintha Fernando
> Software Engineer
> WSO2 Inc. | http://wso2.com
> Mobile : +94 718874922
> Blog : http://blog.malintha.org
>
> Lean . Enterprise . Middleware
>
>
>
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Madawa Soysa / Software Engineer
mada...@wso2.com / +94714616050

*WSO2 Inc.*
lean.enterprise.middleware

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


Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.3.0 RC 2

2016-08-09 Thread Denuwanthi De Silva
Tested the following scenarios:

Admin Console reporting(H2 and Postgres databases)
Admin Console LifeCycle operations(H2 and Postgres databases)
WSDL Visualizer Store/Publisher
Store/Publisher operations with mounted to Postgres SQL database [1]

Hence voting +1 and stable​
 PostgreSQL - G-Reg 5.3.0 testing scenarios

​

[1]
https://docs.google.com/a/wso2.com/spreadsheets/d/1GQOxnweKoRe9aASEQFkx01334RFMyAam8m7IbKhobuI/edit?usp=sharing

On Tue, Aug 9, 2016 at 4:56 PM, Malintha Fernando 
wrote:

> Tested the following scenarios and verified.
>
> Registry operations on store, publisher and admin console.
> Publisher RXT field validations against different regular expressions
> UI operations on Microsoft Edge and IE 11
> Registry operations on a clustered setup with 2 nodes with shared registry
> and user databases (MySQL)
> Pointing user, registry and social databases to MsSQL databases
> Social reviews with PostgreSQL database.
> Moving between store and publisher pages on different browsers after
> caramel load cache disabling. (Firefox, Chrome, IE11, Edge)
>
> Hence voting +1 and stable.
>
>
> On Fri, Aug 5, 2016 at 8:38 PM, Rajith Roshan  wrote:
>
>> Hi Devs,
>>
>> WSO2 Governance Registry 5.3.0 RC2 Release Vote.
>>
>> This release fixes the following issues:
>> https://wso2.org/jira/browse/REGISTRY-3854?filter=13166
>>
>> Please download, test and vote. Please refer the release verification
>> guide for detailed information on verifying this release.
>>
>> Source & binary distribution files:
>> https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.3.0/rc2/
>>
>> Maven staging repo:
>> https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1008
>>
>> The tag to be voted upon:
>> https://github.com/wso2/product-greg/tree/v5.3.0-rc2
>>
>> [+] Stable - go ahead and release
>> [-]  Broken - do not release (please explain why)
>>
>> Thanks and Regards
>> ES/G-Reg team
>>
>> --
>> 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
>>
>>
>
>
> --
> Malintha Fernando
> Software Engineer
> WSO2 Inc. | http://wso2.com
> Mobile : +94 718874922
> Blog : http://blog.malintha.org
>
> Lean . Enterprise . Middleware
>
>
>
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Denuwanthi De Silva
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] Clarification on "-Dsetup" option for IS 5.2.0 with MySQL 5.7

2016-08-09 Thread Maduranga Siriwardena
Hi Sewmini,

Kernel 4.4.6 had the feature to execute mysql 5.7 scripts with -Dsetup. But
it is removed from kernel 4.4.7 release.

This feature was added to identity components based on the fact that the
kernel had this feature. But as this no longer in kernel, there is no point
of having it in identity component. So I guess this feature should be
removed from identity components also.

@Thilini, what is the status of this feature in APIM 2.0.0?

Thanks,
Maduranga.

On Mon, Aug 8, 2016 at 2:24 PM, Sewmini Jayaweera  wrote:

> Hi IS team,
>
> I pointed carbon, registry and user DBs to MySQL 5.7 and tried starting
> with -dsetup. What I observed was;
>
> - In order to registry and user tables to get created with -Dsetup,
> 'mysql5.7.sql'  script should be renamed to mysql.sql. But in order for
> identity tables to get created it requires 'mysql-5.7+.sql' script.
>
> Reason why I renamed script which creates registry and user tables is Jira
> [1] and mail thread [2]. According to mail thread [2] Kapila has initially
> done the fix to work -Dsetup without renaming the script but he has revered
> it.
>
> How are we going to handle above?
>
>
> [1]. https://wso2.org/jira/browse/DOCUMENTATION-3604
> [2]. WSO2 Carbon Kernel 4.4.6 throws exceptions when rinning Oracle DB
> script
>
> Thank you.
> Kind Regards,
>
> Sewmini Jayaweera
> *Software Engineer - QA Team*
> Mobile: +94 (0) 773 381 250
> sewm...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Maduranga Siriwardena
Software Engineer
WSO2 Inc.

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


Re: [Dev] [VOTE] Release WSO2 Governance Registry 5.3.0 RC 2

2016-08-09 Thread Malintha Fernando
Tested the following scenarios and verified.

Registry operations on store, publisher and admin console.
Publisher RXT field validations against different regular expressions
UI operations on Microsoft Edge and IE 11
Registry operations on a clustered setup with 2 nodes with shared registry
and user databases (MySQL)
Pointing user, registry and social databases to MsSQL databases
Social reviews with PostgreSQL database.
Moving between store and publisher pages on different browsers after
caramel load cache disabling. (Firefox, Chrome, IE11, Edge)

Hence voting +1 and stable.


On Fri, Aug 5, 2016 at 8:38 PM, Rajith Roshan  wrote:

> Hi Devs,
>
> WSO2 Governance Registry 5.3.0 RC2 Release Vote.
>
> This release fixes the following issues:
> https://wso2.org/jira/browse/REGISTRY-3854?filter=13166
>
> Please download, test and vote. Please refer the release verification
> guide for detailed information on verifying this release.
>
> Source & binary distribution files:
> https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.3.0/rc2/
>
> Maven staging repo:
> https://maven.wso2.org/nexus/content/repositories/orgwso2greg-1008
>
> The tag to be voted upon:
> https://github.com/wso2/product-greg/tree/v5.3.0-rc2
>
> [+] Stable - go ahead and release
> [-]  Broken - do not release (please explain why)
>
> Thanks and Regards
> ES/G-Reg team
>
> --
> 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
>
>


-- 
Malintha Fernando
Software Engineer
WSO2 Inc. | http://wso2.com
Mobile : +94 718874922
Blog : http://blog.malintha.org

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


[Dev] [GSoC Dockerfiles] Added ability to run smoke tests from test framework

2016-08-09 Thread Abhishek Tiwari
Hi Mentors,

Dockerfiles test framework is now able to run smoke tests, with smoke tests
for ESB added at this point. Developers can extend the framework to add
product specific smoke tests.

Smoke test for ESB are implemented as follows:
1. Once a new docker image is deployed and the container is up, the script
does a login to WSO2 carbon server and maintains cookies so that it can use
logged in state in subsequent requests.

2. Creates a new pass-through proxy service. [1]

3. Validates the newly created proxy service is accessible (validates Http
response code for the proxy testing url [2])

4. Removes the newly created proxy service. [3]

I would like to demo the current state of the project, please provide your
preferred date and time.

Thanks
Abhishek

[1]. Http post using /carbon/proxyservices/template_pass-through.jsp
[2]. Http get  using /carbon/services/?tryit
[3]. Http get using /carbon/service-mgt/delete_service_groups.jsp
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shipping a pre-populated db with samples in Process Center.

2016-08-09 Thread Chathura Ekanayake
Yes, it is helpful to have a collection of samples for PC. PC has an
import/export feature where processes and related artifacts can be exported
into an archive and imported later. One option is to use this feature to
ship a set of samples. Some other process repositories are also using
similar methods to ship samples.

On Tue, Aug 9, 2016 at 3:21 PM, Hasitha Aravinda  wrote:

> Hi team,
>
> Most of our products (ESB, BPS etc) have sample start up scripts to start
> product in sample/demo mode.
>
> Idea is to ship another pre-populated h2 db with PC, in addition to
> default db. When you start server in demo mode, PC will start pointing to
> pre-populated database.
>
> This will be helpful for the first time users to understand capabilities
> of PC. WDYT ?
>
> Thanks,
> Hasitha.
>
> --
> --
> Hasitha Aravinda,
> Associate Technical Lead,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Shipping a pre-populated db with samples in Process Center.

2016-08-09 Thread Hasitha Aravinda
Hi team,

Most of our products (ESB, BPS etc) have sample start up scripts to start
product in sample/demo mode.

Idea is to ship another pre-populated h2 db with PC, in addition to default
db. When you start server in demo mode, PC will start pointing to
pre-populated database.

This will be helpful for the first time users to understand capabilities of
PC. WDYT ?

Thanks,
Hasitha.

-- 
--
Hasitha Aravinda,
Associate Technical Lead,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile : +94 718 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] wso2-synapse-2.1.7-wso2v6 Released

2016-08-09 Thread Nadeeshaan Gunasinghe
Hi,

wso2-synapse-2.1.7-wso2v6 Released.

org.apache.synapse
Apache-Synapse
2.1.7-wso2v6

Thanks,

*Nadeeshaan Gunasinghe*
Software Engineer, WSO2 Inc. http://wso2.com
+94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe <#>

  

Get a signature like this: Click here!

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


Re: [Dev] Merge changes done for https://wso2.org/jira/browse/CPARENT-6

2016-08-09 Thread Jayanga Dissanayake
Hi Isuru,

It seems to be the culprit. I removed the jacoco plugin from
carbon-kernel/parent/pom.xml and it builds.

One other concern is, in this PR, you have moved the doc and source plugins
into plugin section, which cause it to run always. But we usually  don't
want src and docs to be generated at each build. Could you please explain
why those plugins were moved into plugin section.

Thanks,
Jayanga.

Thanks,
Jayanga.

*Jayanga Dissanayake*
Associate Technical Lead
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259


On Tue, Aug 9, 2016 at 2:34 PM, Isuru Perera  wrote:

> Did you remove existing Jacoco plugin in Carbon Kernel?
>
> Isuru Perera
>
> On 9 Aug 2016 2:29 p.m., "Jayanga Dissanayake"  wrote:
>
>> Hi Isuru,
>>
>> When I try to build the carbon kernel with new parent pom with your
>> updates, the following error happens.
>> It seems to be an issue in jacoco plugin, any idea?
>>
>> [ERROR] Failed to execute goal 
>> org.jacoco:jacoco-maven-plugin:0.7.5.201505241946:report
>> (post-unit-test) on project org.wso2.carbon.launcher: An error has occurred
>> in JaCoCo Test report generation. Error while creating report: Error while
>> analyzing class /tmp/1/carbon-kernel/launcher/
>> target/classes/org/wso2/carbon/launcher/CarbonServer.class. Class
>> org/wso2/carbon/launcher/CarbonServer is already instrumented. -> [Help
>> 1]
>>
>> Thanks,
>> Jayanga.
>>
>> *Jayanga Dissanayake*
>> Associate Technical Lead
>> WSO2 Inc. - http://wso2.com/
>> lean . enterprise . middleware
>> email: jaya...@wso2.com
>> mobile: +94772207259
>> 
>>
>> On Tue, Aug 9, 2016 at 12:24 PM, Isuru Perera  wrote:
>>
>>> Hi Jayanga,
>>>
>>> I didn't update maven bundle plugin. Could you please check on that too?
>>>
>>> Please use following command to check plugin updates.
>>>
>>> mvn versions:display-plugin-updates
>>>
>>> Thanks!
>>>
>>> On Tue, Aug 9, 2016 at 11:39 AM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 Hi Jayanga,

 Let's merge this and do a release along with kernel 5.2.0.

 On Wed, Jul 27, 2016 at 3:44 PM, Isuru Perera  wrote:

> Hi,
>
> Could you please review the PR in [1].
>
> I also noticed that carbon-parent version 5 is released [2], but the
> master branch still has 5-SNAPSHOT [3].
>
> [1] https://wso2.org/jira/browse/CPARENT-6
> [2] https://github.com/wso2/carbon-parent/releases/tag/carbon-parent-5
> [3] https://github.com/wso2/carbon-parent/blob/master/pom.xml#L22
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2
> 
>



 --
 *Kishanthan Thangarajah*
 Technical Lead,
 Platform Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 *
 Twitter - *http://twitter.com/kishanthan
 *

>>>
>>>
>>>
>>> --
>>> Isuru Perera
>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>> Contact: +IsuruPereraWSO2
>>> 
>>>
>>
>>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5][CAAS] How to get authorizationStoreID when creating a role?

2016-08-09 Thread Jayanga Kaushalya
Hi Sajini,

At the current implementation, when adding a new role, which authorization
store to use should be decided by the external component. But as it is a
burden for the external component to find the authorization store, we will
provide a API which is independent from the authorization store.

Thanks!

*Jayanga Kaushalya*
Software Engineer
Mobile: +94777860160
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware

On Tue, Aug 9, 2016 at 2:17 PM, Sajini De Silva  wrote:

> Hi IS team,
>
> While I was implementing authorization model for MB I have a requirement
> to add a Role a assign some permissions to it. Is there any API in CAAS to
> get this authorization store ID?
>
> Thanks,
> Sajini
>
> --
> Sajini De SIlva
> Senior Software Engineer; WSO2 Inc.; http://wso2.com ,
> Email: saj...@wso2.com
> Blog: http://sajinid.blogspot.com/
> Git hub profile: https://github.com/sajinidesilva
>
> Phone: +94 712797729
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Merge changes done for https://wso2.org/jira/browse/CPARENT-6

2016-08-09 Thread Isuru Perera
Did you remove existing Jacoco plugin in Carbon Kernel?

Isuru Perera

On 9 Aug 2016 2:29 p.m., "Jayanga Dissanayake"  wrote:

> Hi Isuru,
>
> When I try to build the carbon kernel with new parent pom with your
> updates, the following error happens.
> It seems to be an issue in jacoco plugin, any idea?
>
> [ERROR] Failed to execute goal org.jacoco:jacoco-maven-
> plugin:0.7.5.201505241946:report (post-unit-test) on project
> org.wso2.carbon.launcher: An error has occurred in JaCoCo Test report
> generation. Error while creating report: Error while analyzing class
> /tmp/1/carbon-kernel/launcher/target/classes/org/wso2/
> carbon/launcher/CarbonServer.class. Class 
> org/wso2/carbon/launcher/CarbonServer
> is already instrumented. -> [Help 1]
>
> Thanks,
> Jayanga.
>
> *Jayanga Dissanayake*
> Associate Technical Lead
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com
> mobile: +94772207259
> 
>
> On Tue, Aug 9, 2016 at 12:24 PM, Isuru Perera  wrote:
>
>> Hi Jayanga,
>>
>> I didn't update maven bundle plugin. Could you please check on that too?
>>
>> Please use following command to check plugin updates.
>>
>> mvn versions:display-plugin-updates
>>
>> Thanks!
>>
>> On Tue, Aug 9, 2016 at 11:39 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Hi Jayanga,
>>>
>>> Let's merge this and do a release along with kernel 5.2.0.
>>>
>>> On Wed, Jul 27, 2016 at 3:44 PM, Isuru Perera  wrote:
>>>
 Hi,

 Could you please review the PR in [1].

 I also noticed that carbon-parent version 5 is released [2], but the
 master branch still has 5-SNAPSHOT [3].

 [1] https://wso2.org/jira/browse/CPARENT-6
 [2] https://github.com/wso2/carbon-parent/releases/tag/carbon-parent-5
 [3] https://github.com/wso2/carbon-parent/blob/master/pom.xml#L22

 --
 Isuru Perera
 Associate Technical Lead | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha
 Contact: +IsuruPereraWSO2
 

>>>
>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635
>>> Blog - *http://kishanthan.wordpress.com
>>> *
>>> Twitter - *http://twitter.com/kishanthan
>>> *
>>>
>>
>>
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2 
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Merge changes done for https://wso2.org/jira/browse/CPARENT-6

2016-08-09 Thread Jayanga Dissanayake
Hi Isuru,

When I try to build the carbon kernel with new parent pom with your
updates, the following error happens.
It seems to be an issue in jacoco plugin, any idea?

[ERROR] Failed to execute goal
org.jacoco:jacoco-maven-plugin:0.7.5.201505241946:report (post-unit-test)
on project org.wso2.carbon.launcher: An error has occurred in JaCoCo Test
report generation. Error while creating report: Error while analyzing class
/tmp/1/carbon-kernel/launcher/target/classes/org/wso2/carbon/launcher/CarbonServer.class.
Class org/wso2/carbon/launcher/CarbonServer is already instrumented. ->
[Help 1]

Thanks,
Jayanga.

*Jayanga Dissanayake*
Associate Technical Lead
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259


On Tue, Aug 9, 2016 at 12:24 PM, Isuru Perera  wrote:

> Hi Jayanga,
>
> I didn't update maven bundle plugin. Could you please check on that too?
>
> Please use following command to check plugin updates.
>
> mvn versions:display-plugin-updates
>
> Thanks!
>
> On Tue, Aug 9, 2016 at 11:39 AM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Hi Jayanga,
>>
>> Let's merge this and do a release along with kernel 5.2.0.
>>
>> On Wed, Jul 27, 2016 at 3:44 PM, Isuru Perera  wrote:
>>
>>> Hi,
>>>
>>> Could you please review the PR in [1].
>>>
>>> I also noticed that carbon-parent version 5 is released [2], but the
>>> master branch still has 5-SNAPSHOT [3].
>>>
>>> [1] https://wso2.org/jira/browse/CPARENT-6
>>> [2] https://github.com/wso2/carbon-parent/releases/tag/carbon-parent-5
>>> [3] https://github.com/wso2/carbon-parent/blob/master/pom.xml#L22
>>>
>>> --
>>> Isuru Perera
>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>> Contact: +IsuruPereraWSO2
>>> 
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> *
>> Twitter - *http://twitter.com/kishanthan *
>>
>
>
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [C5][CAAS] How to get authorizationStoreID when creating a role?

2016-08-09 Thread Sajini De Silva
Hi IS team,

While I was implementing authorization model for MB I have a requirement to
add a Role a assign some permissions to it. Is there any API in CAAS to get
this authorization store ID?

Thanks,
Sajini

-- 
Sajini De SIlva
Senior Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva

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


Re: [Dev] Unsupported mediators for custom mediation flows in API Manager

2016-08-09 Thread Viraj Rajaguru
On Thu, Sep 3, 2015 at 9:34 AM, Nuwan Dias  wrote:

> Here's what I think makes sense to have on the API Manager.
>
> Call
> Drop
> Log
> Property
> Sequence
>
> ConditionalRouter
> Filter
> Switch
> Validate
>
> Class
> Script
>
> Enrich
> Fault
> Header
> PayloadFactory
> URLRewrite
> XQuery
> XSLT
> FastXSLT
>
> Cache
> DBLookup
> DBReport
> Enqueue
> Transaction
>
> Aggregate
> Callout
> Clone
> Iterate
> ForEach
>
> Entitlement
>
> Builder
>
> BAM
>
> Thanks,
> NuwanD.
>
> On Thu, Aug 6, 2015 at 12:07 PM, Jasintha Dasanayake 
> wrote:
>
>> Hi Nuwan
>>
>> Did you find any time to list down the valid mediator set  for APIM
>>
>> Thanks & Regards
>> /Jasintha
>>
>> On Wed, Jul 29, 2015 at 11:37 PM, Isabelle Mauny 
>> wrote:
>>
>>> All,
>>>
>>> As discussed today, please sort this out quickly.. Seems you're waiting
>>> on each other here :)
>>>
>>> Isabelle.
>>>
>>> 
>>> -
>>> *Isabelle Mauny*
>>> VP, Product Management - WSO2, Inc. - http://wso2.com/
>>> email: isabe...@wso2.com - mobile (Spain) : +34 616050684 - mobile (Sri
>>> Lanka) +94 (0)774777663
>>> Landline:  +1 (650) 745 4499  (USA)  or +94 (11) 214 534 (SL) Extension
>>> : 7302
>>>
>>>
>>>
>>> On Wed, Jul 15, 2015 at 7:59 PM, Nuwan Dias  wrote:
>>>
 Can you list the mediators so we can go through it and see?

 On Wed, Jul 15, 2015 at 6:05 PM, Viraj Rajaguru  wrote:

> Hi APIM team,
>
> DevS team is adding the support to add, remove, edit custom mediation
> flows in API Manager by connecting to the remote APIM server using
> Developer Studio.
>
> Since we are reusing the same ESB graphical sequence editor for APIM,
> currently it will list all the available mediators(supported by ESB) in 
> the
> tool palette.
> Do we support all the mediators supported by ESB in APIM ? If not can
> we have a list of unsupported mediators so that we can remove them from 
> the
> tool palette.
>
> Thanks,
> Viraj.
>
> --
> Viraj Rajaguru
> Senior Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile: +94 77 3683068
>
>
>
>


 --
 Nuwan Dias

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

>>>
>>>
>>
>>
>> --
>>
>> *Jasintha Dasanayake*
>>
>> *Senior Software EngineerWSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware*
>>
>>
>> *mobile :- 0711368118*
>>
>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Viraj Rajaguru
Associate Technical Lead
WSO2 Inc. : http://wso2.com

Mobile: +94 77 3683068
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Merge changes done for https://wso2.org/jira/browse/CPARENT-6

2016-08-09 Thread Isuru Perera
Hi Jayanga,

I didn't update maven bundle plugin. Could you please check on that too?

Please use following command to check plugin updates.

mvn versions:display-plugin-updates

Thanks!

On Tue, Aug 9, 2016 at 11:39 AM, Kishanthan Thangarajah  wrote:

> Hi Jayanga,
>
> Let's merge this and do a release along with kernel 5.2.0.
>
> On Wed, Jul 27, 2016 at 3:44 PM, Isuru Perera  wrote:
>
>> Hi,
>>
>> Could you please review the PR in [1].
>>
>> I also noticed that carbon-parent version 5 is released [2], but the
>> master branch still has 5-SNAPSHOT [3].
>>
>> [1] https://wso2.org/jira/browse/CPARENT-6
>> [2] https://github.com/wso2/carbon-parent/releases/tag/carbon-parent-5
>> [3] https://github.com/wso2/carbon-parent/blob/master/pom.xml#L22
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2 
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Merge changes done for https://wso2.org/jira/browse/CPARENT-6

2016-08-09 Thread Kishanthan Thangarajah
Hi Jayanga,

Let's merge this and do a release along with kernel 5.2.0.

On Wed, Jul 27, 2016 at 3:44 PM, Isuru Perera  wrote:

> Hi,
>
> Could you please review the PR in [1].
>
> I also noticed that carbon-parent version 5 is released [2], but the
> master branch still has 5-SNAPSHOT [3].
>
> [1] https://wso2.org/jira/browse/CPARENT-6
> [2] https://github.com/wso2/carbon-parent/releases/tag/carbon-parent-5
> [3] https://github.com/wso2/carbon-parent/blob/master/pom.xml#L22
>
> --
> Isuru Perera
> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 
>



-- 
*Kishanthan Thangarajah*
Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev