[Dev] ERROR - KeyStoreManager Error when retrieving the system governance registry

2016-02-25 Thread Sravan Nethi
Hi all



Getting below error while call api by passing access token



ERROR - KeyStoreManager Error when retrieving the system governance registry
org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to
obtain the user realm for tenant: -1.
at
org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:304)
at
org.wso2.carbon.registry.core.session.UserRegistry.access$100(UserRegistry.java:61)
at
org.wso2.carbon.registry.core.session.UserRegistry$2.run(UserRegistry.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at
org.wso2.carbon.registry.core.session.UserRegistry.(UserRegistry.java:246)
at
org.wso2.carbon.registry.core.session.UserRegistry.(UserRegistry.java:225)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:427)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:292)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getGovernanceSystemRegistry(EmbeddedRegistryService.java:517)
at org.wso2.carbon.core.util.KeyStoreManager.(KeyStoreManager.java:77)
at
org.wso2.carbon.core.util.KeyStoreManager.getInstance(KeyStoreManager.java:112)
at
org.wso2.carbon.core.util.KeyStoreManager.getInstance(KeyStoreManager.java:102)
at
org.wso2.carbon.apimgt.impl.token.AbstractJWTGenerator.addCertToHeader(AbstractJWTGenerator.java:325)
at
org.wso2.carbon.apimgt.impl.token.AbstractJWTGenerator.buildHeader(AbstractJWTGenerator.java:178)
at
org.wso2.carbon.apimgt.impl.token.AbstractJWTGenerator.generateToken(AbstractJWTGenerator.java:131)
at
org.wso2.carbon.apimgt.keymgt.handlers.AbstractKeyValidationHandler.generateConsumerToken(AbstractKeyValidationHandler.java:146)
at
org.wso2.carbon.apimgt.keymgt.service.APIKeyValidationService.validateKey(APIKeyValidationService.java:169)
at
org.wso2.carbon.apimgt.keymgt.service.thrift.APIKeyValidationServiceImpl.validateKey(APIKeyValidationServiceImpl.java:131)
at org.wso2.carbon.apim

-- 
-- 






* With Regards, SravanNethi __ *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Solution requires to remove/reallocate resources assigned to deleted user

2016-02-25 Thread Charitha Goonetilleke
Hi All,

In IoTServer and EMM, we noticed that resources owned by a user will become
orphaned once particular user is deleted from the system. If someone
created a user with same username again, above orphaned resources will get
assigned to newly created user, since both users have same user name[1].

Anyway I believe, this shouldn't happen in the system since, it will lead
to orphaned resources or allow two different people to have the same
identity.

Solutions:

1. Use the user delete workflow[2] to get user delete event and allocate
resources from user being deleted to other user or admin. Also if required
resources can be deleted or left as it is to be associated with future user
who will have the same name. However this BP is bit complex and need
additional specific implementations to filter resources and apply necessary
actions.

2. Use status claim of user to indicate whether user is inactive instead of
deleting user from the system. As long as user is not actually deleted from
the system, there is no any possibility to have same user name for another
user. Also it is involved with less implementation complexity and it is
good in the sense of maintaining past statistics and historic artifacts
within the system.

However with above solutions, there is no way to identify if user was
removed from external user store, without going through the carbon console
or user management portal in IoTServer or EMM web app.

I'm also wondering how APIM and APPM handle the same situation when user
get deleted. WDYT? Is there any better solution to eliminate above issue?
Your comments and thoughts are highly appreciated.


[1] https://wso2.org/jira/browse/IOTS-73
[2]
https://github.com/wso2/carbon-identity/blob/master/components/user-mgt/org.wso2.carbon.user.mgt.workflow/src/main/java/org/wso2/carbon/user/mgt/workflow/userstore/DeleteUserWFRequestHandler.java

Thanks & Regards,
/charithag
-- 
*Charitha Goonetilleke*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 751 3669 <%2B94777513669>
Twitter:@CharithaWs , fb: charithag
, linkedin: charithag

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


Re: [Dev] [VOTE] Release WSO2 Dashboard Server 2.0.0 RC2

2016-02-25 Thread Lasantha Samarakoon
HI,

I have tested the following scenarios.

   - Supporting multiple dashboard pages within the dashboard app.
   - Tested with Nokia Lumia


[+] Stable - Go ahead and release


Thanks,

*Lasantha Samarakoon* | Software Engineer
WSO2, Inc.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 (71) 214 1576
Email:  lasant...@wso2.com
Web:www.wso2.com

lean . enterprise . middleware

On Wed, Feb 24, 2016 at 10:01 PM, Tanya Madurapperuma 
wrote:

> Hi Devs,
>
> This is the RC2 release candidate of WSO2 Dashboard Server 2.0.0
>
> Please download DS 2.0.0 RC2 and test the functionality and vote. Vote
> will be open for 72 hours or as needed.
>
> Source & binary distribution files:
> https://github.com/wso2/product-ds/releases/tag/v2.0.0-RC2
>
> Maven staging repo:
> http://maven.wso2.org/nexus/content/repositories/orgwso2ds-374/
>
> The tag to be voted upon:
> https://github.com/wso2/product-ds/tree/v2.0.0-RC2
>
>
> [+] Stable - go ahead and release
> [-]  Broken - do not release (explain why)
>
> Thanks and Regards,
> ~ WSO2 DS Team ~
>
> --
> Tanya Madurapperuma
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439
> Blog : http://tanyamadurapperuma.blogspot.com
>
>
>
> --
> Tanya Madurapperuma
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439
> Blog : http://tanyamadurapperuma.blogspot.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dashboard Server 2.0.0 RC2

2016-02-25 Thread Lalanke Athauda
Hi,
I have tested the following features related to "Per user dashboard theming
- Banners"

   - Verify the banner image can be cropped appropriately
   - Verify a user can remove the banner once uploaded
   - Verify an editor can view the uploaded banner
   - Verify an uploaded banner is loaded into the anonymous view
   - Verify the same banner is uploaded to a new page added with banner
   layout
   - Verify the banner is displayed in both pages when toggle between the
   anon and default views
   - Verify changing the banner in one page will change all the banners in
   other pages
   - Verify removing a banner in one page will remove all the banners in
   other pages
   - Verify a viewer can view a dashboard with banner
   - Verify a viewer can personalize a dashboard with banner
   - Verify a viewer can remove the banner after personalizing a dashboard
   with a banner
   - Verify an anonymous view with a banner layout can be viewed by
   outsiders
   - Verify an anonymous view with a banner layout can be viewed by tenants
   in other domains
   - Verify the view is displayed correctly when there is no banner
   uploaded for a banner layout

And also tested authentication with SSO and Oauth token retrieval features.

[+] Stable - Go ahead and release.

On Thu, Feb 25, 2016 at 4:54 PM, Lasantha Samarakoon 
wrote:

> HI,
>
> I have tested the following scenarios.
>
>- Supporting multiple dashboard pages within the dashboard app.
>- Tested with Nokia Lumia
>
>
> [+] Stable - Go ahead and release
>
>
> Thanks,
>
> *Lasantha Samarakoon* | Software Engineer
> WSO2, Inc.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 (71) 214 1576
> Email:  lasant...@wso2.com
> Web:www.wso2.com
>
> lean . enterprise . middleware
>
> On Wed, Feb 24, 2016 at 10:01 PM, Tanya Madurapperuma 
> wrote:
>
>> Hi Devs,
>>
>> This is the RC2 release candidate of WSO2 Dashboard Server 2.0.0
>>
>> Please download DS 2.0.0 RC2 and test the functionality and vote. Vote
>> will be open for 72 hours or as needed.
>>
>> Source & binary distribution files:
>> https://github.com/wso2/product-ds/releases/tag/v2.0.0-RC2
>>
>> Maven staging repo:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2ds-374/
>>
>> The tag to be voted upon:
>> https://github.com/wso2/product-ds/tree/v2.0.0-RC2
>>
>>
>> [+] Stable - go ahead and release
>> [-]  Broken - do not release (explain why)
>>
>> Thanks and Regards,
>> ~ WSO2 DS Team ~
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>


-- 
Lalanke Athauda
Software Engineer
WSO2 Inc.
Mobile: 0772264301
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Solution requires to remove/reallocate resources assigned to deleted user

