Re: [Dev] [Architecture] WSO2 Identity Server 5.2.0 Alpha Released !!

2016-03-20 Thread Dilini Gunatilake
Hi All,

The link given above for IS 5.2.0 Alpha distribution points to the IS 5.1.0
Alpha release. Please use the link below for the correct distribution.

https://github.com/wso2/product-is/releases/tag/v5.2.0-alpha

Thank you.

Regards,
Dilini

On Fri, Mar 18, 2016 at 4:47 AM, Godwin Shrimal  wrote:

> WSO2 Identity Server 5.2.0 Alpha Released !!Date: 17th March 2016The WSO2
> Identity Server team is pleased to announce the release of WSO2 Identity
> Server 5.2.0 Alpha. You can download this distribution from
> https://github.com/wso2/product-is/releases/tag/v5.2.0-alpha
> 
>
> Following list [1] contains all bug fixes and improvements available with
> alpha release. We encourage you to report issues, improvements and feature
> requests regarding WSO2 Identity Server through the public WSO2 Identity
> Server JIRA 
>
> ~ The WSO2 Identity Server Team ~
>
> [1] Release Notes - WSO2 Identity Server - Version 5.2.0-Alpha
> Bug
>
>-
>
>[IDENTITY-4409 ] - Improve
>gitignore of identity-framework
>-
>
>[IDENTITY-4410 ] - Remove
>synchronizing the method "hasUserApproved" in "OpenIDConnectUserRPStore"
>class
>
> Improvement
>
>-
>
>[IDENTITY-4384 ] -
>IdentityProviderManager should exposed as an osgi service
>-
>
>[IDENTITY-4390 ] - Adding
>capability to publish Oauth related events
>
> New Feature
>
>-
>
>[IDENTITY-3287 ] - API to
>get the number (count) of users
>
> Patch[IDENTITY-4398 ] -
> Authorization code can be sent in to get access token multiple times
>
>
>
> --
> *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
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] User's can disable their own accounts

2016-03-21 Thread Dilini Gunatilake
Hi Pushpalanka,

Any update on this? Is there any change done in the Alpha release?

Regards,
Dilini

On Fri, Mar 11, 2016 at 12:39 PM, Pushpalanka Jayawardhana 
wrote:

> Hi Dilini,
>
> Intended use of this feature is only for administrators/users with
> user-mgt previlleges to disable/enable user accounts.
> Therefore a user should not be able to disable own account. We discussed
> to hide this claim from user profile UI by default and move the
> disable/enable click to user list view. This is not done yet though.
>
> Will get to you after discussing with the team on our stand on this.
>
> Thanks,
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>
>
> On Fri, Mar 11, 2016 at 12:30 PM, Dilini Gunatilake 
> wrote:
>
>> Hi IS Team,
>>
>> When identifying test scenarios for User Account Disability feature in IS
>> 520, I noticed that users can disable their own accounts and carry out work
>> until the session expires or they log out. But the system will throw
>> exceptions for the operations they do in both management console and
>> dashboard. eg: change the password
>>
>> What should be the ideal behaviour in this scenario? Should the user have
>> privileges to disable their own account?
>>
>> Thank you,
>>
>> Regards,
>>
>> --
>>
>> *Dilini GunatilakeSoftware Engineer - QA Team*
>> Mobile : +94 (0) 771 162518
>> dili...@wso2.com
>>
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] User's can disable their own accounts

2016-03-23 Thread Dilini Gunatilake
Hi Johann,

Thanks for the information. You have mentioned that it is highly unlikely
that users are accessing their profiles via the management console. Can you
please clarify whether it is the same for the Dashboard also? Because the
end users can disable their profiles via the dashboard as well.

Thank you.

Regards,
Dilini


On Tue, Mar 22, 2016 at 9:42 PM, Johann Nallathamby  wrote:

> Hi Dilini,
>
> It true that we ideally should special case this claim and not show in the
> profile so a normal end user cannot disable himself.
>
> But this feature is just a renaming of the previous account lock feature
> we had, except that account lock was previously used for two purposes.
> 1. Locking the account of a user by admin (current user disable feature)
> 2. Locking the account when invalid password attempts exceeded.
> Even in 5.1.0 this was the case; one can lock himself out using the
> profile and unexpected errors are thrown from management console.
>
> However due to following reasons we are thinking of not addressing this in
> 5.2.0 release.
> 1. It is highly unlikely end users of applications are allowed access to
> the IS management console to update their profile. Generally they update
> the profile through custom screens in the application side. Carbon admin
> console is not exposed to end users generally.
> 2. Very soon we are going to move away from management console UI to a
> jaggery based portal separate for end users and admin users.
>
> Due to above reasons we are thinking of deprioritizing this change request.
>
> Regards,
> Johann.
>
>
> On Mon, Mar 21, 2016 at 5:32 PM, Dilini Gunatilake 
> wrote:
>
>> Hi Pushpalanka,
>>
>> Any update on this? Is there any change done in the Alpha release?
>>
>> Regards,
>> Dilini
>>
>> On Fri, Mar 11, 2016 at 12:39 PM, Pushpalanka Jayawardhana <
>> la...@wso2.com> wrote:
>>
>>> Hi Dilini,
>>>
>>> Intended use of this feature is only for administrators/users with
>>> user-mgt previlleges to disable/enable user accounts.
>>> Therefore a user should not be able to disable own account. We discussed
>>> to hide this claim from user profile UI by default and move the
>>> disable/enable click to user list view. This is not done yet though.
>>>
>>> Will get to you after discussing with the team on our stand on this.
>>>
>>> Thanks,
>>> Pushpalanka.
>>> --
>>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>>> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>>> Mobile: +94779716248
>>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
>>> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>>>
>>>
>>> On Fri, Mar 11, 2016 at 12:30 PM, Dilini Gunatilake 
>>> wrote:
>>>
>>>> Hi IS Team,
>>>>
>>>> When identifying test scenarios for User Account Disability feature in
>>>> IS 520, I noticed that users can disable their own accounts and carry out
>>>> work until the session expires or they log out. But the system will throw
>>>> exceptions for the operations they do in both management console and
>>>> dashboard. eg: change the password
>>>>
>>>> What should be the ideal behaviour in this scenario? Should the user
>>>> have privileges to disable their own account?
>>>>
>>>> Thank you,
>>>>
>>>> Regards,
>>>>
>>>> --
>>>>
>>>> *Dilini GunatilakeSoftware Engineer - QA Team*
>>>> Mobile : +94 (0) 771 162518
>>>> dili...@wso2.com
>>>>
>>>
>>>
>>
>>
>> --
>>
>> *Dilini GunatilakeSoftware Engineer - QA Team*
>> Mobile : +94 (0) 771 162518
>> dili...@wso2.com
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Governance Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>



-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] User's can disable their own accounts

2016-03-23 Thread Dilini Gunatilake
Thanks Johann.

Raised a jira [1] to track the issue.

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

Regards,
Dilini

On Wed, Mar 23, 2016 at 2:50 PM, Johann Nallathamby  wrote:

>
> On Wed, Mar 23, 2016 at 2:38 PM, Dilini Gunatilake 
> wrote:
>
>> Hi Johann,
>>
>> Thanks for the information. You have mentioned that it is highly unlikely
>> that users are accessing their profiles via the management console. Can you
>> please clarify whether it is the same for the Dashboard also? Because the
>> end users can disable their profiles via the dashboard as well.
>>
>
> That could be a issue. In that case we will special case this claim in the
> dashboard and not show it.
> @Pushpalanka: please note.
>
> Ideally we should have application specific profile in IS and each
> application should decide what claims to show and what not to.
>
> Thanks.
>
>
>>
>> Thank you.
>>
>> Regards,
>> Dilini
>>
>>
>> On Tue, Mar 22, 2016 at 9:42 PM, Johann Nallathamby 
>> wrote:
>>
>>> Hi Dilini,
>>>
>>> It true that we ideally should special case this claim and not show in
>>> the profile so a normal end user cannot disable himself.
>>>
>>> But this feature is just a renaming of the previous account lock feature
>>> we had, except that account lock was previously used for two purposes.
>>> 1. Locking the account of a user by admin (current user disable feature)
>>> 2. Locking the account when invalid password attempts exceeded.
>>> Even in 5.1.0 this was the case; one can lock himself out using the
>>> profile and unexpected errors are thrown from management console.
>>>
>>> However due to following reasons we are thinking of not addressing this
>>> in 5.2.0 release.
>>> 1. It is highly unlikely end users of applications are allowed access to
>>> the IS management console to update their profile. Generally they update
>>> the profile through custom screens in the application side. Carbon admin
>>> console is not exposed to end users generally.
>>> 2. Very soon we are going to move away from management console UI to a
>>> jaggery based portal separate for end users and admin users.
>>>
>>> Due to above reasons we are thinking of deprioritizing this change
>>> request.
>>>
>>> Regards,
>>> Johann.
>>>
>>>
>>> On Mon, Mar 21, 2016 at 5:32 PM, Dilini Gunatilake 
>>> wrote:
>>>
>>>> Hi Pushpalanka,
>>>>
>>>> Any update on this? Is there any change done in the Alpha release?
>>>>
>>>> Regards,
>>>> Dilini
>>>>
>>>> On Fri, Mar 11, 2016 at 12:39 PM, Pushpalanka Jayawardhana <
>>>> la...@wso2.com> wrote:
>>>>
>>>>> Hi Dilini,
>>>>>
>>>>> Intended use of this feature is only for administrators/users with
>>>>> user-mgt previlleges to disable/enable user accounts.
>>>>> Therefore a user should not be able to disable own account. We
>>>>> discussed to hide this claim from user profile UI by default and move the
>>>>> disable/enable click to user list view. This is not done yet though.
>>>>>
>>>>> Will get to you after discussing with the team on our stand on this.
>>>>>
>>>>> Thanks,
>>>>> Pushpalanka.
>>>>> --
>>>>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>>>>> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>>>>> Mobile: +94779716248
>>>>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
>>>>> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>>>>>
>>>>>
>>>>> On Fri, Mar 11, 2016 at 12:30 PM, Dilini Gunatilake 
>>>>> wrote:
>>>>>
>>>>>> Hi IS Team,
>>>>>>
>>>>>> When identifying test scenarios for User Account Disability feature
>>>>>> in IS 520, I noticed that users can disable their own accounts and carry
>>>>>> out work until the session expires or they log out. But the system will
>>>>>> throw exceptions for the operations they do in both management console 
>>>>>> and
>>>>>> dashboard. eg: change the password
>>>>>>
>>>>>> What should be the ideal behaviour in this scenario? Should the user
>>>>>> have privileges to disa

Re: [Dev] [IS] Using email as username for a JDBC-based user store

2016-04-24 Thread Dilini Gunatilake
Hi Farasath,

Those config parameters are not added in the JDBCUserStoreManager by
default. But, you can follow the same doc you referred and add them
manually. The required parameters are as follows.

mail
(&(objectClass=identityPerson)(mail=?))
(&(objectClass=identityPerson)(mail=*))
^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$

Regards,
Dilini

On Mon, Apr 25, 2016 at 9:21 AM, Tharindu Edirisinghe 
wrote:

> Hi Farasath,
>
> Have you looked at [1] ? You should be able to get it to working with the
> instructions in that.
>
> [1] http://xacmlinfo.org/2014/10/07/email-username-with-identity-server/
>
> Regards,
> TharinduE
>
> On Mon, Apr 25, 2016 at 7:05 AM, Danushka Fernando 
> wrote:
>
>> Have you try adding the property to the configuration?
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Mon, Apr 25, 2016 at 12:02 AM, Farasath Ahamed 
>> wrote:
>>
>>> I was able to set email as the username for an LDAP-based user store
>>> following [1]. Although [1] suggests it's the same for a JDBC-based user
>>> store I couldn't find the same config parameters in the user-mgt.xml for an
>>> external JDBC user store.
>>>
>>> Can someone pointout how to achieve the $subject?
>>>
>>>
>>> [1]
>>> https://docs.wso2.com/display/IS510/Using+Email+Address+as+the+Username
>>>
>>>
>>> Farasath Ahamed
>>> Software Engineer,
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>>
>>> Email: farasa...@wso2.com
>>> Mobile: +94777603866
>>> Blog: blog.farazath.com
>>> Twitter: @farazath619 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Using email as username for a JDBC-based user store

2016-04-24 Thread Dilini Gunatilake
Hi Sherene,

UserDNPattern property is not required to be configured for a JDBC user
store. It is only needed for a LDAP to speed up the search operations.

Also, no need to add the expression I have given in the documentation. Keep
the default. Users can change this expression according to their
requirement.

Regards,
Dilini

On Mon, Apr 25, 2016 at 10:39 AM, Sherene Mahanama  wrote:

> I added a note on this page [1] mentioning that these properties need to
> be added manually for the JDBCUserStoreManager.
>
> What about this property though? Is it no longer needed?
>
>- 
>
> And the value for this property is different from the other types for the
> JDBCUserStoreManager right?
>
>- ^[_A-
>Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+
>)*(\.[A-Za-z]{2,})$
>
> [1] -
> https://docs.wso2.com/display/IS510/Using+Email+Address+as+the+Username
> Thanks, Sherene
>
> On Mon, Apr 25, 2016 at 10:16 AM, Dilini Gunatilake 
> wrote:
>
>> Hi Farasath,
>>
>> Those config parameters are not added in the JDBCUserStoreManager by
>> default. But, you can follow the same doc you referred and add them
>> manually. The required parameters are as follows.
>>
>> mail
>> > name="UserNameSearchFilter">(&(objectClass=identityPerson)(mail=?))
>> > name="UserNameListFilter">(&(objectClass=identityPerson)(mail=*))
>> > name="UsernameJavaRegEx">^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$
>>
>> Regards,
>> Dilini
>>
>> On Mon, Apr 25, 2016 at 9:21 AM, Tharindu Edirisinghe > > wrote:
>>
>>> Hi Farasath,
>>>
>>> Have you looked at [1] ? You should be able to get it to working with
>>> the instructions in that.
>>>
>>> [1] http://xacmlinfo.org/2014/10/07/email-username-with-identity-server/
>>>
>>> Regards,
>>> TharinduE
>>>
>>> On Mon, Apr 25, 2016 at 7:05 AM, Danushka Fernando 
>>> wrote:
>>>
>>>> Have you try adding the property to the configuration?
>>>>
>>>> Thanks & Regards
>>>> Danushka Fernando
>>>> Senior Software Engineer
>>>> WSO2 inc. http://wso2.com/
>>>> Mobile : +94716332729
>>>>
>>>> On Mon, Apr 25, 2016 at 12:02 AM, Farasath Ahamed 
>>>> wrote:
>>>>
>>>>> I was able to set email as the username for an LDAP-based user store
>>>>> following [1]. Although [1] suggests it's the same for a JDBC-based user
>>>>> store I couldn't find the same config parameters in the user-mgt.xml for 
>>>>> an
>>>>> external JDBC user store.
>>>>>
>>>>> Can someone pointout how to achieve the $subject?
>>>>>
>>>>>
>>>>> [1]
>>>>> https://docs.wso2.com/display/IS510/Using+Email+Address+as+the+Username
>>>>>
>>>>>
>>>>> Farasath Ahamed
>>>>> Software Engineer,
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>>
>>>>> Email: farasa...@wso2.com
>>>>> Mobile: +94777603866
>>>>> Blog: blog.farazath.com
>>>>> Twitter: @farazath619 <https://twitter.com/farazath619>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Tharindu Edirisinghe
>>> Software Engineer | WSO2 Inc
>>> Platform Security Team
>>> Blog : tharindue.blogspot.com
>>> mobile : +94 775181586
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Dilini GunatilakeSoftware Engineer - QA Team*
>> Mobile : +94 (0) 771 162518
>> dili...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sherene Mahanama
> Associate Technical Writer
>
> WSO2 (pvt.) Ltd.
> Colombo, Sri Lanka
> (+94) 777 <%28%2B94%29%20773131798>*994805*
>



-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Lasantha Samarakoon

2016-04-24 Thread Dilini Gunatilake
Congratulations Lasantha :)

On Mon, Apr 25, 2016 at 11:23 AM, Sinthuja Ragendran 
wrote:

> Hi all,
>
> It's my pleasure to welcome Lasantha Samarakoon as a WSO2 Committer.
> LasanthaS was a key member in dashboard server team, and he has contributed
> in developing several features for the DS 2.0.0 release. In recognition of
> his contributions, ownership shown towards the tasks and responsibilities
> assigned to him and commitment, he has been voted as WSO2 committer.
>
> LasanthaS, welcome aboard and keep up the good work!
>
> Thanks,
> Sinthuja.
>
> --
> *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
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] NoClassDefFoundError: org/apache/rahas/TrustException when deploying PassiveSTSSampleApp

2016-04-27 Thread Dilini Gunatilake
Hi IS team,

I tried to deploy the PassiveSTSSampleApp which was built from
product-is-5.2.0-beta repo and got the following exception. Seems like a
dependency issue.

SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PassiveSTSSampleApp]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1091)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1980)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
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)
Caused by: java.lang.NoClassDefFoundError: org/apache/rahas/TrustException
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2499)
at java.lang.Class.getDeclaredFields(Class.java:1811)
at
org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
at
org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
at
org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:109)
at
org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:64)
at
org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:415)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:892)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
... 10 more
Caused by: java.lang.ClassNotFoundException: org.apache.rahas.TrustException
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858)
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
... 24 more

Apr 27, 2016 1:53:08 PM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive
/home/dilinig/software/apache-tomcat-7.0.68/webapps/PassiveSTSSampleApp.war
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PassiveSTSSampleApp]]
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1091)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1980)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
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)


Reported a JIRA [1]. Any workaround to resolve this asap as we are unable
to test this feature?

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

Thank you.

Regards,
-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] NoClassDefFoundError: org/apache/rahas/TrustException when deploying PassiveSTSSampleApp

2016-04-27 Thread Dilini Gunatilake
Downloaded the source code from [1]

[1] https://github.com/wso2/product-is/releases/tag/v5.2.0-beta

Regards,
Dilini

On Wed, Apr 27, 2016 at 3:34 PM, Chamath Gunawardana 
wrote:

> Hi Dilini,
>
> Can you please share the location you go the sample war? This issue was
> seen and was fixed.
>
>
> Thanks,
> Chamath
>
> On Wed, Apr 27, 2016 at 3:16 PM, Dilini Gunatilake 
> wrote:
>
>> Hi IS team,
>>
>> I tried to deploy the PassiveSTSSampleApp which was built from
>> product-is-5.2.0-beta repo and got the following exception. Seems like a
>> dependency issue.
>>
>> SEVERE: ContainerBase.addChild: start:
>> org.apache.catalina.LifecycleException: Failed to start component
>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PassiveSTSSampleApp]]
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1091)
>> at
>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1980)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> 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)
>> Caused by: java.lang.NoClassDefFoundError: org/apache/rahas/TrustException
>> at java.lang.Class.getDeclaredFields0(Native Method)
>> at java.lang.Class.privateGetDeclaredFields(Class.java:2499)
>> at java.lang.Class.getDeclaredFields(Class.java:1811)
>> at
>> org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
>> at
>> org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:270)
>> at
>> org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:109)
>> at
>> org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:64)
>> at
>> org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:415)
>> at
>> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:892)
>> at
>> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
>> at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>> at
>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>> ... 10 more
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.rahas.TrustException
>> at
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858)
>> at
>> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
>> ... 24 more
>>
>> Apr 27, 2016 1:53:08 PM org.apache.catalina.startup.HostConfig deployWAR
>> SEVERE: Error deploying web application archive
>> /home/dilinig/software/apache-tomcat-7.0.68/webapps/PassiveSTSSampleApp.war
>> java.lang.IllegalStateException: ContainerBase.addChild: start:
>> org.apache.catalina.LifecycleException: Failed to start component
>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PassiveSTSSampleApp]]
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
>> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1091)
>> at
>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1980)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> 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)
>>
>&

Re: [Dev] WSO2 Committers += Nipuna Chandradasa

2016-04-27 Thread Dilini Gunatilake
Congrats Nipuna :)

On Thu, Apr 28, 2016 at 11:11 AM, Sinthuja Ragendran 
wrote:

> Hi all,
>
> It's my pleasure to welcome Nipuna Chandradasa as WSO2 committer. Nipuna
> is a key member of dashboard server team, and has contributed a lot to the
> DS 2.0.0 release including doing the performance test. Hence in
> recognition of his contributions, ownership shown towards the tasks and
> responsibilities assigned to him and commitment, he has been voted as WSO2
> committer.
>
> Nipuna, welcome aboard and keep up the good work!
>
> Thanks,
> Sinthuja.
> --
> *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
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][IS] User Store error while doing GREG performance testing in clustered setup

2016-06-22 Thread Dilini Gunatilake
Hi All,

I have also faced a similar issue[1] to the issue mentioned by Danesh in
[2] above when we are doing a long running test for ES 210. Were you able
to find a root cause for this issue?

[1] https://wso2.org/jira/browse/STORE-1352

Thanks.

Regards,
Dilini

On Wed, Jun 1, 2016 at 6:04 PM, Kasun Bandara  wrote:

> Hi Thushara,
>
> Seems like the root cause of the issue originates from the below
> stack-trace.
>
> *JDBCAuthorizationManager.java:1378)*
> * at
> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)*
>
> As you said in the offline discussion this occurs when the number of
> concurrent users increase from 80 to 100 right?. I think if you can debug
> the *isUserAuthorized() *method in *JDBCAuthorizationManager *class*, *you
> can the trace out the exact reason behind this concurrency issue*.*
> (debug it in both the occasions : 80 Users and 100 Users)
>
> Thanks,
> Kasun.
>
> On Wed, Jun 1, 2016 at 11:18 AM, Thushara Ranawaka 
> wrote:
>
>> Hi Everyone,
>>
>> This is continuously reproducible for 100 concurrent users in a single
>> node G-Reg setup.
>> Any idea of why this is happen.
>>
>> TID: [-1234] [] [2016-05-30 13:12:07,771] ERROR
>> {org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  Error
>> occurred while accessing Java Security Manager Privilege Block
>> {org.wso2.carbon.user.core.common.AbstractUserStoreManager}
>> TID: [-1234] [] [2016-05-30 13:13:00,324] ERROR
>> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager} -  Error
>> occurred while accessing Java Security Manager Privilege Block
>> {org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager}
>> TID: [-1234] [] [2016-05-30 13:13:03,183] ERROR {rxt-permissions} -
>>  org.mozilla.javascript.WrappedException: Wrapped
>> org.wso2.carbon.user.core.UserStoreException: Error occurred while
>> accessing Java Security Manager Privilege Block (eval code#1(eval)#86)
>> at
>> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
>> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
>> at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_52(/scripts/permissions/permissions.js:594)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>> at
>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_53(/scripts/permissions/permissions.js:637)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>> at
>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_54(/scripts/permissions/permissions.js:658)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>> at
>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0._c_anonymous_60(/scripts/permissions/permissions.js:751)
>> at
>> org.jaggeryjs.rhino..scripts.permissions.c0.call(/scripts/permissions/permissions.js)
>> at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>> at
>> org.jaggeryjs.rhino.store.modules.c5._c_anonymous_8(/store/modules/page-decorators.js:200)
>> at
>> org.jaggeryjs.rhino.store.modules.c5.call(/store/modules/page-decorators.js)
>> at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
>>
>>
>>
>>
>> Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
>> while accessing Java Security Manager Privilege Block
>> at
>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1378)
>> at
>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.isUserAuthorized(JDBCAuthorizationManager.java:168)
>> at sun.reflect.GeneratedMethodAccessor195.invoke(Unknown Source)
>>
>> Thanks,
>> Thushara.
>>
>> On Thu, Mar 31, 2016 at 9:27 AM, Danesh Kuruppu  wrote:
>>
>>> Hi all,
>>>
>>> I am currently doing GREG performance testing in clustered setup. It is
>>> a two nodes cluster fronted with nginx and we have enabled sticky sessions.
>>> We have JDBC user store (mysql DB) shared with both nodes.
>>>
>>> User store exception[1][2] occurred while performing asset crud
>>> operation in publisher for 20+ concurrent users.
>>>
>>> Any idea of why this is happen.
>>> Thanks
>>> Danesh
>>>
>>> [1]
>>> Caused by: org.wso2.carbon.user.core.UserStoreException: Error occurred
>>> while accessing Java Security Manager Privilege Block
>>> at
>>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.callSecure(JDBCAuthorizationManager.java:1378)
>>> at
>>> org.wso2.carbon.user.core.authorization.JDBCAuthorizationMan

Re: [Dev] [Clarification] How to make two manager nodes Active/Active?

2015-08-20 Thread Dilini Gunatilake
Hi Nirmal,

When I deploy apps in AS, only one manager is always sending the
SynchronizeRepositoryRequest to the other manager and worker nodes (the
manager nodes are not working in a round robin fashion). Is my
configurations wrong or have I understood it in a wrong way?

Regards,
Dilini




When I configured the cluster, I noticed the two manager nodes are working
> in Active/Passive mode by default.
>

What made you think that?

On Fri, Aug 21, 2015 at 11:18 AM, Nirmal Fernando  wrote:

> Hi Dilini,
>
> On Fri, Aug 21, 2015 at 10:32 AM, Dilini Gunatilake 
> wrote:
>
>> Hi All,
>>
>> I am playing around creating a worker/manager cluster in Application
>> Server (AS) using the deployment pattern 2 [1] where two worker nodes and
>> two manager nodes are involved with the load balancer (Here i used ELB
>> although it is retired because currently I am in the training period and
>> hope it is better to know about it).
>>
>> According to the link I shared, the manager nodes can act as
>> Active/Passive or Active/Active modes. When I configured the cluster, I
>> noticed the two manager nodes are working in Active/Passive mode by
>> default.
>>
>
> What made you think that?
>
>
>> I need to know where I make changes to the configurations so that I can
>> have a Active/Active manager nodes.
>>
>> [1]
>> https://docs.wso2.com/display/CLUSTER420/Separating+the+Worker+and+Manager+Nodes
>>
>> Thank you.
>> Regards,
>> --
>>
>> *Dilini GunatilakeQA Engineer*
>> Mobile : +94 (0) 771 162518
>> dili...@wso2.com
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 

*Dilini GunatilakeQA Engineer*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Clarification] How to make two manager nodes Active/Active?

2015-08-20 Thread Dilini Gunatilake
Yes, there are new ways but I just tried the worker-manager concept just to
play around because I am still in the training period and its good to know
about it.

I don't want the managers to send the same message from all the manager
nodes. I want the managers to send messages in a round robin manner for
high availability. Now that I have two manager nodes, only one manager is
sending messages and the other manager will start sending messages only
when the other is down.



On Fri, Aug 21, 2015 at 11:49 AM, Nirmal Fernando  wrote:

> I think when sending cluster messages, we use Hazelcast elected leader
> member and that's a different concept from the worker-manager concept.
>
> If you think of it, it's kind of redundant to send the same message from
> all the management nodes to worker nodes.
>
> On Fri, Aug 21, 2015 at 11:36 AM, Dilini Gunatilake 
> wrote:
>
>> Hi Nirmal,
>>
>> When I deploy apps in AS, only one manager is always sending the
>> SynchronizeRepositoryRequest to the other manager and worker nodes (the
>> manager nodes are not working in a round robin fashion). Is my
>> configurations wrong or have I understood it in a wrong way?
>>
>> Regards,
>> Dilini
>>
>>
>>
>>
>> When I configured the cluster, I noticed the two manager nodes are
>>> working in Active/Passive mode by default.
>>>
>>
>> What made you think that?
>>
>> On Fri, Aug 21, 2015 at 11:18 AM, Nirmal Fernando 
>> wrote:
>>
>>> Hi Dilini,
>>>
>>> On Fri, Aug 21, 2015 at 10:32 AM, Dilini Gunatilake 
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I am playing around creating a worker/manager cluster in Application
>>>> Server (AS) using the deployment pattern 2 [1] where two worker nodes and
>>>> two manager nodes are involved with the load balancer (Here i used ELB
>>>> although it is retired because currently I am in the training period and
>>>> hope it is better to know about it).
>>>>
>>>> According to the link I shared, the manager nodes can act as
>>>> Active/Passive or Active/Active modes. When I configured the cluster, I
>>>> noticed the two manager nodes are working in Active/Passive mode by
>>>> default.
>>>>
>>>
>>> What made you think that?
>>>
>>>
>>>> I need to know where I make changes to the configurations so that I can
>>>> have a Active/Active manager nodes.
>>>>
>>>> [1]
>>>> https://docs.wso2.com/display/CLUSTER420/Separating+the+Worker+and+Manager+Nodes
>>>>
>>>> Thank you.
>>>> Regards,
>>>> --
>>>>
>>>> *Dilini GunatilakeQA Engineer*
>>>> Mobile : +94 (0) 771 162518
>>>> dili...@wso2.com
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Team Lead - WSO2 Machine Learner
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>>
>> *Dilini GunatilakeQA Engineer*
>> Mobile : +94 (0) 771 162518
>> dili...@wso2.com
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 

*Dilini GunatilakeQA Engineer*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Clarification] How to make two manager nodes Active/Active?

2015-08-20 Thread Dilini Gunatilake
To be more precise, I deploy app1 and the message is sent by manager1.
Then, I deploy app2 and the message is again sent by manager1. Here, I
don't know whether the deployment of the two apps is managed in a round
robin way or managed only by the manager1 (since it is sending the
message). What I thought was the message is sent by the manager who
deployed the app in, this case manager1. Is that correct in the first
place?

What I want is to deploy the apps in a round robin fashion and I believed
the manager who deployed the app will send the message.

On Fri, Aug 21, 2015 at 12:07 PM, Dilini Gunatilake 
wrote:

> Yes, there are new ways but I just tried the worker-manager concept just
> to play around because I am still in the training period and its good to
> know about it.
>
> I don't want the managers to send the same message from all the manager
> nodes. I want the managers to send messages in a round robin manner for
> high availability. Now that I have two manager nodes, only one manager is
> sending messages and the other manager will start sending messages only
> when the other is down.
>
>
>
> On Fri, Aug 21, 2015 at 11:49 AM, Nirmal Fernando  wrote:
>
>> I think when sending cluster messages, we use Hazelcast elected leader
>> member and that's a different concept from the worker-manager concept.
>>
>> If you think of it, it's kind of redundant to send the same message from
>> all the management nodes to worker nodes.
>>
>> On Fri, Aug 21, 2015 at 11:36 AM, Dilini Gunatilake 
>> wrote:
>>
>>> Hi Nirmal,
>>>
>>> When I deploy apps in AS, only one manager is always sending the
>>> SynchronizeRepositoryRequest to the other manager and worker nodes (the
>>> manager nodes are not working in a round robin fashion). Is my
>>> configurations wrong or have I understood it in a wrong way?
>>>
>>> Regards,
>>> Dilini
>>>
>>>
>>>
>>>
>>> When I configured the cluster, I noticed the two manager nodes are
>>>> working in Active/Passive mode by default.
>>>>
>>>
>>> What made you think that?
>>>
>>> On Fri, Aug 21, 2015 at 11:18 AM, Nirmal Fernando 
>>> wrote:
>>>
>>>> Hi Dilini,
>>>>
>>>> On Fri, Aug 21, 2015 at 10:32 AM, Dilini Gunatilake 
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I am playing around creating a worker/manager cluster in Application
>>>>> Server (AS) using the deployment pattern 2 [1] where two worker nodes and
>>>>> two manager nodes are involved with the load balancer (Here i used ELB
>>>>> although it is retired because currently I am in the training period and
>>>>> hope it is better to know about it).
>>>>>
>>>>> According to the link I shared, the manager nodes can act as
>>>>> Active/Passive or Active/Active modes. When I configured the cluster, I
>>>>> noticed the two manager nodes are working in Active/Passive mode by
>>>>> default.
>>>>>
>>>>
>>>> What made you think that?
>>>>
>>>>
>>>>> I need to know where I make changes to the configurations so that I
>>>>> can have a Active/Active manager nodes.
>>>>>
>>>>> [1]
>>>>> https://docs.wso2.com/display/CLUSTER420/Separating+the+Worker+and+Manager+Nodes
>>>>>
>>>>> Thank you.
>>>>> Regards,
>>>>> --
>>>>>
>>>>> *Dilini GunatilakeQA Engineer*
>>>>> Mobile : +94 (0) 771 162518
>>>>> dili...@wso2.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Thanks & regards,
>>>> Nirmal
>>>>
>>>> Team Lead - WSO2 Machine Learner
>>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>>> Mobile: +94715779733
>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Dilini GunatilakeQA Engineer*
>>> Mobile : +94 (0) 771 162518
>>> dili...@wso2.com
>>>
>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Team Lead - WSO2 Machine Learner
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
>
> *Dilini GunatilakeQA Engineer*
> Mobile : +94 (0) 771 162518
> dili...@wso2.com
>



-- 

*Dilini GunatilakeQA Engineer*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Prioritize requirements for MB

2015-09-07 Thread Dilini Gunatilake
Hi All,

Noted. Will include all the points mentioned.

Thanks for the contribution.

Regards,
Dilini

On Mon, Sep 7, 2015 at 2:05 PM, Asanka Vithanage  wrote:

> Hi Dilini,
>
> I think within this testing cycle we should put more focus on following
> scenarios, since those are the areas which mostly use in business
> integration scenarios.
> so please consider below stuffs when you plan test cycle.
>
> ESB - MB integration
>  MS&MP scenario - ESB cluster behavior,  MB/ESB Node fail-over,
>  All JMS UseCases listed on
> https://docs.wso2.com/display/ESB481/JMS+Usecases ESB cluster behavior,
> MB Node/ESB fail-over, Queue/topic/durable topic/shared subscriptions, DLC
> involvement
>
> Load/Stability/Long Running tests with MB
>
> Fail Over/ HA with SSL and non SSL connections
>
> With Different Message Sizes/Publisher rates/Subscriber rates(slow and
> fast message consumers)
>
> Flow control
>
> Multi-Tenant scenarios
>
> Regards
> AsankaV
>
> On Sat, Sep 5, 2015 at 8:17 PM, Pamod Sylvester  wrote:
>
>> Sure will discuss in detail,
>>
>> also somethings to add in relation to MQTT,
>>
>>  - Clean session false  (similar to durable subscriptions in AMQP)
>>  - Retain (persist a given message and distribute for new subscriptions)
>>  - Also QoS levels should be mixed (i.e if published at QoS 1 and
>> subscribed with QoS 0, the message will be delivered with QoS level 0)
>>
>> - Varying message sizes, which should be applicable for both AMQP and
>> MQTT.
>> - Publisher side transactions for AMQP/JMS
>>
>> Thanks,
>> Pamod
>>
>> On Fri, Sep 4, 2015 at 6:36 PM, Nuwan Silva  wrote:
>>
>>> We discussed this and hierarchical topics will be added. But, the MQTT
>>> related stuff are not finalized will need to have a chat with Pamod and get
>>> them done.
>>>
>>> Regards,
>>> NuwanS.
>>>
>>> On Fri, Sep 4, 2015 at 6:33 PM, Ramith Jayasinghe 
>>> wrote:
>>>
>>>> do we have hierarchical topics (for JMS and MQTT) covered?
>>>>
>>>>
>>>> On Fri, Sep 4, 2015 at 6:30 PM, Indika Sampath 
>>>> wrote:
>>>>
>>>>> Hi Dilini,
>>>>>
>>>>> We need to add shared durable topic subscription under JMS to this
>>>>> mind map.
>>>>>
>>>>> Cheers!
>>>>>
>>>>> On Fri, Sep 4, 2015 at 5:31 PM, Dilini Gunatilake 
>>>>> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> Please find the mind map attached herewith which includes the
>>>>>> features of MB at high level. Out of that, we have prioritized the areas
>>>>>> (with ! mark) which we believe that should be covered by 25th. More
>>>>>> features should be added to MQTT section and please free to add and share
>>>>>> anything you think important.
>>>>>>
>>>>>> As discussed, we can collaboratively decide who will perform certain
>>>>>> tests as the QA team would not be able to cover all the prioritized areas
>>>>>> by 25th. As for the Alpha2 release, we will select a subset of these 
>>>>>> areas
>>>>>> by Monday and cover it before the Beta release.
>>>>>>
>>>>>> Please feel free to share your thoughts.
>>>>>>
>>>>>> Thank you.
>>>>>> Regards,
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *Dilini GunatilakeSoftware Engineer - QA Team*
>>>>>> Mobile : +94 (0) 771 162518
>>>>>> dili...@wso2.com
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Ramith Jayasinghe
>>>> Technical Lead
>>>> WSO2 Inc., http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> E: ram...@wso2.com
>>>> P: +94 777542851
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>>
>>> *Nuwan Silva*
>>> *Senior Software Engineer - QA*
>>> Mobile: +9477 980 4543
>>>
>>> WSO2 Inc.
>>> lean . enterprise . middlewear.
>>> http://www.wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Pamod Sylvester *
>>
>> *WSO2 Inc.; http://wso2.com <http://wso2.com>*
>> cell: +94 77 7779495
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Asanka Vithanage
> Senior Software Engineer -QA
> Mobile: +94 0716286708
> Email: asan...@wso2.com
> WSO2 Inc. www.wso2.com
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Configuration issue in permission tree - MB

2015-09-11 Thread Dilini Gunatilake
Hi All,

This is regarding a known issue of the permission tree. When you try to
configure permissions of a Role in Management Console, we can either select
the parent and enable all the permissions under the parent or deselect the
parent and enable only few permissions under the parent. In this case, even
it is possible to select only few permissions in the UI, it does not
apply.

For example, in Message Broker (MB), there are permissions under Queues to
Add, Browse, Delete and Purge queues. If I want to allow a user only to Add
and Browse queues, I will have to deselect Queue parent element and select
only Add and Browse child elements. After applying this, the user will not
be able to access the entire Queue section, not only Purge and Delete
functions.

I have also raised an issue in JIRA [1]. Can you please explain how to
achieve the above mentioned scenario in MB?

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

Thank you.

Regards,

-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Configuration issue in permission tree - MB

2015-09-13 Thread Dilini Gunatilake
Hi Johann,

Yes, I confirmed it with the MB team and they mentioned that it is a known
issue in IS. That's why I raised the JIRA ticket to IS.

Ramith/Indika,
Can you please confirm this again?

Regards,
Dilini

On Sat, Sep 12, 2015 at 3:31 PM, Johann Nallathamby  wrote:

> Hi Dilini,
>
> There is a good chance of this being a bug in MB side, if they have not
> used proper permissions for the services, service operations and/or UI
> menus items. Or else they could be using contradicting permissions for any
> of the above. Have you confirmed with MB team that they have used
> permissions properly?
>
> I would suggest that you clear it from MB side first, and confirm that
> this is indeed an issue in permission management component, and then we can
> take a look at the issue, because AFAIK we don't have such issues in IS.
> For now I will move the issue to MB project [1], if MB team can confirm as
> this is happening due to a bug in permission management, then you can move
> it back to IDENTITY.
>
> [1] https://wso2.org/jira/browse/MB-1270
>
> Regards.
>
> On Fri, Sep 11, 2015 at 3:25 PM, Dilini Gunatilake 
> wrote:
>
>> Hi All,
>>
>> This is regarding a known issue of the permission tree. When you try to
>> configure permissions of a Role in Management Console, we can either select
>> the parent and enable all the permissions under the parent or deselect the
>> parent and enable only few permissions under the parent. In this case, even
>> it is possible to select only few permissions in the UI, it does not
>> apply.
>>
>> For example, in Message Broker (MB), there are permissions under Queues
>> to Add, Browse, Delete and Purge queues. If I want to allow a user only to
>> Add and Browse queues, I will have to deselect Queue parent element and
>> select only Add and Browse child elements. After applying this, the user
>> will not be able to access the entire Queue section, not only Purge and
>> Delete functions.
>>
>> I have also raised an issue in JIRA [1]. Can you please explain how to
>> achieve the above mentioned scenario in MB?
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-3573
>>
>> Thank you.
>>
>> Regards,
>>
>> --
>>
>> *Dilini GunatilakeSoftware Engineer - QA Team*
>> Mobile : +94 (0) 771 162518
>> dili...@wso2.com
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Integration Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>



-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB][IS] Issue when adding permissions to a role from permission tree

2015-10-05 Thread Dilini Gunatilake
Hi Omindu,

What is the difference of giving all the child permissions and parent admin
permission? Is there any difference in the functionality?

Regards,
Dilini

On Tue, Oct 6, 2015 at 12:19 AM, Omindu Rathnaweera  wrote:

> Hi Dilini,
>
> Only the super admin can create a role with Admin permission, hence the
> exception in your first scenario. In your second scenario, you are giving
> all the child permissions which is different from giving the parent Admin
> permission.
>
> Have a look at the first few lines at *UserRealmProxy::addRole *[1]
> method. In the first scenario, the list of permissions passed to the
> addRole method includes "/permission/admin" (Since 'Admin Permissions' is
> selected) while the second scenario doesn't. In the addRole method, if the
> "/permission/admin" is included in the list of permissions, an exception is
> thrown. So this should be the expected behavior.
>
>
> [1] -
> https://github.com/wso2/carbon-identity/blob/master/components/user-mgt/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java#L869
>
> Regards,
> Omindu.
>
>
> On Mon, Oct 5, 2015 at 6:05 PM, Dilini Gunatilake 
> wrote:
>
>> Hi IS team,
>>
>> I tried to create a new role logged in from a user with default admin
>> role in MB 3.0.0-ALPHA. When I give permissions as in [1] I get an error as
>> in [2] and couldn't create the role. Please find the full stack trace
>> attached.
>>
>> But, if I assign permissions as in [3], I can successfully create the
>> role. Is this due to a permission issue in the UI?
>>
>> [1]
>>
>> ​ [2]
>>
>> ​
>>
>> [3]
>>
>> ​Thank you.
>> Regards,
>>
>> --
>>
>> *Dilini GunatilakeSoftware Engineer - QA Team*
>> Mobile : +94 (0) 771 162518
>> dili...@wso2.com
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "WSO2 Engineering Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to engineering-group+unsubscr...@wso2.com.
>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>
>
>
>
> --
> Omindu Rathnaweera
> Software Engineer, WSO2 Inc.
> Mobile: +94 771 197 211
>