2016-02-25 Thread Prabath Abeysekera
To my understanding, the most commonly practised use-case in many
organizations is that, user management is handled outside third party
products. For instance, in a typical EMM deployment, which utilizes IS as a
key manager, it is highly unlikely that user provisioning/de-provisioning
is done via IS itself, unless IS is what's primarily used for the same.
Most of the people typically prefer to provision/de-provision user
management related resources by directly accessing some in-house
infrastructure that controls access to the underlying LDAPs, etc. In that
sort of a scenario, there's literally no way that you can listen to some
event and make a workflow or some other similar mechanism to get triggered
automatically. Instead, system administrators would have to manually
trigger a workflow or something to clean-up the orphaned resources. So,
there has to be some functionality, IMO, in EMM to support that aspect.

If all user-mgt tasks are done through IS, however, you have the
opportunity to use the workflow extension feature to clean-up the aforesaid
resources irrespective of the fact that the user is fully removed from the
underlying user-mgt system or made inactive. Note that, in both cases, the
associated resources have to be cleaned up so, the need of triggering a
workflow to detach all stale resources is must.

Maintaining statistics is a whole different other aspect, IMO. Without
relying on the primary metadata repositories used by the underlying
user-mgt systems for keeping historical data, some appropriate monitoring
infrastructure has to be used, which would analyze and bring us who is
active in the system and who is not, in the form of a audit trail or a
report. Certain organizations do practice certain steps "not to duplicate
identity", whereas certain others do not, primarily because letting the
user base grow with some users who no longer exist in the system is
pointless. Even for the people who avoid user duplication, IMO, it is a
must for the system administrators that their resources are cleaned up when
they leave an organization.

All considered, IMO, we can have some workflow-based mechanism bound to
EMM/IoTS, which not only can be manually triggered when the users are
removed externally, but also gets triggered when users are deleted or made
inactive. WDYT?

Cheers,
Prabath




On Thu, Feb 25, 2016 at 4:49 PM, Charitha Goonetilleke 
wrote:

> Hi All,
>
> In IoTServer and EMM, we noticed that resources owned by a user will
> become orphaned once particular user is deleted from the system. If someone
> created a user with same username again, above orphaned resources will get
> assigned to newly created user, since both users have same user name[1].
>
> Anyway I believe, this shouldn't happen in the system since, it will lead
> to orphaned resources or allow two different people to have the same
> identity.
>
> Solutions:
>
> 1. Use the user delete workflow[2] to get user delete event and allocate
> resources from user being deleted to other user or admin. Also if required
> resources can be deleted or left as it is to be associated with future user
> who will have the same name. However this BP is bit complex and need
> additional specific implementations to filter resources and apply necessary
> actions.
>
> 2. Use status claim of user to indicate whether user is inactive instead
> of deleting user from the system. As long as user is not actually deleted
> from the system, there is no any possibility to have same user name for
> another user. Also it is involved with less implementation complexity and
> it is good in the sense of maintaining past statistics and historic
> artifacts within the system.
>
> However with above solutions, there is no way to identify if user was
> removed from external user store, without going through the carbon console
> or user management portal in IoTServer or EMM web app.
>
> I'm also wondering how APIM and APPM handle the same situation when user
> get deleted. WDYT? Is there any better solution to eliminate above issue?
> Your comments and thoughts are highly appreciated.
>
>
> [1] https://wso2.org/jira/browse/IOTS-73
> [2]
> https://github.com/wso2/carbon-identity/blob/master/components/user-mgt/org.wso2.carbon.user.mgt.workflow/src/main/java/org/wso2/carbon/user/mgt/workflow/userstore/DeleteUserWFRequestHandler.java
>
> Thanks & Regards,
> /charithag
> --
> *Charitha Goonetilleke*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 751 3669 <%2B94777513669>
> Twitter:@CharithaWs , fb: charithag
> , linkedin: charithag
> 
>



-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dashboard Server 2.0.0 RC2

2016-02-25 Thread Nipuna Chandradasa
Hi,

Tested the following test scenarios related to "Per User Dashboard
Customization"

   - Verify a viewer can personalize a dashboard
   - Verify the original dashboard is not changed after personalizing a
   dashboard
   - Verify a viewer can reset the personalized dashboard
   - Verify a viewer can reset the personalized dashboard after the second
   edition
   - Verify an editor cannot personalize a dashboard created by another
   editor
   - Verify a viewer cannot personalize a dashboard created by another
   viewer of a different role
   - Verify a viewer cannot personalize a dashboard created by another
   viewer of the same role
   - Verify "Settings" is not available in personalized dashboard edit mode
   - Verify tenant user cannot view a personalized dashboard created by
   another tenant user with same name
   - Verify a user cannot personalize a dashboard when the user has both
   edit and view permissions
   - Verify a user cannot personalize a dashboard when the user had view
   permission before

Also tested with IP and localhost, and port offset and Tested the clustered
Setup with DepSync and External MySQL.

[+] Stable - Go ahead and release.

Thank you.

On Thu, Feb 25, 2016 at 5:02 PM, Sinthuja Ragendran 
wrote:

> Hi,
>
> Did testing on following.
>
>- Verify user is directed to the dashboard creation page when there
>are no dashboards (super tenant, tenant)
>- Verify user is directed to the dashboard when there are is exactly
>one dashboard (super tenant, tenant)
>- Verify user is directed to the dashboard list page when there are
>more than one dashboard
>- Verify the dashboard name is not case sensitive
>- Verify the length of the dashboard name is validated
>- Verify special characters cannot be included in the dashboard name
>- Verify numerical characters can be included in the dashboard name
>- Verify the length of the dashboard description is validated
>- Tested on Mobile devices - iphone, ipad
>- Tested on Mac with chorme, firefox, and safari
>- Tested on windows with IE11, and firefox.
>
> [+] Stable go ahead and release.
>
> Thanks,
> Sinthuja.
>
> On Thu, Feb 25, 2016 at 4:57 PM, Tanya Madurapperuma 
> wrote:
>
>> Hi,
>>
>> I have tested features related to anonymous view of dashboard and gadget
>> maximization in different modes.
>> Also did a smoke test on Samsung.
>>
>> [+] Stable - Go ahead and release
>>
>> Thanks,
>> Tanya
>>
>>
>> On Thu, Feb 25, 2016 at 4:54 PM, Lasantha Samarakoon 
>> wrote:
>>
>>> HI,
>>>
>>> I have tested the following scenarios.
>>>
>>>- Supporting multiple dashboard pages within the dashboard app.
>>>- Tested with Nokia Lumia
>>>
>>>
>>> [+] Stable - Go ahead and release
>>>
>>>
>>> Thanks,
>>>
>>> *Lasantha Samarakoon* | Software Engineer
>>> WSO2, Inc.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 (71) 214 1576
>>> Email:  lasant...@wso2.com
>>> Web:www.wso2.com
>>>
>>> lean . enterprise . middleware
>>>
>>> On Wed, Feb 24, 2016 at 10:01 PM, Tanya Madurapperuma 
>>> wrote:
>>>
 Hi Devs,

 This is the RC2 release candidate of WSO2 Dashboard Server 2.0.0

 Please download DS 2.0.0 RC2 and test the functionality and vote. Vote
 will be open for 72 hours or as needed.

 Source & binary distribution files:
 https://github.com/wso2/product-ds/releases/tag/v2.0.0-RC2

 Maven staging repo:
 http://maven.wso2.org/nexus/content/repositories/orgwso2ds-374/

 The tag to be voted upon:
 https://github.com/wso2/product-ds/tree/v2.0.0-RC2


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

 Thanks and Regards,
 ~ WSO2 DS Team ~

 --
 Tanya Madurapperuma

 Senior Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com



 --
 Tanya Madurapperuma

 Senior Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com

>>>
>>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> *Sinthuja Rajendran*
> Associate Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>


-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dashboard Server 2.0.0 RC2

2016-02-25 Thread Sinthuja Ragendran
Hi,

Did testing on following.

   - Verify user is directed to the dashboard creation page when there are
   no dashboards (super tenant, tenant)
   - Verify user is directed to the dashboard when there are is exactly one
   dashboard (super tenant, tenant)
   - Verify user is directed to the dashboard list page when there are more
   than one dashboard
   - Verify the dashboard name is not case sensitive
   - Verify the length of the dashboard name is validated
   - Verify special characters cannot be included in the dashboard name
   - Verify numerical characters can be included in the dashboard name
   - Verify the length of the dashboard description is validated
   - Tested on Mobile devices - iphone, ipad
   - Tested on Mac with chorme, firefox, and safari
   - Tested on windows with IE11, and firefox.

[+] Stable go ahead and release.

Thanks,
Sinthuja.