-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB][IS] Issue when adding permissions to a role from permission tree

2015-10-08 Thread Dilini Gunatilake
Hi Damith,

First of all, I want to clarify what Omindu mentioned regarding his
statement "Only the super admin can create a role with Admin permission".

In this case I created the new role from a user with default admin role.
Default 'admin' role in the sense, the role that is assigned to the primary
super admin user (admin/admin). Refer [1]. I believe a user with this
'admin' role can do anything the primary super admin can do.

I also tried out the same use case from a user with super admin permission.
Permission assigned as in [2]. In both cases, I couldn't create a role with
just admin permission.

Considering these facts, can we conclude only the primary super admin
(admin/admin) can create roles with Admin permissions?

Secondly, although the aggregate of children does not constitute the parent
according to the implementation, isn't the behaviour in the functionality
the same? If we select all the child permissions we allow to create the
role and if we select only parent Admin permission which assigns exactly
the same set of permissions, we don't allow to create the role. This
behaviour is contradicting to each other from user's perspective. Isn't it?

Regards,
Dilini

[1]

​
[2]

​


On Thu, Oct 8, 2015 at 11:42 AM, Damith Senanayake  wrote:

> Since this is the expected behavior and not a bug, I guess we can resolve
> the JIRA [1].
>
> [1] - https://wso2.org/jira/browse/IDENTITY-3758
>
> On Thu, Oct 8, 2015 at 11:40 AM, Damith Senanayake 
> wrote:
>
>> Hi Dilini,
>>
>> Suppose you have selected all children of a parent permission is selected
>> (in this case "permissions/admin/configure, permissions/admin/monitor,
>> permissions/admin/login, permissions/admin/manage"). However if you add a
>> fifth child (say "permissions/admin/backup"), that is not assigned to that
>> particular role, whereas if you have selected "permissions/admin", the new
>> permissions will be implicitly added.
>>
>> Since the aggregate of children does not constitute the parent in our
>> permission model, selecting the parent and selecting all its children nodes
>> are two different scenarios, hence this is the expected behavior.
>>
>> HTH,
>>
>> On Tue, Oct 6, 2015 at 9:59 AM, Dilini Gunatilake 
>> wrote:
>>
>>> Hi Omindu,
>>>
>>> What is the difference of giving all the child permissions and parent
>>> admin permission? Is there any difference in the functionality?
>>>
>>> Regards,
>>> Dilini
>>>
>>> On Tue, Oct 6, 2015 at 12:19 AM, Omindu Rathnaweera 
>>> wrote:
>>>
>>>> Hi Dilini,
>>>>
>>>> Only the super admin can create a role with Admin permission, hence the
>>>> exception in your first scenario. In your second scenario, you are giving
>>>> all the child permissions which is different from giving the parent Admin
>>>> permission.
>>>>
>>>> Have a look at the first few lines at *UserRealmProxy::addRole *[1]
>>>> method. In the first scenario, the list of permissions passed to the
>>>> addRole method includes "/permission/admin" (Since 'Admin Permissions' is
>>>> selected) while the second scenario doesn't. In the addRole method, if the
>>>> "/permission/admin" is included in the list of permissions, an exception is
>>>> thrown. So this should be the expected behavior.
>>>>
>>>>
>>>> [1] -
>>>> https://github.com/wso2/carbon-identity/blob/master/components/user-mgt/org.wso2.carbon.user.mgt/src/main/java/org/wso2/carbon/user/mgt/UserRealmProxy.java#L869
>>>>
>>>> Regards,
>>>> Omindu.
>>>>
>>>>
>>>> On Mon, Oct 5, 2015 at 6:05 PM, Dilini Gunatilake 
>>>> wrote:
>>>>
>>>>> Hi IS team,
>>>>>
>>>>> I tried to create a new role logged in from a user with default admin
>>>>> role in MB 3.0.0-ALPHA. When I give permissions as in [1] I get an error 
>>>>> as
>>>>> in [2] and couldn't create the role. Please find the full stack trace
>>>>> attached.
>>>>>
>>>>> But, if I assign permissions as in [3], I can successfully create the
>>>>> role. Is this due to a permission issue in the UI?
>>>>>
>>>>> [1]
>>>>>
>>>>> ​ [2]
>>>>>
>>>>> ​
>>>>>
>>>>> [3]
>>>>>
>>>>> ​Thank you.
>>>>&

Re: [Dev] [MB][IS] Issue when adding permissions to a role from permission tree

2015-10-09 Thread Dilini Gunatilake
Hi Damith,

Noted. Please close the issue.

Regards,
Dilini

On Fri, Oct 9, 2015 at 1:05 PM, Damith Senanayake  wrote:

> Hi Dilini,
>
> "Considering these facts, can we conclude only the primary super admin
> (admin/admin) can create roles with Admin permissions?"
> - Yes. That is the case. However, as you have correctly understood, this
> only means that the permission "permissions/admin" can only be assigned to
> a role by the super admin and no other admin user.
>
> "Secondly, although the aggregate of children does not constitute the
> parent according to the implementation, isn't the behaviour in the
> functionality the same?"
> - No, they are not. Consider you have assigned a role(role1, say)  the
> permission '/permissions/admin/' and another role (role2) has all the
> children of "/permissions/admin/" but not "permissions/admin" itself. Now
> assume you add a new permission that is not already there. role1 will now
> have the new permission and role2 will only have the ones you assigned
> earlier. I hope this is clear.
>
> " If we select all the child permissions we allow to create the role and
> if we select only parent Admin permission which assigns exactly the same
> set of permissions, we don't allow to create the role."
> - Following the above explanation, this is by design and hence is
> logically accurate for* our permission/entitlement model.*
>
> Hope this explains the situation.
>
> On Fri, Oct 9, 2015 at 12:28 PM, Dilini Gunatilake 
> wrote:
>
>> Hi Damith,
>>
>> First of all, I want to clarify what Omindu mentioned regarding his
>> statement "Only the super admin can create a role with Admin permission".
>>
>> In this case I created the new role from a user with default admin role.
>> Default 'admin' role in the sense, the role that is assigned to the primary
>> super admin user (admin/admin). Refer [1]. I believe a user with this
>> 'admin' role can do anything the primary super admin can do.
>>
>> I also tried out the same use case from a user with super admin
>> permission. Permission assigned as in [2]. In both cases, I couldn't create
>> a role with just admin permission.
>>
>> Considering these facts, can we conclude only the primary super admin
>> (admin/admin) can create roles with Admin permissions?
>>
>> Secondly, although the aggregate of children does not constitute the
>> parent according to the implementation, isn't the behaviour in the
>> functionality the same? If we select all the child permissions we allow to
>> create the role and if we select only parent Admin permission which assigns
>> exactly the same set of permissions, we don't allow to create the role.
>> This behaviour is contradicting to each other from user's perspective.
>> Isn't it?
>>
>> Regards,
>> Dilini
>>
>> [1]
>>
>> ​
>> [2]
>>
>> ​
>>
>>
>> On Thu, Oct 8, 2015 at 11:42 AM, Damith Senanayake 
>> wrote:
>>
>>> Since this is the expected behavior and not a bug, I guess we can
>>> resolve the JIRA [1].
>>>
>>> [1] - https://wso2.org/jira/browse/IDENTITY-3758
>>>
>>> On Thu, Oct 8, 2015 at 11:40 AM, Damith Senanayake 
>>> wrote:
>>>
>>>> Hi Dilini,
>>>>
>>>> Suppose you have selected all children of a parent permission is
>>>> selected (in this case "permissions/admin/configure,
>>>> permissions/admin/monitor, permissions/admin/login,
>>>> permissions/admin/manage"). However if you add a fifth child (say
>>>> "permissions/admin/backup"), that is not assigned to that particular role,
>>>> whereas if you have selected "permissions/admin", the new permissions will
>>>> be implicitly added.
>>>>
>>>> Since the aggregate of children does not constitute the parent in our
>>>> permission model, selecting the parent and selecting all its children nodes
>>>> are two different scenarios, hence this is the expected behavior.
>>>>
>>>> HTH,
>>>>
>>>> On Tue, Oct 6, 2015 at 9:59 AM, Dilini Gunatilake 
>>>> wrote:
>>>>
>>>>> Hi Omindu,
>>>>>
>>>>> What is the difference of giving all the child permissions and parent
>>>>> admin permission? Is there any difference in the functionality?
>>>>>
>>>>> Regards,
>>>>> Dilini
>>>>>

Re: [Dev] Improvements to metrics datasource configurations

2015-11-19 Thread Dilini Gunatilake
Hi Isuru,

Since this a common feature which will be incorporated in other products,
shall we move this bug from MB? Then we can make sure that this fix will be
included in the next release. Do you have any idea where to move this?

Regards,
Dilini

On Fri, Nov 20, 2015 at 10:38 AM, Isuru Perera  wrote:

> Hi Sinthuja,
>
> I have already fixed these issues with commit [1].
>
> These additional datasource configurations were added as commented lines
> in metrics-datasources.xml and I added those just before Carbon Metrics
> v1.1.1 release, which is used in MB and DAS products. We found the issues
> only after the release and we created a JIRA to track [2].
>
> I'm sorry for the inconvenience. :(
>
> Thanks for reporting these issues.
>
> Best Regards,
>
> [1]
> https://github.com/wso2/carbon-metrics/commit/a9e66190416551d526b266c75f815add1f26cfe9
> [2] https://wso2.org/jira/browse/MB-1561
>
> On Thu, Nov 19, 2015 at 7:27 PM, Sinthuja Ragendran 
> wrote:
>
>> Hi IsuruP,
>>
>> There are two issues we saw in the metrics-datasource configurations for
>> other datasources such as MySQL, MSSQL than H2.
>>
>> 1) The JNDI config is mentioned as below. As there is already default
>> configurations provided for the database, the jndi config also needed to be
>> default. If we have the below element then the actual default name,  then
>> we are using the intended advantage of having the sample datasource
>> configuration already.
>>
>>
>> The MySQL datasource used for WSO2 Carbon
>> Metrics
>> 
>>
>> 2) defaultAutoCommit is set to false in other datasource configurations
>> than H2. And I don't think this is required for the metrics datasource, and
>> I don't see this config for H2 datasource as well. I believe we need to
>> remove this config from the metrics datasource config.
>>
>> Thanks,
>> Sinthuja.
>> --
>> *Sinthuja Rajendran*
>> Associate Technical Lead
>> WSO2, Inc.:http://wso2.com
>>
>> Blog: http://sinthu-rajan.blogspot.com/
>> Mobile: +94774273955
>>
>>
>>
>
>
> --
> 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
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DS] QA test plan - DS 2.0.0

2015-12-02 Thread Dilini Gunatilake
Hi All,

After discussing with the DS team, we have prioritized the areas to be
tested in DS 2.0.0. Following is a summary of the test plan.

   - Functional Testing (Redmine Features)
  - Role based dashboard access
  - Visually link pub-sub gadget
  - Supporting multiple dashboard pages within a dashboard app
  - Per-user dashboard customization
  - Gadget Maximization
  - User Profile can be accessed by the gadget
  - Show gadget/widget userPref settings in view mode
  - SSO enabled
  - Mobile view on Android
  - Mobile view on iDevice
  - Anonymous view of dashboard
  - Themes for DS dashboard view mode
  - Per user dashboard theming - Banners
  - Shipping Samples with DS product
  - Drill Down Dashboard Sample
  - SAML auth token retrival for dashboards
  - Dynamic layout customization for dashboard editor
   - Multi-tenancy
   - OSs
  - Linux
  - Windows
  - Mac
   - Java versions
  - Java 7
  - Java 8
   - Device testing
  - 1 mobile and 1 tablet from Android (versions yet to decide)
  - 1 mobile and 1 tablet from iOS (versions yet to decide)
  - Browser compatibility
  - Firefox
  - Chrome
   - Integration testing
   - DAS
   - User Stores
   - Database types
  - Oracle
  - H2
   - Documentation

Any comments/suggestions would be greatly appreciated.

Regards,

-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Asanthi Kulasinghe

2016-01-12 Thread Dilini Gunatilake
Congrats Kaushi!!!

On Wed, Jan 13, 2016 at 12:20 PM, Aparna Karunarathna 
wrote:

> Hi All,
>
> It's my pleasure to announce Asanthi Kulasinghe as a WSO2 Committer.
> Asanthi is an active member of QA team and has given a great contribution
> to API Manager, App Manager,  ESB product releases and API Manager, ESB
> service packs.
>
> Congratulations Asanthi and keep up the good work...!
>
> --
> *Regards,*
>
> *Aparna Karunarathna.*
>
>
> *Associate Technical Lead - QAWSO2 Inc.Mobile: 0714002533*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [IS] Footer in SSO authentication page goes above on text fields in mobile view

2016-01-27 Thread Dilini Gunatilake
Hi,

Observed the same in IS 5.1.0 as well. Not only through the mobile but from
desktop as well. A JIRA was raised when testing DS 2.0.0 [1]

[1] https://wso2.org/jira/browse/UES-781

Regards,
Dilini

On Wed, Jan 27, 2016 at 1:04 PM, Lalanke Athauda  wrote:

> Hi,
> Tried to login to DS portal when SSO is enabled through a mobile, the
> footer of the page goes above text fields and covers the text fields.
> Though we can enter the username and passwords, it's bit confusing to find
> the fields. Sample screenshot is attached.
> We are using identity version 5.0.7. Appreciate your ideas to solve this.
>
>
> ​
> Thanks.
>
> --
> Lalanke Athauda
> Software Engineer
> WSO2 Inc.
> Mobile: 0772264301
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Issue when starting the server - SSLException: Connection has been shutdown

2016-02-02 Thread Dilini Gunatilake
Hi Carbon Team,

I wanted to browse the H2 repository and followed the blog in [1] and
configured the carbon.xml file accordingly. But, when I started the pack, I
observed the following error. What could be the reason for this?

This issue was observed in WSO2 ESB 4.10.0-Milestone 2 and DS 2.0.0 Beta 2
packs. (carbon 4.4.3)

ubuntu@ds-long-n1:~/releases/wso2ds-2.0.0-SNAPSHOT/bin$ sh wso2server.sh
JAVA_HOME environment variable is set to /home/ubuntu/software/jdk1.8.0_51
CARBON_HOME environment variable is set to
/home/ubuntu/releases/wso2ds-2.0.0-SNAPSHOT
Using Java memory options: -Xms256m -Xmx1024m

[2016-02-02 11:26:27,394]  INFO
{org.wso2.carbon.h2.osgi.console.ConsoleService} -  Starting H2 Web
server...
[2016-02-02 11:26:28,006]  INFO
{org.wso2.carbon.h2.osgi.console.ConsoleService} -  Starting H2 TCP
server...
[2016-02-02 11:26:28,030]  INFO
{org.wso2.carbon.h2.osgi.console.ConsoleService} -  Starting H2 PG server...
org.h2.server.TcpServerThread@273ec7dc Connect
Connect
Disconnect
Close
javax.net.ssl.SSLException: Connection has been shutdown:
javax.net.ssl.SSLHandshakeException: Remote host closed connection during
handshake
at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1541)
at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1553)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:71)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at java.io.DataOutputStream.flush(DataOutputStream.java:123)
at org.h2.value.Transfer.flush(Transfer.java:85)
at org.h2.server.TcpServerThread.sendError(TcpServerThread.java:197)
at org.h2.server.TcpServerThread.run(TcpServerThread.java:129)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed
connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:992)
at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:928)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
at java.io.DataInputStream.readInt(DataInputStream.java:387)
at org.h2.value.Transfer.readInt(Transfer.java:145)
at org.h2.server.TcpServerThread.run(TcpServerThread.java:71)
... 1 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(InputRecord.java:505)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
... 9 more
org.h2.server.TcpServerThread@273ec7dc Disconnect
org.h2.server.TcpServerThread@273ec7dc Close
[2016-02-02 11:26:29,170]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
Carbon...
[2016-02-02 11:26:29,177]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
Linux 3.13.0-36-generic, amd64
[2016-02-02 11:26:29,177]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home:
/home/ubuntu/software/jdk1.8.0_51/jre
[2016-02-02 11:26:29,178]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version :
1.8.0_51
[2016-02-02 11:26:29,181]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM  :
Java HotSpot(TM) 64-Bit Server VM 25.51-b03,Oracle Corporation


[1] http://www.vitharana.org/2012/04/how-to-browse-h2-database-of-wso2.html


Thank you.

Regards,

-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue when starting the server - SSLException: Connection has been shutdown

2016-02-02 Thread Dilini Gunatilake
Hi All,

Thanks for the suggestions. I didn't observe the exception after commenting
out the other properties. It is thrown only when starting the H2 PG server.
Also, a 500 error page is displayed when login to the Portal of the
Dashboard Server 2.0.0 when H2 TCP server is also started. Raised a JIRA
[1] to address these issues.

[1] https://wso2.org/jira/browse/CARBON-15777

Thank you.

Regards,
Dilini

On Wed, Feb 3, 2016 at 1:46 AM, Vishanth Balasubramaniam  wrote:

> Hi Dilini,
>
> Try commenting out the rest of the properties in H2DatabaseConfiguration
> in carbon.xml.
>
> 
>> 
>> 8082
>> 
>>
>> **
>> 
>
>
> Regards,
> Vishanth
>
> On Tue, Feb 2, 2016 at 5:37 PM, Dilini Gunatilake 
> wrote:
>
>> Hi Carbon Team,
>>
>> I wanted to browse the H2 repository and followed the blog in [1] and
>> configured the carbon.xml file accordingly. But, when I started the pack, I
>> observed the following error. What could be the reason for this?
>>
>> This issue was observed in WSO2 ESB 4.10.0-Milestone 2 and DS 2.0.0 Beta
>> 2 packs. (carbon 4.4.3)
>>
>> ubuntu@ds-long-n1:~/releases/wso2ds-2.0.0-SNAPSHOT/bin$ sh wso2server.sh
>> JAVA_HOME environment variable is set to /home/ubuntu/software/jdk1.8.0_51
>> CARBON_HOME environment variable is set to
>> /home/ubuntu/releases/wso2ds-2.0.0-SNAPSHOT
>> Using Java memory options: -Xms256m -Xmx1024m
>>
>> [2016-02-02 11:26:27,394]  INFO
>> {org.wso2.carbon.h2.osgi.console.ConsoleService} -  Starting H2 Web
>> server...
>> [2016-02-02 11:26:28,006]  INFO
>> {org.wso2.carbon.h2.osgi.console.ConsoleService} -  Starting H2 TCP
>> server...
>> [2016-02-02 11:26:28,030]  INFO
>> {org.wso2.carbon.h2.osgi.console.ConsoleService} -  Starting H2 PG server...
>> org.h2.server.TcpServerThread@273ec7dc Connect
>> Connect
>> Disconnect
>> Close
>> javax.net.ssl.SSLException: Connection has been shutdown:
>> javax.net.ssl.SSLHandshakeException: Remote host closed connection during
>> handshake
>> at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1541)
>> at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1553)
>> at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:71)
>> at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
>> at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
>> at java.io.DataOutputStream.flush(DataOutputStream.java:123)
>> at org.h2.value.Transfer.flush(Transfer.java:85)
>> at org.h2.server.TcpServerThread.sendError(TcpServerThread.java:197)
>> at org.h2.server.TcpServerThread.run(TcpServerThread.java:129)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed
>> connection during handshake
>> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:992)
>> at
>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
>> at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:928)
>> at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
>> at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
>> at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
>> at java.io.DataInputStream.readInt(DataInputStream.java:387)
>> at org.h2.value.Transfer.readInt(Transfer.java:145)
>> at org.h2.server.TcpServerThread.run(TcpServerThread.java:71)
>> ... 1 more
>> Caused by: java.io.EOFException: SSL peer shut down incorrectly
>> at sun.security.ssl.InputRecord.read(InputRecord.java:505)
>> at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
>> ... 9 more
>> org.h2.server.TcpServerThread@273ec7dc Disconnect
>> org.h2.server.TcpServerThread@273ec7dc Close
>> [2016-02-02 11:26:29,170]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
>> Carbon...
>> [2016-02-02 11:26:29,177]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
>> Linux 3.13.0-36-generic, amd64
>> [2016-02-02 11:26:29,177]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home:
>> /home/ubuntu/software/jdk1.8.0_51/jre
>> [2016-02-02 11:26:29,178]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version :
>> 1.8.0_51
>> [2016-02-02 11:26:29,181]  INFO
>> {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM  :
>> Java HotSpot(TM) 64-Bit Server VM 25.51-b03,Oracle Corporation
>>
>>
>> [1]
>> http://www.vitharana.org/2

[Dev] [IS] User's can disable their own accounts

2016-03-10 Thread Dilini Gunatilake
Hi IS Team,

When identifying test scenarios for User Account Disability feature in IS
520, I noticed that users can disable their own accounts and carry out work
until the session expires or they log out. But the system will throw
exceptions for the operations they do in both management console and
dashboard. eg: change the password

What should be the ideal behaviour in this scenario? Should the user have
privileges to disable their own account?

Thank you,

Regards,

-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94 (0) 771 162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES]Error when Importing Users in Bulk through management console

2016-07-06 Thread Dilini Gunatilake
Hi Kasun,

I have tried bulk importing in ES 2.1.0 and it is working for me. May be
the format of the file you have used is incorrect. You can find the correct
format from [1]. I used the same file attached in the JIRA (names_2.csv).

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


Regards,
Dilini

On Tue, Jul 5, 2016 at 12:23 PM, Kasun Thennakoon  wrote:

> Hi all,
>
> I tried to create multiple user accounts in Entreprise store at once,
> rather than creating users one by one. I have tried to use *Bulk Import
> Users *option available in the management console.But I couldn't find the
> correct format of the file which I need to upload there.I search through
> the documentations and found these articles(Importing Users in Bulk [1
> ] and Bulk
> Import of Users [2
> ]
> ).There is a slight different in the documentation and what I'm
> having(Please see the attachment) in the management console , that there is
> no field to set a default password for the users.despite the issue, I just
> upload a CSV, with one column containing a list of usernames.But then got
> the following error:
>
> [2016-07-05 10:44:25,316] ERROR
>> {org.wso2.carbon.user.mgt.ui.UserAdminClient} -  Error occurs while
>> importing user names. All user names were not imported. Last error was :
>> Ask Password Feature is disabled
>> org.apache.axis2.AxisFault: Error occurs while importing user names. All
>> user names were not imported. Last error was : Ask Password Feature is
>> disabled
>> at
>> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
>> at
>> org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOutOnlyOperationClient.handleResponse(RobustOutOnlyAxisOperation.java:91)
>> at
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
>> at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>> at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>> at
>> org.wso2.carbon.user.mgt.stub.UserAdminStub.bulkImportUsers(UserAdminStub.java:6887)
>> at
>> org.wso2.carbon.user.mgt.ui.UserAdminClient.bulkImportUsers(UserAdminClient.java:236)
>> at
>> org.apache.jsp.user.bulk_002dimport_002dfinish_jsp._jspService(bulk_002dimport_002dfinish_jsp.java:138)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
>> at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
>> at
>> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
>> at
>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
>> at
>> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
>> at
>> org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
>> at
>> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
>> at sun.reflect.GeneratedMethodAccessor246.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
>> at
>> org.apache.tiles.jsp.context.JspT

[Dev] [ES] Too many mysql connections when starting ES instances

2016-07-13 Thread Dilini Gunatilake
Hi All,

I have set up a 4 node cluster for ES 2.1.0 Alpha2 pack with mysql 5.7.
When I started one store node I got an error [3].

Then, I checked the connections in the mysql server and found that the
default number of max_connections (151) have been exceeded while the store
node is starting. But initially without starting any ES instances there
were only around 20 connections. So, what we observed was when starting ES
instances substantially high amount of connections will be created and they
will be gradually reduced after sometime. Is this an acceptable behavior?

Also, we could find the recommended max_connections to configure in some
products [1][2], but couldn't find anything for ES. So, what is the
recommended value for ES?
For the time being we will increase the max connections to 300 and proceed
with testing.

Your earliest response is highly appreciated.

[1] https://docs.wso2.com/display/AM200/Tuning+Performance
[2]
https://docs.wso2.com/display/Governance510/Performance+Tuning+Recommendations

[3]

[2016-07-13 07:50:40,014] ERROR
{org.wso2.carbon.registry.core.dataaccess.TransactionManager} -  Failed to
start new registry transaction.
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could
not create connection to database server. Attempted reconnect 3 times.
Giving up.
at sun.reflect.GeneratedConstructorAccessor107.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
at com.mysql.jdbc.Util.getInstance(Util.java:387)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:917)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:896)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:885)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
at
com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2165)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2090)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:795)
at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:44)
at sun.reflect.GeneratedConstructorAccessor76.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:327)
at
org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
at
org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:701)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:635)
at
org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:188)
at
org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128)
at
org.wso2.carbon.registry.core.jdbc.dataaccess.JDBCTransactionManager.beginTransaction(JDBCTransactionManager.java:80)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.beginTransaction(EmbeddedRegistry.java:443)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:505)
at
org.wso2.carbon.registry.core.session.UserRegistry.getInternal(UserRegistry.java:617)
at
org.wso2.carbon.registry.core.session.UserRegistry.access$400(UserRegistry.java:61)
at
org.wso2.carbon.registry.core.session.UserRegistry$5.run(UserRegistry.java:597)
at
org.wso2.carbon.registry.core.session.UserRegistry$5.run(UserRegistry.java:594)
at java.security.AccessController.doPrivileged(Native Method)
at
org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:594)
at
org.wso2.carbon.registry.core.jdbc.handlers.builtin.MountHandler.get(MountHandler.java:399)
at
org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.get(HandlerManager.java:2444)
at
org.wso2.carbon.registry.core.jdbc.handlers.UserDefinedHandlerManager.get(UserDefinedHandlerManager.java:200)
at
org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.get(HandlerLifecycleManager.java:914)
at
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:512)
at
org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get(CacheBackedRegistry.java:203)
at
org.wso2.carbon.registry.core.session.UserRegistry.getInternal(UserRegistry.java:617)
at
org.wso2.carbon.registry.core.session.UserRegistry.access$400(UserRegistry.java:61)
at
org.wso2.carbon.registry.core.session.UserRegistry$5.run(UserRegistry.java:597)
at
org.wso2.carbon.registry.core.session.UserRegistry$5.run(UserRegistry.java:594)
at java.security.AccessController.doPrivileged(Native Method)
at
org.wso2.carbon.registry.core.se

Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-14 Thread Dilini Gunatilake
Hi,

@Thushara,
Thanks for the info. Any recommended number of max_connections to configure
considering indexing with a high load etc? Then we can add those details in
the docs to avoid future issues.

@Sumedha,
I was able to start all the nodes because the number of connections reduces
after some time.

As Rajith mentioned, the concern is having that number of connections
created just for a server startup having less than 25 assets.

Thanks,
Dilini


On Thu, Jul 14, 2016 at 12:53 PM, Rajith Vitharana  wrote:

> Hi,
>
> On Thu, Jul 14, 2016 at 12:44 PM, Sumedha Rubasinghe 
> wrote:
>
>> Guys,
>> Some food for thought.
>>
>> 1. A single MySQL Server has a globally defined max_connections figure
>> (151 as Dilini mentioned)
>>
>> So on a clustered setup, when you point to a single MySQL Server from
>> various WSO2 products, depending on no of keep alive connections specified,
>> you will at some point will hit too many connections from server side @
>> some point.
>>
> Yeah totally agree, but that much(395) is bit high AFAIU when just
> starting up a server(without any load in 4 servers, and when it stabilize,
> it only consumes less than 20 connections without load)
>
> @Thushara, Thanks for the info, will check what you have mentioned.
>
> Thanks,
>
>>
>> So you have to rethink the deployment and use a different database server.
>>
>> 2. If ES has a tendency to perform too many database calls @ startup,
>> - You can temporally eliminate that by controlling node start up order
>>
>>
>> On Thu, Jul 14, 2016 at 12:04 PM, Rajith Vitharana 
>> wrote:
>>
>>> Hi,
>>>
>>> We faced the same issue in ESB latest when clustering enabled, with 4
>>> node cluster, number of connections goes to around 395 and gradually comes
>>> down to 20 or less, even with the exception happened(mysql having default
>>> max connections 151), it seems it gets stable to 20 or less connections
>>> after some time. Created a public jira to track this issue at [1]
>>>
>>> [1] - https://wso2.org/jira/browse/REGISTRY-3771
>>>
>>> Thanks,
>>>
>>> On Wed, Jul 13, 2016 at 4:42 PM, Dilini Gunatilake 
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I have set up a 4 node cluster for ES 2.1.0 Alpha2 pack with mysql 5.7.
>>>> When I started one store node I got an error [3].
>>>>
>>>> Then, I checked the connections in the mysql server and found that the
>>>> default number of max_connections (151) have been exceeded while the store
>>>> node is starting. But initially without starting any ES instances there
>>>> were only around 20 connections. So, what we observed was when starting ES
>>>> instances substantially high amount of connections will be created and they
>>>> will be gradually reduced after sometime. Is this an acceptable behavior?
>>>>
>>>> Also, we could find the recommended max_connections to configure in
>>>> some products [1][2], but couldn't find anything for ES. So, what is the
>>>> recommended value for ES?
>>>> For the time being we will increase the max connections to 300 and
>>>> proceed with testing.
>>>>
>>>> Your earliest response is highly appreciated.
>>>>
>>>> [1] https://docs.wso2.com/display/AM200/Tuning+Performance
>>>> [2]
>>>> https://docs.wso2.com/display/Governance510/Performance+Tuning+Recommendations
>>>>
>>>> [3]
>>>>
>>>> [2016-07-13 07:50:40,014] ERROR
>>>> {org.wso2.carbon.registry.core.dataaccess.TransactionManager} -  Failed to
>>>> start new registry transaction.
>>>> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
>>>> Could not create connection to database server. Attempted reconnect 3
>>>> times. Giving up.
>>>> at sun.reflect.GeneratedConstructorAccessor107.newInstance(Unknown
>>>> Source)
>>>> at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
>>>> at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
>>>> at com.mysql.jdbc.Util.getInstance(Util.java:387)
>>>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:917)
>>>> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:896)
>>>> at com.mysql.jdbc.SQLError.creat

Re: [Dev] [ES] Too many mysql connections when starting ES instances

2016-07-20 Thread Dilini Gunatilake
[Adding Mariangela]

Hi,

I think the below points should be documented in the ES doc space to avoid
more issues until a proper solution is in place.

[1] max_connections to configure to mitigate "too many connections" issue.
It is good if we can communicate about delaying each server startups as
well.

[2] the time taken to start the servers due to indexing when there are data
in the database
Normally it takes around 10 mins to settle each server when there are
around 30,000 assets in the db

Reported [1] and [2] to track the issues.

[1] https://wso2.org/jira/browse/STORE-1424
[2] https://wso2.org/jira/browse/DOCUMENTATION-3649

Regards,
Dilini


On Fri, Jul 15, 2016 at 6:28 PM, Udara Liyanage  wrote:

>
>
> On Fri, Jul 15, 2016 at 5:39 AM, Thushara Ranawaka 
> wrote:
>
>> Hi Chanaka,
>>
>> On Fri, Jul 15, 2016 at 2:42 PM, Chanaka Fernando 
>> wrote:
>>
>>> Hi Thushara,
>>>
>>> Increase the mysql active connections to 350. Please note that this is
>>> bounded to server specs.
>>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>>> WSO2 servers.
>>> Or else you can always start 1 server at a time every 10 mins. Therefore
>>> it will take 30 mins to start all 4 nodes.
>>>
>>> Do you think we can tell something like this in front of a customer?
>>> Normally customers want to start the servers within seconds and they want
>>> to start an entire cluster within minutes (maximum). Please provide a
>>> recommendation which makes sense in a real world. We need a proper way to
>>> handle this.
>>>
>>
>> This recommendation is for ES not for ESB and specially not for customers
>> since we can automate this using config. ES uses governance features
>> therefore ES need to have solr enabled. Therefore please disable[3] solr in
>> all ESB nodes. Further more I understand they will start all the servers
>> straightaway but for ES initial start(database with data) there is a heavy
>> indexing process is happening in the background to have a smooth ride
>> afterward. Since there is 4 nodes either user have to increase database
>> connections from DB side or start servers one by one with a delay. We can
>> automate this using indexingConfiguration[4] in registry.xml. This is just
>> a one time thing, you can change it back to default values after the first
>> startup.
>>
>> [4] - {Different values in each nodes with 10
>> mins different.}
>> 3
>> 
>> 50
>> 
>> 10
>>
>> Thanks,
>> Thushara.
>>
>>
> In a different thought, this kind of work arounds will cause products  to
> hard to be run in a cloud environment where
> you can not guarantee product startup order since containers/vm come
> and go due to various reasons
> Manually changing configurations also not possible in a automated
> deployment environment.
> So it is better if we can have a solid solution.
>
>>
>>
> On Fri, Jul 15, 2016 at 1:25 PM, Thushara Ranawaka 
>>> wrote:
>>>
>>>> Hi Dilini,
>>>>
>>>>
>>>> On Thu, Jul 14, 2016 at 2:31 PM, Dilini Gunatilake 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> @Thushara,
>>>>> Thanks for the info. Any recommended number of max_connections to
>>>>> configure considering indexing with a high load etc? Then we can add those
>>>>> details in the docs to avoid future issues.
>>>>>
>>>>
>>>> My personal recommendation,
>>>> Increase the mysql active connections to 350. Please note that this is
>>>> bounded to server specs.
>>>> Now start 2 servers at a time. Wait 10 mins before starting the other 2
>>>> WSO2 servers.
>>>> Or else you can always start 1 server at a time every 10 mins.
>>>> Therefore it will take 30 mins to start all 4 nodes.
>>>>
>>>> Thanks,
>>>> Thushara.
>>>>
>>>>
>>>>>
>>>>> @Sumedha,
>>>>> I was able to start all the nodes because the number of connections
>>>>> reduces after some time.
>>>>>
>>>>> As Rajith mentioned, the concern is having that number of connections
>>>>> created just for a server startup having less than 25 assets.
>>>>>
>>>>> Thanks,
>>>>> Dilini
>>>>>
>>>>>
>>>>> On Thu, Jul 14, 2016 at 12:53 PM, Rajith Vithar

Re: [Dev] IS-Analytics - Hiding 'Internal/Everyone' and 'Application' roles in "Roles" gadget.

2016-08-08 Thread Dilini Gunatilake
Hi Hasintha,

AFAIK, the purpose of the Application role is to assign permission to the
users to configure the service provider. So, most probably there will be
very limited amount of users with this permission. Also, the purpose of
these charts is to show the count of total users who logged into an app
rather than showing the count of editors. So, don't you think it is not
relevant to show up in the top roles gadget anyway?

Moreover, with the current implementation of gadget filtering I doubt you
can achieve option 2. Please refer JIRA [1] for more information. The
initial JIRA raised for this concern can be found in [2]

[1] https://wso2.org/jira/browse/ANLYIS-89
[2] https://wso2.org/jira/browse/ANLYIS-91


Regards,
Dilini


On Mon, Aug 8, 2016 at 12:52 PM, Hasintha Indrajee 
wrote:

> Hi all,
>
> We have following concerns about roles when showing in gadgets in IS
> analytics.
>
> In IS analytics do we need show 'Application' roles in top roles gadget ?.
> For an example do we need to show  "Application/travelocity" role as a top
> role in role gadget if the count is high ? We have following two options.
>
> 1) Avoid sending out 'Application' roles to DAS side from IS - If we
> follow this option we will not be able to drill down from these roles as
> well.
>
> 2) Hide it in the top roles gadget and just allow to drill down from it if
> the admin wants, using filter option. (So this will not show in top roles
> gadget even if the count is very high, But can be used to drill down from)
>
> Second concern is, since we have Internal/Everyone role for all users
> shall we avoid showing it in top roles ? If we show it it, will be the most
> frequent and highly involved role of users. Again we have above stated two
> options for this as well.
>
> I think 2nd option is more meaningful and useful for both above scenarios.
> WDYT ?
> --
> Hasintha Indrajee
> WSO2, Inc.
> Mobile:+94 771892453
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94771162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Vote] Release WSO2 Data Analytics Server (DAS) 3.1.0-RC3

2016-09-13 Thread Dilini Gunatilake
The JIRA reported for the above issue can be found at [1].

[1] https://wso2.org/jira/browse/DAS-492

Thanks,
Dilini

On Tue, Sep 13, 2016 at 7:40 PM, Gimantha Bandara  wrote:

> [-] Broken - Do not release
>
> Redirecting to Analytics Dashboards and Template manager doesn't work in
> Internet explorer ( Returns 404) as window.location.origin is undefined in
> IE.
>
> On Tue, Sep 13, 2016 at 6:29 PM, Maninda Edirisooriya 
> wrote:
>
>> Tested the Machine Learner features in DAS.
>>
>> 1. Manual execution flow of ML as in [1]
>> - create dataset
>> - create project
>> - create analysis (and train a modal)
>> - predict using modal
>>
>> 2. Run all samples
>> - default samples
>> - tuned samples
>>
>> 3. CEP integration flow with ML Siddhi extension as in [2] with sample
>> [3].
>> - Tested Siddhi ML features in OSGi runtime
>> - Run the sample [3]
>> - Created required streams for "Example 1" in [2].
>> - Added execution plan in "Example 1" in [2].
>> - Added a log publisher to the "PredictionStream" and tested the
>> functionality by simulating events to "InputStream".
>>
>> [1] https://docs.wso2.com/display/ML110/Quick+Start+Guide
>> [2] https://docs.wso2.com/display/ML100/WSO2+CEP+Extension+for+M
>> L+Predictions
>> [3] https://docs.wso2.com/display/ML100/Generating+a+Model+Using
>> +the+Logistic+Regression+Algorithm
>>
>>
>> [+] Stable - Go ahead and release.
>>
>>
>> *Maninda Edirisooriya*
>> Senior Software Engineer
>>
>> *WSO2, Inc.*lean.enterprise.middleware.
>>
>> *Blog* : http://maninda.blogspot.com/
>> *E-mail* : mani...@wso2.com
>> *Skype* : @manindae
>> *Twitter* : @maninda
>>
>> On Tue, Sep 13, 2016 at 5:37 PM, Dunith Dhanushka 
>> wrote:
>>
>>> Tested following scenarios and found no issues.
>>>
>>> 1. Dashboard creation, deletion, adding gadgets and exporting.
>>> 2. Creating a gadget using gadget generation wizard for a batch data
>>> source.
>>> 3. Creating a gadget using gadget generation wizard for a real time data
>>> source.
>>> 4. Smart home and HTTPD samples in both super tenant and tenant mode.
>>> 5. Sharing a dashboard across tenants (SaaS mode).
>>> 6. Real time and batch gadgets on tenant mode
>>>
>>> [+] Stable - Go ahead and release.
>>>
>>> Regards,
>>> Dunith
>>>
>>> On Tue, Sep 13, 2016 at 5:18 PM, Gihan Anuruddha  wrote:
>>>
 I have tested the following and found no issues.

 - Data explorer with facet search and primary key search.
 - DAS 3.0.1 to 3.1.0 migration.
 - ESB Anaytics feature top of on DAS 3.1.0

 [+] Stable - Go ahead and release.

 On Tue, Sep 13, 2016 at 1:47 PM, Gokul Balakrishnan 
 wrote:

> I have tested the following through the EC2 performance test round:
>
> - Clustered DAS deployment
> - Analyzer, Indexer and Receiver profiles
> - Data persistence with HBase
> - Spark script execution in clustered mode (CarbonAnalytics)
> - Clustered indexing operation
> - Data explorer
> - Basic data publishing
> - Smart Home and Wikipedia samples
>
> [+] Stable - Go ahead and release.
>
>
> On 12 September 2016 at 16:21, Niranda Perera 
> wrote:
>
>> Hi all,
>>
>> I have tested the following and found no issues
>> - DAS usual flow: Data publishing, script execution and dashboards in
>> the local mode using the smart home example
>> - DAS HA and failover scenarios, 3 node cluster test
>> - Spark on YARN in DAS clustering
>>
>> Hence,
>> +1 Stable - Go ahead and release
>>
>> Best
>>
>> On Fri, Sep 9, 2016 at 4:54 PM, Niranda Perera 
>> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the third release candidate (RC) of WSO2 Data Analytics
>>> Server 3.1.0 release.
>>>
>>> New / Improvements In This Release after RC2
>>>
>>>- Bug fixes in ML integration
>>>- Spark configuration parameters for long running jobs
>>>
>>> Issues Fixed in This Release
>>>
>>>- WSO2 DAS 3.1.0 Fixed Issues
>>>
>>>
>>> Known Issues
>>>
>>>- WSO2 DAS 3.1.0 Known Issues
>>>
>>>
>>> Source and distribution packages:
>>>
>>>- https://github.com/wso2/product-das/releases/tag/v3.1.0-RC3
>>>
>>> Please download, test, and vote. The README file under the
>>> distribution contains guide and instructions on how to try it out 
>>> locally.
>>>
>>> [+] Stable - Go ahead and release
>>> [-] Broken - Do not release (explain why)
>>>
>>> This vote will be open for 72 hours or as needed.
>>>
>>> Regards,
>>> WSO2 DAS Team
>>>
>>> --
>>> *Niranda Perera*
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94-71-554-8430
>>> Twitter: @n1r44 
>>> https://pythagoreanscript.wordpress.com/
>>>
>>

Re: [Dev] WSO2 Committers += Farasath Ahamed

2016-10-24 Thread Dilini Gunatilake
Congrats Farasath :)

On Mon, Oct 24, 2016 at 6:41 PM, Fazlan Nazeem  wrote:

> Congrats Fara!
>
> On Mon, Oct 24, 2016 at 5:40 PM, Sameera Gunarathne 
> wrote:
>
>> Congrats Fara  :)
>>
>> On Mon, Oct 24, 2016 at 4:04 PM, Yasima Dewmini  wrote:
>>
>>> Congratz fara!
>>>
>>> On Mon, Oct 24, 2016 at 3:35 PM, Fathima Dilhasha 
>>> wrote:
>>>
 Congratz Fara :)

 On Mon, Oct 24, 2016 at 3:26 PM, Chamila Wijayarathna <
 cdwijayarat...@gmail.com> wrote:

> Congratz Fara, keep up the good work!
>
> On Mon, Oct 24, 2016 at 6:44 PM, Johann Nallathamby 
> wrote:
>
>> Hi All,
>>
>> It's my pleasure to announce Farasath Ahamed as a WSO2 Committer.
>> Farasath has been a valuable contributor for WSO2 Identity Server
>> product, and in recognition of his contribution to WSO2, he has been 
>> voted
>> as a WSO2 Committer.
>>
>> Farasath, congratulations and keep up the good work!
>>
>> Thanks & Regards.
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Technical Lead & Product Lead of WSO2 Identity Server
>> Governance Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chamila Dilshan Wijayarathna,
> PhD Research Student
> The University of New South Wales (UNSW Canberra)
> Australian Centre of Cyber Security
> Australian Defence Force Academy
> PO Box 7916, Canberra BA ACT 2610
> Australia
> Mobile:(+61)416895795
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Fathima Dilhasha
 *Software Engineer*
 Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
 <%2B94%20%280%29%20773%20451194>
 dilha...@wso2.com

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


>>>
>>>
>>> --
>>> http://wso2.com/signatureYasima Dewmini
>>> Software Engineer, WSO2, Inc.
>>> Email: yas...@wso2.com
>>> Mobile: +94713117081
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sameera Gunarathne
>> Software Engineer, WSO2 Inc. http://wso2.com
>> 
>> Email: samee...@wso2.com
>> Mobile: +94714155561
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
>
> Fazlan Nazeem
>
> *Software Engineer*
>
> *WSO2 Inc*
> Mobile : +94772338839
> <%2B94%20%280%29%20773%20451194>
> fazl...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94771162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Chathurika De Silva

2017-06-13 Thread Dilini Gunatilake
Congratulations Chathurika :)

On Tue, Jun 13, 2017 at 11:55 AM, Anupama Pathirage 
wrote:

> Congratulations Chathurika :)
>
> On Tue, Jun 13, 2017 at 11:34 AM, Aparna Karunarathna 
> wrote:
>
>> Hi All,
>>
>> It's my pleasure to announce Chathurika De Silva as a WSO2 Committer. She is
>> an active member of EE team and has given a great contribution to ESB, BPS,
>> BRS, App Factory product releases.
>>
>> Congratulations Chathurika and keep up the good work...!
>>
>> --
>> *Regards,*
>>
>> *Aparna Karunarathna.*
>>
>>
>> *Associate Technical Lead - QAWSO2 Inc.Mobile: 0714002533*
>>
>> * *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Anupama Pathirage
> Associate Technical Lead
> WSO2, Inc.  http://wso2.com/
> Email: anup...@wso2.com
> Mobile:+94 71 8273 979
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94771162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IAM] User store does not behave as expected when it is created through admin services with only mandatory parameters

2017-12-20 Thread Dilini Gunatilake
Hi IAM Team,

I need to create a JDBC secondary user store via admin services and I
configured only the mandatory parameters and sent the request. The request
was successful and the user store was created. However, when I tried to add
a user to that user store, it says the password length is invalid and did
not let me create a user.

Request:

http://www.w3.org/2003/05/soap-envelope";
xmlns:xsd="http://org.apache.axis2/xsd";
xmlns:xsd1="http://dto.configuration.store.user.identity.carbon.wso2.org/xsd";>
   
   
  
 
 


org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager

created with admin services

false

PRIMARY-JDBC780-ATTRIBUTE-STORE


   url
   jdbc:mysql://localhost:3306/is520user


   userName
   wso2carbonxxx


   password
   wso2carbonxxx


   driverName
   com.mysql.jdbc.Driver


   CountRetrieverClass
   
org.wso2.carbon.identity.user.store.count.jdbc.JDBCUserStoreCountRetriever

 
  
   



This may be because I haven't configured the optional parameters such as
username/password regex etc. in the request. But, IMO the request should
work successfully with only mandatory parameters.

If I do the same via management console, the additional parameters will be
populated in the UI and saved in the xml when we save the configuration.

If a developer needs to create a user store via admin services, how can the
developer achieve this? If the developer needs to configure optional
parameters, there are around 100 parameters. What are the must have
additional parameters the user needs to configure or what is the best way
to handle this?

Thanks,
Dilini

-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94771162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IAM] User store does not behave as expected when it is created through admin services with only mandatory parameters

2017-12-20 Thread Dilini Gunatilake
Thanks for the reply Godwin. Please see my comments inline.


On Wed, Dec 20, 2017 at 5:27 PM, Godwin Shrimal  wrote:

> Hi Dilini,
>
> I think it makes sense to populate additional parameters in UI when adding
> user store from the management console.
>
Yes, this is handled correctly from the management console side as expected.


> Yeah, when adding user store via admin services its bit hard to add those
> number of optional parameters. So I propose following solutions.
>
> 1. Improve our documentation and describe required optional parameters and
> add a sample request with optional parameters
>
In this case, every time the optional properties are changed the doc needs
to be updated and the developer needs to update the request too.

>
> 2. Change backend to add default parameters (same as what we do in UI) if
> user is not sending additional parameters in request
>
+1 for this solution. Here, the developer does not need to worry about the
100 odd optional parameters at all. If he needs to change few parameters,
he can change only the required ones.

>
>
> Thanks
> Godwin
>
> On Wed, Dec 20, 2017 at 5:00 PM, Dilini Gunatilake 
> wrote:
>
>> Hi IAM Team,
>>
>> I need to create a JDBC secondary user store via admin services and I
>> configured only the mandatory parameters and sent the request. The request
>> was successful and the user store was created. However, when I tried to add
>> a user to that user store, it says the password length is invalid and did
>> not let me create a user.
>>
>> Request:
>>
>> http://www.w3.org/2003/05/soap-envelope"; 
>> xmlns:xsd="http://org.apache.axis2/xsd"; 
>> xmlns:xsd1="http://dto.configuration.store.user.identity.carbon.wso2.org/xsd";>
>>
>>
>>   
>>  
>>  
>> 
>> 
>> org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager
>> 
>> created with admin services
>> 
>> false
>> 
>> PRIMARY-JDBC780-ATTRIBUTE-STORE
>> 
>> 
>>url
>>jdbc:mysql://localhost:3306/is520user
>> 
>> 
>>userName
>>wso2carbonxxx
>> 
>> 
>>password
>>wso2carbonxxx
>> 
>> 
>>driverName
>>com.mysql.jdbc.Driver
>> 
>> 
>>CountRetrieverClass
>>
>> org.wso2.carbon.identity.user.store.count.jdbc.JDBCUserStoreCountRetriever
>> 
>>  
>>   
>>
>> 
>>
>>
>> This may be because I haven't configured the optional parameters such as
>> username/password regex etc. in the request. But, IMO the request should
>> work successfully with only mandatory parameters.
>>
>> If I do the same via management console, the additional parameters will
>> be populated in the UI and saved in the xml when we save the configuration.
>>
>> If a developer needs to create a user store via admin services, how can
>> the developer achieve this? If the developer needs to configure optional
>> parameters, there are around 100 parameters. What are the must have
>> additional parameters the user needs to configure or what is the best way
>> to handle this?
>>
>> Thanks,
>> Dilini
>>
>> --
>>
>> *Dilini GunatilakeSoftware Engineer - QA Team*
>> Mobile : +94771162518 <+94%2077%20116%202518>
>> dili...@wso2.com
>>
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> <https://www.linkedin.com/in/godwin-amila-2ba26844/>*
> twitter: https://twitter.com/godwinamila
> <http://wso2.com/signature>
>



-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94771162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IAM] User store does not behave as expected when it is created through admin services with only mandatory parameters

2017-12-20 Thread Dilini Gunatilake
Hi Godwin,

Please see my comments inline.

On Wed, Dec 20, 2017 at 7:59 PM, Godwin Shrimal  wrote:

> Hi Dilini,
>
> Please see my comments.
>
> I think it makes sense to populate additional parameters in UI when adding
>> user store from the management console.
>>
> Yes, this is handled correctly from the management console side as
>> expected.
>>
>>
>>> Yeah, when adding user store via admin services its bit hard to add
>>> those number of optional parameters. So I propose following solutions.
>>>
>>> 1. Improve our documentation and describe required optional parameters
>>> and add a sample request with optional parameters
>>>
>> In this case, every time the optional properties are changed the doc
>> needs to be updated and the developer needs to update the request too.
>>
> I don't think optional parameters are changing frequently, it is something
> changing rearely when we need to introudce some feature to perticluar user
> store. And if optional parameters added newly, existing request should work
> as expected without breaking and not MUST to add that parameters to request.
>
But, in this case it is a must to add the optional parameters in the
request which is wrong. This hinders the usability aspect from the user
perspective. So, IMO we should document the full request as well as handle
it as per solution 2.

>
>
>>> 2. Change backend to add default parameters (same as what we do in UI)
>>> if user is not sending additional parameters in request
>>>
>> +1 for this solution. Here, the developer does not need to worry about
>> the 100 odd optional parameters at all. If he needs to change few
>> parameters, he can change only the required ones.
>>
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>> On Wed, Dec 20, 2017 at 5:00 PM, Dilini Gunatilake 
>>> wrote:
>>>
>>>> Hi IAM Team,
>>>>
>>>> I need to create a JDBC secondary user store via admin services and I
>>>> configured only the mandatory parameters and sent the request. The request
>>>> was successful and the user store was created. However, when I tried to add
>>>> a user to that user store, it says the password length is invalid and did
>>>> not let me create a user.
>>>>
>>>> Request:
>>>>
>>>> http://www.w3.org/2003/05/soap-envelope"; 
>>>> xmlns:xsd="http://org.apache.axis2/xsd"; 
>>>> xmlns:xsd1="http://dto.configuration.store.user.identity.carbon.wso2.org/xsd";>
>>>>
>>>>
>>>>   
>>>>  
>>>>  
>>>> 
>>>> 
>>>> org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager
>>>> 
>>>> created with admin 
>>>> services
>>>> 
>>>> false
>>>> 
>>>> PRIMARY-JDBC780-ATTRIBUTE-STORE
>>>> 
>>>> 
>>>>url
>>>>
>>>> jdbc:mysql://localhost:3306/is520user
>>>> 
>>>> 
>>>>userName
>>>>wso2carbonxxx
>>>> 
>>>> 
>>>>password
>>>>wso2carbonxxx
>>>> 
>>>> 
>>>>driverName
>>>>com.mysql.jdbc.Driver
>>>> 
>>>> 
>>>>CountRetrieverClass
>>>>
>>>> org.wso2.carbon.identity.user.store.count.jdbc.JDBCUserStoreCountRetriever
>>>> 
>>>>  
>>>>   
>>>>
>>>> 
>>>>
>>>>
>>>> This may be because I haven't configured the optional parameters such
>>>> as username/password regex etc. in the request. But, IMO the request should
>>>> work successfully with only mandatory parameters.
>>>>
>>>> If I do the same via management console, the additional parameters will
>>>> be populated in the UI and saved in the xml when we save the configuration.
>>>>
>>>> If a developer needs to create a user store via admin services, how can
>>>> the developer achieve this? If the developer needs to configure optional

Re: [Dev] [IAM] User store does not behave as expected when it is created through admin services with only mandatory parameters

2017-12-20 Thread Dilini Gunatilake
Hi Tharindu/Godwin,

I already checked the config file. The default regex were not added.
Following are the only configs available in the file (which are the ones I
configured).


  jdbc:mysql://localhost:3306/is520user
  wso2carbon
  A1yNIeGmb1QZHDIk09yOyx/+PWDPNRfOk6tCiCnQWzhFiXFaVu5dSWfqah7AElOdKqjgl0BOFdk4sXRGtjdPM3t8bODe9KzKrA3EJJ2mP16zbOah8JhFMJJDWOw0wkBy4TSnl7GBrGJMzQTazzYaxN/+nVpF25nbq1p7TzNytOJxagNMRjwnhgl08lFPNKs1VCJ1D4spQ4zjLp5oJBftdzMdi5wPo8tdNWu/oRRPZjz4Y/mWy4cE7hHZlPul3kYzm1BP2kWX/rsUgRdaKeSKaQwqNVOOsZxCgWTCanUMmZKvHOxehVe3BypebciR58RQH5Vyk6l+JCrXNvBN1OBOoA==
  com.mysql.jdbc.Driver
  org.wso2.carbon.identity.user.store.count.jdbc.JDBCUserStoreCountRetriever
  PRIMARY-JDBC780-ATTRIBUTE-STORE
  created with admin services



@Godwin -  +1 for the approach.

Thanks,
Dilini


On Wed, Dec 20, 2017 at 11:25 PM, Tharindu Edirisinghe 
wrote:

> Hi Dilini,
>
> After adding the secondary userstore, you can find the config file related
> to that in *repository/deployment/server/userstores/* location. Although
> you have not added the regex parameters when you created the userstore from
> the admin service, I believe it should have added some default regex there.
> You need to check the following two properties in the file.
>
>
>
> *PasswordJavaRegExPasswordJavaScriptRegEx*
>
> You can find more information on the password pattern validation from [1].
>
> [1] http://tharindue.blogspot.com/2016/08/user-password-pattern-
> regex-front-end.html
>
> Thanks,
> TharinduE
>
> On Wed, Dec 20, 2017 at 11:46 AM, Godwin Shrimal  wrote:
>
>> Hi Dilini,
>>
>> Please see my comments.
>>
>>
>> I think it makes sense to populate additional parameters in UI when
>>>>> adding user store from the management console.
>>>>>
>>>> Yes, this is handled correctly from the management console side as
>>>>> expected.
>>>>>
>>>>>
>>>>>> Yeah, when adding user store via admin services its bit hard to add
>>>>>> those number of optional parameters. So I propose following solutions.
>>>>>>
>>>>>> 1. Improve our documentation and describe required optional
>>>>>> parameters and add a sample request with optional parameters
>>>>>>
>>>>> In this case, every time the optional properties are changed the doc
>>>>> needs to be updated and the developer needs to update the request too.
>>>>>
>>>> I don't think optional parameters are changing frequently, it is
>>>> something changing rearely when we need to introudce some feature to
>>>> perticluar user store. And if optional parameters added newly, existing
>>>> request should work as expected without breaking and not MUST to add that
>>>> parameters to request.
>>>>
>>> But, in this case it is a must to add the optional parameters in the
>>> request which is wrong. This hinders the usability aspect from the user
>>> perspective. So, IMO we should document the full request as well as handle
>>> it as per solution 2.
>>>
>>
>> As an API its not wrong not to send optional parameters, But yes. Its not
>> working as expected if we not send them. Yes, we need to fully document the
>> request with optional parameters as suggested in solution1 as an imidiate
>> step. We may need implement the solution 2 in future. Lets wait and see the
>> feedback from IAM team.
>>
>>
>> Thanks
>> Godwin
>>
>>
>>
>>>
>>>>
>>>>>> 2. Change backend to add default parameters (same as what we do in
>>>>>> UI) if user is not sending additional parameters in request
>>>>>>
>>>>> +1 for this solution. Here, the developer does not need to worry about
>>>>> the 100 odd optional parameters at all. If he needs to change few
>>>>> parameters, he can change only the required ones.
>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>> Godwin
>>>>>>
>>>>>> On Wed, Dec 20, 2017 at 5:00 PM, Dilini Gunatilake 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi IAM Team,
>>>>>>>
>>>>>>> I need to create a JDBC secondary user store via admin services and
>>>>>>> I configured only the mandatory parameters and sent the request. The
>>>>>>> request was successful and the user store was created. However, when I
>>>>>&

Re: [Dev] [IS] Not allowing to add Roles for CarbonRemoteUserStoreManger

2018-02-26 Thread Dilini Gunatilake
Hi Godwin,

I tried the same in IS 5.5.0 alpha2 pack and got a read timeout when
loading users and roles. Anyway, I also observed that the domain of carbon
remote user store is not listed when adding roles, but when adding users.
So, this should be a bug IMO. The behaviour of this user store is
not consistent with other user stores as well. Therefore, please report a
issue.

Thanks
Dilini



On Tue, Feb 27, 2018 at 11:18 AM, Godwin Shrimal  wrote:

> Hi Dakshika,
>
> It's 5.4.1
>
> Thanks
> Godwin
>
> On Tue, Feb 27, 2018 at 11:15 AM, Dakshika Jayathilaka 
> wrote:
>
>> Hi Godwin,
>>
>> What's is the IS version that you are trying out. ?
>>
>> Regards
>>
>> On Monday, February 26, 2018, Godwin Shrimal  wrote:
>>
>>> Hi IAM Team,
>>>
>>> It is allowing to add roles using RemoteUserStoreManagerService to
>>> secondary user store (CarbonRemoteUserStoreManger). But not allowed to add
>>> it via UI.
>>> Is this a bug or any specific reason for this?
>>>
>>> Thanks
>>> Godwin
>>>
>>> On Mon, Feb 19, 2018 at 4:51 PM, Godwin Shrimal  wrote:
>>>
 Hi IAM Team,

 I have added user store as CarbonRemoteUserStoreManger. It shows
 Roles/Users and it is allowing to add users to remote Identity Server
 instance, But user store domain not listing when we trying to add roles.
 Please see the screnshot below.

 [image: Inline image 1]

 Thanks
 Godwin
 --
 *Godwin Amila Shrimal*
 Associate Technical Lead
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
 *
 twitter: https://twitter.com/godwinamila
 

>>>
>>>
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>> *
>>> twitter: https://twitter.com/godwinamila
>>> 
>>>
>>
>>
>> --
>> *Dakshika Jayathilaka*
>> PMC Member & Committer of Apache Stratos
>> Associate Technical Lead
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94771162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IoT-Core] ERROR - Unable to destroy process - WSO2 IOT Server 3.2.0

2018-03-08 Thread Dilini Gunatilake
Hi Pasan,

I was able to reproduce the same issue you are observing with the steps
below.

1. Try out the virtual fire alarm sample
2. Leave the system idle for around 10 minutes
3. Refresh the device analytics page. Then, the above issue can be observed

You will have to remove the existing device and enroll a new device to try
out the sample for the time being. But, if you leave the device analytics
page idle, you will observe it again.

Please report an issue in [1] and sorry for the inconvenience caused.

[1] https://github.com/wso2/product-iots/issues

Thanks
Dilini


On Thu, Mar 8, 2018 at 12:14 PM, PASAN MANULA  wrote:

> More Details,
>
> status: broker.sh
>
> [2018-03-08 00:09:28,945] [IoT-Core] ERROR - {org.apache.cxf.interceptor.
> AbstractFaultChainInitiatorObserver} Error occurred during error
> handling, give up!
>
> org.apache.cxf.interceptor.Fault: Unable to destroy the process .
> at org.apache.cxf.service.invoker.AbstractInvoker.
> createFault(AbstractInvoker.java:170)
> at org.apache.cxf.service.invoker.AbstractInvoker.
> invoke(AbstractInvoker.java:136)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)
> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)
> at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.
> run(ServiceInvokerInterceptor.java:58)
> at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(
> ServiceInvokerInterceptor.java:94)
> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> PhaseInterceptorChain.java:272)
> at org.apache.cxf.transport.ChainInitiationObserver.onMessage(
> ChainInitiationObserver.java:121)
> at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(
> AbstractHTTPDestination.java:249)
> at org.apache.cxf.transport.servlet.ServletController.
> invokeDestination(ServletController.java:248)
> at org.apache.cxf.transport.servlet.ServletController.
> invoke(ServletController.java:222)
> at org.apache.cxf.transport.servlet.ServletController.
> invoke(ServletController.java:153)
> at org.apache.cxf.transport.servlet.CXFNonSpringServlet.
> invoke(CXFNonSpringServlet.java:171)
> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(
> AbstractHTTPServlet.java:289)
> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.
> doGet(AbstractHTTPServlet.java:214)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.
> service(AbstractHTTPServlet.java:265)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:303)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(
> WsFilter.java:52)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:218)
> at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:110)
> at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:169)
> at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:103)
> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.
> continueInvocation(CompositeValve.java:99)
> at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.
> invoke(CarbonTomcatValve.java:47)
> at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(
> TenantLazyLoaderValve.java:57)
> at org.wso2.carbon.webapp.authenticator.framework.
> WebappAuthenticationValve.processRequest(WebappAuthenticationValve.
> java:151)
> at org.wso2.carbon.webapp.authenticator.framework.
> WebappAuthenticationValve.invoke(WebappAuthenticationValve.java:69)
> at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.
> invokeValves(TomcatValveContainer.java:47)
> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(
> CompositeValve.java:62)
> at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValv
> e.invoke(CarbonStuckThreadDetectionValve.java:159)
> at org.apache.catalina.valves.AccessLogValve.invoke(
> AccessLogValve.java:962)
> at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(
> CarbonContextCreatorValve.java:57)
> at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:116)
> at org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:445)
> at org.apache.coyote.http11.AbstractHttp11Processor.process(
> AbstractHttp11Processor.java:1115)
> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.
> process(AbstractProtocol.java:637)
> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor

Re: [Dev] IS installation error

2018-03-13 Thread Dilini Gunatilake
Hi Asanka,

As the error suggests ("Failed to write core dump. Core dumps have been
disabled. To enable core dumping, try "ulimit -c unlimited" before starting
Java again"), can you try enabling core dumping and check if you can start
the server?

Thanks
Dilini



On Tue, Mar 13, 2018 at 4:46 PM, Asanka Anthony 
wrote:

>
> Hi,
> Following error occurred when i trying to start IS in first time.Here i
> attached bug file as well.
>  please advice.
>
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  SIGSEGV (0xb) at pc=0x7f755f5f3405, pid=6082, tid=0x7f755d28c700
> #
> # JRE version: Java(TM) SE Runtime Environment (8.0_161-b12) (build
> 1.8.0_161-b12)
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.161-b12 mixed mode
> linux-amd64 compressed oops)
> # Problematic frame:
> # V  [libjvm.so+0x657405]  InstanceKlass::oop_follow_
> contents(ParCompactionManager*, oopDesc*)+0x2d5
> #
> # Failed to write core dump. Core dumps have been disabled. To enable core
> dumping, try "ulimit -c unlimited" before starting Java again
> #
> # An error report file with more information is saved as:
> # /home/asanka/Downloads/wso2is-5.4.1/hs_err_pid6082.log
> #
> # If you would like to submit a bug report, please visit:
> #   http://bugreport.java.com/bugreport/crash.jsp
> #
>
> Thanks
> Anthony
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94771162518
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2018-03-14 Thread Dilini Gunatilake
Hi,

The README .txt contains references to old documentation and few other
issues which is reported in [1]. Better if we can fix those. WDUT?

[1] https://github.com/wso2/product-is/issues/2945

Regards,
Dilini



On Wed, Mar 14, 2018 at 5:23 PM, Farasath Ahamed  wrote:

>
> Tested Below scenario on the IS 5.5.0-RC1 pack with MSSQL database
>
>- Create an OAuth app using Dynamic Client Registration endpoint
>- Configured mandatory claims for the service provider
>- Tested OIDC Implicit flow with user consent management enabled
>- Verified that the user claims sent in the id_token are filtered
>based on user consent.
>
> +1 to go ahead and release
>
>
> On Wed, Mar 14, 2018 at 11:16 AM, Sathya Bandara  wrote:
>
>> Hi all,
>>
>> We are pleased to announce the first release candidate of WSO2 Identity
>> Server 5.5.0.
>>
>> This is the first release candidate (RC) of the WSO2 Identity Server
>> 5.5.0 release.
>>
>>
>> This release fixes the following issues
>>
>>- 5.5.0-RC1 fixes
>>
>> 
>>- 5.5.0-Beta fixes
>>
>> 
>>- 5.5.0-Alpha3 fixes
>>
>> 
>>- 5.5.0-Alpha2 fixes
>>
>> 
>>- 5.5.0-Alpha fixes
>>
>> 
>>- 5.5.0-M4 fixes
>>
>> 
>>- 5.5.0-M3 fixes
>>
>> 
>>- 5.5.0-M2 fixes
>>
>> 
>>- 5.5.0-M1 fixes
>>
>> 
>>
>>
>> Source and distribution
>>
>> Runtime - https://github.com/wso2/product-is/releases/tag/v5.5.0-rc1
>> Analytics - https://github.com/wso2/analyt
>> ics-is/releases/tag/v5.5.0-rc1
>>
>>
>> Please download, test the product and vote.
>>
>> [+] Stable - go ahead and release
>> [-] Broken - do not release (explain why)
>>
>>
>> Thanks,
>> - WSO2 Identity and Access Management Team -
>>
>> --
>> Sathya Bandara
>> Software Engineer
>> WSO2 Inc. http://wso2.com
>> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>>
>> <+94%2071%20411%205032>
>>
>
>
>
> --
> Farasath Ahamed
> Senior Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
> 
>
>
>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 

*Dilini GunatilakeSoftware Engineer - QA Team*
Mobile : +94771162518 <+94%2077%20116%202518>
dili...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 OAuth2 Playground Error

2018-05-01 Thread Dilini Gunatilake
Hi Madhawa,

This issue is already reported in [1]. According to the comments, seems
like it is an issue with the playground app and the flow will work with
curl commands.

[1] https://github.com/wso2/product-is/issues/2567


Regards,
Dilini



On Tue, May 1, 2018 at 5:15 PM, Madhawa Perera  wrote:

> Hi Devs,
>
> I setup WSO2 OAuth2 Playground sample with wso2is-km-5.5.0 according to
> the instructions given in https://docs.wso2.com/display/
> IS550/Basic+Client+Profile+with+Playground
>
> Everything works as expected yet, *I'm getting following error when
> running the WSO2 OAuth2.0 Playground sample*.
>
> Did anyone encounter this before?
>
> ERROR {org.wso2.carbon.identity.oidc.session.servlet.OIDCSessionIFrameServlet}
> -  Invalid request. client_id not found in request as parameter.
>
> org.wso2.carbon.identity.oidc.session.OIDCSessionManagerException:
> Invalid request. client_id not found in request as parameter.
>
> at org.wso2.carbon.identity.oidc.session.servlet.OIDCSessionIFrameServlet.
> doGet(OIDCSessionIFrameServlet.java:69)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>
> at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(
> ContextPathServletAdaptor.java:37)
>
> at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(
> ServletRegistration.java:61)
>
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.
> processAlias(ProxyServlet.java:128)
>
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.
> service(ProxyServlet.java:60)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>
> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.
> service(DelegationServlet.java:68)
>
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:303)
>
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
>
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>
> at org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:88)
>
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
>
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>
> at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.
> doFilter(CharacterSetFilter.java:65)
>
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
>
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>
> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(
> HttpHeaderSecurityFilter.java:124)
>
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
>
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
>
> at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:219)
>
> at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:110)
>
> at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:169)
>
> at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:103)
>
> at org.wso2.carbon.identity.context.rewrite.valve.
> TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:80)
>
> at org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke(
> AuthorizationValve.java:91)
>
> at org.wso2.carbon.identity.auth.valve.AuthenticationValve.
> invoke(AuthenticationValve.java:60)
>
> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(
> CompositeValve.java:99)
>
> at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.
> invoke(CarbonTomcatValve.java:47)
>
> at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(
> TenantLazyLoaderValve.java:57)
>
> at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(
> TomcatValveContainer.java:47)
>
> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(
> CompositeValve.java:62)
>
> at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValv
> e.invoke(CarbonStuckThreadDetectionValve.java:159)
>
> at org.apache.catalina.valves.AccessLogValve.invoke(
> AccessLogValve.java:962)
>
> at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(
> CarbonContextCreatorValve.java:57)
>
> at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:116)
>
> at org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:445)
>
> at org.apache.coyote.http11.AbstractHttp11Processor.process(
> AbstractHttp11Processor.java:1115)
>
> at org.apache.coyote.AbstractPr