On Thu, Feb 25, 2016 at 4:57 PM, Tanya Madurapperuma  wrote:

> Hi,
>
> I have tested features related to anonymous view of dashboard and gadget
> maximization in different modes.
> Also did a smoke test on Samsung.
>
> [+] Stable - Go ahead and release
>
> Thanks,
> Tanya
>
>
> On Thu, Feb 25, 2016 at 4:54 PM, Lasantha Samarakoon 
> wrote:
>
>> HI,
>>
>> I have tested the following scenarios.
>>
>>- Supporting multiple dashboard pages within the dashboard app.
>>- Tested with Nokia Lumia
>>
>>
>> [+] Stable - Go ahead and release
>>
>>
>> Thanks,
>>
>> *Lasantha Samarakoon* | Software Engineer
>> WSO2, Inc.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 (71) 214 1576
>> Email:  lasant...@wso2.com
>> Web:www.wso2.com
>>
>> lean . enterprise . middleware
>>
>> On Wed, Feb 24, 2016 at 10:01 PM, Tanya Madurapperuma 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the RC2 release candidate of WSO2 Dashboard Server 2.0.0
>>>
>>> Please download DS 2.0.0 RC2 and test the functionality and vote. Vote
>>> will be open for 72 hours or as needed.
>>>
>>> Source & binary distribution files:
>>> https://github.com/wso2/product-ds/releases/tag/v2.0.0-RC2
>>>
>>> Maven staging repo:
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2ds-374/
>>>
>>> The tag to be voted upon:
>>> https://github.com/wso2/product-ds/tree/v2.0.0-RC2
>>>
>>>
>>> [+] Stable - go ahead and release
>>> [-]  Broken - do not release (explain why)
>>>
>>> Thanks and Regards,
>>> ~ WSO2 DS Team ~
>>>
>>> --
>>> Tanya Madurapperuma
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94718184439
>>> Blog : http://tanyamadurapperuma.blogspot.com
>>>
>>>
>>>
>>> --
>>> Tanya Madurapperuma
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94718184439
>>> Blog : http://tanyamadurapperuma.blogspot.com
>>>
>>
>>
>
>
> --
> Tanya Madurapperuma
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439
> Blog : http://tanyamadurapperuma.blogspot.com
>



-- 
*Sinthuja Rajendran*
Associate Technical Lead
WSO2, Inc.:http://wso2.com

Blog: http://sinthu-rajan.blogspot.com/
Mobile: +94774273955
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dashboard Server 2.0.0 RC2

2016-02-25 Thread Tanya Madurapperuma
Hi,

I have tested features related to anonymous view of dashboard and gadget
maximization in different modes.
Also did a smoke test on Samsung.

[+] Stable - Go ahead and release

Thanks,
Tanya


On Thu, Feb 25, 2016 at 4:54 PM, Lasantha Samarakoon 
wrote:

> HI,
>
> I have tested the following scenarios.
>
>- Supporting multiple dashboard pages within the dashboard app.
>- Tested with Nokia Lumia
>
>
> [+] Stable - Go ahead and release
>
>
> Thanks,
>
> *Lasantha Samarakoon* | Software Engineer
> WSO2, Inc.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 (71) 214 1576
> Email:  lasant...@wso2.com
> Web:www.wso2.com
>
> lean . enterprise . middleware
>
> On Wed, Feb 24, 2016 at 10:01 PM, Tanya Madurapperuma 
> wrote:
>
>> Hi Devs,
>>
>> This is the RC2 release candidate of WSO2 Dashboard Server 2.0.0
>>
>> Please download DS 2.0.0 RC2 and test the functionality and vote. Vote
>> will be open for 72 hours or as needed.
>>
>> Source & binary distribution files:
>> https://github.com/wso2/product-ds/releases/tag/v2.0.0-RC2
>>
>> Maven staging repo:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2ds-374/
>>
>> The tag to be voted upon:
>> https://github.com/wso2/product-ds/tree/v2.0.0-RC2
>>
>>
>> [+] Stable - go ahead and release
>> [-]  Broken - do not release (explain why)
>>
>> Thanks and Regards,
>> ~ WSO2 DS Team ~
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Complex Event Processor 4.1.0 RC2

2016-02-25 Thread Damith Wickramasinghe
Hi Isabelle,

Please find the performance numbers of CEP-4.1.0 and comparative analysis
with CEP-4.0.0[1]. Do you think we can share this information in our docs
as well ?

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

Regards,
Damith

On Wed, Feb 24, 2016 at 5:26 PM, Sriskandarajah Suhothayan 
wrote:

> Hi Isabelle
>
> We'll add the results to the docs page. It's currently working in progress
> we'll update this thread with more details.
>
> Regards
> Suho
>
> On Wed, Feb 24, 2016 at 2:33 PM, Isabelle Mauny  wrote:
>
>> All,
>>
>> Where are the performance and long-running tests results hosted ?
>>
>> 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, Feb 24, 2016 at 12:58 PM, Damith Wickramasinghe > > wrote:
>>
>>> Thank you all.
>>>
>>> We are closing this vote and this vote passes with 7 +1 and 0 -1 votes.
>>> We will proceed with publishing the maven artifacts.
>>>
>>> Regards,
>>> Damith.
>>>
>>> On Wed, Feb 24, 2016 at 12:36 PM, Dilini Muthumala 
>>> wrote:
>>>
 Tested event simulator:
 - Sending single event
 - Sending multiple events by uploading file and data source

 No blockers or major issues found.

 My vote:
 [x] Stable - Go ahead and release

 Thanks,
 Dilini


 On Tue, Feb 23, 2016 at 9:14 PM, Tharik Kanaka  wrote:

> Tested Execution Manager and Siddhi Try it. No issues find
>
> On Wed, Feb 24, 2016 at 12:35 AM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>>
>> Tested the Execution Plan Creation.
>>
>> No issues found
>> [x] Stable - Go ahead and release
>>
>> Thanks,
>> Suho
>>
>> On Sun, Feb 21, 2016 at 10:02 PM, Lasantha Fernando <
>> lasan...@wso2.com> wrote:
>>
>>> Tested the Event Metrics feature and input part of arbitrary maps in
>>> standalone mode.
>>>
>>> No issues found.
>>> [x] Stable - Please go ahead and release
>>>
>>> Thanks,
>>> Lasantha
>>>
>>> On 21 February 2016 at 07:00, Damith Wickramasinghe <
>>> dami...@wso2.com> wrote:
>>>
 Tested dashboard and related samples.

 No issues found.
 [+] Stable - Please go ahead and release..

 Regards,
 Damith.

 On Sun, Feb 21, 2016 at 4:42 PM, Grainier Perera >>> > wrote:

> Tested following scenarios/features.
>
> 1. Distributed deployment of CEP.
> 2. High availability deployment of CEP.
> 3. High availability deployment with state persistence (Single
> Node, Clustered).
> 4. Siddhi Extensions in Storm (Map, Reorder, Time Series, Event
> Table, ML, Kalman, Geo).
>
> No issues found.
> [x] Stable - Please go ahead and release.
>
> Regards,
>
> On Sun, Feb 21, 2016 at 4:04 PM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>> Tested following scenarios/features..
>>
>> 1. All Samples(-0022) related to Event Receivers
>> 2. Basic end-to-end execution Flow
>> 3. Execution Manager
>> 4. Event Tracer
>>
>> No issues found.
>> [x] Stable - Please go ahead and release..
>>
>> Thanks,
>> Mohan
>>
>> On Fri, Feb 19, 2016 at 2:04 AM, Grainier Perera <
>> grain...@wso2.com> wrote:
>> > Hi Devs,
>> >
>> > This is the second release candidate of WSO2 Complex Event
>> Processor 4.1.0.
>> >
>> > This release fixes the following issues:
>> > https://wso2.org/jira/issues/?filter=12644
>> >
>> > Please download CEP 4.1.0 RC2 and test the functionality and
>> vote. Vote will
>> > be open for 72 hours or as needed.
>> >
>> > Source & binary distribution files:
>> > https://github.com/wso2/product-cep/releases/tag/v4.1.0-RC2
>> >
>> > The tag to be voted upon:
>> > https://github.com/wso2/product-cep/tree/release-4.1.0-RC2
>> >
>> > [+] Stable - go ahead and release
>> > [-] Broken - do not release (explain why)
>> >
>> > Thanks and Regards,
>> > WSO2 CEP Team.
>> >
>> > --
>> > Grainier Perera
>> > Software Engineer
>> > Mobile : +94716122384
>> > WSO2 Inc. | http://wso2.com
>> > lean.enterprise.middleware
>> >
>> > ___

[Dev] Support provided to modify the tree nodes while generating the avro schema

2016-02-25 Thread Sohani Weerasinghe
Hi All,

With the current level of implementation when a user adds a new element to
the tree view in generating the avro schema, user is facilitated to specify
the name, schemaType and other optional attributes. If user wants to change
the name he is provided with a renaming option as shown below which updates
the avro schema with the changes.


​

Further, if user wants to change the other attributes, we can provide a
properties view for elements to apply the changes. Also, as an additional
feature a new context menu item is provided to export the modified schema
tree back to file system (in *.avsc format).


Thanks,
Sohani
​
Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Hasunie Adhikari

2016-02-25 Thread Manoj Gunawardena
Congratulations Hasuni...!!!

On Thu, Feb 25, 2016 at 8:05 AM, Geesara Prathap  wrote:

> Congratulations Hasunie !!!
>
> On Wed, Feb 24, 2016 at 12:05 PM, Menaka Jayawardena 
> wrote:
>
>> Congratulations Hasuni...!!!
>>
>> On Wed, Feb 24, 2016 at 11:46 AM, Prabath Abeysekera 
>> wrote:
>>
>>> Hi Everyone,
>>>
>>> It's my pleasure to welcome Hasunie Adhikari as a WSO2 Committer.
>>> Hasunie has been a key member of the EMM/IoT team contributing to many
>>> aspects of product development ever since she joined us. In recognition of
>>> her contributions, ownership shown towards the tasks/responsibilities
>>> assigned to her, and commitment, she's been voted as a WSO2 committer.
>>>
>>> Hasunie, Welcome aboard and keep up the awesome work!
>>>
>>> Cheers,
>>> Prabath
>>> --
>>> Prabath Abeysekara
>>> Technical Lead
>>> WSO2 Inc.
>>> Email: praba...@wso2.com
>>> Mobile: +94774171471
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Menaka Madushanka Jayawardena
>> Software Engineering Intern
>> men...@wso2.com
>> Mobile:- +94 71 8851183/ +94 71 3505470
>> LinkedIn - Menaka Jayawardena
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Geesara Prathap Kulathunga
> Software Engineer
> WSO2 Inc; http://wso2.com
> Mobile : +940772684174
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Manoj Gunawardena
Tech Lead
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
Mobile : +94 77 2291643
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] create tenant via rest api

2016-02-25 Thread John Q
Hello everyone,

I am wondering if there is a rest api for carbon to create tenants?

I saw that private paas have a rest api for creating tenant, but i only
have installed , wso2is, wso2am and wso2esb and don't use the private paas.

If there is such api please where can i find it?

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


Re: [Dev] [VOTE] Release WSO2 Dashboard Server 2.0.0 RC2

2016-02-25 Thread Udara Rathnayake
tested dashboard creation/view flow in IE11 on win7 and Firefox/Chromium on
Linux (super tenant/tenant).
ran zap tool pointing portal app.

[+] Stable - go ahead and release.

On Wed, Feb 24, 2016 at 11:31 AM, Tanya Madurapperuma 
wrote:

> Hi Devs,
>
> This is the RC2 release candidate of WSO2 Dashboard Server 2.0.0
>
> Please download DS 2.0.0 RC2 and test the functionality and vote. Vote
> will be open for 72 hours or as needed.
>
> Source & binary distribution files:
> https://github.com/wso2/product-ds/releases/tag/v2.0.0-RC2
>
> Maven staging repo:
> http://maven.wso2.org/nexus/content/repositories/orgwso2ds-374/
>
> The tag to be voted upon:
> https://github.com/wso2/product-ds/tree/v2.0.0-RC2
>
>
> [+] Stable - go ahead and release
> [-]  Broken - do not release (explain why)
>
> Thanks and Regards,
> ~ WSO2 DS Team ~
>
> --
> Tanya Madurapperuma
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439
> Blog : http://tanyamadurapperuma.blogspot.com
>
>
>
> --
> Tanya Madurapperuma
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439
> Blog : http://tanyamadurapperuma.blogspot.com
>



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


[Dev] Tool to bulk export API's from WSO2 API Manager

2016-02-25 Thread Nadeesha Gamage
Hi All,
I have written a tool to bulk export API's from WSO2 API Manager. Source
can be found in the following Git repo[1] , hope it would be useful.

[1] https://github.com/nadeesha5814/APIBulkExport




Thank you,

-- 
Nadeesha Gamage
Associate Technical Lead - Solutions Engineering
T : +94 77 394 5706
B : https://nadeesha678.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] create tenant via rest api

2016-02-25 Thread Danushka Fernando
There is a soap api. You can use TenantMgtService.

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

On Fri, Feb 26, 2016 at 3:35 AM, John Q  wrote:

> Hello everyone,
>
> I am wondering if there is a rest api for carbon to create tenants?
>
> I saw that private paas have a rest api for creating tenant, but i only
> have installed , wso2is, wso2am and wso2esb and don't use the private paas.
>
> If there is such api please where can i find it?
>
> Thanks,
> John
>
>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Puppet error when building API-M Docker image

2016-02-25 Thread Imesh Gunaratne
Hi Devs,

I see the following error while trying to build $subject:

Notice: Scope(Wso2base::Deploy[/mnt/wso2am-1.9.1]): Deploying artifacts for
WSO2 product [name] wso2am, [version] 1.9.1, [CARBON_HOME] /mnt/wso2am-1.9.1
Error: Failed to parse template
wso2am/1.9.1/repository/conf/user-mgt.xml.erb:
  Filepath:
/etc/puppet/modules/wso2am/templates/1.9.1/repository/conf/user-mgt.xml.erb
  Line: 29
  Detail: undefined method `[]' for nil:NilClass
 at /etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
bc28b6258a7b
Error: Failed to parse template
wso2am/1.9.1/repository/conf/user-mgt.xml.erb:
  Filepath:
/etc/puppet/modules/wso2am/templates/1.9.1/repository/conf/user-mgt.xml.erb
  Line: 29
  Detail: undefined method `[]' for nil:NilClass
 at /etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
bc28b6258a7b

Steps to re-produce:

1. Checkout puppet modules
2. Checkout kubernetes artifacts
3. Copy required distributions to puppet modules and set PUPPET_HOME
4. Build base Docker image
5. Build API-M Docker image default profile

May be we are missing a default configuration.

Thanks

-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.io
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] create tenant via rest api

2016-02-25 Thread Rukshan Premathunga
Hi John,

You can find the code to create tenant at here[1]. But it use the soap
admin service.

[1]
https://github.com/ruks/wso2.apim.sample/blob/master/com.rukspot.apimgt.stat/src/main/java/com/rukspot/apimgt/stat/TenantMgt.java


Thanks and Regards.

On Fri, Feb 26, 2016 at 9:49 AM, Danushka Fernando 
wrote:

> There is a soap api. You can use TenantMgtService.
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Fri, Feb 26, 2016 at 3:35 AM, John Q  wrote:
>
>> Hello everyone,
>>
>> I am wondering if there is a rest api for carbon to create tenants?
>>
>> I saw that private paas have a rest api for creating tenant, but i only
>> have installed , wso2is, wso2am and wso2esb and don't use the private paas.
>>
>> If there is such api please where can i find it?
>>
>> Thanks,
>> John
>>
>>
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rukshan Chathuranga.
Software Engineer.
WSO2, Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] create tenant via rest api

2016-02-25 Thread Godwin Shrimal
Hi John,

You can find the relevant  service in [1].

[1]
https://github.com/wso2/carbon-multitenancy/blob/master/components/tenant-mgt/org.wso2.carbon.tenant.mgt/src/main/java/org/wso2/carbon/tenant/mgt/services/TenantMgtAdminService.java


Thanks
Godwin


On Fri, Feb 26, 2016 at 10:10 AM, Rukshan Premathunga 
wrote:

> Hi John,
>
> You can find the code to create tenant at here[1]. But it use the soap
> admin service.
>
> [1]
> https://github.com/ruks/wso2.apim.sample/blob/master/com.rukspot.apimgt.stat/src/main/java/com/rukspot/apimgt/stat/TenantMgt.java
>
>
> Thanks and Regards.
>
> On Fri, Feb 26, 2016 at 9:49 AM, Danushka Fernando 
> wrote:
>
>> There is a soap api. You can use TenantMgtService.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Fri, Feb 26, 2016 at 3:35 AM, John Q  wrote:
>>
>>> Hello everyone,
>>>
>>> I am wondering if there is a rest api for carbon to create tenants?
>>>
>>> I saw that private paas have a rest api for creating tenant, but i only
>>> have installed , wso2is, wso2am and wso2esb and don't use the private paas.
>>>
>>> If there is such api please where can i find it?
>>>
>>> Thanks,
>>> John
>>>
>>>
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] create tenant via rest api

2016-02-25 Thread Udara Liyanage
On Fri, Feb 26, 2016 at 3:35 AM, John Q  wrote:

> Hello everyone,
>
> I am wondering if there is a rest api for carbon to create tenants?
>
> I saw that private paas have a rest api for creating tenant, but i only
> have installed , wso2is, wso2am and wso2esb and don't use the private paas.
>

Hi Private PaaS  has a REST API for creating tenant [1] . It also call
org.wso2.carbon.tenant.mgt admin services eventually.
[1]
https://github.com/apache/stratos/blob/master/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java#L1511

>
> If there is such api please where can i find it?
>
> Thanks,
> John
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] JMS distributed XA transactions with ActiveMQ

2016-02-25 Thread Vijitha Ekanayake
Hi all,

I’m trying to achieve following scenario using JMS distributed transactions
with ActiveMQ.

Scenario.
There's are multiple queues and a message needs to be sent to each of these
queue. If at least one of the queues is not reachable, none of the queues
should commit the message.

I found out that we need to add the following parameter axis2.xml to enable
XA Transaction in JMS Transport.

jta

But when I do, I get the following exception in the console.

[2016-02-26 09:26:51,697] ERROR - ServiceTaskManager Error looking up
UserTransaction : java:comp/UserTransaction using JNDI properties :
{java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory,
java.naming.provider.url=tcp://localhost:61616,
interface=SimpleStockQuoteServicePortType,
transport.jms.ConnectionFactoryType=queue, serviceType=proxy}
javax.naming.NamingException: scheme java not recognized
at org.apache.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:221)
at javax.naming.InitialContext.lookup(InitialContext.java:411)
at org.apache.axis2.transport.jms.JMSUtils.lookup(JMSUtils.java:643)
at
org.apache.axis2.transport.jms.ServiceTaskManager.getUserTransaction(ServiceTaskManager.java:1025)
at
org.apache.axis2.transport.jms.ServiceTaskManager.access$600(ServiceTaskManager.java:50)
at
org.apache.axis2.transport.jms.ServiceTaskManager$MessageListenerTask.run(ServiceTaskManager.java:434)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

I debug the axis2 transport code and found out UserTransaction was
evaluated to null. According to mail thread[1] that is because
"UserTransaction" was not available in the JNDI context axis2 transport was
looking at.

Can some help me to figure out how can I change axis2-transport-jms to make
the "UserTransaction" available for XA transactions?


[1]. ESB Distributed XA Transactions with JMS

Thanks.

-- 
Vijitha Ekanayake
Software Engineer*, *WSO2, Inc.; http://wso2.com/
Mobile : +94 777 24 73 39 | +94 718 74 44 08
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to enable SMS based OTPs in Identity Server

2016-02-25 Thread Thilini Cooray
Hi,

I want to use SMS based OTPs for user registration in WSO2 Identity Server.
My identity server version is 5.0.0 with SP1.

[1] has mentioned that we can achieve this via extending
IdentityMgtEvenListener
or writing custom listener. Can you please point me to any available
resources which I can look into ?

[1] [Dev] WSO2 Identity Server OTP SMS

Thanks.

-- 
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] [DAS] Compressed Event Analytics Relation Provider

2016-02-25 Thread Supun Sethunga
Hi,

Please find the PR [1] for adding string compression to the event analytics
relational provider.

[1] https://github.com/wso2/carbon-analytics/pull/159

Regards,
Supun

On Wed, Feb 24, 2016 at 3:35 PM, Supun Sethunga  wrote:

> Thanks!
>
> Regards,
> Supun
>
> On Wed, Feb 24, 2016 at 2:20 PM, Anjana Fernando  wrote:
>
>> Merged the PR.
>>
>> Cheers,
>> Anjana.
>>
>> On Wed, Feb 24, 2016 at 1:00 PM, Supun Sethunga  wrote:
>>
>>> Hi,
>>>
>>> I have done the changes suggested during the code review. Please review
>>> and merge [1].
>>>
>>> Will send a separate PR for Compressing the json string.
>>>
>>>
>>> Thanks,
>>> Supun
>>>
>>> On Fri, Feb 19, 2016 at 3:37 PM, Anjana Fernando 
>>> wrote:
>>>
 Hi Supun,

 Can you please schedule a code review for this.

 Cheers,
 Anjana.

 On Tue, Feb 16, 2016 at 4:30 PM, Supun Sethunga 
 wrote:

> Hi,
>
> Attached [1] is the PR for $subject. Please review and merge.
>
> [1] https://github.com/wso2/carbon-analytics/pull/156
>
> Thanks,
> Supun
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>



 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

>>>
>>>
>>>
>>> --
>>> *Supun Sethunga*
>>> Software Engineer
>>> WSO2, Inc.
>>> http://wso2.com/
>>> lean | enterprise | middleware
>>> Mobile : +94 716546324
>>>
>>
>>
>>
>> --
>> *Anjana Fernando*
>> Senior Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>
>
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>



-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
http://wso2.com/
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Solution requires to remove/reallocate resources assigned to deleted user

2016-02-25 Thread Rasika Perera
Hi All,

My suggestion is that we need to facilitate *both* approaches(soft delete
and hard delete).

Glad that at least we have some sort of agreed norms for creating, reading
and updating users. *But*; W*hat does "delete" mean in the context of this
system/application? *this is a sort of a question that we(middleware
provider) might not be able to answer when building the EMM/IoT. For some
customers this might be completely forgetting that there was a user X, for
some others; it might be that there was a user X who is so and so and did
these things.

I am suggesting a two level approach.

Firstly, if we facilitating deleting a user *inside* our application, when
it is triggered it should be a *soft* delete. What it would mean is we delete
the user logically. I would recommend this blog Don't Delete, Just Dont!
[1] with a simple
example in favour of soft delete. Certainly there might be statistical
requirements that need to be drilled down into historical data. And
deleting a user from the system should not be a gone-gone at least for some
grace period.

Secondly, there can be requirements such as reclaim disk space,
hard-deletion required as per retention/privacy policy. In that case, we
need to provide some sort of a workflow that would clear the stuff. There's
a possibility that existence of shared resources might cause even far more
complex filtering. On the other hand, as Prabath mentioned when
user-management is handed by outside of the system, third party products
such as LDAPs. Once a user is removed by an outside functionality there is
no default way to listen an event or make a workflow to get triggered this
into our application. This is why we need to implement *manually* triggered
workflow which can be consumed by system administrators.

I think we can decide the best approach if we decide whether to maintain
historical data on meta data repositories or not?

WDYT?

Regards,
Rasika

[1] http://udidahan.com/2009/09/01/dont-delete-just-dont/


On Thu, Feb 25, 2016 at 5:41 PM, Prabath Abeysekera 
wrote:

> To my understanding, the most commonly practised use-case in many
> organizations is that, user management is handled outside third party
> products. For instance, in a typical EMM deployment, which utilizes IS as a
> key manager, it is highly unlikely that user provisioning/de-provisioning
> is done via IS itself, unless IS is what's primarily used for the same.
> Most of the people typically prefer to provision/de-provision user
> management related resources by directly accessing some in-house
> infrastructure that controls access to the underlying LDAPs, etc. In that
> sort of a scenario, there's literally no way that you can listen to some
> event and make a workflow or some other similar mechanism to get triggered
> automatically. Instead, system administrators would have to manually
> trigger a workflow or something to clean-up the orphaned resources. So,
> there has to be some functionality, IMO, in EMM to support that aspect.
>
> If all user-mgt tasks are done through IS, however, you have the
> opportunity to use the workflow extension feature to clean-up the aforesaid
> resources irrespective of the fact that the user is fully removed from the
> underlying user-mgt system or made inactive. Note that, in both cases, the
> associated resources have to be cleaned up so, the need of triggering a
> workflow to detach all stale resources is must.
>
> Maintaining statistics is a whole different other aspect, IMO. Without
> relying on the primary metadata repositories used by the underlying
> user-mgt systems for keeping historical data, some appropriate monitoring
> infrastructure has to be used, which would analyze and bring us who is
> active in the system and who is not, in the form of a audit trail or a
> report. Certain organizations do practice certain steps "not to duplicate
> identity", whereas certain others do not, primarily because letting the
> user base grow with some users who no longer exist in the system is
> pointless. Even for the people who avoid user duplication, IMO, it is a
> must for the system administrators that their resources are cleaned up when
> they leave an organization.
>
> All considered, IMO, we can have some workflow-based mechanism bound to
> EMM/IoTS, which not only can be manually triggered when the users are
> removed externally, but also gets triggered when users are deleted or made
> inactive. WDYT?
>
> Cheers,
> Prabath
>
>
>
>
> On Thu, Feb 25, 2016 at 4:49 PM, Charitha Goonetilleke  > wrote:
>
>> Hi All,
>>
>> In IoTServer and EMM, we noticed that resources owned by a user will
>> become orphaned once particular user is deleted from the system. If someone
>> created a user with same username again, above orphaned resources will get
>> assigned to newly created user, since both users have same user name[1].
>>
>> Anyway I believe, this shouldn't happen in the system since, it will lead
>> to or

Re: [Dev] [DAS] Compressed Event Analytics Relation Provider

2016-02-25 Thread Anjana Fernando
Please schedule a code review for this.

Cheers,
Anjana.

On Fri, Feb 26, 2016 at 11:03 AM, Supun Sethunga  wrote:

> Hi,
>
> Please find the PR [1] for adding string compression to the event
> analytics relational provider.
>
> [1] https://github.com/wso2/carbon-analytics/pull/159
>
> Regards,
> Supun
>
> On Wed, Feb 24, 2016 at 3:35 PM, Supun Sethunga  wrote:
>
>> Thanks!
>>
>> Regards,
>> Supun
>>
>> On Wed, Feb 24, 2016 at 2:20 PM, Anjana Fernando  wrote:
>>
>>> Merged the PR.
>>>
>>> Cheers,
>>> Anjana.
>>>
>>> On Wed, Feb 24, 2016 at 1:00 PM, Supun Sethunga  wrote:
>>>
 Hi,

 I have done the changes suggested during the code review. Please review
 and merge [1].

 Will send a separate PR for Compressing the json string.


 Thanks,
 Supun

 On Fri, Feb 19, 2016 at 3:37 PM, Anjana Fernando 
 wrote:

> Hi Supun,
>
> Can you please schedule a code review for this.
>
> Cheers,
> Anjana.
>
> On Tue, Feb 16, 2016 at 4:30 PM, Supun Sethunga 
> wrote:
>
>> Hi,
>>
>> Attached [1] is the PR for $subject. Please review and merge.
>>
>> [1] https://github.com/wso2/carbon-analytics/pull/156
>>
>> Thanks,
>> Supun
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> http://wso2.com/
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>
>
>
> --
> *Anjana Fernando*
> Senior Technical Lead
> WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 http://wso2.com/
 lean | enterprise | middleware
 Mobile : +94 716546324

>>>
>>>
>>>
>>> --
>>> *Anjana Fernando*
>>> Senior Technical Lead
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> *Supun Sethunga*
>> Software Engineer
>> WSO2, Inc.
>> http://wso2.com/
>> lean | enterprise | middleware
>> Mobile : +94 716546324
>>
>
>
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324
>



-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Null pointer exception when trying to restart the server - Test Automation

2016-02-25 Thread Menaka Jayawardena
Hello,

I tried to restart the server using Automation Framework but it throws the
following exception.

java.lang.NullPointerException
at
org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.restartGracefully(CarbonServerManager.java:306)
at
org.wso2.carbon.iot.integration.web.ui.test.samples.SampleInstallationTest.serverRestartTest(SampleInstallationTest.java:115)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1123)
at org.testng.TestNG.run(TestNG.java:1031)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)


I used the following piece of code for restart.

CarbonServerManager serverManager = new CarbonServerManager(automationContext);
try {
serverManager.restartGracefully();
} catch (AutomationFrameworkException e) {
log.error("Restart failed");
}

When I debug the code, I get null values for all the fields of
serverManager.
I have attached the screenshot here.

​
What would be the reason for this?

Thank you very much
Menaka Madushanka
-- 
Menaka Madushanka Jayawardena
Software Engineering Intern
men...@wso2.com
Mobile:- +94 71 8851183/ +94 71 3505470
LinkedIn - Menaka Jayawardena 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Null pointer exception when trying to restart the server - Test Automation

2016-02-25 Thread Thusitha Thilina Dayaratne
Hi Menaka,

According to the debug info that you attached, AFAIU this caused
because inputStreamHandler
is null and inputStreamHandler.getOutput() throws NPE.
I think you can use ServerConfigurationManager instead of CarbonServerManager
to do the restart.

e.g.

ServerConfigurationManager serverConfigManager = new
ServerConfigurationManager(automationContext);
serverConfigManager.restartForcefully();


Thanks
Thsuitha

On Fri, Feb 26, 2016 at 11:47 AM, Menaka Jayawardena 
wrote:

> Hello,
>
> I tried to restart the server using Automation Framework but it throws the
> following exception.
>
> java.lang.NullPointerException
> at
> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.restartGracefully(CarbonServerManager.java:306)
> at
> org.wso2.carbon.iot.integration.web.ui.test.samples.SampleInstallationTest.serverRestartTest(SampleInstallationTest.java:115)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
> at
> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
> at org.testng.TestRunner.privateRun(TestRunner.java:767)
> at org.testng.TestRunner.run(TestRunner.java:617)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198)
> at org.testng.TestNG.runSuitesLocally(TestNG.java:1123)
> at org.testng.TestNG.run(TestNG.java:1031)
> at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295)
> at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90)
> at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>
>
> I used the following piece of code for restart.
>
> CarbonServerManager serverManager = new 
> CarbonServerManager(automationContext);
> try {
> serverManager.restartGracefully();
> } catch (AutomationFrameworkException e) {
> log.error("Restart failed");
> }
>
> When I debug the code, I get null values for all the fields of
> serverManager.
> I have attached the screenshot here.
>
> ​
> What would be the reason for this?
>
> Thank you very much
> Menaka Madushanka
> --
> Menaka Madushanka Jayawardena
> Software Engineering Intern
> men...@wso2.com
> Mobile:- +94 71 8851183/ +94 71 3505470
> LinkedIn - Menaka Jayawardena
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Null pointer exception when trying to restart the server - Test Automation

2016-02-25 Thread Menaka Jayawardena
Thank you very much Thusitha for the quick reply.
I'll try it.

On Fri, Feb 26, 2016 at 11:57 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Menaka,
>
> According to the debug info that you attached, AFAIU this caused because 
> inputStreamHandler
> is null and inputStreamHandler.getOutput() throws NPE.
> I think you can use ServerConfigurationManager instead of CarbonServerManager
> to do the restart.
>
> e.g.
>
> ServerConfigurationManager serverConfigManager = new 
> ServerConfigurationManager(automationContext);
> serverConfigManager.restartForcefully();
>
>
> Thanks
> Thsuitha
>
> On Fri, Feb 26, 2016 at 11:47 AM, Menaka Jayawardena 
> wrote:
>
>> Hello,
>>
>> I tried to restart the server using Automation Framework but it throws
>> the following exception.
>>
>> java.lang.NullPointerException
>> at
>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.restartGracefully(CarbonServerManager.java:306)
>> at
>> org.wso2.carbon.iot.integration.web.ui.test.samples.SampleInstallationTest.serverRestartTest(SampleInstallationTest.java:115)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>> at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
>> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
>> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
>> at
>> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
>> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
>> at org.testng.TestRunner.privateRun(TestRunner.java:767)
>> at org.testng.TestRunner.run(TestRunner.java:617)
>> at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
>> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
>> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
>> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
>> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198)
>> at org.testng.TestNG.runSuitesLocally(TestNG.java:1123)
>> at org.testng.TestNG.run(TestNG.java:1031)
>> at
>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295)
>> at
>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
>> at
>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>
>>
>> I used the following piece of code for restart.
>>
>> CarbonServerManager serverManager = new 
>> CarbonServerManager(automationContext);
>> try {
>> serverManager.restartGracefully();
>> } catch (AutomationFrameworkException e) {
>> log.error("Restart failed");
>> }
>>
>> When I debug the code, I get null values for all the fields of
>> serverManager.
>> I have attached the screenshot here.
>>
>> ​
>> What would be the reason for this?
>>
>> Thank you very much
>> Menaka Madushanka
>> --
>> Menaka Madushanka Jayawardena
>> Software Engineering Intern
>> men...@wso2.com
>> Mobile:- +94 71 8851183/ +94 71 3505470
>> LinkedIn - Menaka Jayawardena
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>


-- 
Menaka Madushanka Jayawardena
Software Engineering Intern
men...@wso2.com
Mobile:- +94 71 8851183/ +94 71 3505470
LinkedIn - Menaka Jayawardena 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Kubernetes Volume for sharing artifacts in manager and worker nodes

2016-02-25 Thread Vishanth Balasubramaniam
Hi,

I am currently researching on using Kubernetes PaaS feature volume to share
APIs among gateway manager and worker nodes.

In Kubernetes Artifacts, we are separating the worker and the manager nodes
in 2 different pods, for which each uses separate replication controller.
Due to nodes being in separate pods, we cannot use the simple Kubernetes
volume mount [1] (like emptyDirs, gitRepo etc...), rather there are other
approaches to share spaces between pods like NFS or GlusterFS as persistent
volume [2].

Doing a POC now to check how the NFS persistent volume can be used to share
the APIs among gateway manager and worker nodes. Will keep this thread
updated on the findings.

[1] - http://kubernetes.io/v1.1/docs/user-guide/volumes.html
[2] - http://kubernetes.io/v1.1/docs/user-guide/persistent-volumes.html

Regards,
Vishanth

-- 
*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] How to enable SMS based OTPs in Identity Server

2016-02-25 Thread Lakshani Gamage
Hi Thilini,

[2]  will be a help.

[2] *https://docs.wso2.com/display/ISCONNECTORS/Configuring+SMSOTP+Authenticator
*

Thanks,
Lakshani.

On Fri, Feb 26, 2016 at 11:01 AM, Thilini Cooray  wrote:

> Hi,
>
> I want to use SMS based OTPs for user registration in WSO2 Identity Server.
> My identity server version is 5.0.0 with SP1.
>
> [1] has mentioned that we can achieve this via extending 
> IdentityMgtEvenListener
> or writing custom listener. Can you please point me to any available
> resources which I can look into ?
>
> [1] [Dev] WSO2 Identity Server OTP SMS
>
> Thanks.
>
> --
> 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
>
>


-- 
Lakshani Gamage

*Software Engineer*
Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Solution requires to remove/reallocate resources assigned to deleted user

2016-02-25 Thread Sumedha Rubasinghe
If we introduce a state to user (like what we have done for access tokens)
this problem can be easily solved at the first level.

Then it's just a matter of deciding what to do with removed users and their
data later on as a clean up task by infra.
On Feb 26, 2016 11:30 AM, "Rasika Perera"  wrote:

> Hi All,
>
> My suggestion is that we need to facilitate *both* approaches(soft delete
> and hard delete).
>
> Glad that at least we have some sort of agreed norms for creating, reading
> and updating users. *But*; W*hat does "delete" mean in the context of
> this system/application? *this is a sort of a question that we(middleware
> provider) might not be able to answer when building the EMM/IoT. For some
> customers this might be completely forgetting that there was a user X, for
> some others; it might be that there was a user X who is so and so and did
> these things.
>
> I am suggesting a two level approach.
>
> Firstly, if we facilitating deleting a user *inside* our application, when
> it is triggered it should be a *soft* delete. What it would mean is we delete
> the user logically. I would recommend this blog Don't Delete, Just Dont!
> [1] with a simple
> example in favour of soft delete. Certainly there might be statistical
> requirements that need to be drilled down into historical data. And
> deleting a user from the system should not be a gone-gone at least for some
> grace period.
>
> Secondly, there can be requirements such as reclaim disk space,
> hard-deletion required as per retention/privacy policy. In that case, we
> need to provide some sort of a workflow that would clear the stuff. There's
> a possibility that existence of shared resources might cause even far more
> complex filtering. On the other hand, as Prabath mentioned when
> user-management is handed by outside of the system, third party products
> such as LDAPs. Once a user is removed by an outside functionality there is
> no default way to listen an event or make a workflow to get triggered this
> into our application. This is why we need to implement *manually* triggered
> workflow which can be consumed by system administrators.
>
> I think we can decide the best approach if we decide whether to maintain
> historical data on meta data repositories or not?
>
> WDYT?
>
> Regards,
> Rasika
>
> [1] http://udidahan.com/2009/09/01/dont-delete-just-dont/
>
>
> On Thu, Feb 25, 2016 at 5:41 PM, Prabath Abeysekera 
> wrote:
>
>> To my understanding, the most commonly practised use-case in many
>> organizations is that, user management is handled outside third party
>> products. For instance, in a typical EMM deployment, which utilizes IS as a
>> key manager, it is highly unlikely that user provisioning/de-provisioning
>> is done via IS itself, unless IS is what's primarily used for the same.
>> Most of the people typically prefer to provision/de-provision user
>> management related resources by directly accessing some in-house
>> infrastructure that controls access to the underlying LDAPs, etc. In that
>> sort of a scenario, there's literally no way that you can listen to some
>> event and make a workflow or some other similar mechanism to get triggered
>> automatically. Instead, system administrators would have to manually
>> trigger a workflow or something to clean-up the orphaned resources. So,
>> there has to be some functionality, IMO, in EMM to support that aspect.
>>
>> If all user-mgt tasks are done through IS, however, you have the
>> opportunity to use the workflow extension feature to clean-up the aforesaid
>> resources irrespective of the fact that the user is fully removed from the
>> underlying user-mgt system or made inactive. Note that, in both cases, the
>> associated resources have to be cleaned up so, the need of triggering a
>> workflow to detach all stale resources is must.
>>
>> Maintaining statistics is a whole different other aspect, IMO. Without
>> relying on the primary metadata repositories used by the underlying
>> user-mgt systems for keeping historical data, some appropriate monitoring
>> infrastructure has to be used, which would analyze and bring us who is
>> active in the system and who is not, in the form of a audit trail or a
>> report. Certain organizations do practice certain steps "not to duplicate
>> identity", whereas certain others do not, primarily because letting the
>> user base grow with some users who no longer exist in the system is
>> pointless. Even for the people who avoid user duplication, IMO, it is a
>> must for the system administrators that their resources are cleaned up when
>> they leave an organization.
>>
>> All considered, IMO, we can have some workflow-based mechanism bound to
>> EMM/IoTS, which not only can be manually triggered when the users are
>> removed externally, but also gets triggered when users are deleted or made
>> inactive. WDYT?
>>
>> Cheers,
>> Prabath
>>
>>
>>
>>
>> On Thu, Feb 25, 2016 at 4:49 PM, Charitha G

Re: [Dev] Null pointer exception when trying to restart the server - Test Automation

2016-02-25 Thread Menaka Jayawardena
Thanks a lot Thusitha...
It worked perfectly. :-)

Menaka

On Fri, Feb 26, 2016 at 12:00 PM, Menaka Jayawardena 
wrote:

> Thank you very much Thusitha for the quick reply.
> I'll try it.
>
> On Fri, Feb 26, 2016 at 11:57 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Menaka,
>>
>> According to the debug info that you attached, AFAIU this caused because 
>> inputStreamHandler
>> is null and inputStreamHandler.getOutput() throws NPE.
>> I think you can use ServerConfigurationManager instead of CarbonServerManager
>> to do the restart.
>>
>> e.g.
>>
>> ServerConfigurationManager serverConfigManager = new 
>> ServerConfigurationManager(automationContext);
>> serverConfigManager.restartForcefully();
>>
>>
>> Thanks
>> Thsuitha
>>
>> On Fri, Feb 26, 2016 at 11:47 AM, Menaka Jayawardena 
>> wrote:
>>
>>> Hello,
>>>
>>> I tried to restart the server using Automation Framework but it throws
>>> the following exception.
>>>
>>> java.lang.NullPointerException
>>> at
>>> org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.restartGracefully(CarbonServerManager.java:306)
>>> at
>>> org.wso2.carbon.iot.integration.web.ui.test.samples.SampleInstallationTest.serverRestartTest(SampleInstallationTest.java:115)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> at
>>> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>>> at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
>>> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
>>> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
>>> at
>>> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
>>> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
>>> at org.testng.TestRunner.privateRun(TestRunner.java:767)
>>> at org.testng.TestRunner.run(TestRunner.java:617)
>>> at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
>>> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
>>> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
>>> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
>>> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
>>> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>>> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198)
>>> at org.testng.TestNG.runSuitesLocally(TestNG.java:1123)
>>> at org.testng.TestNG.run(TestNG.java:1031)
>>> at
>>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295)
>>> at
>>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
>>> at
>>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
>>> at
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>>>
>>>
>>> I used the following piece of code for restart.
>>>
>>> CarbonServerManager serverManager = new 
>>> CarbonServerManager(automationContext);
>>> try {
>>> serverManager.restartGracefully();
>>> } catch (AutomationFrameworkException e) {
>>> log.error("Restart failed");
>>> }
>>>
>>> When I debug the code, I get null values for all the fields of
>>> serverManager.
>>> I have attached the screenshot here.
>>>
>>> ​
>>> What would be the reason for this?
>>>
>>> Thank you very much
>>> Menaka Madushanka
>>> --
>>> Menaka Madushanka Jayawardena
>>> Software Engineering Intern
>>> men...@wso2.com
>>> Mobile:- +94 71 8851183/ +94 71 3505470
>>> LinkedIn - Menaka Jayawardena
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>>
>>
>
>
> --
> Menaka Madushanka Jayawardena
> Software Engineering Intern
> men...@wso2.com
> Mobile:- +94 71 8851183/ +94 71 3505470
> LinkedIn - Menaka Jayawardena
> 
>



-- 
Menaka Madushanka Jayawardena
Software Engineering Intern
men...@wso2.com
Mobile:- +94 71 8851183/ +94 71 3505470
LinkedIn - Menaka Jayawardena 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to enable SMS based OTPs in Identity Server

2016-02-25 Thread Elilmatha Sivanesan
Hi Thilini,

You can find the source code at [1], and download the authenticator from
store [2].

[1] https://github.com/wso2-extensions/identity-outbound-auth-sms-otp

[2]
https://store.wso2.com/store/assets/isconnector/bfbe6b6a-c694-4890-b6b4-5a3098bf98f4

Thanks.

On Fri, Feb 26, 2016 at 12:05 PM, Lakshani Gamage  wrote:

> Hi Thilini,
>
> [2]  will be a help.
>
> [2] 
> *https://docs.wso2.com/display/ISCONNECTORS/Configuring+SMSOTP+Authenticator
> *
>
> Thanks,
> Lakshani.
>
> On Fri, Feb 26, 2016 at 11:01 AM, Thilini Cooray 
> wrote:
>
>> Hi,
>>
>> I want to use SMS based OTPs for user registration in WSO2 Identity
>> Server.
>> My identity server version is 5.0.0 with SP1.
>>
>> [1] has mentioned that we can achieve this via extending 
>> IdentityMgtEvenListener
>> or writing custom listener. Can you please point me to any available
>> resources which I can look into ?
>>
>> [1] [Dev] WSO2 Identity Server OTP SMS
>>
>> Thanks.
>>
>> --
>> 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
>>
>>
>
>
> --
> Lakshani Gamage
>
> *Software Engineer*
> Mobile : +94 (0) 71 5478184 <%2B94%20%280%29%20773%20451194>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*S.Elilmatha*
Associate  Software Engineer,

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

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


Re: [Dev] Puppet error when building API-M Docker image

2016-02-25 Thread Isuru Haththotuwa
Hi Imesh,

Yes, seems we have mistakenly pointed user mgt datasource to wso2user_db
[1] in default profile of APIM 1.9.1. This should be pointed to the default
H2 DB [2].

[1]. wso2::usermgt_datasource: wso2user_db
[2]. wso2::usermgt_datasource: wso2_carbon_db

On Fri, Feb 26, 2016 at 10:03 AM, Imesh Gunaratne  wrote:

> Hi Devs,
>
> I see the following error while trying to build $subject:
>
> Notice: Scope(Wso2base::Deploy[/mnt/wso2am-1.9.1]): Deploying artifacts
> for WSO2 product [name] wso2am, [version] 1.9.1, [CARBON_HOME]
> /mnt/wso2am-1.9.1
> Error: Failed to parse template
> wso2am/1.9.1/repository/conf/user-mgt.xml.erb:
>   Filepath:
> /etc/puppet/modules/wso2am/templates/1.9.1/repository/conf/user-mgt.xml.erb
>   Line: 29
>   Detail: undefined method `[]' for nil:NilClass
>  at /etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
> bc28b6258a7b
> Error: Failed to parse template
> wso2am/1.9.1/repository/conf/user-mgt.xml.erb:
>   Filepath:
> /etc/puppet/modules/wso2am/templates/1.9.1/repository/conf/user-mgt.xml.erb
>   Line: 29
>   Detail: undefined method `[]' for nil:NilClass
>  at /etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
> bc28b6258a7b
>
> Steps to re-produce:
>
> 1. Checkout puppet modules
> 2. Checkout kubernetes artifacts
> 3. Copy required distributions to puppet modules and set PUPPET_HOME
> 4. Build base Docker image
> 5. Build API-M Docker image default profile
>
> May be we are missing a default configuration.
>
> Thanks
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.io
> Lean . Enterprise . Middleware
>
>


-- 
Thanks and Regards,

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


[Dev] Creating Gadgets for Web Application Statistics Monitoring Dashboard - Application Server 6.0.0

2016-02-25 Thread Lochana Ranaweera
Hi all,

This is regarding the HTTP Monitoring Dashboard for AS 6.0.0. It is to be
deployed as a collection of user preferred set of gadgets in the Dashboard
Server.
As of now, I have ported the* basic* HTTP monitoring functionality as
separate gadgets for DS.

A typical HTTP monitoring gadget has the following structure:

gadget-name
   ├── css
   ├── js
   ├── fonts
   ├── images
   ├── index.xml
   └── gadget.json

What will be the best structure to version control thus created gadgets in
the given branch  of
AS 6.0.0?
Should it be in modules or should it be inside contents directory in the
distribution module?
The directory structure of the build for new AS 6.0.0 is given below:


​
Appreciate your suggestions on this matter.

Thanks and Regards,
-- 
Lochana Ranaweera
Intern Software Engineer
WSO2 Inc: http://wso2.com
Blog: https://lochanaranaweera.wordpress.com/
Mobile: +94716487055 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Puppet error when building API-M Docker image

2016-02-25 Thread Imesh Gunaratne
Thanks Isuru, I just fixed it:
https://github.com/wso2/puppet-modules/commit/c9e2cd529a338f86285eb2eb4184beb3a50cfe75

Thanks

On Fri, Feb 26, 2016 at 12:31 PM, Isuru Haththotuwa  wrote:

> Hi Imesh,
>
> Yes, seems we have mistakenly pointed user mgt datasource to wso2user_db
> [1] in default profile of APIM 1.9.1. This should be pointed to the default
> H2 DB [2].
>
> [1]. wso2::usermgt_datasource: wso2user_db
> [2]. wso2::usermgt_datasource: wso2_carbon_db
>
> On Fri, Feb 26, 2016 at 10:03 AM, Imesh Gunaratne  wrote:
>
>> Hi Devs,
>>
>> I see the following error while trying to build $subject:
>>
>> Notice: Scope(Wso2base::Deploy[/mnt/wso2am-1.9.1]): Deploying artifacts
>> for WSO2 product [name] wso2am, [version] 1.9.1, [CARBON_HOME]
>> /mnt/wso2am-1.9.1
>> Error: Failed to parse template
>> wso2am/1.9.1/repository/conf/user-mgt.xml.erb:
>>   Filepath:
>> /etc/puppet/modules/wso2am/templates/1.9.1/repository/conf/user-mgt.xml.erb
>>   Line: 29
>>   Detail: undefined method `[]' for nil:NilClass
>>  at /etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
>> bc28b6258a7b
>> Error: Failed to parse template
>> wso2am/1.9.1/repository/conf/user-mgt.xml.erb:
>>   Filepath:
>> /etc/puppet/modules/wso2am/templates/1.9.1/repository/conf/user-mgt.xml.erb
>>   Line: 29
>>   Detail: undefined method `[]' for nil:NilClass
>>  at /etc/puppet/modules/wso2base/manifests/push_templates.pp:23 on node
>> bc28b6258a7b
>>
>> Steps to re-produce:
>>
>> 1. Checkout puppet modules
>> 2. Checkout kubernetes artifacts
>> 3. Copy required distributions to puppet modules and set PUPPET_HOME
>> 4. Build base Docker image
>> 5. Build API-M Docker image default profile
>>
>> May be we are missing a default configuration.
>>
>> Thanks
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.io
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.io
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev