Re: [Dev] [IS] Make Contributions

2017-09-11 Thread Chamila Wijayarathna
Hi Sandun,

You can start by downloading and building IS source code
, Master branch contains the code for
IS 6.0.x versions and there is a 5.x.x branch where most the development
happen I believe.

You can try to fix some of the issues in below links.

   - https://github.com/wso2/product-is/issues
   -
   
https://wso2.org/jira/projects/IDENTITY/issues/IDENTITY-6394?filter=allopenissues

When building product-is code, it uses codes available at following sources
as well, which contains most of the functionalities in IS. product-is code
mainly combines these features together and build it into one product.

   - https://github.com/wso2/carbon-identity-framework
   -
   https://github.com/wso2-extensions?utf8=%E2%9C%93=identity==

You can refer to this  to get some general idea
about how to contribute to  WSO2 code base. But the best way to learn is by
getting your hands dirty.

Try these out and ask for help here if things aren't working.

Hope that helps,
Chamila



On Mon, Sep 11, 2017 at 3:46 PM, Sandun Perera 
wrote:

> Hi,
>  I would like to contribute to Identity Server project. I would be
> thankful to you if you can provide me with necessary guidance to start
> working.
>
> Best Regards
> Sandun Perera
>
>
> ___
> 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 for 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


Re: [Dev] [IS] [SCIM] Why Can't We Enable Both SCIM1 and SCIM2 at the Same Time?

2017-08-31 Thread Chamila Wijayarathna
We should not have two different IDs if there is no difference in the
format (eg: length) for ID's in spec IMO

On Thu, Aug 31, 2017 at 4:59 PM, Sathya Bandara  wrote:

> Hi Johann,
>
> IMO having two separate LDAP attributes for the same claims in both SCIM1
> and SCIM2 would be redundant and cause problems in maintaining user
> attributes. If we need to have both listeners enabled at the time I would
> suggest to use a common util method to generate IDs and do the mappings for
> the claims that are common to both protocols.
>
> Thanks,
> Sathya
>
> On Thu, Aug 31, 2017 at 11:37 AM, Johann Nallathamby 
> wrote:
>
>> Will it work if we have two separate attributes for the problematic
>> attributes like SCIM ID? If that works I guess that is one solution.
>>
>> Or we need to have one listener for both SCIM 1 and SCIM2. But don't
>> think that's a good solution. Introduces direct coupling between two
>> implementations.
>>
>> Regards,
>> Johann.
>>
>> On Wed, Aug 30, 2017 at 6:33 PM, Sathya Bandara  wrote:
>>
>>> Hi Thilina,
>>>
>>> If we enable both SCIM1 and SCIM2 listeners at the same time two
>>> different SCIM IDs will be generated for the same user when adding a new
>>> user through SCIM. Also both SCIM1 and SCIM2 claims are mapped to the same
>>> LDAP user attributes. Even though both listeners get triggered only the
>>> SCIM1 ID is mapped to the user ID attribute. But the SCIM2 user creation
>>> response will contain the SCIM ID generated by SCIM2 listener.
>>>
>>> Thanks,
>>> Sathya
>>>
>>> On Wed, Aug 30, 2017 at 6:25 PM, Thilina Madumal 
>>> wrote:
>>>

 Hi all,

 While I was trying to fix IDENTITY-6315
  I got to know that we
 can't enable both SCIM1 and SCIM2 at the same time in WSO2 Identity Server.
 Is it because of this specific issue or is there any other reasons?

 Thanks & Regards,
 Thilina.

 --
 *Thilina Madumal*
 *Software Engineer | **WSO2*
 Email: thilina...@wso2.com
 Mobile: *+ <+94%2077%20767%201807>94 774553167*
 Web:  http://wso2.com

 


>>>
>>>
>>> --
>>> Sathya Bandara
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com
>>> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>>>
>>> <+94%2071%20411%205032>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Senior Lead Solutions Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com *
>>
>
>
>
> --
> Sathya Bandara
> Software Engineer
> WSO2 Inc. http://wso2.com
> Mobile: (+94) 715 360 421 <+94%2071%20411%205032>
>
> <+94%2071%20411%205032>
>
> ___
> 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 for 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


Re: [Dev] [IS] [SCIM] Why Can't We Enable Both SCIM1 and SCIM2 at the Same Time?

2017-08-30 Thread Chamila Wijayarathna
It should be possible to enable both at same time IMO

On Wed, Aug 30, 2017 at 11:00 PM, Farasath Ahamed 
wrote:

>
>
> On Wednesday, August 30, 2017, Thilina Madumal 
> wrote:
>
>>
>> Hi all,
>>
>> While I was trying to fix IDENTITY-6315
>>  I got to know that we can't
>> enable both SCIM1 and SCIM2 at the same time in WSO2 Identity Server.
>> Is it because of this specific issue or is there any other reasons?
>>
>
> I don't see a reason as to why we can't have both SCIM implementations
> enabled at the same time since each of them expose a seperate web app.
>
> From outside its just like having two APIs to do user operations. Did you
> face any issues when enabling both?
>
>
>>
>> Thanks & Regards,
>>
> Thilina.
>>
>> --
>> *Thilina Madumal*
>> *Software Engineer | **WSO2*
>> Email: thilina...@wso2.com
>> Mobile: *+ <+94%2077%20767%201807>94 774553167*
>> Web:  http://wso2.com
>>
>> 
>>
>>
>
> --
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
> 
>
>
>
>
> ___
> 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 for 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


Re: [Dev] Supporting attributes feature for SCIM filtering

2017-08-02 Thread Chamila Wijayarathna
Hi Johann,

Sorry for the confusion, I didn't knew about SCIM attributes implementation
previously. Is this only available for SCIM 2.0 or is this available in
SCIM 1.x implementation as well?

If it is supported in SCIM list, it should be there in filter also. Because
AFAIK, filter is parameter we pass to list operation. Filter is not a
different operation from list. If I explain it more, what we refer as
filter is a overloaded function of list.

eg : User List();
User List (String filter);

So filter operation should return a same type of objects, but may be a less
number. If they behave differently, IMO it is wrong.

So +1 for implementing attributes here as well.

Regards!
Chamila

On Wed, Aug 2, 2017 at 6:23 PM, Johann Nallathamby <joh...@wso2.com> wrote:

>
>
> On Tue, Jul 11, 2017 at 6:52 PM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Johann,
>>
>> In IS 5.0
>> filter=username eq name
>> gave the result that you are expecting here, but we changed it to return
>> only meta data since retrieving all attributes is costly. Spec also
>> mentions that query should minimally return meta data, returning additional
>> data or all data is also compliant with the spec IIRC.
>>
>
> Correct.
>
>
>>
>> So in my opinion, what you are suggesting here is moving back to the old
>> functionality we had and I believe if we are to do that, we will have to do
>> that at the cost of performance. I suppose this may not as costly as 2
>> network calls if filter returns only 1 result. But it is not guaranteed in
>> filter or attribute thing you are suggesting that it will return only 1
>> result, so still performance can be a issue.
>>
>
> No. I am not saying to move back to old implementation. I am saying to
> implement "attributes" feature to SCIM filtering also. Currently we have it
> only for SCIM listing. So if we implement that, by default filtering will
> return only metadata. And if needed extra attributes, we can specifically
> request like in SCIM listing.
>
> Regards,
> Johann.
>
>
>>
>> Cheers
>> Chamila
>>
>> On Tue, Jul 11, 2017 at 11:08 PM, Johann Nallathamby <joh...@wso2.com>
>> wrote:
>>
>>> Hi IAM Team,
>>>
>>> Can we support "attributes" feature for SCIM filter query? Right now
>>> SCIM filter query returns only metadata. It doesn't return additional
>>> attributes. Therefore we have to do at least two network calls if we need
>>> to get user's attributes using username. Can we do this in one call network
>>> call?
>>>
>>> "attributes" feature for /Users GET allows to retrieve any number of
>>> additional attributes we want apart from the metadata. This is very
>>> convenient to avoid too many network calls. If the same is available for
>>> SCIM filter query it will be great I think.
>>>
>>> I checked the spec but couldn't find anything. Spec seems to be silent
>>> on it. Any expert opinion on this subject?
>>>
>>> Regards,
>>> Johann.
>>>
>>> --
>>>
>>> *Johann Dilantha Nallathamby*
>>> Senior Lead Solutions Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - *+9476950*
>>> Blog - *http://nallaa.wordpress.com <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 for Cyber Security
>> Australian Defence Force Academy
>> PO Box 7916, Canberra BA ACT 2610
>> Australia
>> Mobile:(+61)416895795 <+61%20416%20895%20795>
>>
>>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Senior Lead Solutions Engineer
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>



-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for 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


Re: [Dev] Supporting attributes feature for SCIM filtering

2017-07-11 Thread Chamila Wijayarathna
Hi Johann,

In IS 5.0
filter=username eq name
gave the result that you are expecting here, but we changed it to return
only meta data since retrieving all attributes is costly. Spec also
mentions that query should minimally return meta data, returning additional
data or all data is also compliant with the spec IIRC.

So in my opinion, what you are suggesting here is moving back to the old
functionality we had and I believe if we are to do that, we will have to do
that at the cost of performance. I suppose this may not as costly as 2
network calls if filter returns only 1 result. But it is not guaranteed in
filter or attribute thing you are suggesting that it will return only 1
result, so still performance can be a issue.

Cheers
Chamila

On Tue, Jul 11, 2017 at 11:08 PM, Johann Nallathamby 
wrote:

> Hi IAM Team,
>
> Can we support "attributes" feature for SCIM filter query? Right now SCIM
> filter query returns only metadata. It doesn't return additional
> attributes. Therefore we have to do at least two network calls if we need
> to get user's attributes using username. Can we do this in one call network
> call?
>
> "attributes" feature for /Users GET allows to retrieve any number of
> additional attributes we want apart from the metadata. This is very
> convenient to avoid too many network calls. If the same is available for
> SCIM filter query it will be great I think.
>
> I checked the spec but couldn't find anything. Spec seems to be silent on
> it. Any expert opinion on this subject?
>
> Regards,
> Johann.
>
> --
>
> *Johann Dilantha Nallathamby*
> Senior Lead Solutions Engineer
> 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 for 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


Re: [Dev] [IAM][Workflows] How to say at least two distinct people in the role must approve ?

2017-06-14 Thread Chamila Wijayarathna
Hi Johann,

If it's  possible with current implementation,
https://docs.wso2.com/display/IS510/Writing+a+Custom+Workflow+Template should
be what you need to extend.

Also, if you are interested in doing this with BPS implementation, you may
have to insert necessary bpel and ht files and improve that part as well.

However, I don't think this has been tried so far, I  haven't seen any
guide mentioning this.

I have tried adding new template, but I was too lazy to change the approval
model :)

Hope that helps!
Chamila

On Thu, Jun 15, 2017 at 1:21 PM, Johann Nallathamby  wrote:

> Hi All,
>
> I am wondering if there is anyway to express, in IS workflow wizard, a
> certain operation be permitted only if two distinct people in a particular
> role explicitly approve the operation. There can be many people in the
> role, and it can be any two distinct people. The problem of having it as
> two steps is that the same person could approve both the steps. That needs
> to be avoided.
>
> When it comes to critical transactions in an organization it is common
> practice to get explicit approval from at least two people in the same
> level. Can this be expressed somehow? If we are going it via extensions
> what exactly do we need to extend?
>
> Regards,
> Johann.
>
> --
>
> *Johann Dilantha Nallathamby*
> Senior Technical Lead - 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 for 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


Re: [Dev] Identity server sources

2017-05-10 Thread Chamila Wijayarathna
Ops, sorry
https://github.com/wso2-attic/carbon-identity/tree/release-5.0.7/components/sts/org.wso2.carbon.identity.sts.passive.ui

On Wed, May 10, 2017 at 5:34 PM, Illia Alifanov <illia.alifa...@eleks.com>
wrote:

> There is no tag 5.0.7!
>
>
>
> *From:* Chamila Wijayarathna [mailto:cdwijayarat...@gmail.com]
> *Sent:* Wednesday, May 10, 2017 10:33 AM
> *To:* Illia Alifanov <illia.alifa...@eleks.com>
> *Cc:* dev@wso2.org
> *Subject:* Re: [Dev] Identity server sources
>
>
>
> Hi,
>
>
>
> Try this https://github.com/wso2-extensions/identity-inbound-
> auth-sts/tree/master/components/org.wso2.carbon.identity.sts.passive.ui
>
>
>
> Thank You!
>
>
>
> On Wed, May 10, 2017 at 5:26 PM, Illia Alifanov <illia.alifa...@eleks.com>
> wrote:
>
> Dear, WSO2 dev-team,
>
>
>
> How I can get sources for this extension
> *org.wso2.carbon.identity.sts.passive.ui_5.0.7.jar* for Identity server
> 5.1.0.
>
>
>
>
>
> Regards,
>
> Illia Alifanov.
>
>
>
>
> --
>
>
> This e-mail may contain privileged and confidential information. If you
> are not the intended recipient, be aware that any use, disclosure, copying
> or distribution of this e-mail or any attachments is prohibited. If you
> have received this e-mail in error, please notify us immediately by
> returning it to the sender and delete this copy from your system. Thank you.
>
>
> ___
> 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 for Cyber Security
>
> Australian Defence Force Academy
>
> PO Box 7916, Canberra BA ACT 2610
>
> Australia
>
> Mobile:(+61)416895795 <+61%20416%20895%20795>
>
>
>



-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for 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


Re: [Dev] Identity server sources

2017-05-10 Thread Chamila Wijayarathna
Hi,

Try this
https://github.com/wso2-extensions/identity-inbound-auth-sts/tree/master/components/org.wso2.carbon.identity.sts.passive.ui

Thank You!

On Wed, May 10, 2017 at 5:26 PM, Illia Alifanov 
wrote:

> Dear, WSO2 dev-team,
>
>
>
> How I can get sources for this extension
> *org.wso2.carbon.identity.sts.passive.ui_5.0.7.jar* for Identity server
> 5.1.0.
>
>
>
>
>
> Regards,
>
> Illia Alifanov.
>
>
>
> --
>
> This e-mail may contain privileged and confidential information. If you
> are not the intended recipient, be aware that any use, disclosure, copying
> or distribution of this e-mail or any attachments is prohibited. If you
> have received this e-mail in error, please notify us immediately by
> returning it to the sender and delete this copy from your system. Thank you.
>
> ___
> 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 for 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


Re: [Dev] wso2 IS 5.3.0 End User Dashboard

2017-02-10 Thread Chamila Wijayarathna
Hi,

Can you post details about the error you are observing?

Thank You!

On Sat, Feb 11, 2017 at 12:22 PM, mgbii bax  wrote:

> Hello,
>
> I'm currently evaluating wso2 Identity Server and I'm using the latest
> version 5.3.0. By default, with or without using a load balancer I can't
> access the End User Dashboard as stated in docs:
> https://docs.wso2.com/display/IS530/Using+the+End+User+Dashboard.
>
> https://sub.domain.com:9443/dashboard
> https://sub.domain.com:9443/dashboard/acs
> https://lanhostname:9443/dashboard/
> https://lanhostname:9443/dashboard/acs
>
> I have tested several times, also did a fresh test and it seems that the
> End User Dashboard is not working for Identity Server 5.3.0.
>
> What are the configs that I need to modify to make it work?
>
>
> --
>
> regards
>
>
>
> ___
> 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 for 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


Re: [Dev] SCIM User Add Operation in C5

2017-02-04 Thread Chamila Wijayarathna
Hi all,

Can someone point me to a resource/mail to get further details about the
duplicate username feature?

Thank You!

On Sun, Feb 5, 2017 at 3:57 PM, Johann Nallathamby <joh...@wso2.com> wrote:

>
>
> On Sun, Feb 5, 2017 at 9:41 AM, Gayan Gunawardana <ga...@wso2.com> wrote:
>
>> Hi All,
>>
>> Conclusion is avoid adding multiple users with same user name from SCIM
>> [1].
>> According to *Unique Attribute *concept Ishara mentioned even though
>> user core support, having multiple users with same user name we should not
>> do that.
>>
>> If we duplicate username even in user core level there are some other
>> consequences as well like revoking access tokens for given user will fail.
>>
>
> I don't think. We will store access tokens against the immutable UUID of
> the user. So duplicate username or modifiable username is not a problem in
> this case.
>
>
>>
>> Username can be changed but *must not* duplicate.
>>
>
> Which can be the case for SCIM level, but doesn't need to be the case in
> identity.mgt level.
>
>>
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-5698
>>
>> Thanks,
>> Gayan
>>
>> On Fri, Feb 3, 2017 at 2:49 PM, Johann Nallathamby <joh...@wso2.com>
>> wrote:
>>
>>>
>>>
>>> On Fri, Feb 3, 2017 at 9:42 AM, Farasath Ahamed <farasa...@wso2.com>
>>> wrote:
>>>
>>>> IIRC, Our plan in C5 was to use the SCIM API for user signup, user
>>>> provisioning etc.
>>>>
>>>> So if the username is a special attribute in SCIM while user core can
>>>> accommodate duplicate usernames(ie. username need not be unique), when we
>>>> use SCIM API in the product won't there be a mismatch?
>>>>
>>>
>>> I don't think there will be a issue. Our identity-mgt implementation is
>>> the lower layer while SCIM is the higher layer. If higher layer is more
>>> restrictive than lower layer it won't be an issue. Other way around would
>>> be a issue.
>>>
>>>
>>>>
>>>>
>>>> Farasath Ahamed
>>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>>> Mobile: +94777603866
>>>> Blog: blog.farazath.com
>>>> Twitter: @farazath619 <https://twitter.com/farazath619>
>>>> <http://wso2.com/signature>
>>>>
>>>>
>>>>
>>>> On Thu, Feb 2, 2017 at 7:41 PM, Gayan Gunawardana <ga...@wso2.com>
>>>> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Fri, Feb 3, 2017 at 8:29 AM, Johann Nallathamby <joh...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> In our identity-mgt level we don't treat username as a special
>>>>>> attribute. It's just another attribute. However in certain higher levels 
>>>>>> we
>>>>>> may need to treat username as a special attribute. We do have a claim for
>>>>>> username which I think is "http://wso2.org/claim/username;. We can
>>>>>> treat this claim as the username in higher level implementations.
>>>>>>
>>>>>> On Fri, Feb 3, 2017 at 4:12 AM, Chamila Wijayarathna <
>>>>>> cdwijayarat...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Gayan,
>>>>>>>
>>>>>>> If we can add multiple users with same user name, why do we need to
>>>>>>> avoid adding multiple users in SCIM? I don't get the point here.
>>>>>>>
>>>>>>> If we consider two users with same username as two entities in
>>>>>>> server level, it won't be a duplicate resource creation IMO, it will be 
>>>>>>> two
>>>>>>> different resources with same username.
>>>>>>>
>>>>>>
>>>>>> I guess what Gayan means is in SCIM 2.0 username is a special
>>>>>> attribute and we can't have two users with same username attribute. It 
>>>>>> is a
>>>>>> specification of SCIM 2.0.
>>>>>>
>>>>> Yes exactly. There should be a way to identify duplicate resource in
>>>>> the context of SCIM. For user resource it is user name.
>>>>>
>>>>>>
>>>>>>> Regards!
>>>>>>>
>>>>>>> On Fri, Feb 3, 2017 at 5:52 AM, Gayan Gunawardana <ga...@wso2.com>
>>&g

Re: [Dev] SCIM User Add Operation in C5

2017-02-02 Thread Chamila Wijayarathna
Hi Gayan,

If we can add multiple users with same user name, why do we need to avoid
adding multiple users in SCIM? I don't get the point here.

If we consider two users with same username as two entities in server
level, it won't be a duplicate resource creation IMO, it will be two
different resources with same username.

Regards!

On Fri, Feb 3, 2017 at 5:52 AM, Gayan Gunawardana  wrote:

> Hi All,
>
> In C4 user name was an unique identifier and we returned http response 409
> (Conflict) if user name already exist [1]. In C5 user name is just an
> another claim and we can add multiple users with same user name.
> IMO we should check isUserExist in SCIM level and avoid adding multiple
> users with same user name.
>
> WDYT ?
>
> [1] https://tools.ietf.org/html/rfc7644#section-3.12
>
> Thanks,
> Gayan
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for 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


Re: [Dev] Email template saving issue

2017-01-18 Thread Chamila Wijayarathna
Hi Kone,

When you change email template in management console, it will only affect
the specific tenant you do the operation. If you change email templates by
login to super tenant, those changes will be only available in super tenant.

If you want to change email templates permanently for all tenants, you can
do this by editing email templates at
repository/conf/email/email-admin-config.xml. These changes will affect all
tenants that you create after changing the XML and restarting the server.
However, AFAIK tenant you created before changing the XML will still have
old templates.

Thank You!

On Wed, Jan 18, 2017 at 9:44 PM, Koné Alioune Badara <
kon...@etna-alternance.net> wrote:

> Hello,
>
> I'm trying to modify the email templates in the Wso2 IS management console
> but it is not very been successful. I tried to change it and the save does
> work but when I receive the email it is still the old one. Even when I
> change the super tenant's one and create a new tenant, it sill take the old
> templates. So i'm asking how can I change the email templates?
>
> Regards.
>
> --
> Cordialement,
>
> Alioune B KONÉ.
>
> ___
> 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 for 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


Re: [Dev] User Creation

2017-01-12 Thread Chamila Wijayarathna
Hi Koné,

I think tenant is retrieved from the user who initiate the request.

If the admin of tenant1.com (eg:ad...@tenant1.com) initiate the request,
user should be created in the corresponding tenant.

Regards!
Chamila

On Fri, Jan 13, 2017 at 4:01 AM, Koné Alioune Badara <
kon...@etna-alternance.net> wrote:

> Hello,
>
> I'm using the rest method of this documentation for the user creation
> through askPassword:
>  https://docs.wso2.com/display/IS530/Creating+Users+
> using+the+Ask+Password+Option#CreatingUsersusingtheAskPasswo
> rdOption-UsingtheRESTAPI
>
> Can you tell me how can I fill in the tenantId of the tenant in which I
> want to create the user? Because I tried using the soap method, it works
> very well for the super tenant, but not the tenants under. It seems like
> the tenant name is not send to the server and so it is trying to find the
> confirmation code for users in the super tenant.
>
> Regards,
>
> --
> Cordialement,
>
> Alioune B KONÉ.
>
> ___
> 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 for 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


Re: [Dev] [WSO2 IS] Handle fine-grained role permissions : Enhancing the existing API or replacing it

2017-01-10 Thread Chamila Wijayarathna
Hi Hanen,

Can you explaing a little bit more what you are palling to achieve?

I have written a blog

on similar topic referring to workflow feature and APIs[2][3] there. Check
if that's helps.

[1].
http://cdwijayarathna.blogspot.com.au/2016/01/permission-model-of-wso2-is-workflow.html
[2].
https://github.com/wso2/carbon-identity-framework/tree/master/components/workflow-mgt/org.wso2.carbon.identity.workflow.mgt
[3].
https://github.com/wso2-extensions/identity-workflow-impl-bps/tree/master/components/org.wso2.carbon.identity.workflow.impl

Hope that helps!
Chamila

On Wed, Jan 11, 2017 at 4:46 AM, Hanen Ben Rhouma 
wrote:

> Hi,
>
> Let's suppose I want to develop a new API to handle a fine grained
> permissions per each created role. What should be the reference API that I
> need to modify or replace?
>
> Regards,
> Hanen
>
> ___
> 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 for 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


Re: [Dev] [VOTE] Release WSO2 Identity Server 5.3.0- RC3

2017-01-08 Thread Chamila Wijayarathna
Hi all,

Tested following scenarios on Windows 10.

   - Creating user through management console and self registration
   - Self registration with account lock on creation disabled
   - Tenant wise identity management
   - identity event properties
   - Claim management
   - Account locking
   - Login to dashboard, user profile update, change password, account
   association through dashboard

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

On Mon, Jan 9, 2017 at 3:03 PM, Dinali Dabarera  wrote:

> Hi,
> I tested the following on the Identity Server 5.3.0-RC3 pack,
>
>- Discovery
>- DCR
>- Form Post
>- Introspection
>- SCIM API
>- User Management
>
> Worked fine without any issues.
> [+] Stable - go ahead and release
>
> On Fri, Jan 6, 2017 at 10:06 PM, Pulasthi Mahawithana 
> wrote:
>
>> Hi All,
>>
>> This is the 3rd Release Candidate of WSO2 Identity Server 5.3.0.
>>
>> Please download, test the product and vote. Vote will be open for 72
>> hours or as needed.
>>
>> This release fixes the following issues:
>>
>> Runtime : https://wso2.org/jira/issues/?filter=13612
>> Analytics : https://wso2.org/jira/issues/?filter=13614
>>
>> Source and distribution
>>
>> Run-time : https://github.com/wso2/product-is/releases/tag/v5.3.0-rc3
>> Analytics : https://github.com/wso2/analytics-is/releases/tag/v5.3.0-
>> rc3
>>
>> Please vote as follows.
>> [+] Stable - go ahead and release
>> [-] Broken - do not release (explain why)
>>
>> Thanks,
>> - WSO2 Identity Server Team -
>>
>> --
>> *Pulasthi Mahawithana*
>> Senior Software Engineer
>> WSO2 Inc., http://wso2.com/
>> Mobile: +94-71-5179022 <+94%2071%20517%209022>
>> Blog: http://blog.pulasthi.org
>>
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Dinali Rosemin Dabarera*
> Software Engineer
> WSO2 Lanka (pvt) Ltd.
> Web: http://wso2.com/
> Email : gdrdabar...@gmail.com
> LinkedIn 
> Mobile: +94770198933 <+94%2077%20019%208933>
>
>
>
>
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ___
> 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 for 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


Re: [Dev] [WSO2 IS] How to limit tenant users to one secondary user store while trying to create other users

2017-01-05 Thread Chamila Wijayarathna
Hi,

This repository is no longer in use. Current code for user-mgt can be found
at https://github.com/wso2/carbon-identity-framework/ . You find find tags
for all the versions used for releases there.

On Fri, Jan 6, 2017 at 12:52 AM, Hanen Ben Rhouma <hanen...@gmail.com>
wrote:

> It worked, thanks!!!
>
> Could you tell me where is the official git repository from which I can
> get the source code of such recent modules ? I referenced this
> https://github.com/wso2/carbon-identity/tree/master/
> components/user-mgt/org.wso2.carbon.user.mgt.ui
> but there is no 5.7.5 tag version
>
> Regards,
> Hanen
>
> On Thu, Jan 5, 2017 at 2:24 PM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Hanen,
>>
>> RC2 uses org.wso2.carbon.user.mgt.ui version 5.7.5, you'll have to add
>> patch with this version or newer version, otherwise it picks the jar with
>> highest version AFAIK.
>>
>> On Fri, Jan 6, 2017 at 12:13 AM, Hanen Ben Rhouma <hanen...@gmail.com>
>> wrote:
>>
>>> 5.3.0-rc2
>>>
>>> Regards,
>>> Hanen
>>>
>>> On Thu, Jan 5, 2017 at 11:36 AM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
>>>> No, UI jars are the same as others, what is the IS version you are
>>>> using?
>>>>
>>>> On Thu, Jan 5, 2017 at 9:24 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Chamila,
>>>>>
>>>>> I did create a directory patch0001 and put the jar under it, the logs
>>>>> were showing it's taken into account but from the GUI side the changes
>>>>> didn't take effect:
>>>>>
>>>>> [2017-01-05 11:13:29,776]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>>>> -  Checking for patch changes ...
>>>>> [2017-01-05 11:13:29,803]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>>>> -  New patch available - patch0001
>>>>> [2017-01-05 11:13:29,806]  INFO 
>>>>> {org.wso2.carbon.server.extensions.PatchInstaller}
>>>>> -  Patch changes detected
>>>>> [2017-01-05 11:13:35,757]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>>>> -  Backed up plugins to patch
>>>>> [2017-01-05 11:13:35,757]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>>>> -  Applying patches ...
>>>>> [2017-01-05 11:13:35,758]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>>>> -  Applying - patch0001
>>>>> [2017-01-05 11:13:35,855]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>>>> -  Patched org.wso2.carbon.user.mgt.ui_5.
>>>>> 7.0.jar(MD5:096b6efee440a71e964e1756b8dd25fc)
>>>>> [2017-01-05 11:13:35,855]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>>>> -  Patch verification started
>>>>> [2017-01-05 11:13:35,862]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>>>> -  Patch verification successfully completed
>>>>>
>>>>>
>>>>> Is there something different about ui jars ? I changed a JSP, is there
>>>>> another step to configure ?
>>>>>
>>>>>
>>>>> Regards,
>>>>> Hanen
>>>>>
>>>>>
>>>>> On Wed, Jan 4, 2017 at 11:53 PM, Chamila Wijayarathna <
>>>>> cdwijayarat...@gmail.com> wrote:
>>>>>
>>>>>> Hi Hanen,
>>>>>>
>>>>>> Changing plugin is not a recommended thing, but applying patch should
>>>>>> work here, refer[1] for guidelines to apply patches.
>>>>>> If patch wasn't taken into account, please make sure the patch you
>>>>>> add is as the same version as the already available jar in plugins 
>>>>>> folder.
>>>>>> You can verify whether the patch has applied correctly by referring
>>>>>> to repository/logs/patches log
>>>>>>
>>>>>> [1]. https://docs.wso2.com/display/IS510/Applying+Patches
>>>>>>
>>>>>> Regards!
>>>>>> Chamila
>>>>>>
>>>>>> On Thu, Jan 5, 2017 at 4:20 AM, Hanen Ben Rhouma <hanen...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> What if I want to change the jsp managing such logic which is within
>>>>>>> org.wso2.carbon.user.mgt.ui_5.7.0
>>>>>>> The thing is that WSO2

Re: [Dev] [WSO2 IS] How to limit tenant users to one secondary user store while trying to create other users

2017-01-05 Thread Chamila Wijayarathna
Hi Hanen,

RC2 uses org.wso2.carbon.user.mgt.ui version 5.7.5, you'll have to add
patch with this version or newer version, otherwise it picks the jar with
highest version AFAIK.

On Fri, Jan 6, 2017 at 12:13 AM, Hanen Ben Rhouma <hanen...@gmail.com>
wrote:

> 5.3.0-rc2
>
> Regards,
> Hanen
>
> On Thu, Jan 5, 2017 at 11:36 AM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> No, UI jars are the same as others, what is the IS version you are using?
>>
>> On Thu, Jan 5, 2017 at 9:24 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>> wrote:
>>
>>> Hi Chamila,
>>>
>>> I did create a directory patch0001 and put the jar under it, the logs
>>> were showing it's taken into account but from the GUI side the changes
>>> didn't take effect:
>>>
>>> [2017-01-05 11:13:29,776]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>> -  Checking for patch changes ...
>>> [2017-01-05 11:13:29,803]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>> -  New patch available - patch0001
>>> [2017-01-05 11:13:29,806]  INFO 
>>> {org.wso2.carbon.server.extensions.PatchInstaller}
>>> -  Patch changes detected
>>> [2017-01-05 11:13:35,757]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>> -  Backed up plugins to patch
>>> [2017-01-05 11:13:35,757]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>> -  Applying patches ...
>>> [2017-01-05 11:13:35,758]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>> -  Applying - patch0001
>>> [2017-01-05 11:13:35,855]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>> -  Patched org.wso2.carbon.user.mgt.ui_5.7.0.jar(MD5:096b6efee440a71e96
>>> 4e1756b8dd25fc)
>>> [2017-01-05 11:13:35,855]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>> -  Patch verification started
>>> [2017-01-05 11:13:35,862]  INFO {org.wso2.carbon.server.util.PatchUtils}
>>> -  Patch verification successfully completed
>>>
>>>
>>> Is there something different about ui jars ? I changed a JSP, is there
>>> another step to configure ?
>>>
>>>
>>> Regards,
>>> Hanen
>>>
>>>
>>> On Wed, Jan 4, 2017 at 11:53 PM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
>>>> Hi Hanen,
>>>>
>>>> Changing plugin is not a recommended thing, but applying patch should
>>>> work here, refer[1] for guidelines to apply patches.
>>>> If patch wasn't taken into account, please make sure the patch you add
>>>> is as the same version as the already available jar in plugins folder.
>>>> You can verify whether the patch has applied correctly by referring to
>>>> repository/logs/patches log
>>>>
>>>> [1]. https://docs.wso2.com/display/IS510/Applying+Patches
>>>>
>>>> Regards!
>>>> Chamila
>>>>
>>>> On Thu, Jan 5, 2017 at 4:20 AM, Hanen Ben Rhouma <hanen...@gmail.com>
>>>> wrote:
>>>>
>>>>> What if I want to change the jsp managing such logic which is within
>>>>> org.wso2.carbon.user.mgt.ui_5.7.0
>>>>> The thing is that WSO2 is becoming unstable once I modify the plugin,
>>>>> I even tried differently by putting the jar within patches but it wasn't
>>>>> taken into account.
>>>>> Any idea how can I replace the default plugin with a another one?
>>>>>
>>>>>
>>>>> Regards,
>>>>> Hanen
>>>>>
>>>>> On Wed, Jan 4, 2017 at 4:59 PM, Darshana Gunawardana <
>>>>> darsh...@wso2.com> wrote:
>>>>>
>>>>>> Hi Hanen,
>>>>>>
>>>>>> As of the current behaviour of the management console, it cannot hide
>>>>>> primary user store from the drop down for tenant users.
>>>>>>
>>>>>> There are two ways to enforce this,
>>>>>> * Add backend validation for restricting user creation in primary
>>>>>> userstore for tenant users (this requires a listener implementation for
>>>>>> user management operations)
>>>>>> * Write a separate dashboard with these customizations (this requires
>>>>>> to develop separate webapp)
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> On Wed, Jan 4, 2017 at 7:48 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>>>>>> wrot

Re: [Dev] [WSO2 IS] Permission to create roles and assign users to them

2017-01-05 Thread Chamila Wijayarathna
Hi Hanen,

To achieve this in SOAP API calls, your user need to have both "User
Management" and "Role Management" permissions.

Regards!
Chamila

On Thu, Jan 5, 2017 at 9:37 PM, Hanen Ben Rhouma <hanen...@gmail.com> wrote:

> Hi,
>
> In fact, even by using the SOAP service call to add role mgt only as a
> permission, the result is the same the created user won't have the
> possibility to create roles:
>
> http://schemas.xmlsoap.org/soap/envelope/;
> xmlns:ser="http://service.ws.um.carbon.wso2.org; xmlns:xsd="
> http://dao.service.ws.um.carbon.wso2.org/xsd;>
>
>
>   
>  
>  TestRole
>  
>  hanen
>  
>  
> 
> ui.execute
> 
> /permission/admin/manage/identity/rolemgt/
> 
>  
>   
>
> 
>
> Regards,
> Hanen
>
> On Wed, Jan 4, 2017 at 5:06 PM, Darshana Gunawardana <darsh...@wso2.com>
> wrote:
>
>> Hi Chamila\Hanen,
>>
>> Yes. you need to have "'/permission/admin/manage/identity'" permission
>> to manage roles from the UI. Since we are doing multiple management
>> operation via management console we require much higher level of
>> permissions. But Relevant backend services (UserAdmin service) do support
>> finer level permission ("/permission/admin/manage/identity/usermgt")
>> then if some external client need to connect with restricted permissions
>> still it's possible. But indeed this UIs can be improved to support fine
>> grained permissions. Since we are working on the IS 6.0.0 which is based on
>> next gen Carbon 5 platform with complete re-design of the product with
>> parallel to IS 5.3.0 release, we did not focus on major redesigning of UI
>> and related UI permissions with the IS 5.3.0.
>>
>> Giving you bit of insight of IS 6.0.0 effort, we have plans to decouple
>> persona that use identity server for different types of administration and
>> provide separate views for each of those. You will be able to follow up on
>> those discussions on architecture list soon.
>>
>> We have created https://wso2.org/jira/browse/IDENTITY-5560 to track this
>> specific improvement, and it will consider fixing this in a future release.
>>
>> Thanks
>>
>> On Wed, Jan 4, 2017 at 7:13 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> Actually I tried most of the combinations and the smallest set of
>>> permissions allowing users to create roles is by selecting the whole
>>> "Identity" permissions block. Why 
>>> Sometimes we want some type of users to be able to only create users and
>>> assign them to some roles, the rest of the application (IdP, SP, Key
>>> stores, Workflow mgt, etc.) isn't trivial to them and is not even in their
>>> scope of responsibility. Why such limitation?
>>>
>>> Regards,
>>> Hanen
>>>
>>> On Wed, Jan 4, 2017 at 1:32 PM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> It looks like you need to have '/permission/admin/manage/identity' to
>>>> do this using management console. However, when looking at code if you are
>>>> doing it using API calls, having "User Management" and "Role Management"
>>>> should be enough to do this.
>>>>
>>>> It should work with "Roles Management" IMO, I'm not sure why it's not
>>>> implemented like that.
>>>> @Johann, Darshana : Any idea on this?
>>>>
>>>> On Wed, Jan 4, 2017 at 10:42 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>>>> wrote:
>>>>
>>>>>
>>>>> Hello,
>>>>>
>>>>> What is the permission that gives the user the possibility to create
>>>>> roles and assign users to them? I tried "Roles Management" permission but
>>>>> it's not doing the trick.
>>>>>
>>>>>
>>>>> Regards,
>>>>> Hanen
>>>>>
>>>>> ___
>>>>> 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 for Cyber Security
>>>> Australian Defence Force Academy
>>>> PO Box 7916, Canberra BA ACT 2610
>>>> Australia
>>>> Mobile:(+61)416895795 <+61%20416%20895%20795>
>>>>
>>>>
>>>
>>
>>
>> --
>> Regards,
>>
>>
>> *Darshana Gunawardana*Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>>
>> *E-mail: darsh...@wso2.com <darsh...@wso2.com>*
>> *Mobile: +94718566859 <+94%2071%20856%206859>*Lean . Enterprise .
>> Middleware
>>
>
>


-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for 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


Re: [Dev] [WSO2 IS] How to limit tenant users to one secondary user store while trying to create other users

2017-01-05 Thread Chamila Wijayarathna
No, UI jars are the same as others, what is the IS version you are using?

On Thu, Jan 5, 2017 at 9:24 PM, Hanen Ben Rhouma <hanen...@gmail.com> wrote:

> Hi Chamila,
>
> I did create a directory patch0001 and put the jar under it, the logs were
> showing it's taken into account but from the GUI side the changes didn't
> take effect:
>
> [2017-01-05 11:13:29,776]  INFO {org.wso2.carbon.server.util.PatchUtils}
> -  Checking for patch changes ...
> [2017-01-05 11:13:29,803]  INFO {org.wso2.carbon.server.util.PatchUtils}
> -  New patch available - patch0001
> [2017-01-05 11:13:29,806]  INFO 
> {org.wso2.carbon.server.extensions.PatchInstaller}
> -  Patch changes detected
> [2017-01-05 11:13:35,757]  INFO {org.wso2.carbon.server.util.PatchUtils}
> -  Backed up plugins to patch
> [2017-01-05 11:13:35,757]  INFO {org.wso2.carbon.server.util.PatchUtils}
> -  Applying patches ...
> [2017-01-05 11:13:35,758]  INFO {org.wso2.carbon.server.util.PatchUtils}
> -  Applying - patch0001
> [2017-01-05 11:13:35,855]  INFO {org.wso2.carbon.server.util.PatchUtils}
> -  Patched org.wso2.carbon.user.mgt.ui_5.7.0.jar(MD5:
> 096b6efee440a71e964e1756b8dd25fc)
> [2017-01-05 11:13:35,855]  INFO {org.wso2.carbon.server.util.PatchUtils}
> -  Patch verification started
> [2017-01-05 11:13:35,862]  INFO {org.wso2.carbon.server.util.PatchUtils}
> -  Patch verification successfully completed
>
>
> Is there something different about ui jars ? I changed a JSP, is there
> another step to configure ?
>
>
> Regards,
> Hanen
>
>
> On Wed, Jan 4, 2017 at 11:53 PM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Hanen,
>>
>> Changing plugin is not a recommended thing, but applying patch should
>> work here, refer[1] for guidelines to apply patches.
>> If patch wasn't taken into account, please make sure the patch you add is
>> as the same version as the already available jar in plugins folder.
>> You can verify whether the patch has applied correctly by referring to
>> repository/logs/patches log
>>
>> [1]. https://docs.wso2.com/display/IS510/Applying+Patches
>>
>> Regards!
>> Chamila
>>
>> On Thu, Jan 5, 2017 at 4:20 AM, Hanen Ben Rhouma <hanen...@gmail.com>
>> wrote:
>>
>>> What if I want to change the jsp managing such logic which is within
>>> org.wso2.carbon.user.mgt.ui_5.7.0
>>> The thing is that WSO2 is becoming unstable once I modify the plugin, I
>>> even tried differently by putting the jar within patches but it wasn't
>>> taken into account.
>>> Any idea how can I replace the default plugin with a another one?
>>>
>>>
>>> Regards,
>>> Hanen
>>>
>>> On Wed, Jan 4, 2017 at 4:59 PM, Darshana Gunawardana <darsh...@wso2.com>
>>> wrote:
>>>
>>>> Hi Hanen,
>>>>
>>>> As of the current behaviour of the management console, it cannot hide
>>>> primary user store from the drop down for tenant users.
>>>>
>>>> There are two ways to enforce this,
>>>> * Add backend validation for restricting user creation in primary
>>>> userstore for tenant users (this requires a listener implementation for
>>>> user management operations)
>>>> * Write a separate dashboard with these customizations (this requires
>>>> to develop separate webapp)
>>>>
>>>> Thanks,
>>>>
>>>> On Wed, Jan 4, 2017 at 7:48 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Is there a way to restrict tenant users (having the permission to
>>>>> create other users) to a secondary user store; I noticed PRIMARY user 
>>>>> store
>>>>> is always there when trying to create a new user even for tenant users, it
>>>>> leads to some confusion and some users can persist other newly created
>>>>> users on the PRIMARY, can't we grey out this drop down so that it works 
>>>>> for
>>>>> only one secondary user store?
>>>>>
>>>>> Regards,
>>>>> Hanen
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>>
>>>>
>>>> *Darshana Gunawardana*Associate Technical Lead

Re: [Dev] [WSO2 IS] How to limit tenant users to one secondary user store while trying to create other users

2017-01-04 Thread Chamila Wijayarathna
Hi Hanen,

Changing plugin is not a recommended thing, but applying patch should work
here, refer[1] for guidelines to apply patches.
If patch wasn't taken into account, please make sure the patch you add is
as the same version as the already available jar in plugins folder.
You can verify whether the patch has applied correctly by referring to
repository/logs/patches log

[1]. https://docs.wso2.com/display/IS510/Applying+Patches

Regards!
Chamila

On Thu, Jan 5, 2017 at 4:20 AM, Hanen Ben Rhouma  wrote:

> What if I want to change the jsp managing such logic which is
> within org.wso2.carbon.user.mgt.ui_5.7.0
> The thing is that WSO2 is becoming unstable once I modify the plugin, I
> even tried differently by putting the jar within patches but it wasn't
> taken into account.
> Any idea how can I replace the default plugin with a another one?
>
>
> Regards,
> Hanen
>
> On Wed, Jan 4, 2017 at 4:59 PM, Darshana Gunawardana 
> wrote:
>
>> Hi Hanen,
>>
>> As of the current behaviour of the management console, it cannot hide
>> primary user store from the drop down for tenant users.
>>
>> There are two ways to enforce this,
>> * Add backend validation for restricting user creation in primary
>> userstore for tenant users (this requires a listener implementation for
>> user management operations)
>> * Write a separate dashboard with these customizations (this requires to
>> develop separate webapp)
>>
>> Thanks,
>>
>> On Wed, Jan 4, 2017 at 7:48 PM, Hanen Ben Rhouma 
>> wrote:
>>
>>> Hi,
>>>
>>> Is there a way to restrict tenant users (having the permission to create
>>> other users) to a secondary user store; I noticed PRIMARY user store is
>>> always there when trying to create a new user even for tenant users, it
>>> leads to some confusion and some users can persist other newly created
>>> users on the PRIMARY, can't we grey out this drop down so that it works for
>>> only one secondary user store?
>>>
>>> Regards,
>>> Hanen
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>>
>> *Darshana Gunawardana*Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>>
>> *E-mail: darsh...@wso2.com *
>> *Mobile: +94718566859 <+94%2071%20856%206859>*Lean . Enterprise .
>> Middleware
>>
>
>
> ___
> 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 for 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


Re: [Dev] [WSO2 IS] Permission to create roles and assign users to them

2017-01-04 Thread Chamila Wijayarathna
Hi,

It looks like you need to have '/permission/admin/manage/identity' to do
this using management console. However, when looking at code if you are
doing it using API calls, having "User Management" and "Role Management"
should be enough to do this.

It should work with "Roles Management" IMO, I'm not sure why it's not
implemented like that.
@Johann, Darshana : Any idea on this?

On Wed, Jan 4, 2017 at 10:42 PM, Hanen Ben Rhouma 
wrote:

>
> Hello,
>
> What is the permission that gives the user the possibility to create roles
> and assign users to them? I tried "Roles Management" permission but it's
> not doing the trick.
>
>
> Regards,
> Hanen
>
> ___
> 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 for 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


Re: [Dev] Logs in Wso2 IS

2017-01-04 Thread Chamila Wijayarathna
Hi Koné,

What you mean by having the log in the management console? You want to see
the log in a UI page in management console?

On Wed, Jan 4, 2017 at 7:37 PM, Koné Alioune Badara <
kon...@etna-alternance.net> wrote:

> Hello,
>
> Thank you for your answers, is there anyway to have this log in the
> management console?
>
> Regards.
>
> 2017-01-04 2:19 GMT+01:00 Chamila Wijayarathna <cdwijayarat...@gmail.com>:
>
>> I reporter issue with audit logs in profile update at [1
>> <https://wso2.org/jira/browse/IDENTITY-5557>]. Please feel free to close
>> if not relevant.
>>
>> [1]. https://wso2.org/jira/browse/IDENTITY-5557
>>
>> On Wed, Jan 4, 2017 at 10:01 AM, Chamila Wijayarathna <
>> cdwijayarat...@gmail.com> wrote:
>>
>>> Hi Koné,
>>>
>>> You can find logs for user creation and deletion at
>>> /repository/logs/audit file. It also logs change password events. However
>>> it does not seem to log user profile update events which IMO should be
>>> logged as well.
>>>
>>> @Johann : Is there any particular reason for not logging user profile
>>> updates at audit logs?
>>>
>>> Regards!
>>>
>>> On Wed, Jan 4, 2017 at 4:05 AM, Koné Alioune Badara <
>>> kon...@etna-alternance.net> wrote:
>>>
>>>> Hello,
>>>>
>>>> Where can I find the logs of user created/updated/deleted in Wso2IS
>>>> management console?
>>>>
>>>> Regards,
>>>>
>>>> --
>>>> Cordialement,
>>>>
>>>> Alioune B KONÉ.
>>>>
>>>> ___
>>>> 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 for Cyber Security
>>> Australian Defence Force Academy
>>> PO Box 7916, Canberra BA ACT 2610
>>> Australia
>>> Mobile:(+61)416895795 <+61%20416%20895%20795>
>>>
>>>
>>
>>
>> --
>> Chamila Dilshan Wijayarathna,
>> PhD Research Student
>> The University of New South Wales (UNSW Canberra)
>> Australian Centre for Cyber Security
>> Australian Defence Force Academy
>> PO Box 7916, Canberra BA ACT 2610
>> Australia
>> Mobile:(+61)416895795 <+61%20416%20895%20795>
>>
>>
>
>
> --
> Cordialement,
>
> Alioune B KONÉ.
> MASTER ETNA 2016.
>



-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for 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


Re: [Dev] Logs in Wso2 IS

2017-01-03 Thread Chamila Wijayarathna
I reporter issue with audit logs in profile update at [1
<https://wso2.org/jira/browse/IDENTITY-5557>]. Please feel free to close if
not relevant.

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

On Wed, Jan 4, 2017 at 10:01 AM, Chamila Wijayarathna <
cdwijayarat...@gmail.com> wrote:

> Hi Koné,
>
> You can find logs for user creation and deletion at /repository/logs/audit
> file. It also logs change password events. However it does not seem to log
> user profile update events which IMO should be logged as well.
>
> @Johann : Is there any particular reason for not logging user profile
> updates at audit logs?
>
> Regards!
>
> On Wed, Jan 4, 2017 at 4:05 AM, Koné Alioune Badara <
> kon...@etna-alternance.net> wrote:
>
>> Hello,
>>
>> Where can I find the logs of user created/updated/deleted in Wso2IS
>> management console?
>>
>> Regards,
>>
>> --
>> Cordialement,
>>
>> Alioune B KONÉ.
>>
>> ___
>> 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 for Cyber Security
> Australian Defence Force Academy
> PO Box 7916, Canberra BA ACT 2610
> Australia
> Mobile:(+61)416895795 <+61%20416%20895%20795>
>
>


-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for 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


Re: [Dev] Logs in Wso2 IS

2017-01-03 Thread Chamila Wijayarathna
Hi Koné,

You can find logs for user creation and deletion at /repository/logs/audit
file. It also logs change password events. However it does not seem to log
user profile update events which IMO should be logged as well.

@Johann : Is there any particular reason for not logging user profile
updates at audit logs?

Regards!

On Wed, Jan 4, 2017 at 4:05 AM, Koné Alioune Badara <
kon...@etna-alternance.net> wrote:

> Hello,
>
> Where can I find the logs of user created/updated/deleted in Wso2IS
> management console?
>
> Regards,
>
> --
> Cordialement,
>
> Alioune B KONÉ.
>
> ___
> 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 for 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


Re: [Dev] Fwd: [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Chamila Wijayarathna
Hi Hanen,

This is my understanding about your requirement. You are trying to get
"publicHolidays" attribute from per user, where each user/admin (I'm not
clear whether user or admin does this operation) can update this attribute
in user profile update page (or is it at user creation time?).

You have added a new claim for this and in the profile update page, you
need to use a jquery date picker to this field. You have updated profile
edit page. where you consider above claim specially and use date picker
there.

If this is what you are trying to do, I think what you have done is okay.
Without replacing the jar in plugins folder, you can create a patch
folder at repository/cpmponents/patches folder at put your jar their. This
is the recommended way.  must be the highest number in the folder. If
your patches folder is empty, use 0001.

Regards!
Chamila

On Sat, Dec 24, 2016 at 1:00 AM, Hanen Ben Rhouma <hanen...@gmail.com>
wrote:

> I have attached the JSP file. Mainly I'm trying to use date picker
> whenever the form field id corresponds to the Claim URI "
> http://wso2.org/claims/publicHolidays;.
> For this I added jquery and jquery-ui and created a javascript function:
>
>
> $( function() { $( "#http://wso2.org/claims/publicHolidays;
> ).datepicker(); } );
>
> The idea is to display the date picker whenever the user is trying to fill
> the field Working Holidays.
>
>
>
>
> Regards,
> Hanen
>
> On Fri, Dec 23, 2016 at 2:47 PM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> What are the changes you are planning to include in front end?
>>
>> On Sat, Dec 24, 2016 at 12:41 AM, Hanen Ben Rhouma <hanen...@gmail.com>
>> wrote:
>>
>>> Actually, I did create a CustomUserStoreManager inheriting from
>>> ReadWriteLDAPUserStoreManager and overrode its method doAuthenticate, I
>>> packaged it as an OSGi bundle and put it under dropins, it's working fine.
>>> I was just looking for a conceptually more adequate solution but as I can
>>> see it's almost the same thing. I agree doPreAuthenticate makes more sense
>>> but it's going to take me the same effort to generate another working
>>> bundle. Although for the front part I need to change the creation form
>>> which corresponds to the component 
>>> org.wso2.carbon.identity.user.profile.ui_5.6.34.
>>> For this I need to recompile the plugin and replace it. Please correct me
>>> if I'm wrong.
>>>
>>> Regards,
>>> Hanen
>>>
>>> On Fri, Dec 23, 2016 at 1:50 PM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
>>>> Hi Hanen,
>>>>
>>>> If you only need the changes we discussed above about authentication
>>>> and no changes for any functionality in identity.mgt component, I think it
>>>> would be better to add your logic as a new component with a new
>>>> implementation of UserStoreEventListener rather than changing identity.mgt
>>>> component. [1] contains a sample component I wrote sometimes back, if you
>>>> need an idea about how to write a carbon component. If you only need
>>>> authentication functionality, your component only need to have pom,
>>>> serviceComponent class and listener implementation. After creating the
>>>> component, you can add the har file to repository/component/dropins folder
>>>> and OSGI will automatically pick it.
>>>>
>>>> Hope that helps!
>>>> Chamila
>>>>
>>>> [1]. https://github.com/wso2/product-is/tree/master/modules/
>>>> samples/workflow/handler/service-provider
>>>>
>>>> On Fri, Dec 23, 2016 at 11:35 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>>>> wrote:
>>>>
>>>>> Thanks Chamila,
>>>>>
>>>>> I think I need then to override IdentityMgtEventListener which is
>>>>> within the jar org.wso2.carbon.identity.mgt_5.6.34.
>>>>>
>>>>> Do I have to use a patch ? If so, do I need to ckeck out the source
>>>>> code of org.wso2.carbon.identity.mgt_5.6.34, change it and deploy a
>>>>> new jar which I need to put within patches directory?
>>>>>
>>>>>
>>>>>
>>>>> Regards,
>>>>> Hanen
>>>>>
>>>>> On Fri, Dec 23, 2016 at 12:49 PM, Chamila Wijayarathna <
>>>>> cdwijayarat...@gmail.com> wrote:
>>>>>
>>>>>> Hi Hanen,
>>>>>>
>>>>>> If you need t

Re: [Dev] Fwd: [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Chamila Wijayarathna
What are the changes you are planning to include in front end?

On Sat, Dec 24, 2016 at 12:41 AM, Hanen Ben Rhouma <hanen...@gmail.com>
wrote:

> Actually, I did create a CustomUserStoreManager inheriting from
> ReadWriteLDAPUserStoreManager and overrode its method doAuthenticate, I
> packaged it as an OSGi bundle and put it under dropins, it's working fine.
> I was just looking for a conceptually more adequate solution but as I can
> see it's almost the same thing. I agree doPreAuthenticate makes more sense
> but it's going to take me the same effort to generate another working
> bundle. Although for the front part I need to change the creation form
> which corresponds to the component org.wso2.carbon.
> identity.user.profile.ui_5.6.34. For this I need to recompile the plugin
> and replace it. Please correct me if I'm wrong.
>
> Regards,
> Hanen
>
> On Fri, Dec 23, 2016 at 1:50 PM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Hanen,
>>
>> If you only need the changes we discussed above about authentication and
>> no changes for any functionality in identity.mgt component, I think it
>> would be better to add your logic as a new component with a new
>> implementation of UserStoreEventListener rather than changing identity.mgt
>> component. [1] contains a sample component I wrote sometimes back, if you
>> need an idea about how to write a carbon component. If you only need
>> authentication functionality, your component only need to have pom,
>> serviceComponent class and listener implementation. After creating the
>> component, you can add the har file to repository/component/dropins folder
>> and OSGI will automatically pick it.
>>
>> Hope that helps!
>> Chamila
>>
>> [1]. https://github.com/wso2/product-is/tree/master/modules/
>> samples/workflow/handler/service-provider
>>
>> On Fri, Dec 23, 2016 at 11:35 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>> wrote:
>>
>>> Thanks Chamila,
>>>
>>> I think I need then to override IdentityMgtEventListener which is
>>> within the jar org.wso2.carbon.identity.mgt_5.6.34.
>>>
>>> Do I have to use a patch ? If so, do I need to ckeck out the source code
>>> of org.wso2.carbon.identity.mgt_5.6.34, change it and deploy a new jar
>>> which I need to put within patches directory?
>>>
>>>
>>>
>>> Regards,
>>> Hanen
>>>
>>> On Fri, Dec 23, 2016 at 12:49 PM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
>>>> Hi Hanen,
>>>>
>>>> If you need to check only working hours and public holidays while
>>>> authentication, you can implement that by implementing a
>>>> UserStoreEventListener [1]. You can implement doPreAuthenticate method in
>>>> your listener implementation and check your time and holiday related logic
>>>> there, and fail authentication if login time is not withing a permitted
>>>> time period. You'll have to save your public holiday list in some
>>>> datasource accessible to this listener.
>>>>
>>>> However, I'm not sure how much effort you'll have to put, if you are
>>>> going to set the public holiday list at tenant creation time.
>>>>
>>>> [1]. https://docs.wso2.com/display/IS510/User+Store+Listeners
>>>>
>>>> On Fri, Dec 23, 2016 at 10:36 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>>>> wrote:
>>>>
>>>>> Thanks Chamila,
>>>>>
>>>>> Let's say it's custom and inherits from LDAPReadWriteUserStoreManager,
>>>>> what are the methods I need to override?
>>>>>
>>>>> Regards,
>>>>> Hanen
>>>>>
>>>>> On Fri, Dec 23, 2016 at 11:25 AM, Chamila Wijayarathna <
>>>>> cdwijayarat...@gmail.com> wrote:
>>>>>
>>>>>> Hi Henen,
>>>>>>
>>>>>> As per my understanding, in this scenario, you'll have to implement a
>>>>>> custom user store manager to extend authentication facilitate your custom
>>>>>> need, In that case you should be able to save this list of holidays in a
>>>>>> datasource which is accessible by your custom user store manager.
>>>>>>
>>>>>>
>>>>>> On Fri, Dec 23, 2016 at 9:16 PM, Hanen Ben Rhouma <hanen...@gmail.com
>>>>>> > wrote:
>>>>>>
>>>>>>> Yes it's per ten

Re: [Dev] Fwd: [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Chamila Wijayarathna
Hi Hanen,

If you only need the changes we discussed above about authentication and no
changes for any functionality in identity.mgt component, I think it would
be better to add your logic as a new component with a new implementation of
UserStoreEventListener rather than changing identity.mgt component. [1]
contains a sample component I wrote sometimes back, if you need an idea
about how to write a carbon component. If you only need authentication
functionality, your component only need to have pom, serviceComponent class
and listener implementation. After creating the component, you can add the
har file to repository/component/dropins folder and OSGI will automatically
pick it.

Hope that helps!
Chamila

[1].
https://github.com/wso2/product-is/tree/master/modules/samples/workflow/handler/service-provider

On Fri, Dec 23, 2016 at 11:35 PM, Hanen Ben Rhouma <hanen...@gmail.com>
wrote:

> Thanks Chamila,
>
> I think I need then to override IdentityMgtEventListener which is within
> the jar org.wso2.carbon.identity.mgt_5.6.34.
>
> Do I have to use a patch ? If so, do I need to ckeck out the source code
> of org.wso2.carbon.identity.mgt_5.6.34, change it and deploy a new jar
> which I need to put within patches directory?
>
>
>
> Regards,
> Hanen
>
> On Fri, Dec 23, 2016 at 12:49 PM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Hanen,
>>
>> If you need to check only working hours and public holidays while
>> authentication, you can implement that by implementing a
>> UserStoreEventListener [1]. You can implement doPreAuthenticate method in
>> your listener implementation and check your time and holiday related logic
>> there, and fail authentication if login time is not withing a permitted
>> time period. You'll have to save your public holiday list in some
>> datasource accessible to this listener.
>>
>> However, I'm not sure how much effort you'll have to put, if you are
>> going to set the public holiday list at tenant creation time.
>>
>> [1]. https://docs.wso2.com/display/IS510/User+Store+Listeners
>>
>> On Fri, Dec 23, 2016 at 10:36 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>> wrote:
>>
>>> Thanks Chamila,
>>>
>>> Let's say it's custom and inherits from LDAPReadWriteUserStoreManager,
>>> what are the methods I need to override?
>>>
>>> Regards,
>>> Hanen
>>>
>>> On Fri, Dec 23, 2016 at 11:25 AM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
>>>> Hi Henen,
>>>>
>>>> As per my understanding, in this scenario, you'll have to implement a
>>>> custom user store manager to extend authentication facilitate your custom
>>>> need, In that case you should be able to save this list of holidays in a
>>>> datasource which is accessible by your custom user store manager.
>>>>
>>>>
>>>> On Fri, Dec 23, 2016 at 9:16 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>>>> wrote:
>>>>
>>>>> Yes it's per tenant but this attribute is taken into account for each
>>>>> user authentication request.
>>>>>
>>>>>
>>>>>
>>>>> Regards,
>>>>> Hanen
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Dec 23, 2016 at 10:53 AM, Chamila Wijayarathna <
>>>>> cdwijayarat...@gmail.com> wrote:
>>>>>
>>>>>> Hi Hanen,
>>>>>>
>>>>>> What is the purpose of getting list of publicHolidays in user
>>>>>> creation form? Public Holidays attribute is not per user thing, is it?
>>>>>>
>>>>>>
>>>>>> On Fri, Dec 23, 2016 at 8:48 PM, Hanen Ben Rhouma <hanen...@gmail.com
>>>>>> > wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> Is it possible to store in an external  LDAP an attribute
>>>>>>> representing publicHolidays which is a list of dates, the idea is to 
>>>>>>> have a
>>>>>>> custom attribute within the user creation form which accepts comma
>>>>>>> separated dates through a date picker widget.
>>>>>>>
>>>>>>> Do you think it's feasible within WSO2 IS?
>>>>>>>
>>>>>>>
>>>>>>> Regards,
>>>>>>> Hanen
>>>>>>>
>>>>>>> _

Re: [Dev] [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Chamila Wijayarathna
Hi Henen,

As per my understanding, in this scenario, you'll have to implement a
custom user store manager to extend authentication facilitate your custom
need, In that case you should be able to save this list of holidays in a
datasource which is accessible by your custom user store manager.


On Fri, Dec 23, 2016 at 9:16 PM, Hanen Ben Rhouma <hanen...@gmail.com>
wrote:

> Yes it's per tenant but this attribute is taken into account for each user
> authentication request.
>
>
>
> Regards,
> Hanen
>
>
>
>
> On Fri, Dec 23, 2016 at 10:53 AM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Hanen,
>>
>> What is the purpose of getting list of publicHolidays in user creation
>> form? Public Holidays attribute is not per user thing, is it?
>>
>>
>> On Fri, Dec 23, 2016 at 8:48 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>> wrote:
>>
>>> Hello,
>>>
>>> Is it possible to store in an external  LDAP an attribute representing
>>> publicHolidays which is a list of dates, the idea is to have a custom
>>> attribute within the user creation form which accepts comma separated dates
>>> through a date picker widget.
>>>
>>> Do you think it's feasible within WSO2 IS?
>>>
>>>
>>> Regards,
>>> Hanen
>>>
>>> ___
>>> 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 for Cyber Security
>> Australian Defence Force Academy
>> PO Box 7916, Canberra BA ACT 2610
>> Australia
>> Mobile:(+61)416895795 <+61%20416%20895%20795>
>>
>>
>


-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for 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


Re: [Dev] [IS] Customize user creation form with a date picker widget

2016-12-23 Thread Chamila Wijayarathna
Hi Hanen,

What is the purpose of getting list of publicHolidays in user creation
form? Public Holidays attribute is not per user thing, is it?


On Fri, Dec 23, 2016 at 8:48 PM, Hanen Ben Rhouma 
wrote:

> Hello,
>
> Is it possible to store in an external  LDAP an attribute representing
> publicHolidays which is a list of dates, the idea is to have a custom
> attribute within the user creation form which accepts comma separated dates
> through a date picker widget.
>
> Do you think it's feasible within WSO2 IS?
>
>
> Regards,
> Hanen
>
> ___
> 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 for 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


Re: [Dev] WSO2 IS 5.3.0 Beta

2016-12-08 Thread Chamila Wijayarathna
Hi Hanen,

Even though governance is an independent extension, by default it is
integrated with IS, so you don't have to install it by your own.

I think you have confused, because "Identity Governance" UI which was
available in previous release is not available in current release. This is
because this has been moved to a different UI page.

If you start your IS, Go to *Identity Providers -- > List* under
*Identity *menu,
then click on *Resident Identity Provider*.

There you can access the features and configurations that was previously
available under *Identity Governance*.


[image: Inline image 2]

I don't think documentation has not been updated yet, but there is already
a jira to track this changes [1].

Hope this helps.

[1]. https://wso2.org/jira/browse/DOCUMENTATION-4089

Regards!


On Fri, Dec 9, 2016 at 12:10 AM, Hanen Ben Rhouma <hanen...@gmail.com>
wrote:

> You chose to move it to an independent extension but I still can integrate
> it within WSO2 IS if I want to I suppose, can you explain how can I achieve
> that ?
>
> I did clone the extension code, built the the jar file and put it under
> extensions directory but I still can't see the module within the
> administration console.
>
>
>
>
>
> On Thu, Dec 8, 2016 at 12:15 PM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> I'm not very clear about the issue you are having. Can you explain?
>>
>> On Thu, Dec 8, 2016 at 10:10 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>> wrote:
>>
>>> How to integrate it within WSO2 IS ?
>>>
>>>
>>>
>>> On Thu, Dec 8, 2016 at 11:42 AM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Are you referring to Identity Governance UI?
>>>> I think it has been moved to Resident IDP UI[1].
>>>>
>>>> [1]. https://wso2.org/jira/browse/IDENTITY-5221
>>>>
>>>> On Thu, Dec 8, 2016 at 9:31 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> Why did you guys remove Governance module from WSO2 IS 5.3.0 Beta ?
>>>>>
>>>>>
>>>>> Regards,
>>>>> Hanen
>>>>>
>>>>> ___
>>>>> 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 for Cyber Security
>>>> Australian Defence Force Academy
>>>> PO Box 7916, Canberra BA ACT 2610
>>>> Australia
>>>> Mobile:(+61)416895795 <+61%20416%20895%20795>
>>>>
>>>>
>>>
>>
>>
>> --
>> Chamila Dilshan Wijayarathna,
>> PhD Research Student
>> The University of New South Wales (UNSW Canberra)
>> Australian Centre for Cyber Security
>> Australian Defence Force Academy
>> PO Box 7916, Canberra BA ACT 2610
>> Australia
>> Mobile:(+61)416895795 <+61%20416%20895%20795>
>>
>>
>


-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for 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


Re: [Dev] WSO2 IS 5.3.0 Beta

2016-12-08 Thread Chamila Wijayarathna
I'm not very clear about the issue you are having. Can you explain?

On Thu, Dec 8, 2016 at 10:10 PM, Hanen Ben Rhouma <hanen...@gmail.com>
wrote:

> How to integrate it within WSO2 IS ?
>
>
>
> On Thu, Dec 8, 2016 at 11:42 AM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi,
>>
>> Are you referring to Identity Governance UI?
>> I think it has been moved to Resident IDP UI[1].
>>
>> [1]. https://wso2.org/jira/browse/IDENTITY-5221
>>
>> On Thu, Dec 8, 2016 at 9:31 PM, Hanen Ben Rhouma <hanen...@gmail.com>
>> wrote:
>>
>>> Hello,
>>>
>>> Why did you guys remove Governance module from WSO2 IS 5.3.0 Beta ?
>>>
>>>
>>> Regards,
>>> Hanen
>>>
>>> ___
>>> 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 for Cyber Security
>> Australian Defence Force Academy
>> PO Box 7916, Canberra BA ACT 2610
>> Australia
>> Mobile:(+61)416895795 <+61%20416%20895%20795>
>>
>>
>


-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for 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


Re: [Dev] WSO2 IS 5.3.0 Beta

2016-12-08 Thread Chamila Wijayarathna
Hi,

Are you referring to Identity Governance UI?
I think it has been moved to Resident IDP UI[1].

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

On Thu, Dec 8, 2016 at 9:31 PM, Hanen Ben Rhouma  wrote:

> Hello,
>
> Why did you guys remove Governance module from WSO2 IS 5.3.0 Beta ?
>
>
> Regards,
> Hanen
>
> ___
> 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 for 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


Re: [Dev] Password Policy in WSO2 Identity Server

2016-11-21 Thread Chamila Wijayarathna
Hi Hanen,

Per tenant support for identity management features including password
policy is planned for IS 5.3.0 version, which is not released yet.

You can try this in IS 5.3.0 ALPHA2 [1] which is released recently. But I'm
not sure if there is any documentation available for this yet.

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

Regards!

On Tue, Nov 22, 2016 at 2:10 AM, Hanen Ben Rhouma 
wrote:

> Hello,
>
> Does WSO2 IS support password policy definition per tenant ? If so, is
> there any documentation about it ?
>
>
> Regards,
> Hanen
>
> ___
> 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 for 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


Re: [Dev] Delete operation on /Me endpoint in SCIM 2.0

2016-11-10 Thread Chamila Wijayarathna
Hi,

+1 for handling this with scenario with a 501 for only C4.

On Fri, Nov 11, 2016 at 4:36 PM, Darshana Gunawardana 
wrote:

>
>
> On Fri, Nov 11, 2016 at 10:27 AM, Vindula Jayawardana 
> wrote:
>
>> Hi All,
>>
>> In SCIM /Me endpoint, an authenticated user should be able to delete
>> himself as mentioned in specification [1]. However when I try to do that
>> using the current user core, I get a user store exception saying
>> 'LoggedInUser Cannot delete logged in user'.
>>
>> One way of how I can handle this is , as mentioned in specification
>> itself [2], can respond to HTTP DELETE on /Me endpoint with a HTTP status
>> code 501 as we can not support it.
>>
>
> +1. This is ok for C4. But with the C5 i don't think we have a restriction
> on this.
>
> Thanks,
>
>
>> Or else is there any other good way of handling this ?
>>
>> Any thoughts on this is highly appreciated.
>>
>> [1] https://tools.ietf.org/html/rfc7644#section-3.2
>> [2] https://tools.ietf.org/html/rfc7644#section-3.11
>> --
>> *Vindula Jayawardana*
>> Trainee Software Engineer
>> Mobile : +94 713 462554
>> Email : vind...@wso2.com
>>
>
>
>
> --
> Regards,
>
>
> *Darshana Gunawardana*Associate Technical Lead
> WSO2 Inc.; http://wso2.com
>
> *E-mail: darsh...@wso2.com *
> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>
> ___
> 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 for 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


Re: [Dev] WSO2 Committers += Farasath Ahamed

2016-10-24 Thread Chamila Wijayarathna
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


Re: [Dev] [IS] C5 Support for filtering

2016-10-18 Thread Chamila Wijayarathna
Hi Johann, Vindula,

On Tue, Oct 18, 2016 at 3:59 PM, Johann Nallathamby  wrote:

>
>
> On Tue, Oct 18, 2016 at 10:05 AM, Vindula Jayawardana 
> wrote:
>
>> Hi All,
>>
>> With the current user core implementation we support only the equal
>> filter (e.g. userName Eq "john"). However SCIM 2.0 specification [1]
>> specify total of 10 such simple filters and complex filters which are
>> combinations of simple filters using logical and grouping operators (e.g.
>> userType ne "Employee" and not (emails co "example.com" or emails.value
>> co "example.org")). As we are in the process of C5 implementation, have
>> we considered the other filter type implementations as well?
>>
>
> Yes we need to consider these features in the extended user-core
> implementation.
>
>>
>> Moreover if we are supporting the complex filters, are we supporting it
>> by simple filter by filter basis or the entire complex filter as a whole?
>> If we are looking for the simple filter by filter basis, there will be
>> performance issues as well.
>>
>
> It is better if we provide complex filters from extended user-core itself
> for performance reasons. However if time doesn't permit to implement all
> those APIs, we can have a scim UserManager implementation which will call
> multiple simple filters and combine the result and return. Obviously as you
> said performance of such implementation will be low. But it is acceptable
> as an interim solution until extended user-core implementation supports all
> the filters.
>
Can you please explain, what you refer as complex filters here? I think we
need to implement operators listed in table 3 and 4 in the specification
and implement a generic way to build complex queries reusing them. I don't
think it would be practical to more complex filters, there can be large
amount of complex filters that can be created by combining these simple
filter. Please correct me if I'm wrong.

Also what different would it made when we are handling these filters in
user-core level and when handling using scimUserManager level? Are you
reffering to the fact that when we need "username sw a" , we can retrieve
only  the users who have username start with 'a' from database/ldap, so
that we can achieve higher performance?

In addition to that, I believe it would be good to consider other SCIM
operations such as sorting and pagination at the same time. If we can come
up with a generic design, that would be better. Otherwise, we'll have to
put a huge effort to embed those functionalities again.

Cheers
-Chamila

>
>> Any thoughts on the matter is highly appreciated.
>>
>> [1] https://tools.ietf.org/html/rfc7644#section-3.4.2.2
>>
>> Thank you,
>>
>> *Vindula Jayawardana*
>> Trainee Software Engineer
>> Mobile : +94 713 462554
>> vind...@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 *
>
> ___
> 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


Re: [Dev] Latest Test Automation framework

2016-09-16 Thread Chamila Wijayarathna
Hi,

It seems like product-esb is using carbon-platform-integration version
4.4.2 [1].
Integration tests seems to be there at [2] (Please check, I'm not much
familiar with ESB).
I'm not sure from where does features come from, may be from
carbon-mediation repo [3].

[1]. https://github.com/wso2/product-esb/blob/master/pom.xml
[2].
https://github.com/wso2/product-esb/tree/master/modules/integration/tests-integration
[3]. https://github.com/wso2/carbon-mediation

On Fri, Sep 16, 2016 at 5:25 PM, Palani Tester <tmpal...@outlook.com> wrote:

> Hi Chamila,
>
>
> Thanks a lot for the quick response.
>
>
> Where can I get sample code (ESB application + tests) as per the latest
> Test automation framework..?
>
>
>
> Thanks,
>
> Palani
> --
> *From:* Chamila Wijayarathna <cdwijayarat...@gmail.com>
> *Sent:* Friday, September 16, 2016 12:47:04 PM
> *To:* Palani Tester
> *Cc:* dev@wso2.org
> *Subject:* Re: [Dev] Latest Test Automation framework
>
> Hi there,
>
> I think you should use carbon-platform-integration version 4.4.3 which is
> available in github [1]. AFAIK this is the latest released version.
> Since the article seems to be written on version 4.0.0, there can be some
> missing features and new features in the latest version.
>
> Cheers.
>
> [1]. https://github.com/wso2/carbon-platform-integration/
> tree/release-4.4.3
>
> On Fri, Sep 16, 2016 at 5:06 PM, Palani Tester <tmpal...@outlook.com>
> wrote:
>
>> Hi Team,
>>
>>
>> I'm looking for latest test automation framework. Got repositories from
>> SVN & Git. Tried those frameworks based on this article -
>> http://wso2.com/library/articles/2014/03/platform-test-
>> automation-using-wso2-test-automation-framework/. But few APIs are
>> missing. Which one is the latest one?
>>
>>
>> SVN - Source code:
>>
>> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/platfo
>> rm-integration
>>
>>
>>
>>
>>
>> GitHub - Source code
>>
>> https://github.com/wso2/carbon-platform-integration
>>
>>
>>
>> <http://wso2.com/library/articles/2014/03/platform-test-automation-using-wso2-test-automation-framework/>
>> Thanks,
>>
>> Palani
>>
>> ___
>> 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
>
>


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


Re: [Dev] Unit Testing for ESB class mediators

2016-09-16 Thread Chamila Wijayarathna
Hi there,

If you are interested in unit tests, AFAIK you don't need to use TAF to
achieve this. From my experience with identity-server project, there we
mainly use TAF for integration tests and use junit for unit tests. Please
refer example at [1].

However, I am not sure if this is the case in ESB of mediators.

Hope that helps.

Cheers!

[1].
https://github.com/wso2/carbon-identity/blob/master/components/user-mgt/org.wso2.carbon.user.mgt/src/test/java/org/wso2/carbon/user/core/LDAPTestCase.java

On Thu, Sep 15, 2016 at 8:16 PM, Palani Tester  wrote:

> Hi Team,
>
>
>
> I’m going through WSO2 Test Automation framework for our project.  My
> requirement is to develop unit tests for  all ESB class mediators. I got
> below link, which saying that Unit testing will not be possible using Test
> Automation framework.
>
>
>
> https://docs.wso2.com/display/TA430/Unit+Testing
>
>
>
> Please address following queries.
>
>1. Is it possible to develop Unit testing scripts using Test
>Automation Framework for ESB class mediators?
>2. If Yes, Please share the reference links
>3. If No, Is there any other ways to do Unit Testing?
>4. What is the acceptable code coverage limit for ESB class mediators?
>
> Thanks,
>
> Palani
>
> ___
> 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


Re: [Dev] Latest Test Automation framework

2016-09-16 Thread Chamila Wijayarathna
Hi there,

I think you should use carbon-platform-integration version 4.4.3 which is
available in github [1]. AFAIK this is the latest released version.
Since the article seems to be written on version 4.0.0, there can be some
missing features and new features in the latest version.

Cheers.

[1]. https://github.com/wso2/carbon-platform-integration/tree/release-4.4.3

On Fri, Sep 16, 2016 at 5:06 PM, Palani Tester  wrote:

> Hi Team,
>
>
> I'm looking for latest test automation framework. Got repositories from
> SVN & Git. Tried those frameworks based on this article -
> http://wso2.com/library/articles/2014/03/platform-
> test-automation-using-wso2-test-automation-framework/. But few APIs are
> missing. Which one is the latest one?
>
>
> SVN - Source code:
>
> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/platform-integration
>
>
>
>
>
> GitHub - Source code
>
> https://github.com/wso2/carbon-platform-integration
>
>
>
> 
> Thanks,
>
> Palani
>
> ___
> 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


Re: [Dev] [VOTE] Release WSO2 Identity Server 5.2.0- RC1

2016-09-12 Thread Chamila Wijayarathna
Hi all,

I tested following functionality in RC pack in Windows 10 with java 8.

   - Dashboard Operations (Login to dashboard, Self Sign Up, Update
   Profile, Change Password, Update Challenge Questions, Associate two local
   account, Switch between local account)
   - Workflow feature with embedded BPS (Create workflow, Create
   association, Apply if condition with associations, approve event, reject
   event, delete event, dashboard gadget)

No blocking issues found. Only minor issues found and created jiras[1][2]
for them.

 [+] Stable - go ahead and release

   1. https://wso2.org/jira/browse/IDENTITY-5120
   2. https://wso2.org/jira/browse/IDENTITY-5121


On Sat, Sep 10, 2016 at 12:18 PM, Kasun Bandara  wrote:

> Hi All,
>
> This is the 1st Release Candidate of WSO2 Identity Server 5.2.0
>
> Please download, test the product and vote. Vote will be open for 72 hours
> or as needed.
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=13329
>
> Source and distribution
>
> Run-time   : https://github.com/wso2/product-is/releases/tag/v5.2.
> 0-rc1
> Analytics   : https://github.com/wso2/analytics-is/releases/tag/v5.
> 2.0-rc1
>
> Please vote as follows.
> [+] Stable - go ahead and release
> [-] Broken - do not release (explain why)
>
> Thanks,
> - WSO2 Identity Server Team -
>
> --
> Kasun Bandara
> *Software Engineer*
> Mobile : +94 (0) 718 338 360
> <%2B94%20%280%29%20773%20451194>
> kas...@wso2.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


Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-19 Thread Chamila Wijayarathna
Hi Asantha,

For creating new orbit, you will have to send 1 PR to wso2/orbit
repository[1] as well. There inside json folder, you'll have to define a
new json orbit with new version (eg: 3.0.0wso2v2) and there you will have
to refer the new json version you are depending on.

In your PR, you are referring to 3.0.0wso2v1 which is depending on the
older version we are talking about. So this will still cause the issue you
are talking.

Thank You!

On Sat, Aug 20, 2016 at 12:47 AM, Asantha Thilina <asanthathil...@gmail.com>
wrote:

> Hi Johann,
>
> first of all ,sorry for the late reply earlier i wasn't added org.json to
> bundleDef now i have fixed the issue and i have added new orbit as chamila
> mentioned for org.json as defined in here[1] i have added version 20160212
> because version 20140107  which is already in IS causing some problems
> for my userstore methods even it successfully deployed ,after adding
> version 20160212 solved the issue now my userstore is deploy org.json  
> 20160212
>  also to the IS during packaging and i have updated the PR[2] with the
> latest modifications
>
> [1]https://github.com/wso2/orbit/blob/master/json/3.0.0.wso2v1/pom.xml
> [2]https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1
>
> thanks,
> Asantha
>
> On Fri, Aug 19, 2016 at 5:45 AM, Johann Nallathamby <joh...@wso2.com>
> wrote:
>
>> Hi Asantha,
>>
>> As Chamila mentioned you need to bundle the required library in your
>> feature as well, so that it is self contained, and can be installed
>> independently in any carbon server.
>>
>> Have you added that in your PR? I couldn't see a bundleDef for org.json.
>>
>> Regards,
>> Johann.
>>
>> On Fri, Aug 19, 2016 at 3:04 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> First of all let me apologize for the late reply ,I have changed the
>>> org.json version as chamila said and now it's working no need to add json
>>> lib manually and version changed will not affected to any of my code i have
>>> updated the PR[1] with latest modifications now it's need
>>> mongodb-java-driver only to run the module no other extra library required
>>>
>>> [1]https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Fri, Aug 19, 2016 at 1:26 AM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
>>>> Hi Asantha,
>>>>
>>>> If you have used any new features of org.json which is not available in
>>>> that old version, I think you will have to create an orbit with new
>>>> org.json version.
>>>>
>>>> And I think it (either new or old version) need to be packed in your
>>>> feature, so it can be installed into any carbon based product.
>>>>
>>>> Thanks!
>>>>
>>>> On Fri, Aug 19, 2016 at 3:17 PM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Chamila,
>>>>>
>>>>> ok thanks for the comment then i will change the version of my
>>>>> dependency and test it
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>> On Fri, Aug 19, 2016 at 1:13 AM, Chamila Wijayarathna <
>>>>> cdwijayarat...@gmail.com> wrote:
>>>>>
>>>>>> Hi Asantha, Tharindu,
>>>>>>
>>>>>> I think IS already packs json, but the version is 20140107 which
>>>>>> comes from wso2 orbit bundle [1]. You are receiving the error due to
>>>>>> version mismatch, because you are using  version 20160212.
>>>>>>
>>>>>> Can you try using existing dependency and check if your features work
>>>>>> okay with that version?\\
>>>>>>
>>>>>> Thank You!
>>>>>>
>>>>>> [1]. https://github.com/wso2/orbit/blob/master/json/3.0.0.wso2v1
>>>>>>
>>>>>> On Fri, Aug 19, 2016 at 3:03 PM, Tharindu Edirisinghe <
>>>>>> tharin...@wso2.com> wrote:
>>>>>>
>>>>>>> I meant shipping with the product... by packing with the product.
>>>>>>>
>>>>>>> Yes, it should be packed by the feature.
>>>>>>>
>>>>>>> I'll look more into Charon's dependency as well.
>>>>>>>
>>>>>>&g

Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-18 Thread Chamila Wijayarathna
Hi Asantha,

If you have used any new features of org.json which is not available in
that old version, I think you will have to create an orbit with new
org.json version.

And I think it (either new or old version) need to be packed in your
feature, so it can be installed into any carbon based product.

Thanks!

On Fri, Aug 19, 2016 at 3:17 PM, Asantha Thilina <asanthathil...@gmail.com>
wrote:

> Hi Chamila,
>
> ok thanks for the comment then i will change the version of my dependency
> and test it
>
> Thanks,
> Asantha
>
> On Fri, Aug 19, 2016 at 1:13 AM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Asantha, Tharindu,
>>
>> I think IS already packs json, but the version is 20140107 which comes
>> from wso2 orbit bundle [1]. You are receiving the error due to version
>> mismatch, because you are using  version 20160212.
>>
>> Can you try using existing dependency and check if your features work
>> okay with that version?\\
>>
>> Thank You!
>>
>> [1]. https://github.com/wso2/orbit/blob/master/json/3.0.0.wso2v1
>>
>> On Fri, Aug 19, 2016 at 3:03 PM, Tharindu Edirisinghe <tharin...@wso2.com
>> > wrote:
>>
>>> I meant shipping with the product... by packing with the product.
>>>
>>> Yes, it should be packed by the feature.
>>>
>>> I'll look more into Charon's dependency as well.
>>>
>>> On Fri, Aug 19, 2016 at 10:26 AM, Chamila Wijayarathna <
>>> cdwijayarat...@gmail.com> wrote:
>>>
>>>> Hi Harsha,
>>>>
>>>> The license seems to be okay, isn't it? It doesn't mention anything
>>>> that prevent us from using it. Also I think we use same library for json
>>>> related stuff in charon as well. So it can't be an issue IMO.
>>>>
>>>> @Tharindu, Why we should pack this in product? Shouldn't we pack this
>>>> in the feature?
>>>>
>>>> Thank You!
>>>>
>>>> On Fri, Aug 19, 2016 at 2:11 PM, Harsha Thirimanna <hars...@wso2.com>
>>>> wrote:
>>>>
>>>>> As in the license, there are some restrictions.
>>>>>
>>>>> http://www.json.org/license.html
>>>>>
>>>>> *Harsha Thirimanna*
>>>>> Associate Tech Lead | WSO2
>>>>>
>>>>> Email: hars...@wso2.com
>>>>> Mob: +94715186770
>>>>> Blog: http://harshathirimanna.blogspot.com/
>>>>> Twitter: http://twitter.com/harshathirimann
>>>>> Linked-In: linked-in: http://www.linkedin.com/pub/ha
>>>>> rsha-thirimanna/10/ab8/122
>>>>> <http://wso2.com/signature>
>>>>>
>>>>> On Fri, Aug 19, 2016 at 9:30 AM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Thanks Asantha.
>>>>>>
>>>>>> @Johann/Darshana - Would it be possible to pack org.json [1]
>>>>>> dependency to the product itself ?
>>>>>>
>>>>>> [1] https://mvnrepository.com/artifact/org.json/json/20160212
>>>>>>
>>>>>> Regards,
>>>>>> TharinduE
>>>>>>
>>>>>> On Fri, Aug 19, 2016 at 12:48 AM, Asantha Thilina <
>>>>>> asanthathil...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Tharindu,
>>>>>>>
>>>>>>> As you instructed i have finished all above process and i already
>>>>>>> sent a PR[1] to product-is with my modifications and earlier i have 
>>>>>>> sent a
>>>>>>> PR[2] to identity-userstore-mongodb
>>>>>>> during the deployment of the product-is i face the following issue
>>>>>>> In my MongoDBUserStoreManager plugin i will be using org.json[2] lib
>>>>>>> for query purposes so it is a dependent for my plugin to work ,For the
>>>>>>> moment i manually added json lib to dropin folder to activate my bundle
>>>>>>> otherwise i will get following error when i open osgi console and 
>>>>>>> checked
>>>>>>> Missing optionally imported package org.json_[20160212.0.0,2016021
>>>>>>> 3.0.0).
>>>>>>> In order to activate the bundle need to add mongo-java-driver[4]
>>>>>>> also to dropins folder after that it will activate successfully,
>>>>>>>

Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-18 Thread Chamila Wijayarathna
Hi Asantha, Tharindu,

I think IS already packs json, but the version is 20140107 which comes from
wso2 orbit bundle [1]. You are receiving the error due to version mismatch,
because you are using  version 20160212.

Can you try using existing dependency and check if your features work okay
with that version?\\

Thank You!

[1]. https://github.com/wso2/orbit/blob/master/json/3.0.0.wso2v1

On Fri, Aug 19, 2016 at 3:03 PM, Tharindu Edirisinghe <tharin...@wso2.com>
wrote:

> I meant shipping with the product... by packing with the product.
>
> Yes, it should be packed by the feature.
>
> I'll look more into Charon's dependency as well.
>
> On Fri, Aug 19, 2016 at 10:26 AM, Chamila Wijayarathna <
> cdwijayarat...@gmail.com> wrote:
>
>> Hi Harsha,
>>
>> The license seems to be okay, isn't it? It doesn't mention anything that
>> prevent us from using it. Also I think we use same library for json related
>> stuff in charon as well. So it can't be an issue IMO.
>>
>> @Tharindu, Why we should pack this in product? Shouldn't we pack this in
>> the feature?
>>
>> Thank You!
>>
>> On Fri, Aug 19, 2016 at 2:11 PM, Harsha Thirimanna <hars...@wso2.com>
>> wrote:
>>
>>> As in the license, there are some restrictions.
>>>
>>> http://www.json.org/license.html
>>>
>>> *Harsha Thirimanna*
>>> Associate Tech Lead | WSO2
>>>
>>> Email: hars...@wso2.com
>>> Mob: +94715186770
>>> Blog: http://harshathirimanna.blogspot.com/
>>> Twitter: http://twitter.com/harshathirimann
>>> Linked-In: linked-in: http://www.linkedin.com/pub/ha
>>> rsha-thirimanna/10/ab8/122
>>> <http://wso2.com/signature>
>>>
>>> On Fri, Aug 19, 2016 at 9:30 AM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
>>>> Thanks Asantha.
>>>>
>>>> @Johann/Darshana - Would it be possible to pack org.json [1] dependency
>>>> to the product itself ?
>>>>
>>>> [1] https://mvnrepository.com/artifact/org.json/json/20160212
>>>>
>>>> Regards,
>>>> TharinduE
>>>>
>>>> On Fri, Aug 19, 2016 at 12:48 AM, Asantha Thilina <
>>>> asanthathil...@gmail.com> wrote:
>>>>
>>>>> Hi Tharindu,
>>>>>
>>>>> As you instructed i have finished all above process and i already sent
>>>>> a PR[1] to product-is with my modifications and earlier i have sent a 
>>>>> PR[2]
>>>>> to identity-userstore-mongodb
>>>>> during the deployment of the product-is i face the following issue
>>>>> In my MongoDBUserStoreManager plugin i will be using org.json[2] lib
>>>>> for query purposes so it is a dependent for my plugin to work ,For the
>>>>> moment i manually added json lib to dropin folder to activate my bundle
>>>>> otherwise i will get following error when i open osgi console and checked
>>>>> Missing optionally imported package org.json_[20160212.0.0,2016021
>>>>> 3.0.0).
>>>>> In order to activate the bundle need to add mongo-java-driver[4] also
>>>>> to dropins folder after that it will activate successfully,
>>>>> Is there any method to ship the json lib also with my bundle when
>>>>> deploying it to IS?
>>>>> [1]https://github.com/wso2/product-is/pull/668
>>>>> [2]https://github.com/wso2-extensions/identity-userstore-mon
>>>>> godb/pull/1
>>>>> [3]https://mvnrepository.com/artifact/org.json/json/20160212
>>>>> [4]https://mvnrepository.com/artifact/org.mongodb/mongo-java
>>>>> -driver/3.2.2
>>>>>
>>>>> Thanks,
>>>>> Asantha
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Aug 18, 2016 at 2:19 AM, Tharindu Edirisinghe <
>>>>> tharin...@wso2.com> wrote:
>>>>>
>>>>>> Hi Asntha,
>>>>>>
>>>>>> Please follow steps below to complete the project.
>>>>>>
>>>>>> 1. In your features [1] folder, you have to create etc folder and put
>>>>>> feature.properties file in it. This is same as [2].
>>>>>> 2. You have to create server.feature in [1]. Refer [3] and do the
>>>>>> same. Make necessary modifications to pom file.
>>>>>> 3. Once you do above, you can commit and push so that your PR [4]
>>>>>> will automatic

Re: [Dev] [GSoC Final Evaluation] Proposal 21: [IS] Document Based NoSQL Support for WSO2 Identity Server Database

2016-08-18 Thread Chamila Wijayarathna
Hi Harsha,

The license seems to be okay, isn't it? It doesn't mention anything that
prevent us from using it. Also I think we use same library for json related
stuff in charon as well. So it can't be an issue IMO.

@Tharindu, Why we should pack this in product? Shouldn't we pack this in
the feature?

Thank You!

On Fri, Aug 19, 2016 at 2:11 PM, Harsha Thirimanna  wrote:

> As in the license, there are some restrictions.
>
> http://www.json.org/license.html
>
> *Harsha Thirimanna*
> Associate Tech Lead | WSO2
>
> Email: hars...@wso2.com
> Mob: +94715186770
> Blog: http://harshathirimanna.blogspot.com/
> Twitter: http://twitter.com/harshathirimann
> Linked-In: linked-in: http://www.linkedin.com/pub/
> harsha-thirimanna/10/ab8/122
> 
>
> On Fri, Aug 19, 2016 at 9:30 AM, Tharindu Edirisinghe 
> wrote:
>
>> Thanks Asantha.
>>
>> @Johann/Darshana - Would it be possible to pack org.json [1] dependency
>> to the product itself ?
>>
>> [1] https://mvnrepository.com/artifact/org.json/json/20160212
>>
>> Regards,
>> TharinduE
>>
>> On Fri, Aug 19, 2016 at 12:48 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> As you instructed i have finished all above process and i already sent a
>>> PR[1] to product-is with my modifications and earlier i have sent a PR[2]
>>> to identity-userstore-mongodb
>>> during the deployment of the product-is i face the following issue
>>> In my MongoDBUserStoreManager plugin i will be using org.json[2] lib for
>>> query purposes so it is a dependent for my plugin to work ,For the moment i
>>> manually added json lib to dropin folder to activate my bundle otherwise i
>>> will get following error when i open osgi console and checked
>>> Missing optionally imported package org.json_[20160212.0.0,2016021
>>> 3.0.0).
>>> In order to activate the bundle need to add mongo-java-driver[4] also to
>>> dropins folder after that it will activate successfully,
>>> Is there any method to ship the json lib also with my bundle when
>>> deploying it to IS?
>>> [1]https://github.com/wso2/product-is/pull/668
>>> [2]https://github.com/wso2-extensions/identity-userstore-mongodb/pull/1
>>> [3]https://mvnrepository.com/artifact/org.json/json/20160212
>>> [4]https://mvnrepository.com/artifact/org.mongodb/mongo-java
>>> -driver/3.2.2
>>>
>>> Thanks,
>>> Asantha
>>>
>>>
>>>
>>> On Thu, Aug 18, 2016 at 2:19 AM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
 Hi Asntha,

 Please follow steps below to complete the project.

 1. In your features [1] folder, you have to create etc folder and put
 feature.properties file in it. This is same as [2].
 2. You have to create server.feature in [1]. Refer [3] and do the same.
 Make necessary modifications to pom file.
 3. Once you do above, you can commit and push so that your PR [4] will
 automatically get these changes appended.

 Next step is to add this feature to IS product so when the product is
 built, the jar file is automatically packed to the product. For that,
 follow the instructions below.

 4. Clone product-is [5] and do a clean repo build skipping tests. (you
 can just backup .m2 directory in your home and create an empty folder with
 name .m2. Then you can run mvn clean install -Dmaven.test.skip=true"
 command in product-is.
 5. Once the product is built, you can get the zip file in
 modules/distribution folder. Run the product and check if you can access
 management console.
 6. Next step is to build your feature so local m2 repository get the
 jar files of your feature.
 7. Then, you can fork product-is and modify parent pom [6] adding a new
 property for your feature's version. Similar to below property, you can add
 your own one.

 5.1.1>>> .remote.version>

 8.  Modify the p2-profile-get pom file [7] and include your feature
 there. You can search for "*user.store.remote.feature*" and following
 that, add details for your feature.
 9. Then re-build the product-is, get the zip file, run it and in
 Management Console, check if mongodb userstore is listed. Also you can
 check if the jar file is packed in plugins.
 10. Finally send a PR to product-is with these changes.


 [1] https://github.com/asanthamax/identity-userstore-mongodb/tre
 e/master/features
 [2] https://github.com/wso2-extensions/identity-userstore-remote
 /blob/master/features/etc/feature.properties
 [3] https://github.com/wso2-extensions/identity-userstore-remote
 /tree/master/features/org.wso2.carbon.identity.user.store.re
 mote.server.feature
 [4] https://github.com/wso2-extensions/identity-userstore-mongod
 b/pull/1
 [5] https://github.com/wso2/product-is/
 [6] https://github.com/wso2/product-is/blob/master/pom.xml
 [7] https://github.com/wso2/product-is/blob/master/modules/p2-pr

Re: [Dev] Is it best practice to return null or an empty object from a method in DAO layer?

2016-07-11 Thread Chamila Wijayarathna
Hi Sabra,

AFAIK when we return a null from a method, find bugs show it as an error
(please check this) and to fix this we use empty objects. So I think the
returning null is not something we should do.

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


Re: [Dev] [DEV][Vote] Release WSO2 Puppet Modules 2.0.0

2016-05-23 Thread Chamila Wijayarathna
Tested APIM 1.10.0 installation in different profiles in default platform,
No blocking issues found.

*[X ] Stable* - go ahead and release

On Mon, May 23, 2016 at 4:14 PM, Vishanth Balasubramaniam <
vishan...@wso2.com> wrote:

> *[X ] Stable* - go ahead and release
>
> I have verified the following.
>
>- READMEs
>- License
>- Packaging
>
> Tested the Default and Kubenetes platform for the following products
>
>- WSO2 AS
>- WSO2 BPS
>- WSO2 BRS
>- WSO2 ESB
>- WSO2 GREG
>- WSO2 IS
>
> Regards,
> Vishanth
>
>
> On Mon, May 23, 2016 at 10:24 PM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> [x] Stable - Go ahead and release
>>
>> Tested following on both default and K8S platforms;
>>  - WSO2 APIM 1.10.0
>>  - WSO2 DAS 3.0.1
>>  - WSO2 CEP 4.0.0
>>
>> On Mon, May 23, 2016 at 9:28 PM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com> wrote:
>>
>>> [x] Stable - Go ahead and release
>>>
>>> Verified the following:
>>>
>>> 1. License header
>>> 2. Packaging
>>> 3. Tested below wso2 products default and distributed deployments in
>>> default and kubernetes 1.2.0 platform and verified the basic
>>> functionalities:
>>>
>>>
>>>- WSO2 BPS 3.5.0
>>>- WSO2 ES 2.0.0
>>>- WSO2 GREG 5.1.0
>>>
>>>
>>> Thanks.
>>>
>>> On Mon, May 23, 2016 at 9:14 PM, Imesh Gunaratne  wrote:
>>>
 +1 for the release, I verified following:

- README files
- Distributed deployments of following products on K8S using Docker
images built using Puppet:


- Application Server 5.3.0
   - API Manager 1.10.0
   - Enterprise Service Bus 4.9.0
   - Business Process Server 3.5.0
   - Business Rules Server 2.2.0
   - Data Services Server 3.5.0
   - Enterprise Store 2.0.0
   - Governance Registry 5.1.0
   - Data Analytics Server 3.0.1
   - Complex Event Processor 4.0.0

 Thanks

 On Wed, May 18, 2016 at 10:24 PM, Chamila De Alwis 
 wrote:

> Hi,
>
>
> This is the first release candidate (RC1) for WSO2 Puppet Modules
> 2.0.0. Please download, verify, and vote. Voting will be open for 72 
> hours.
>
> [ ] Broken - Do not release (explain why)
>
> [ ] Stable - Go ahead and release
>
> Main features and fixes released with this release:
>
>-
>
>Updated Hiera data hierarchy to include deployment Platform
>-
>
>Kubernetes based workflow supported, based on
>wso2/kubernetes-artifacts
>-
>
>system_file_list to copy files with scope outside of CARBON_HOME
>-
>
>Platform specific configuration data sets for Kubernetes
>-
>
>   Kubernetes deployment-ready Puppet modules
>   -
>
>   Data sources matching a distributed set of Kubernetes MySQL
>   Services
>   -
>
>Streamlined Default platform YAML configuration data
>-
>
>Optional update flags to control product pack and JDK cleanup
>-
>
>Minor fixes on the Hiera data
>-
>
>   Issues in YAML file formatting
>   -
>
>   Puppet templates for identity.xml added to relevant products
>   -
>
>   Proxy Port values assigned to different products are streamlined
>   -
>
>   Hostname entries streamlined in default deployment platform
>   data set
>   -
>
>   Pass Through Port Mapping for WSO2 ESB
>   -
>
>   Fixing Thrift Server IP configuration for WSO2 MB
>   -
>
>   SecureVault parameters made optional
>   -
>
>   Reusing Data Source related fields in YAML by inheriting from
>   wso2/common.yaml
>   -
>
>   Fix Symbolic Link creation in WSO2 DAS
>   -
>
>   Fixed installation directory creation failure when parent
>   directory doesn’t exist
>   -
>
>   Removed use of Kubernetes Master details in Clustering templates
>   -
>
>   Streamlined use of hiera, hiera_array, and hiera_hash lookup
>   -
>
>WSO2 API Manager Gateway Manager-Worker separate profiles in
>Hieradata
>-
>
>WSO2 PPaaS Puppet module and Hiera data removed
>-
>
>Deprecated older product versions
>-
>
>   WSO2 AM 1.9.1
>   -
>
>   WSO2 BRS 2.1.0
>   -
>
>   WSO2 GREG 4.6.0
>   -
>
>   WSO2 IS 5.0.0
>   -
>
>   WSO2 MB 3.0.0
>   -
>
>Improve Puppet Vagrant setup to use PUPPET_HOME environment
>variable
>-
>
>Included sample config.yaml files in the Puppet Vagrant setup to
>quickly test standalone and 

Re: [Dev] [IOTS] [IS] Getting an exception after upgrading carbon.identity to 5.1.1-SNAPSHOT

2016-05-12 Thread Chamila Wijayarathna
Hi Milan,

This issue has been fixed now, can you please pull the required repos and
check?

Thank You!

On Wed, May 11, 2016 at 3:14 PM, Milan Perera  wrote:

> Hi all,
>
> We are getting the following exception while building the product
> after upgrading carbon.identity to 5.1.1-SNAPSHOT.
>
> Status ERROR: org.eclipse.equinox.p2.artifact.repository code=0 For input
> string: "${equinox" java.lang.NumberFormatException: For input string:
> "${equinox"
>
> Product publishing ended with the following exception:
> java.lang.NumberFormatException: For input string: "${equinox"
> at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> at java.lang.Integer.parseInt(Integer.java:481)
> at java.lang.Integer.parseInt(Integer.java:527)
> at org.osgi.framework.Version.(Version.java:127)
> at org.osgi.framework.Version.parseVersion(Version.java:225)
> at
> org.eclipse.osgi.service.resolver.VersionRange.(VersionRange.java:92)
> at
> org.eclipse.osgi.internal.resolver.StateBuilder.getVersionRange(StateBuilder.java:686)
> at
> org.eclipse.osgi.internal.resolver.StateBuilder.addImportPackages(StateBuilder.java:289)
> at
> org.eclipse.osgi.internal.resolver.StateBuilder.createImportPackages(StateBuilder.java:268)
> at
> org.eclipse.osgi.internal.resolver.StateBuilder.createBundleDescription(StateBuilder.java:113)
> at
> org.eclipse.osgi.internal.resolver.StateObjectFactoryImpl.createBundleDescription(StateObjectFactoryImpl.java:32)
> at
> org.eclipse.equinox.p2.publisher.eclipse.BundlesAction.createBundleDescription(BundlesAction.java:531)
> at
> org.eclipse.equinox.p2.publisher.eclipse.BundlesAction.createBundleDescription(BundlesAction.java:546)
> at
> org.eclipse.equinox.p2.publisher.eclipse.BundlesAction.getBundleDescriptions(BundlesAction.java:846)
> at
> org.eclipse.equinox.p2.publisher.eclipse.BundlesAction.perform(BundlesAction.java:657)
> at
> org.eclipse.equinox.p2.publisher.Publisher$ArtifactProcess.run(Publisher.java:207)
> at
> org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.executeBatch(SimpleArtifactRepository.java:1294)
> at org.eclipse.equinox.p2.publisher.Publisher.publish(Publisher.java:231)
> at
> org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:283)
> at
> org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.run(AbstractPublisherApplication.java:253)
> at
> org.eclipse.equinox.p2.publisher.AbstractPublisherApplication.start(AbstractPublisherApplication.java:315)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at
> org.eclipse.equinox.internal.app.AnyThreadAppLauncher.run(AnyThreadAppLauncher.java:26)
> at java.lang.Thread.run(Thread.java:722)
>
> ​While searching for a reason, it has been noticed that in [1]​, even
> though the version is mentioned, the version declaration is not available
> in the [2].
> Hence the error throws. Once we remove that version declaration (version="
> ${equinox.osgi.stax-api.imp.pkg.version.range}") from [1], problem was
> solved.
>
> Since we are getting javax.xml.stream from the platform, do ​we need to
> explicitly declare the version there ?
>
>
> ​[1]
> https://github.com/wso2-extensions/identity-user-ws/blob/master/components/org.wso2.carbon.um.ws.api/pom.xml#L97
> [2]
> https://github.com/wso2-extensions/identity-extension-parent/blob/master/pom.xml
>
> --
> *Milan Perera *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
> Email: mi...@wso2.com  | Web: www.wso2.com
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Feature installation error with latest identity features

2016-05-10 Thread Chamila Wijayarathna
Hi Bathiya,

We yesterday released carbon-identity-framework 5.1.0 and upgraded master
version to 5.1.1-SNAPSHOT. Currently we are working on releasing 5.1.0
version 40+ identity-extension repos and currently they are still in
5.0.9-SNAPSHOT. We are planning to finish it off by EOD today and by then
this issue should be fixed.

Also since we have broken carbon-identity repo into number of sub repos, in
future each of these repos will be using different versions. So all
products which are using identity-features will have to keep different
versions for each of these repos/features, for example different versions
for saml and oauth.

Thank You!

On Tue, May 10, 2016 at 11:47 AM, Bhathiya Jayasekara 
wrote:

> Hi IS team,
>
> We are experiencing this issue due to the restriction
> [5.1.1.SNAPSHOT,6.0.0). Do you have a 5.1.1-SNAPSHOT version? Can you
> please have a look? Please consider this urgent as our build if failing due
> to this.
>
> Installation failed.
> Cannot complete the install because one or more required items could not
> be found.
>  Software being installed: BasicAuth Application Authenticator Server
> Feature 5.0.9.SNAPSHOT
> (org.wso2.carbon.identity.application.authenticator.basicauth.server.feature.group
> 5.0.9.SNAPSHOT)
>  Missing requirement: BasicAuth Application Authenticator Server Feature
> 5.0.9.SNAPSHOT
> (org.wso2.carbon.identity.application.authenticator.basicauth.server.feature.group
> 5.0.9.SNAPSHOT) requires
> 'org.wso2.carbon.identity.application.authentication.framework.server.feature.group
> [5.1.1.SNAPSHOT,6.0.0)' but it could not be found
>
> Thanks,
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Fwd: [IS] Missing requirement in building product-is from source

2016-05-09 Thread Chamila Wijayarathna
[Adding dev]

-- Forwarded message --
From: Manujith Pallewatte <manujith...@gmail.com>
Date: Mon, May 9, 2016 at 5:00 PM
Subject: Re: [Dev] Fwd: [IS] Missing requirement in building product-is
from source
To: Chamila Wijayarathna <cham...@wso2.com>


Hi Malithi,

This error in building identity-framework it's due to an error in maven
felix scr plugin
You can have a temporary fix for this by adding a later version of felix
scr to the place you get the issue
You can find the bug at [2] in apache bug tracker, also the changelog for
1.8.0 mention that bug fixed [3]

Fix I did was to add version 1.8.0 to
identity-framework/components/authentication-framework/org.wso2.carbon.identity.application.authentication.framework/pom.xml

Note: this will override the scr plugin version defined in the parent pom
which is 1.7.4

[1] https://issues.apache.org/jira/browse/FELIX-3571
[2]
https://svn.apache.org/repos/asf/felix/releases/maven-scr-plugin-1.21.0/changelog.txt

Best Regards,
Manujith


On Mon, May 2, 2016 at 11:29 AM, Manujith Pallewatte <manujith...@gmail.com>
wrote:

> Hi all,
>
> Just to update in case anyone else is having the issue, product-is didn't
> build on Ubuntu 16.04 (for reasons still not known) but build successfully
> in Ubuntu 14.04. Still having the above mentioned issue in
> identity-framework build though.
>
> Thanks!
>
> On Thu, Apr 28, 2016 at 9:26 AM, Manujith Pallewatte <
> manujith...@gmail.com> wrote:
>
>> Hi Chamila,
>>
>> I tried with maven 3.3 also with maven 3.0.5 as mentioned in the
>> requirements
>> I build product-is only before in a windows environment, with no issues,
>> but it didn't work in the current (ubuntu 16.04) environment
>> From the link above[1] i have all prerequisites other than svn, since I
>> clone from git i believe svn is of no use
>>
>>
>> [1]. https://docs.wso2.com/display/IS510/Installation+Prerequisites
>>
>>
>> On Wed, Apr 27, 2016 at 9:06 PM, Chamila Wijayarathna <cham...@wso2.com>
>> wrote:
>>
>>> [adding dev]
>>>
>>> identity-framework should build without any issues, what is the maven
>>> version you are using? Can you check if you have all the requirement
>>> mentioned at [1] for building the identity server from source code. Was
>>> this building successfully previously?
>>>
>>> [1]. https://docs.wso2.com/display/IS510/Installation+Prerequisites
>>>
>>> -- Forwarded message --
>>> From: Manujith Pallewatte <manujith...@gmail.com>
>>> Date: Wed, Apr 27, 2016 at 7:49 PM
>>> Subject: Re: [IS] Missing requirement in building product-is from source
>>> To: Chamila Wijayarathna <cham...@wso2.com>
>>>
>>>
>>> Hi Chamila,
>>>
>>> Apparently identity framework didnt have the latest commits, I forked it
>>> today and pulled but It must have missed some commits
>>> Anyway I updated the local repo to all changes, but now identity
>>> framework gives an error in building
>>>
>>> "[ERROR] Failed to execute goal
>>> org.apache.felix:maven-scr-plugin:1.7.2:scr (generate-scr-scrdescriptor) on
>>> project org.wso2.carbon.identity.application.authentication.framework:
>>> Execution generate-scr-scrdescriptor of goal
>>> org.apache.felix:maven-scr-plugin:1.7.2:scr failed: Comparison method
>>> violates its general contract! -> [Help 1]"
>>>
>>> I google and found that this is a known bug of apache felix, but it
>>> didn't provide and solid way to solve other than to change jdk version
>>> I tried changing version with no luck, any ideas?
>>>
>>> Also found similar error in dev list
>>> http://mail.wso2.org/mailarchive/dev/2015-June/049912.html
>>>
>>> Thank You
>>>
>>> On Wed, Apr 27, 2016 at 4:46 PM, Chamila Wijayarathna <cham...@wso2.com>
>>> wrote:
>>>
>>>> Hi Manujith,
>>>>
>>>> It seems like your identity-framework or product-is is not upto date.
>>>>
>>>> Can you check what are the latest commits in both repos using git log
>>>> and check if commits merged within last few days are there in your local
>>>> repo?
>>>>
>>>> Thank You!
>>>>
>>>> On Wed, Apr 27, 2016 at 3:56 PM, Manujith Pallewatte <
>>>> manujith...@gmail.com> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I'm trying to setup the development environment to start working for
>>>>> GSOC on the identity 

Re: [Dev] [IS] New Identity Extension Repo Can't Find Parent Pom

2016-05-08 Thread Chamila Wijayarathna
Hi Godwin,

Yes, after adding nexus repositories I could successfully build it.

Thanks!

On Sun, May 8, 2016 at 12:20 PM, Godwin Shrimal <god...@wso2.com> wrote:

> Hi Chamila,
>
> You need to add nexus repositories to your extension pom file, Can you
> verify it ?
>
>
> Thanks
> Godwin
>
> On Sun, May 8, 2016 at 12:50 AM, Chamila Wijayarathna <cham...@wso2.com>
> wrote:
>
>> Hi all,
>>
>> I have attached the wrong error, correct one is the below one.
>>
>> mvn clean install -Dmaven.repo.local=/home/chamila/m2_i/
>> [INFO] Scanning for projects...
>> [ERROR] The build could not read 1 project -> [Help 1]
>> [ERROR]
>> [ERROR]   The project
>> org.wso2.carbon.identity:identity-governance:1.0.0-SNAPSHOT
>> (/home/chamila/IS/src/identity-extension-identityMgt/pom.xml) has 1 error
>> [ERROR] Non-resolvable parent POM: Could not find artifact
>> org.wso2.carbon.identity:identity-extension-parent:pom:5.0.9-SNAPSHOT and
>> 'parent.relativePath' points at wrong local POM @ line 20, column 13 ->
>> [Help 2]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
>> [ERROR] [Help 2]
>> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>>
>> I could fixed it by adding  to the parent pom.
>>
>> Sorry for the noise.
>>
>> Thank You!
>>
>> On Sun, May 8, 2016 at 12:45 AM, Chamila Wijayarathna <cham...@wso2.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> I am working on creating a new extension to identity server as various
>>> connectors at [1]. I have developed most of it and current code is
>>> available at [2].
>>>
>>> However when I am building this in a clean repo, its failing and I am
>>> getting following error.
>>>
>>> *chamila@chamila-ThinkPad-T540p:~/IS/src/identity-extension-identityMgt$
>>> mvn clean install -Dmaven.repo.local=/home/chamila/m2_i/*
>>> *[INFO] Scanning for projects...*
>>> *[ERROR] The build could not read 1 project -> [Help 1]*
>>> *[ERROR]   *
>>> *[ERROR]   The project
>>> org.wso2.carbon.identity:org.wso2.carbon.identity.governance.feature:1.0.0-SNAPSHOT
>>> (/home/chamila/IS/src/identity-extension-identityMgt/features/org.wso2.carbon.identity.governance.feature/pom.xml)
>>> has 1 error*
>>> *[ERROR] Non-resolvable parent POM: Could not find artifact
>>> org.wso2.carbon.identity:identity-governance:pom:1.0.0-SNAPSHOT and
>>> 'parent.relativePath' points at wrong local POM @ line 21, column 13 ->
>>> [Help 2]*
>>> *[ERROR] *
>>> *[ERROR] To see the full stack trace of the errors, re-run Maven with
>>> the -e switch.*
>>> *[ERROR] Re-run Maven using the -X switch to enable full debug logging.*
>>> *[ERROR] *
>>> *[ERROR] For more information about the errors and possible solutions,
>>> please read the following articles:*
>>> *[ERROR] [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
>>> <http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException>*
>>> *[ERROR] [Help 2]
>>> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>>> <http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException>*
>>>
>>> I tried doing same with repos at[1], but they are building without any
>>> issue. Any idea about what I am missing here?
>>>
>>> [1]. https://github.com/wso2-extensions?utf8=%E2%9C%93=identity
>>> [2]. https://github.com/cdwijayarathna/identity-governance
>>>
>>> Thank You!
>>>
>>> --
>>> *Chamila Dilshan Wijayarathna,*
>>> Software Engineer
>>> Mobile:(+94)788193620
>>> WSO2 Inc., http://wso2.com/
>>>
>>
>>
>>
>> --
>> *Chamila Dilshan Wijayarathna,*
>> Software Engineer
>> Mobile:(+94)788193620
>> WSO2 Inc., http://wso2.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
> twitter: https://twitter.com/godwinamila
>



-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] New Identity Extension Repo Can't Find Parent Pom

2016-05-07 Thread Chamila Wijayarathna
Hi all,

I have attached the wrong error, correct one is the below one.

mvn clean install -Dmaven.repo.local=/home/chamila/m2_i/
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project
org.wso2.carbon.identity:identity-governance:1.0.0-SNAPSHOT
(/home/chamila/IS/src/identity-extension-identityMgt/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact
org.wso2.carbon.identity:identity-extension-parent:pom:5.0.9-SNAPSHOT and
'parent.relativePath' points at wrong local POM @ line 20, column 13 ->
[Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

I could fixed it by adding  to the parent pom.

Sorry for the noise.

Thank You!

On Sun, May 8, 2016 at 12:45 AM, Chamila Wijayarathna <cham...@wso2.com>
wrote:

> Hi all,
>
> I am working on creating a new extension to identity server as various
> connectors at [1]. I have developed most of it and current code is
> available at [2].
>
> However when I am building this in a clean repo, its failing and I am
> getting following error.
>
> *chamila@chamila-ThinkPad-T540p:~/IS/src/identity-extension-identityMgt$
> mvn clean install -Dmaven.repo.local=/home/chamila/m2_i/*
> *[INFO] Scanning for projects...*
> *[ERROR] The build could not read 1 project -> [Help 1]*
> *[ERROR]   *
> *[ERROR]   The project
> org.wso2.carbon.identity:org.wso2.carbon.identity.governance.feature:1.0.0-SNAPSHOT
> (/home/chamila/IS/src/identity-extension-identityMgt/features/org.wso2.carbon.identity.governance.feature/pom.xml)
> has 1 error*
> *[ERROR] Non-resolvable parent POM: Could not find artifact
> org.wso2.carbon.identity:identity-governance:pom:1.0.0-SNAPSHOT and
> 'parent.relativePath' points at wrong local POM @ line 21, column 13 ->
> [Help 2]*
> *[ERROR] *
> *[ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.*
> *[ERROR] Re-run Maven using the -X switch to enable full debug logging.*
> *[ERROR] *
> *[ERROR] For more information about the errors and possible solutions,
> please read the following articles:*
> *[ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> <http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException>*
> *[ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
> <http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException>*
>
> I tried doing same with repos at[1], but they are building without any
> issue. Any idea about what I am missing here?
>
> [1]. https://github.com/wso2-extensions?utf8=%E2%9C%93=identity
> [2]. https://github.com/cdwijayarathna/identity-governance
>
> Thank You!
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>



-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] New Identity Extension Repo Can't Find Parent Pom

2016-05-07 Thread Chamila Wijayarathna
Hi all,

I am working on creating a new extension to identity server as various
connectors at [1]. I have developed most of it and current code is
available at [2].

However when I am building this in a clean repo, its failing and I am
getting following error.

*chamila@chamila-ThinkPad-T540p:~/IS/src/identity-extension-identityMgt$
mvn clean install -Dmaven.repo.local=/home/chamila/m2_i/*
*[INFO] Scanning for projects...*
*[ERROR] The build could not read 1 project -> [Help 1]*
*[ERROR]   *
*[ERROR]   The project
org.wso2.carbon.identity:org.wso2.carbon.identity.governance.feature:1.0.0-SNAPSHOT
(/home/chamila/IS/src/identity-extension-identityMgt/features/org.wso2.carbon.identity.governance.feature/pom.xml)
has 1 error*
*[ERROR] Non-resolvable parent POM: Could not find artifact
org.wso2.carbon.identity:identity-governance:pom:1.0.0-SNAPSHOT and
'parent.relativePath' points at wrong local POM @ line 21, column 13 ->
[Help 2]*
*[ERROR] *
*[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.*
*[ERROR] Re-run Maven using the -X switch to enable full debug logging.*
*[ERROR] *
*[ERROR] For more information about the errors and possible solutions,
please read the following articles:*
*[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
*
*[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
*

I tried doing same with repos at[1], but they are building without any
issue. Any idea about what I am missing here?

[1]. https://github.com/wso2-extensions?utf8=%E2%9C%93=identity
[2]. https://github.com/cdwijayarathna/identity-governance

Thank You!

-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: [IS] Missing requirement in building product-is from source

2016-04-27 Thread Chamila Wijayarathna
[adding dev]

identity-framework should build without any issues, what is the maven
version you are using? Can you check if you have all the requirement
mentioned at [1] for building the identity server from source code. Was
this building successfully previously?

[1]. https://docs.wso2.com/display/IS510/Installation+Prerequisites

-- Forwarded message --
From: Manujith Pallewatte <manujith...@gmail.com>
Date: Wed, Apr 27, 2016 at 7:49 PM
Subject: Re: [IS] Missing requirement in building product-is from source
To: Chamila Wijayarathna <cham...@wso2.com>


Hi Chamila,

Apparently identity framework didnt have the latest commits, I forked it
today and pulled but It must have missed some commits
Anyway I updated the local repo to all changes, but now identity framework
gives an error in building

"[ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.2:scr
(generate-scr-scrdescriptor) on project
org.wso2.carbon.identity.application.authentication.framework: Execution
generate-scr-scrdescriptor of goal
org.apache.felix:maven-scr-plugin:1.7.2:scr failed: Comparison method
violates its general contract! -> [Help 1]"

I google and found that this is a known bug of apache felix, but it didn't
provide and solid way to solve other than to change jdk version
I tried changing version with no luck, any ideas?

Also found similar error in dev list
http://mail.wso2.org/mailarchive/dev/2015-June/049912.html

Thank You

On Wed, Apr 27, 2016 at 4:46 PM, Chamila Wijayarathna <cham...@wso2.com>
wrote:

> Hi Manujith,
>
> It seems like your identity-framework or product-is is not upto date.
>
> Can you check what are the latest commits in both repos using git log and
> check if commits merged within last few days are there in your local repo?
>
> Thank You!
>
> On Wed, Apr 27, 2016 at 3:56 PM, Manujith Pallewatte <
> manujith...@gmail.com> wrote:
>
>> Hi all,
>>
>> I'm trying to setup the development environment to start working for GSOC
>> on the identity server, and I already downloaded and build the
>> carbon-identity-framework repo along with the extensions as mentioned in [1]
>>
>> Now I'm trying to build product-is from source as well, to make sure I
>> have all the dependencies before doing in changes to the source, but
>> running maven install in product is gives the following error
>>
>> "Missing requirement: Application Authentication Framework Server Feature
>> 5.0.9.SNAPSHOT
>> (org.wso2.carbon.identity.application.authentication.framework.server.feature.group
>> 5.0.9.SNAPSHOT) requires
>> 'org.wso2.carbon.tenant.mgt.common.server.feature.group [4.4.8,4.5.0)' but
>> it could not be found"
>>
>> I check the local maven repo and this package isnt available in it, so
>> why is maven not downloading this from the remote repository?
>>
>> Thank You
>>
>>
>> [1] https://gist.github.com/pulasthi7/3d365a3345371fd63f74
>>
>> --
>>
>>
>>
>> [image: Manujith Pallewatte on about.me]
>>
>> Manujith Pallewatte
>> about.me/manzzup
>>   <http://about.me/manzzup>
>>
>
>
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>



-- 



[image: Manujith Pallewatte on about.me]

Manujith Pallewatte
about.me/manzzup
  <http://about.me/manzzup>



-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Missing requirement in building product-is from source

2016-04-27 Thread Chamila Wijayarathna
Hi Manujith,

It seems like your identity-framework or product-is is not upto date.

Can you check what are the latest commits in both repos using git log and
check if commits merged within last few days are there in your local repo?

Thank You!

On Wed, Apr 27, 2016 at 3:56 PM, Manujith Pallewatte 
wrote:

> Hi all,
>
> I'm trying to setup the development environment to start working for GSOC
> on the identity server, and I already downloaded and build the
> carbon-identity-framework repo along with the extensions as mentioned in [1]
>
> Now I'm trying to build product-is from source as well, to make sure I
> have all the dependencies before doing in changes to the source, but
> running maven install in product is gives the following error
>
> "Missing requirement: Application Authentication Framework Server Feature
> 5.0.9.SNAPSHOT
> (org.wso2.carbon.identity.application.authentication.framework.server.feature.group
> 5.0.9.SNAPSHOT) requires
> 'org.wso2.carbon.tenant.mgt.common.server.feature.group [4.4.8,4.5.0)' but
> it could not be found"
>
> I check the local maven repo and this package isnt available in it, so why
> is maven not downloading this from the remote repository?
>
> Thank You
>
>
> [1] https://gist.github.com/pulasthi7/3d365a3345371fd63f74
>
> --
>
>
>
> [image: Manujith Pallewatte on about.me]
>
> Manujith Pallewatte
> about.me/manzzup
>   
>



-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Creating a Custom Workflow Implementation

2016-04-24 Thread Chamila Wijayarathna
Hi all,

Currently IS only support Workflow Implementation which used WSO2 BPS. I
want to implement a usecase using IS workflow feature where when a user
register, an email goes to that user's email and only when he clicked a
link there user account get created. This is somewhat similar to ask
password feature, but I am interested in exploring how to achieve this
using workflow.

It seems like I need to do this by extending *AbstractWorkflow* class, but
still I'm not sure what methods I need to implement and what I need to do
there. Can someone point me on how to do this?

Thank You!

-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Why are We Keeping Auto Generated wsdls in VCS?

2016-04-20 Thread Chamila Wijayarathna
Hi all,

In our source repos, at service stubs, we are keeping wsdls which are
generated code.

Usually keeping generated code in VCS is not the best practise.

I am sure we are doing this for a reason, and I would like to know why are
we doing this?

Thank You!

-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarification about OSGi Bundle Picking

2016-04-17 Thread Chamila Wijayarathna
Hi all,

So myself and Malithi dig this issue little bit and observed following.

As I mentioned earlier by default we had opensaml2.6.4wasov2.jar in plugins
directory and I removed it. But there were an entry in
/repository/components/default/configuration/org.eclipse.equinox.simpleconfigurator/
bundles.info file corresponding to that jar file as following.

opensaml,2.6.4.wso2v2,../plugins/opensaml_2.6.4.wso2v2.jar,4,true

Until this entry is there in bundle.info, server is not picking up
opensaml_2.6.4.wso2v2.jar
that I am putting into dropins.

Then I deleted this entry in bundle.info file, and restarted the server.
Now its picking the v2 jar file in dropins and also in bundle.info file, I
observed following new entry.

opensaml,2.6.4.wso2v2,../dropins/opensaml_2.6.4.wso2v2.jar,4,true

So what I assumed is, at startup, server is writing an entry at bundle.info
for every jar in dropins, but since there were the previous entry which was
also for same jar 'opensaml,2.6.4.wso2v2' it failed to write new entry for
the jar in the dropins.

Any way these are only observations and If anyone can explain the theory
behind this, that would be very helpful.

Thanks!

On Sun, Apr 17, 2016 at 10:23 PM, Malithi Edirisinghe <malit...@wso2.com>
wrote:

> Hi Chamila,
>
> We have specified a version range which is [2.6.0,3.0.0). Both v1 and v2
> versions get included for this range. Since we have not exactly specified
> that a particular bundle should pick only v2 version, the bundle could be
> wired to either v1 or v2 at runtime as per the availability.
>
> Thanks,
> Malithi.
>
> On Sun, Apr 17, 2016 at 9:59 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Chamila,
>>
>> Did you export and import the correct versions ?
>>
>> Thanks
>> Thusitha
>>
>> On Sat, Apr 16, 2016 at 1:11 PM, Chamila Wijayarathna <cham...@wso2.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> IS-5.2.0-Beta uses opensaml2.6.4wasov2. I extracted a pack and
>>> deleted opensaml2.6.4wasov2.jar from its repository/components/plugins
>>> folder and then copied opensaml2.6.4wasov1.jar into
>>> repository/components/dropins folder. Here it worked properly where IS got
>>> started without any issue and I could reproduced an issue which was there
>>> in v1 but fixed in v2.
>>>
>>> Then I copied opensaml2.6.4wasov2.jar into repository/components/dropins
>>> folder and restarted IS again. But now also I could reproduced the earlier
>>> mentioned error which implies that IS is still picking v1 not v2. According
>>> to my understanding about OSGi, here IS should pick v2 instead of v1.
>>>
>>> Am I doing anything wrong here. What could be the reason for this issue?
>>>
>>> Thank You!
>>>
>>> --
>>> *Chamila Dilshan Wijayarathna,*
>>> Software Engineer
>>> Mobile:(+94)788193620
>>> WSO2 Inc., http://wso2.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Malithi Edirisinghe*
> Senior Software Engineer
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>



-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Clarification about OSGi Bundle Picking

2016-04-16 Thread Chamila Wijayarathna
Hi all,

IS-5.2.0-Beta uses opensaml2.6.4wasov2. I extracted a pack and
deleted opensaml2.6.4wasov2.jar from its repository/components/plugins
folder and then copied opensaml2.6.4wasov1.jar into
repository/components/dropins folder. Here it worked properly where IS got
started without any issue and I could reproduced an issue which was there
in v1 but fixed in v2.

Then I copied opensaml2.6.4wasov2.jar into repository/components/dropins
folder and restarted IS again. But now also I could reproduced the earlier
mentioned error which implies that IS is still picking v1 not v2. According
to my understanding about OSGi, here IS should pick v2 instead of v1.

Am I doing anything wrong here. What could be the reason for this issue?

Thank You!

-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] [Passive STS] Error while Invoking Passive STS in Identity Server

2016-04-07 Thread Chamila Wijayarathna
Hi all,

Currently passive STS in Identity Server is not workong, but after applying
following changes in orbit and identity-inbound-auth-sts I could
successfully run passive sts scenarios using PassiveSTSSampleApp.

*Orbit*

*diff --git a/opensaml/2.6.4.wso2v1/pom.xml b/opensaml/2.6.4.wso2v1/pom.xml*
*index 06b4d26..e10c16f 100644*
*--- a/opensaml/2.6.4.wso2v1/pom.xml*
*+++ b/opensaml/2.6.4.wso2v1/pom.xml*
*@@ -259,6 +259,7 @@*
*
 
net.jcip.annotations.*;version="${net.jcip.annotations.version}";resolution:=optional,*
*
 
org.apache.commons.httpclient.*;version="${org.apache.commons.httpclient.version}";resolution:=optional,*
*
 
org.apache.commons.ssl.*;version="${org.apache.commons.ssl.version}";resolution:=optional,*
*+
 org.apache.commons.codec.binary;version="[1.4,2)",*
* org.apache.velocity.*;resolution:=optional,*
*
 
org.apache.xml.security.*;version="${org.apache.xml.security.version}";resolution:=optional,*
*
 org.bouncycastle.*;version="${org.bouncycastle.version}";resolution:=optional,*
*@@ -279,6 +280,7 @@*
*
 org.apache.commons.fileupload.*;resolution:=optional,*
* org.apache.log4j.*;resolution:=optional,*
*
 org.owasp.validator.html;resolution:=optional,*
*+
 org.apache.axiom.om.impl.dom.jaxp;version="${axiom.osgi.version.range}"*
* *
*
 esapi;scope=compile|runtime;inline=false*
* *
*@@ -321,6 +323,7 @@*
* [1.6.0,1.8.0)*
* 0.0.0*
* 0.0.0*
*+[1.2.11,
2.0.0)*
* *

* *


*identity-inbound-auth-sts*

*diff --git a/components/org.wso2.carbon.identity.sts.passive/pom.xml
b/components/org.wso2.carbon.identity.sts.passive/pom.xml*
*index f391798..2d927ae 100644*
*--- a/components/org.wso2.carbon.identity.sts.passive/pom.xml*
*+++ b/components/org.wso2.carbon.identity.sts.passive/pom.xml*
*@@ -97,7 +97,8 @@*
* javax.xml.stream;
version="${equinox.osgi.stax-api.imp.pkg.version.range}",*
* javax.servlet.http;
version="${imp.pkg.version.javax.servlet}",*

*-org.apache.axiom.*;
version="${axiom.osgi.version.range}",*
*+org.apache.axiom.om
; version="${axiom.osgi.version.range}",*
*+org.apache.axiom.soap;
version="${axiom.osgi.version.range}",*
* org.apache.axis2.*;
version="${axis2.osgi.version.range}",*
* org.apache.rahas.*;
version="${rampart.wso2.osgi.version.range}",*
* org.apache.ws.secpolicy;
version="${rampart.wso2.osgi.version.range}",*
*@@ -128,11 +129,13 @@*
*
 version="${carbon.identity.package.import.version.range}",*
* org.wso2.carbon.identity.core.*;*
*
 version="${carbon.identity.package.import.version.range}",*
*+
 org.opensaml;version="${opensaml2.wso2.osgi.version.range}"*
* *
* *
*
 !org.wso2.carbon.identity.sts.passive.internal,*
* org.wso2.carbon.identity.sts.passive.*;
version="${carbon.identity.package.export.version}",*
* *
*+**
* *
* *
* *

But now I am observing following error at back end.

*[2016-04-08 02:05:08,960] ERROR {org.opensaml.XML} -  Unable to parse SAML
1.0 Schemas: org.xml.sax.SAXParseException; schema_reference.4: Failed to
read schema document 'xml.xsd', because 1) could not find the document; 2)
the document could not be read; 3) the root element of the document is not
.*
*[2016-04-08 02:05:08,962] ERROR {org.opensaml.XML} -  Unable to parse SAML
1.1 Schemas: org.xml.sax.SAXParseException; schema_reference.4: Failed to
read schema document 'xml.xsd', because 1) could not find the document; 2)
the document could not be read; 3) the root element of the document is not
.*

Any idea about what is the reason for this?

Thanks!
-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Cannot deploy a BPEL with BPELUploader service after upgrading kernel, registry, business process versions

2016-04-02 Thread Chamila Wijayarathna
Hi all,

Added the fix with https://github.com/wso2/identity-framework/pull/56
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2%2Fidentity-framework%2Fpull%2F56=D=1=AFQjCNHGFnSoXk0ft8OfPCJPKpxN8FBPIg>
 andhttps://github.com/wso2-extensions/identity-workflow-impl-bps/pull/9
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2-extensions%2Fidentity-workflow-impl-bps%2Fpull%2F9=D=1=AFQjCNHvkb63769rd_OPwTIyyYJYrsFI1w>.
Please review.

Thanks!

On Fri, Apr 1, 2016 at 10:35 AM, Malithi Edirisinghe <malit...@wso2.com>
wrote:

>
>
> On Fri, Apr 1, 2016 at 9:37 AM, Darshana Gunawardana <darsh...@wso2.com>
> wrote:
>
>>
>>
>> On Friday, 1 April 2016, Malithi Edirisinghe <malit...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> Seems we should not rely on system properties and expect the SSL
>>> communication to happen. As it seems when the default SSLContext is being
>>> initialized it reads the 'javax.net.ssl.keyStore' property and
>>> initializes the key manager. If no property found it will initialize an
>>> empty keystore. Once the default context is being initialized it seems to
>>> be using the same key manager, irrespective of the property changes.
>>> So as I understand, we need to initialize an SSLContext or change
>>> default key and trust managers.
>>>
>>>
>> You are referring that either
>> * we need to initialize a new SSLContext at the place it communicate with 
>> mutual
>> SSL or
>> * Set the keystore and password in the server startup
>>
>> IMO, we should try first approach and move farward with that if it's
>> possible.
>>
>
> Actually I was saying either we should initialize a new SSLContext or we
> should change the key manager and trust manager being set in the default
> SSLContext without setting system properties at server startup. (We can get
> the default context but not sure whether that instance is mutable. Need to
> check on that).
>
>>
>> Thanks,
>>
>>
>>> That should set the certificate and let the client communicate.
>>>
>>> Thanks,
>>> Malithi.
>>>
>>> On Thu, Mar 31, 2016 at 5:39 PM, Malithi Edirisinghe <malit...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> Mutual SSL worked when I start up the server by setting the key store
>>>> and key store password as system properties explicitly.
>>>>
>>>> sh wso2server.sh -Djavax.net.debug=ssl:handshake:verbose -debug 5005
>>>> -Djavax.net.ssl.keyStore=/Users/malithi/RNDSetups/opensaml-upgraded/wso2is-5.2.0-SNAPSHOT/repository/resources/security/wso2carbon.jks
>>>> -Djavax.net.ssl.keyStorePassword=wso2carbon
>>>>
>>>>
>>>> Seems it's getting override. Any idea ?
>>>>
>>>> Thanks,
>>>>
>>>> Malithi
>>>>
>>>> On Thu, Mar 31, 2016 at 10:41 AM, Chandana Napagoda <chand...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Chamila,
>>>>>
>>>>> I can only see guava and commons version changes in between
>>>>> carbon-registry 4.4.8 to 4.4.9.
>>>>>
>>>>> Regards,
>>>>> Chandana
>>>>>
>>>>> On Thu, Mar 31, 2016 at 9:11 AM, Chamila Wijayarathna <
>>>>> cham...@wso2.com> wrote:
>>>>>
>>>>>> Hi Malithi,
>>>>>>
>>>>>> I have observed the same issue by only updating carbon-registry from
>>>>>> 4.4.8 to 4.4.9. So I believe this happens due to dependency changes
>>>>>> occurring when doing that.
>>>>>>
>>>>>> Thank You!
>>>>>>
>>>>>> On Wed, Mar 30, 2016 at 11:36 PM, Malithi Edirisinghe <
>>>>>> malit...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi All,
>>>>>>>
>>>>>>> We have upgraded opensaml version from 2.4.1 to 2.6.4 in
>>>>>>> carbon-identity 5.0.8. In order to build the product with this opensaml
>>>>>>> upgrade we had to update carbon deployment version from 4.5.3 to 4.6.1 
>>>>>>> to
>>>>>>> avoid wiring to opensaml older version.
>>>>>>>
>>>>>>> Along with this upgrade we had to upgrade below too.
>>>>>>> carbon-kernel   4.4.3 to 4.4.5
>>>>>>> carbon-commons 

Re: [Dev] [IS] Cannot deploy a BPEL with BPELUploader service after upgrading kernel, registry, business process versions

2016-03-30 Thread Chamila Wijayarathna
Hi Malithi,

I have observed the same issue by only updating carbon-registry from 4.4.8
to 4.4.9. So I believe this happens due to dependency changes occurring
when doing that.

Thank You!

On Wed, Mar 30, 2016 at 11:36 PM, Malithi Edirisinghe 
wrote:

> Hi All,
>
> We have upgraded opensaml version from 2.4.1 to 2.6.4 in carbon-identity
> 5.0.8. In order to build the product with this opensaml upgrade we had to
> update carbon deployment version from 4.5.3 to 4.6.1 to avoid wiring to
> opensaml older version.
>
> Along with this upgrade we had to upgrade below too.
> carbon-kernel   4.4.3 to 4.4.5
> carbon-commons 4.4.8 to 4.5.2
> carbon-registry 4.4.8 to 4.5.2
> carbon-multitenancy4.5.0 to 4.5.1
> carbon-business-process4.4.4 to 4.4.7
> carbon-analytics-common   1.0.0  to 5.0.8
> axiom   1.2.11.wso2v6 to 1.2.11.wso2v10
> rampart1.6.1.wso2v16 to 1.6.1.wso2v19
> jaggerjs0.12.2 to 0.12.3
>
> However, after this upgrade adding workflows fail, since the client cannot
> authenticate to the BPELUploader service via mutual ssl.
> This occurs as the client module fails to communicate the client
> certificate.
> But when I tried the same service for mutual ssl via soap ui and via a
> third party client I wrote which uses the same stub packed, it worked.
>
> Highly appreciate any help.
>
> Thanks,
> Malithi
>
> --
>
> *Malithi Edirisinghe*
> Senior Software Engineer
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>



-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [GSoC 16'] Proposal 20: [IS] SCIM 2.0 Support to WSO2 Identity Server

2016-03-24 Thread Chamila Wijayarathna
>>>>
>>>>>>>> Specific method to call is "public String getDecision(String
>>>>>>>> request) throws EntitlementException " giving the XACML request as
>>>>>>>> a String. The relevant stub classes can be found at [2] that can be 
>>>>>>>> used at
>>>>>>>> client side. Try to get client code written for this which can be 
>>>>>>>> placed in
>>>>>>>> PEP when required. You can further publish a blogpost with this client 
>>>>>>>> code
>>>>>>>> which can strengthen your proposal further.
>>>>>>>>
>>>>>>>> 2 - In production scenarioes usually ESB acts as the PEP creating
>>>>>>>> the XACML request and calling the PDP via code similar to client code 
>>>>>>>> you
>>>>>>>> would develop in the above point.
>>>>>>>>
>>>>>>>> The article at [3], describes this use case, but it has older
>>>>>>>> content. You can try out same things with latest product versions. If 
>>>>>>>> you
>>>>>>>> encounter any issues get back to us. We will try to find a solution.
>>>>>>>>
>>>>>>>>
>>>>>>>> I think you would be in a good position to start with the proposal
>>>>>>>> once the first point is done as 2nd is a extended version of that.
>>>>>>>> Do get back with any problems you face. We will try our best to get
>>>>>>>> back as soon as possible.
>>>>>>>>
>>>>>>>>
>>>>>>>> [1] -
>>>>>>>> https://github.com/wso2/identity-framework/blob/master/components/entitlement/org.wso2.carbon.identity.entitlement/src/main/java/org/wso2/carbon/identity/entitlement/EntitlementService.java
>>>>>>>> [2] -
>>>>>>>> https://github.com/wso2/identity-framework/tree/master/service-stubs/identity/org.wso2.carbon.identity.entitlement.stub
>>>>>>>> [3] -
>>>>>>>> http://wso2.com/library/articles/2010/10/using-xacml-fine-grained-authorization-wso2-platform/
>>>>>>>> [4] -
>>>>>>>> http://wso2.com/library/tutorials/2012/12/providing-xacml-fine-grained-authorization-webapps/
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Pushpalanka
>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Thank You
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tue, Mar 22, 2016 at 10:47 PM, Manujith Pallewatte <
>>>>>>>>>> manujith...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi Pushpalanka,
>>>>>>>>>>>
>>>>>>>>>>> Thank you for the resources, I will for sure start working on
>>>>>>>>>>> the proposal. I was trying to get the basic implementation details 
>>>>>>>>>>> straight
>>>>>>>>>>> before jumping into the proposal
>>>>>>>>>>> so I could include a better plan in the proposal.  But it seems
>>>>>>>>>>> with the time constraints I would have to speed it up. Trying my 
>>>>>>>>>>> best to
>>>>>>>>>>> deliver the proposal by
>>>>>>>>>>> tomorrow.
>>>>>>>>>>>
>>>>>>>>>>> Thank you
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Mar 22, 2016 at 10:32 PM, Pushpalanka Jayawardhana <
>>>>>>>>>>> la...@wso2.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi Manujith,
>>>>>>>>>>>>
>>>>>>>>>>>> If you haven't already try go through instructions provided at
>>>>>>>>>>>> Dev list under the thread "GSoC project proposal questions"
>>>>>>>>>>>> for this proposal as well.
>>>>>>>>>>>>
>>>>&

Re: [Dev] Proposal 20: [IS] SAML Assertion Query/Request Profile support for WSO2 Identity Server

2016-03-24 Thread Chamila Wijayarathna
Hi Gayan,

Your proposal looks good, I would like to suggest few more improvements.


   - Its better if you can list deliverables and expected challenges of the
   project
   - You have allocated time for testing in your time line which give me
   feeling like you are talking about manually testing feature you are
   developing, but you need to allocate time to implement automation tests
   (integration, unit, ui tests) to cover all the functionalities of your
   component. So please allocate time for this as well. If you need to get
   idea about how to implement integration tests, please refer to [1]. Don't
   allocate much time to do manual testing and try to automate tests.

[1]. https://github.com/wso2/product-is/tree/master/modules/integration

Good Luck!

On Thu, Mar 24, 2016 at 2:34 PM, Omindu Rathnaweera  wrote:

> Hi Gayan,
>
> Great to hear that you are interested in doing the project!
>
> Can you please give us permissions to add comments to the proposal doc ?
>
> Regards,
> Omindu.
>
> On Thu, Mar 24, 2016 at 2:10 PM, Gayan Liyanaarachchi <
> gayanliyanaarach...@gmail.com> wrote:
>
>> Hi Omindu/Tharindu,
>>
>>
>> I am Gayan who is a final year undergraduate student from  SLIIT.
>> Please find me draft proposal [1] for "SAML Assertion Query/Request Profile
>> support for WSO2 Identity Server".  It is really great, if you can review
>> and provide some feedback on it.
>>
>>
>> [1]
>> https://docs.google.com/document/d/17fgRhEUs0dVpfv-QTC6oL8s12K2N7h8Q1VxYN4Tb-Xc/edit?usp=sharing
>>
>>
>> Thanks,
>> Gayan.
>>
>
>
>
> --
> Omindu Rathnaweera
> Software Engineer, WSO2 Inc.
> Mobile: +94 771 197 211
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [GSoC 16'] Proposal 20: [IS] SCIM 2.0 Support to WSO2 Identity Server

2016-03-22 Thread Chamila Wijayarathna
Hi Manujith,

identity-framework [1] contains the code base of the features of Identity
Server, and product-is [2] contains the code which install features at
identity-framework to Identity Server. Component specific code is available
at identity-framework repo, because some of these features are not only
used in Identity Server, but in some other carbon based products as well.
So you need to work with the code at identity-framework mainly.

But for building the Identity Server using source, first you need to run
identity-framework, then build identity-extensions [3] which get packed
into Identity server (You can find this list at [4], you can use scripts at
there to clone and build those extensions). Then build product-is. When you
are building identity-framework and extensions, maven save those artifacts
in your M2_HOME and when you are building product-is, it use these
artifacts. If you only build product-is, since there are no artifacts in
M2_HOME, it will download artifacts available online, so if you have done
any changes they will not appear in Identity Server pack you build.

Additionally, if you are changing only entitlement component in identity
server, without following above mentioned process, you can just build a
pack by building product-is, then build the component you change (eg:
components/entitlement/org.wso2.carbon.identity.entitlement) and copy the
jar file build at target folder (eg:
components/entitlement/org.wso2.carbon.identity.entitlement) into /repository/components/patches/patch9000 (You'll have to create
patch9000 folder ). In this way also you can test any changes you are doing
to code.

This may be bit complex task, try it and if you find anything difficult,
please put a mail here.

[1]. https://github.com/wso2/identity-framework
[2]. https://github.com/wso2/product-is
[3]. https://github.com/wso2-extensions
[4]. https://gist.github.com/pulasthi7/3d365a3345371fd63f74

Cheers!

On Tue, Mar 22, 2016 at 8:09 PM, Manujith Pallewatte <manujith...@gmail.com>
wrote:

> Hi Omindu,
>
> Thank alot, I will look into those.
> also should I be working on the https://github.com/wso2/identity-framework
> codebase or https://github.com/wso2/product-is codebase
> i was under the impression that the latter is what I should focus on
>
>
>
>
>
> On Tue, Mar 22, 2016 at 7:55 PM, Omindu Rathnaweera <omi...@wso2.com>
> wrote:
>
>> Hi Manujith,
>>
>> Pushpalanka will be able to provide you more details on this.
>>
>> For the time being, you can try out the current XACML implementation by
>> following the resources at [1].
>>
>> The documentation related to XACML architecture [2] will help you to
>> understand the current implementation. The feature codebase can be found at
>> [3]. In the codebase, EntitlmentService [4] is the SOAP service
>> implementation.
>>
>> [1] -
>> https://docs.wso2.com/display/IS510/Configuring+the+Policy+Administration+Point
>> ,
>> http://pushpalankajaya.blogspot.com/2013/06/try-out-xacml-policies-with-wso2.html
>> [2] - https://docs.wso2.com/display/IS510/Access+Control
>> [3] -
>> https://github.com/wso2/identity-framework/tree/master/components/entitlement
>> [4] -
>> https://github.com/wso2/identity-framework/blob/master/components/entitlement/org.wso2.carbon.identity.entitlement/src/main/java/org/wso2/carbon/identity/entitlement/EntitlementService.java
>>
>> Regards,
>> Omindu.
>>
>> On Tue, Mar 22, 2016 at 6:51 PM, Chamila Wijayarathna <cham...@wso2.com>
>> wrote:
>>
>>> [Adding Pushpalanka]
>>>
>>> On Tue, Mar 22, 2016 at 6:05 PM, Manujith Pallewatte <
>>> manujith...@gmail.com> wrote:
>>>
>>>> Hi Omindu,
>>>>
>>>> It that case, I'm interested in doing *Proposal 22: [IS] RESTful Fine
>>>> Grained Authorization-as-a-Service (AZaaS)*
>>>> Since I'm a bi behind the schedule for starting over with it, can you
>>>> give me some pointers to start working? As I get it I have to focus on
>>>> Balana engine, should I be interacting more with the code of Balana, or IS?
>>>>
>>>> Thank You
>>>>
>>>> On Mon, Mar 21, 2016 at 10:56 PM, Omindu Rathnaweera <omi...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Manujith,
>>>>>
>>>>> Thank you for showing interest in the project. Unfortunately we have
>>>>> decided to remove the project from the project proposals list since we 
>>>>> need
>>>>> to add the scim 2.0 support to an upcoming release which is scheduled to 
>>>>> be
>>>>> done prior to the GSoC project period. We apologi

Re: [Dev] Fwd: [GSoC 16'] Proposal 20: [IS] SCIM 2.0 Support to WSO2 Identity Server

2016-03-22 Thread Chamila Wijayarathna
[Adding Pushpalanka]

On Tue, Mar 22, 2016 at 6:05 PM, Manujith Pallewatte 
wrote:

> Hi Omindu,
>
> It that case, I'm interested in doing *Proposal 22: [IS] RESTful Fine
> Grained Authorization-as-a-Service (AZaaS)*
> Since I'm a bi behind the schedule for starting over with it, can you give
> me some pointers to start working? As I get it I have to focus on Balana
> engine, should I be interacting more with the code of Balana, or IS?
>
> Thank You
>
> On Mon, Mar 21, 2016 at 10:56 PM, Omindu Rathnaweera 
> wrote:
>
>> Hi Manujith,
>>
>> Thank you for showing interest in the project. Unfortunately we have
>> decided to remove the project from the project proposals list since we need
>> to add the scim 2.0 support to an upcoming release which is scheduled to be
>> done prior to the GSoC project period. We apologize for any inconvenience
>> this may have caused.
>>
>> We have included a new project [1] to add *SAML Assertion Query/Request
>> Profile support for WSO2 Identity Server*. If interested, you can go
>> through the project details and submit a proposal for the new project or
>> one of the other Identity Server projects (project 22 & 23). If you have
>> any questions, feel free to raise.
>>
>> [1] -
>> https://docs.wso2.com/display/GSoC/Project+Proposals+for+2016#ProjectProposalsfor2016-Proposal20:[IS]SAMLAssertionQuery/RequestProfilesupportforWSO2IdentityServer
>>
>> Thanks,
>> Omindu.
>>
>> On Mon, Mar 21, 2016 at 9:59 PM, Pubudu Fernando 
>> wrote:
>>
>>> [adding mentors]
>>>
>>> On Mon, Mar 21, 2016 at 8:35 PM, Manujith Pallewatte <
>>> manujith...@gmail.com> wrote:
>>>
 Hi,

 I'm Manujith Pallewatte, a 2nd year undergraduate from Department of
 Computer Science and Engineering, University of Moratuwa. I'm interested in
 doing project for WSO2 for GSoC 2016.

 I already picked Proposal 20 considering my capabilities and interest
 in the area.
 As a Oracle certified java programmer I have a firm hand on Java, and I
 have developed several REST APIs on top of different platforms (like google
 app engine). And currently I'm reading on SCIM specification.

 So far, I cloned the *product-is* repo (
 https://github.com/wso2/product-is) which i believe to be the source
 of Identity Server and then build it. I played around with the system a bit
 and now trying to connect different services to it.

 So I want to know if I'm going in the wrong direction (with the
 objective of working for the above proposal) and please give me some
 suggestions to read or work on to improve my familiarity with the system.

 Thank You
 --



 [image: Manujith Pallewatte on about.me]

 Manujith Pallewatte
 about.me/manzzup
   



 --



 [image: Manujith Pallewatte on about.me]

 Manujith Pallewatte
 about.me/manzzup
   

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


>>>
>>>
>>> --
>>> *Pubudu Fernando*
>>> Software Engineer - Intern
>>> WSO2 Inc.
>>> m: +94 77 888 2543
>>>
>>>   
>>> 
>>> 
>>>
>>>
>>
>>
>> --
>> Omindu Rathnaweera
>> Software Engineer, WSO2 Inc.
>> Mobile: +94 771 197 211
>>
>
>
>
> --
>
>
>
> [image: Manujith Pallewatte on about.me]
>
> Manujith Pallewatte
> about.me/manzzup
>   
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Code Quality Improvements for carbon-identity

2016-03-22 Thread Chamila Wijayarathna
Hi Ayman,

Currently we are in a process of moving code in carbon-identity to
different repo structure where core identity features will be available at
identity-framework [1] and other pluggable extensions will be available at
different repos at wso2-extensions [2]. It would be great if you can add
your improvements to those repositories since we are planning to deprecate
carbon-identity repo soon.

[1]. https://github.com/wso2/identity-framework
[2]. https://github.com/wso2-extensions

Thank You!

On Tue, Mar 22, 2016 at 11:21 AM, Thanuja Jayasinghe 
wrote:

> Hi Ayman,
>
> Thank you for your interest in carbon-identity repo. We are willing to get
> help from the open-source community to improve the quality of our repos.
>
> Please send pull request with the code improvements, we are willing to
> review and merge them.
>
> Thanks,
> Thanuja
>
> On Tue, Mar 22, 2016 at 10:37 AM, Thanuja Lakmal  > wrote:
>
>> [Adding WSO2 - dev list]
>>
>> On Fri, Mar 18, 2016 at 6:42 PM,  wrote:
>>
>>> Hello,
>>>
>>> I'd like to send you some pull requests to improve the maintainability
>>> of carbon-identity.
>>>
>>> My company - DevFactory - is sponsoring me to identify and fix code
>>> quality issues and improve unit test coverage in open source projects.
>>> DevFactory is obsessed with code quality and is providing its commercially
>>> available code quality improvement service for free to qualified
>>> open-source projects.
>>>
>>> If you are interested, please let me know and we will add it to our
>>> pipeline. Our first step will be to utilize tools like PMD, FindBugs and
>>> Sonar to identify the most important issues to fix. Once we fix them, we'll
>>> follow up with some pull requests.
>>>
>>> Thanks,
>>> Ayman Abdelghany
>>>
>>>
>>
>>
>> --
>> *Thanuja Lakmal*
>> Senior Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94715979891
>>
>
>
>
> --
> *Thanuja Lakmal*
> Senior Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94715979891 +94758009992
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-03-21 Thread Chamila Wijayarathna
Hi Asantha,

Looks good, please talk with Tharindu also before submitting the proposal.
Even you submit your proposal, you can improve it until 25th.

So if time permits, I would like to suggest you to add some details about
what are the APIs and functions you are going to expose after developing
this new user store manager, if you have already decided on them. Since you
may have went through the codes of existing user store managers, you may
already have an idea about what are the functions you need to exposed to
outside. So if can add at least few functions you are going to expose with
some details, it would make your proposal more attractive. Also I would
like to suggest you to add link of github repo where you have started
development. Also if you have written any blogs related to the project,
mongoDB, etc. please mention them also in your proposal.

Also I see some formatting issues and some dates has got repeated in your
timeline, hope you will correct the when submitting proposal at GSoC site.

Cheers!

On Mon, Mar 21, 2016 at 9:18 PM, Asantha Thilina <asanthathil...@gmail.com>
wrote:

> Hi Chamila,
>
> Thanks a lot for your valuable feedback as you suggested i corrected my
> project proposal and here i attached my finalize project proposal
>
> expecting your feedback
>
> Thanks,
> Asantha
>
> On Mon, Mar 21, 2016 at 5:44 AM, Chamila Wijayarathna <cham...@wso2.com>
> wrote:
>
>> Hi Asantha,
>>
>> Thanks for sending your proposal. It seems to be in good shape, but I
>> would like to suggest few more improvements.
>>
>>1.  You have mentioned you are implementing Custom User Store Manager
>>by extending JDBCUserStoreManager. But actually you have to extend
>>AbstractUserStoreManager. I think you have done this correctly in the code
>>you sent previously. Please correct this.
>>2. I think by custom user store manager, you have meant mongoDB user
>>store manager you are planning to implement, in most places. Its better to
>>mention specifically as MongoDBUserStoreManager than saying custom user
>>store manager.
>>3. You have mentioned about "Implement a proper encryption mechanism
>>to overcome the security hauls in custom User store Manager.".  Can you be
>>more specific on what are the security holes you are talking about. AFAIK
>>encryption mechanisms we are currently using are quite ok and if there are
>>no any strong reasons, I suggest you to follow the existing mechanisms.
>>4. It would be great if you can allocate 1-2 weeks for doing a small
>>research on how other NoSQL databases such as CouchDB, Neo4j can be used 
>> to
>>implement an user store in IS. By looking at your time line, I think it
>>would be possible to allocate some time for this in the 2nd half of the
>>programme. We can do this if time permits, but its better to mention it in
>>your proposal as optional (I believe it would make the project more
>>complete).
>>
>> Looking forward to see your proposal.
>>
>> Good Luck!
>>
>> On Mon, Mar 21, 2016 at 5:15 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> here  i attached my project proposal for GSOC 2016 Project 21  for your
>>> kind consideration,
>>> I kindly request your feedback and thought on it.
>>>
>>> Thanks,
>>> Asantha
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Chamila Dilshan Wijayarathna,*
>> Software Engineer
>> Mobile:(+94)788193620
>> WSO2 Inc., http://wso2.com/
>>
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016 - Project 21 : Review Proposal

2016-03-21 Thread Chamila Wijayarathna
Hi Asantha,

Thanks for sending your proposal. It seems to be in good shape, but I would
like to suggest few more improvements.

   1.  You have mentioned you are implementing Custom User Store Manager by
   extending JDBCUserStoreManager. But actually you have to extend
   AbstractUserStoreManager. I think you have done this correctly in the code
   you sent previously. Please correct this.
   2. I think by custom user store manager, you have meant mongoDB user
   store manager you are planning to implement, in most places. Its better to
   mention specifically as MongoDBUserStoreManager than saying custom user
   store manager.
   3. You have mentioned about "Implement a proper encryption mechanism to
   overcome the security hauls in custom User store Manager.".  Can you be
   more specific on what are the security holes you are talking about. AFAIK
   encryption mechanisms we are currently using are quite ok and if there are
   no any strong reasons, I suggest you to follow the existing mechanisms.
   4. It would be great if you can allocate 1-2 weeks for doing a small
   research on how other NoSQL databases such as CouchDB, Neo4j can be used to
   implement an user store in IS. By looking at your time line, I think it
   would be possible to allocate some time for this in the 2nd half of the
   programme. We can do this if time permits, but its better to mention it in
   your proposal as optional (I believe it would make the project more
   complete).

Looking forward to see your proposal.

Good Luck!

On Mon, Mar 21, 2016 at 5:15 PM, Asantha Thilina 
wrote:

> Hi All,
>
> here  i attached my project proposal for GSOC 2016 Project 21  for your
> kind consideration,
> I kindly request your feedback and thought on it.
>
> Thanks,
> Asantha
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Adding user names with @ mark

2016-02-23 Thread Chamila Wijayarathna
Hi Lahiru,

I think in general it is okay to add user names with @ mark even when email
username is, I'm not sure if it will be different in your use case. As I
have mentioned in my previous reply, we can use such names by adding tenant
domain at the end of the user name. In management console, when adding
users with @ sign, we don't have to add @tenantDomain at the end, because
if you logged into management console as 'admin' you are already in super
tenant. But when registering to store this is not the case, since you are
not in any tenant yet, you'll have to mention tenant domain also. I have
tested these scenarios in IS 5.1.0 and they are working perfectly fine. But
we need to document this properly to make sure that a user who allows user
names with @ sign will follow this procedure properly.

I don't think changing java regex will do any good here. It is configurable
and when some one using GReg, he will most probably change such stuff which
are configurable. So IMO,  it does not matter what are the default
configuration we add in the product.

Thank You!

On Wed, Feb 24, 2016 at 9:01 AM, Lahiru J Ekanayake <lahi...@wso2.com>
wrote:

> Hi Darshana,
>
> The Jira is about the carbon store login. That issue has solved from
> jaggery side. Apart from the jira, If we use current GREG 5.1.0 pack, we
> can add a new user from management console side with user name containing @
> mark. But it should not allow to add user names with @ mark without
> enabling the email user name. I was able restrict user names with @ mark by
> changing regex to :
>
>
> *[a-zA-Z0-9._-|//]{3,30}$ *
> I'm not sure this is the best way to do this. Can you please advice.
>
> Regards
>
> On Tue, Feb 23, 2016 at 9:56 PM, Darshana Gunawardana <darsh...@wso2.com>
> wrote:
>
>> Hi Lahiru,
>>
>> What is the problem of having @ character? and how it does get solved
>> changing user-mgt.xml?
>>
>> I don't see the root issue we trying to solve here and it the approach we
>> are working here is wrong. ie. changing a default regex in user-mgt.xml
>> should not be a solution here.
>>
>> Thanks,
>>
>> On Tue, Feb 23, 2016 at 3:00 AM, Godwin Shrimal <god...@wso2.com> wrote:
>>
>>> Hi Lahiru,
>>>
>>> user-mgt.xml come from carbon kernel, you can find it under
>>> /distribution/kernel/carbon-home/repository/conf
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>>
>>> On Tue, Feb 23, 2016 at 12:37 PM, Lahiru J Ekanayake <lahi...@wso2.com>
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> if we can update user-mgt.xml file from ,  *>>> name="UsernameJavaRegEx">[a-zA-Z0-9._-|//]{3,30}$ *we can
>>>> solve that  issue (adding an user name with @ mark).
>>>>
>>>> *Current problem is * from where this *user-mgt.xml* comes into our
>>>> product. ? Can anyone help with this ?
>>>>
>>>> Regards
>>>>
>>>>
>>>>
>>>> On Fri, Feb 19, 2016 at 10:18 PM, Chamila Wijayarathna <
>>>> cham...@wso2.com> wrote:
>>>>
>>>>> [Adding Thanuja]
>>>>>
>>>>> Hi Lahiru,
>>>>>
>>>>> I recently had a discussion about this with Thanuja. When you don't
>>>>> have enabled emailUserName, still you should be able to use '@' in user
>>>>> names. But in that case, you have to mention user name in places (eg-:
>>>>> login) as username@carbon.super. I guess in your jira also, you
>>>>> should be able to add user to store if you add @tenant_domain to the end 
>>>>> of
>>>>> your username.
>>>>>
>>>>> Can you please check like that and update the thread?
>>>>>
>>>>> Thank You!
>>>>>
>>>>>
>>>>> On Fri, Feb 19, 2016 at 7:51 PM, Lahiru J Ekanayake <lahi...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> im working on this JIRRA https://wso2.org/jira/browse/REGISTRY-3249.
>>>>>> While working on this i was able to identify , admin user can add users ,
>>>>>> containing @ mark in user name *(Without enable EnableEmailUserName
>>>>>> from carbon.xml)* such as* a...@wso2.com <a...@wso2.com>.* I was
>>>>>> tested with GREG,ES,APIM also. I have able to identify that is problem 
>>>>>> with
>>>>>> the regex . GREG,ES,APIM has

Re: [Dev] [Carbon] Adding user names with @ mark

2016-02-19 Thread Chamila Wijayarathna
[Adding Thanuja]

Hi Lahiru,

I recently had a discussion about this with Thanuja. When you don't have
enabled emailUserName, still you should be able to use '@' in user names.
But in that case, you have to mention user name in places (eg-: login) as
username@carbon.super. I guess in your jira also, you should be able to add
user to store if you add @tenant_domain to the end of your username.

Can you please check like that and update the thread?

Thank You!


On Fri, Feb 19, 2016 at 7:51 PM, Lahiru J Ekanayake 
wrote:

> Hi,
>
> im working on this JIRRA https://wso2.org/jira/browse/REGISTRY-3249.
> While working on this i was able to identify , admin user can add users ,
> containing @ mark in user name *(Without enable EnableEmailUserName from
> carbon.xml)* such as* a...@wso2.com .* I was tested with
> GREG,ES,APIM also. I have able to identify that is problem with the regex .
> GREG,ES,APIM has following property in *user-mgt.xml . *
>
> * name="UsernameJavaRegEx">^[^~!#$;%^*+={}\\|,\'\"]{3,30}$*
>
> If we change that into  * name="UsernameJavaRegEx">[a-zA-Z0-9._-|//]{3,30}$ *Problem can
> solve.
>
> Current problem is : from where this user-mgt.xml comes into product. I
> have checked with product-greg, carbon-kernal,carbon-indentity. Those
> user-mgt.xml's content are different. Currently im trying to modify
> user-mgt.xml for *GREG.*
>
>
> Regards
>
>
> --
>
>
>
> *Lahiru J Ekanayake**Software Engineer*
> Mobile : +94 (0) 77 8812629 / +94(0) 778509547
> Email : lahi...@wso2.com
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middleware.
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Droping a Unique Constraint in a DB2 database

2016-02-18 Thread Chamila Wijayarathna
Hi Tharindu,

I could successfully drop the constraint by following the steps. I'll use
this in the migration scripts.

Thank You Very Much!

On Fri, Feb 19, 2016 at 9:02 AM, Tharindu Edirisinghe <tharin...@wso2.com>
wrote:

> Hi Chamila,
>
> IBM DB2 behaves little bit differently compared to other well known
> databases when comes to constraints and indexes. So let me explain the
> solution for your problem in detail.
>
> You have the following table.
>
> CREATE TABLE IDP_PROVISIONING_ENTITY (
> ID INTEGER NOT NULL,
> PROVISIONING_CONFIG_ID INTEGER NOT NULL,
> ENTITY_TYPE VARCHAR(255) NOT NULL,
> ENTITY_LOCAL_USERSTORE VARCHAR(255) NOT NULL,
> ENTITY_NAME VARCHAR(255) NOT NULL,
> ENTITY_VALUE VARCHAR(255) NOT NULL,
> TENANT_ID INTEGER NOT NULL,
> *PRIMARY KEY (ID),*
>
> *UNIQUE (ENTITY_TYPE, TENANT_ID, ENTITY_LOCAL_USERSTORE,
> ENTITY_NAME),UNIQUE (PROVISIONING_CONFIG_ID, ENTITY_TYPE,
> ENTITY_VALUE),*
> FOREIGN KEY (PROVISIONING_CONFIG_ID) REFERENCES
> IDP_PROVISIONING_CONFIG(ID) ON DELETE CASCADE)
> /
>
> It has a primary key and two unique constraints. The DB2 will
> automatically create indexes for these three constraints.
>
> The problem is, we have not defined the constraints as named constraints.
> Therefore we have to take an extra effort to find out the names of the
> indexes and the constraints which are auto generated by DB2.
>
> These are the two unique constraints that we have in the table.
>
>
> *   UNIQUE (ENTITY_TYPE, TENANT_ID, ENTITY_LOCAL_USERSTORE,
> ENTITY_NAME),UNIQUE (PROVISIONING_CONFIG_ID, ENTITY_TYPE,
> ENTITY_VALUE)*
>
> You can find the auto generated names for the unique constraints by
> running the following query. the constraintyp='U' for unique constraints
> and it is 'P' for primary keys.
>
> *db2 "select NAME from sysibm.systabconst where
> tbname='IDP_PROVISIONING_ENTITY' and constraintyp='U'"*
>
> NAME
>
>
> 
> SQL160219074557840
>
> SQL160219074557920
>
>
> Above is the result I got. You will get different values in your database
> as these are random generated.
>
> You can run the following query to see the indexes created for the
> IDP_PROVISIONING_ENTITY' table.
>
> *db2 "SELECT NAME, COLNAMES FROM SYSIBM.SYSINDEXES WHERE
> TBNAME='IDP_PROVISIONING_ENTITY'"*
>
> NAMECOLNAMES
> SQL160219074557290+ID
> SQL160219074557790
> +PROVISIONING_CONFIG_ID+ENTITY_TYPE+ENTITY_VALUE
> SQL160219074557860
> +ENTITY_TYPE+TENANT_ID+ENTITY_LOCAL_USERSTORE+ENTITY_NAME
>
> Now we know the constraint names for the two unique constraints and the
> index names for the IDP_PROVISIONING_ENTITY table.
>
> You can find the particular index you need to drop by adding a where
> clause for the above query as below.
>
> *db2 "SELECT NAME FROM SYSIBM.SYSINDEXES WHERE
> TBNAME='IDP_PROVISIONING_ENTITY' and
> COLNAMES='+ENTITY_TYPE+TENANT_ID+ENTITY_LOCAL_USERSTORE+ENTITY_NAME'"*
>
> NAME
>
>
> 
> SQL160219074557860
>
> In IBM DB2, you cannot drop an index which is generated for a constraint
> (primary key or unique) directly. For that, you need to drop the constraint
> which will drop the index also.
>
> But the problem is we do not know what is the name of the unique
> constraint that is associated with the index
> "+ENTITY_TYPE+TENANT_ID+ENTITY_LOCAL_USERSTORE+ENTITY_NAME". We already
> know that the index name we need to drop is *SQL160219074557860*.
>
> You can find it out which constraint is associated with which index by
> running the following query.
>
> *db2 "select CONSTNAME, BNAME from SYSCAT.CONSTDEP where TABNAME =
> 'IDP_PROVISIONING_ENTITY'"*
>
> CONSTNAME  BNAME
> SQL160219074557790  SQL160219074557290
> SQL160219074557840  SQL160219074557790
> SQL160219074557920  *SQL160219074557860*
>
>
>
> Based on the results, you can get to know the name of the constraint.
> So the constraint name associated with the index name "
> *SQL160219074557860*" is "*SQL160219074557920*".
>
> So since we know the constraint name now, we can drop the unique
> constraint.
>
> *db2 "ALTER TABLE IDP_PROVISIONING_ENTITY DROP UNIQUE SQL160219074557920"*
>
> This will drop the constraint as well as th

Re: [Dev] Droping a Unique Constraint in a DB2 database

2016-02-17 Thread Chamila Wijayarathna
Hi all,

Still I couldn't came up with a way to achieve this target.

So as a workaround I thought of dropping all the UNIQUE constraints and
then adding constraints which were not suppose to dropped. It may be more
costly than our previously mentioned approach, I don't see any other way of
achieving this.

WDYT?

Thanks

On Wed, Feb 17, 2016 at 12:30 PM, Chamila Wijayarathna <cham...@wso2.com>
wrote:

> Hi all,
>
> Currently I am working on developing the migration client and and scripts
> for DB2 to migrate from IS 5.0.0 to 5.1.0.
>
> There are some unique constraints, primary keys and foreign keys that has
> been used in IS 5.0.0 which have been removed in IS 5.1.0. So I need to
> remove those constraints in migration script.
>
> To drop unique constraints I only have the table name and columns of the
> unique constraint.
>
> To drop the unique constraint, following query can be used.
>
>  ALTER TABLE IDP_PROVISIONING_ENTITY DROP CONSTRAINT 
>
> But to do this I need to retrieve constraint name using table name and
> column list. Constraint names are available in both "sysibm.systabconst"
> and also in "SYSCAT.TABCONST" tables. How can I retrieve constraint name
> using the information I have with me currently.
>
> Thank You!
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://wso2.com/
>



-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Droping a Unique Constraint in a DB2 database

2016-02-16 Thread Chamila Wijayarathna
Hi all,

Currently I am working on developing the migration client and and scripts
for DB2 to migrate from IS 5.0.0 to 5.1.0.

There are some unique constraints, primary keys and foreign keys that has
been used in IS 5.0.0 which have been removed in IS 5.1.0. So I need to
remove those constraints in migration script.

To drop unique constraints I only have the table name and columns of the
unique constraint.

To drop the unique constraint, following query can be used.

 ALTER TABLE IDP_PROVISIONING_ENTITY DROP CONSTRAINT 

But to do this I need to retrieve constraint name using table name and
column list. Constraint names are available in both "sysibm.systabconst"
and also in "SYSCAT.TABCONST" tables. How can I retrieve constraint name
using the information I have with me currently.

Thank You!

-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Test-Automation] Error After Updating Selenium version

2016-02-04 Thread Chamila Wijayarathna
Hi Krishantha,

Thanks for the information. After following the steps you mentioned I could
successfully run IS ui tests without downgrading my Firefox version.

Sorry for the misunderstanding, I was not aware about this before.

Thanks.

On Fri, Feb 5, 2016 at 8:39 AM, Krishantha Samaraweera <krishan...@wso2.com>
wrote:

> Hi Chamila,
>
> You don't need to downgrade firefox on the machine. Use
> -Dwebdriver.firefox.bin system property and set it to firefox binary (No
> need to install firefox here just pointing to the directory would be
> enough)
>
> All Ui tests are disabled by default in local run using a maven property.
> Ui tests are configured to run on Jenkins machine only. If external user
> want to run UI tests they have to execute tests by enabling that property.
> Please refer AS and ML product UI tests and build plans.
>
> If you really want to upgrade  firefox then all these dependency conflicts
> need to be resolved.
>
>
> https://docs.wso2.com/display/TA430/FAQ#FAQ-HowcanIrunSeleniumtestswithadifferentversionofFirefox
> ?
>
> Thanks,
> Krishantha.
>
>
> On Thu, Feb 4, 2016 at 11:05 PM, Chamila Wijayarathna <cham...@wso2.com>
> wrote:
>
>> Hi Krishantha,
>>
>> Currently I am using Firefox version 41, but current selenium version of
>> IS only supports Firefox version 24 which is now about two years old, so to
>> run ui tests I'll have to either upgrade selenium to a later version or
>> downgrade my Firefox.
>>
>> Downgrading Firefox is not a problem for me since I use chrome as my
>> primary browser, but I believe a contributor who use Firefox as primary
>> browser will not prefer to downgrade his Firefox only for running ui tests.
>> Even its not the primary browser, I'll not be amazed if someone hesitate to
>> downgrade his Firefox version.
>>
>> So I thought it would be more user friendly, if it is possible to run our
>> ui tests in one of the latest Firefox versions. That's why I tried latest
>> selenium version 2.50.1.
>>
>> Thank you!
>> On Feb 4, 2016 3:49 PM, "Krishantha Samaraweera" <krishan...@wso2.com>
>> wrote:
>>
>>> Hi Chamila,
>>>
>>> Any specific reason to upgrade Selenium version explicitly.
>>>
>>> We recommend to use selenium dependency comes with 
>>> carbon-platform-integration
>>> (Selenium 2.40.0). Its because of the exact issue that you have found
>>> (When you upgrade Selenium it tread to conflict with other dependencies)
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>> On Wed, Feb 3, 2016 at 10:42 PM, Nuwan Wimalasekara <nuw...@wso2.com>
>>> wrote:
>>>
>>>> Hi Chamila,
>>>>
>>>> Seems this is a dependency issue with httpcore version. Can you please
>>>> try to update the httpcore version to latest and exclude all httpcore
>>>> transitive dependencies.
>>>>
>>>> Thanks,
>>>> Nuwanw
>>>>
>>>> On Wed, Feb 3, 2016 at 9:51 PM, Chamila Wijayarathna <cham...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> Currently in product-is, we are using carbon-platform-integration
>>>>> version 4.4.2 and selenium 2.40.0. I tried upgrading selenium version to
>>>>> 2.50.1 which is the latest version, but when I do that I am getting
>>>>> following error.
>>>>>
>>>>> java.lang.NoSuchFieldError: INSTANCE
>>>>> at
>>>>> org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:52)
>>>>> at
>>>>> org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:56)
>>>>> at
>>>>> org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:46)
>>>>> at
>>>>> org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:72)
>>>>> at
>>>>> org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:84)
>>>>> at
>>>>> org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:59)
>>>>> at
>>>>> org.apache.http.impl.conn.PoolingHttpClientConnectionManager$InternalConnectionFactory.(PoolingHttpClientConnectionManager.java:487)
>>>>> at
>>>>> org.apache.http.im

Re: [Dev] Updating carbon-platform-integration version of product-is

2016-02-04 Thread Chamila Wijayarathna
Hi Dharshana,

I have created a PR for this version upgrade [1]. Can you please check if
it contains all the necessary changes?

Also in test framework 4.4.3 it uses selenium 2.43.0, but IS currently uses
2.40.0, do we have to update this as well?

1.https://github.com/wso2/product-is/pull/412

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


Re: [Dev] [Test-Automation] Error After Updating Selenium version

2016-02-04 Thread Chamila Wijayarathna
Hi Krishantha,

Currently I am using Firefox version 41, but current selenium version of IS
only supports Firefox version 24 which is now about two years old, so to
run ui tests I'll have to either upgrade selenium to a later version or
downgrade my Firefox.

Downgrading Firefox is not a problem for me since I use chrome as my
primary browser, but I believe a contributor who use Firefox as primary
browser will not prefer to downgrade his Firefox only for running ui tests.
Even its not the primary browser, I'll not be amazed if someone hesitate to
downgrade his Firefox version.

So I thought it would be more user friendly, if it is possible to run our
ui tests in one of the latest Firefox versions. That's why I tried latest
selenium version 2.50.1.

Thank you!
On Feb 4, 2016 3:49 PM, "Krishantha Samaraweera" <krishan...@wso2.com>
wrote:

> Hi Chamila,
>
> Any specific reason to upgrade Selenium version explicitly.
>
> We recommend to use selenium dependency comes with carbon-platform-integration
> (Selenium 2.40.0). Its because of the exact issue that you have found
> (When you upgrade Selenium it tread to conflict with other dependencies)
>
> Thanks,
> Krishantha.
>
> On Wed, Feb 3, 2016 at 10:42 PM, Nuwan Wimalasekara <nuw...@wso2.com>
> wrote:
>
>> Hi Chamila,
>>
>> Seems this is a dependency issue with httpcore version. Can you please
>> try to update the httpcore version to latest and exclude all httpcore
>> transitive dependencies.
>>
>> Thanks,
>> Nuwanw
>>
>> On Wed, Feb 3, 2016 at 9:51 PM, Chamila Wijayarathna <cham...@wso2.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> Currently in product-is, we are using carbon-platform-integration
>>> version 4.4.2 and selenium 2.40.0. I tried upgrading selenium version to
>>> 2.50.1 which is the latest version, but when I do that I am getting
>>> following error.
>>>
>>> java.lang.NoSuchFieldError: INSTANCE
>>> at
>>> org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:52)
>>> at
>>> org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:56)
>>> at
>>> org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:46)
>>> at
>>> org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:72)
>>> at
>>> org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:84)
>>> at
>>> org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:59)
>>> at
>>> org.apache.http.impl.conn.PoolingHttpClientConnectionManager$InternalConnectionFactory.(PoolingHttpClientConnectionManager.java:487)
>>> at
>>> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:147)
>>> at
>>> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:136)
>>> at
>>> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:112)
>>> at
>>> org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:74)
>>> at
>>> org.openqa.selenium.remote.internal.HttpClientFactory.(HttpClientFactory.java:57)
>>> at
>>> org.openqa.selenium.remote.internal.HttpClientFactory.(HttpClientFactory.java:60)
>>> at
>>> org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.getDefaultHttpClientFactory(ApacheHttpClient.java:251)
>>> at
>>> org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.(ApacheHttpClient.java:228)
>>> at
>>> org.openqa.selenium.remote.HttpCommandExecutor.getDefaultClientFactory(HttpCommandExecutor.java:96)
>>> at
>>> org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:70)
>>> at
>>> org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:58)
>>> at
>>> org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:97)
>>> at
>>> org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
>>> at
>>> org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:119)
>>> at
>>> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:216)
>>> at
>>> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:211)
>>> at
>>> org.ope

[Dev] [Test-Automation] Error After Updating Selenium version

2016-02-03 Thread Chamila Wijayarathna
Hi all,

Currently in product-is, we are using carbon-platform-integration version
4.4.2 and selenium 2.40.0. I tried upgrading selenium version to 2.50.1
which is the latest version, but when I do that I am getting following
error.

java.lang.NoSuchFieldError: INSTANCE
at
org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:52)
at
org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:56)
at
org.apache.http.impl.io.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:46)
at
org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:72)
at
org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:84)
at
org.apache.http.impl.conn.ManagedHttpClientConnectionFactory.(ManagedHttpClientConnectionFactory.java:59)
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager$InternalConnectionFactory.(PoolingHttpClientConnectionManager.java:487)
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:147)
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:136)
at
org.apache.http.impl.conn.PoolingHttpClientConnectionManager.(PoolingHttpClientConnectionManager.java:112)
at
org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:74)
at
org.openqa.selenium.remote.internal.HttpClientFactory.(HttpClientFactory.java:57)
at
org.openqa.selenium.remote.internal.HttpClientFactory.(HttpClientFactory.java:60)
at
org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.getDefaultHttpClientFactory(ApacheHttpClient.java:251)
at
org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.(ApacheHttpClient.java:228)
at
org.openqa.selenium.remote.HttpCommandExecutor.getDefaultClientFactory(HttpCommandExecutor.java:96)
at
org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:70)
at
org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:58)
at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:97)
at
org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at
org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:119)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:216)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:207)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:120)
at
org.wso2.carbon.automation.extensions.selenium.BrowserManager.getDriver(BrowserManager.java:86)
at
org.wso2.carbon.automation.extensions.selenium.BrowserManager.getWebDriver(BrowserManager.java:62)
at
org.wso2.identity.ui.integration.test.login.ISLoginTestCase.setUp(ISLoginTestCase.java:37)

Following is the dependency tree created from mvn dependency:tree to the
integration tests module.

+- commons-codec.wso2:commons-codec:jar:1.4.0.wso2v1:compile
[INFO] |  \- commons-codec:commons-codec:jar:1.4:compile
[INFO] +- emma:emma:jar:2.1.5320:compile
[INFO] +- org.wso2.carbon:SecVerifier:aar:4.4.3:compile
[INFO] |  \- org.wso2.carbon:org.wso2.carbon.core:jar:4.4.3:compile
[INFO] | +-
org.wso2.orbit.com.hazelcast:hazelcast:jar:3.5.2.wso2v1:compile
[INFO] | |  \- com.hazelcast:hazelcast-all:jar:3.5.2:compile
[INFO] | +-
org.eclipse.osgi:org.eclipse.osgi:jar:3.9.1.v20130814-1242:compile
[INFO] | +-
org.eclipse.osgi:org.eclipse.osgi.services:jar:3.3.100.v20130513-1956:compile
[INFO] | +-
org.eclipse.equinox:org.eclipse.equinox.http.helper:jar:1.0.0:compile
[INFO] | +-
org.bouncycastle.wso2:bcprov-jdk15on:jar:1.49.0.wso2v2:compile
[INFO] | |  \- org.bouncycastle:bcprov-jdk15on:jar:1.49:compile
[INFO] | +-
org.wso2.carbon:org.wso2.carbon.registry.core:jar:4.4.3:compile
[INFO] | |  +- commons-io.wso2:commons-io:jar:2.0.0.wso2v2:compile
[INFO] | |  +- net.sourceforge.findbugs:annotations:jar:1.3.2:compile
[INFO] | |  +-
org.wso2.carbon:org.wso2.carbon.registry.xboot:jar:4.4.3:compile
[INFO] | |  +- org.compass-project.wso2:compass:jar:2.0.1.wso2v2:compile
[INFO] | |  +- org.apache.abdera.wso2:abdera:jar:1.0.0.wso2v3:compile
[INFO] | |  +-
org.apache.poi.wso2:poi-scratchpad:jar:3.9.0.wso2v1:compile
[INFO] | |  |  \- org.apache.poi:poi-scratchpad:jar:3.9:compile
[INFO] | |  | \- org.apache.poi:poi:jar:3.9:compile
[INFO] | |  \- commons-pool.wso2:commons-pool:jar:1.5.6.wso2v1:compile
[INFO] | +-
org.wso2.orbit.org.apache.neethi:neethi:jar:2.0.4.wso2v5:compile
[INFO] | +-
org.apache.httpcomponents.wso2:httpcore:jar:4.3.3.wso2v1:compile
[INFO] | \- wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4:compile
[INFO] +- org.wso2.is:
org.wso2.identity.integration.common.clients:jar:5.2.0-SNAPSHOT:compile
[INFO] |  +-

Re: [Dev] SCIM PUT/PATCH group with members in order to add a new member

2016-01-25 Thread Chamila Wijayarathna
Hi Xavaier,

I could run the steps you have mentioned above without any issue in my IS
5.1.0 setup.

In your case it seems like the issue is in your step 3 (Create second
user). There you have intended to create a user, but has sent  a GROUP POST
request to SCIM group endpoint, so there it will create a group not a user.
So there is no user with id '1b97b894-5cbe-4b39-b6ce-9606debc5a28'. This is
why your requests are failing. Please check that, it will fix your issue.

Thank You!

On Mon, Jan 25, 2016 at 10:26 PM, Xavier Pegenaute M2M <
xavier.pegena...@m2mcloudfactory.com> wrote:

> Hi again,
>
> first, thanks a lot for your previous answers. This time I had some
> problem updating a group when it has already some member. My steps are
> shown below:
>
> *1) Create a first user*
> curl -k --user admin:admin --data
> "{"schemas":[],"name":{"familyName":"John","givenName":"Doe"},"userName":'groupUSR001',"password":"testPwd123"}"
> --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Users
>
> {"id":"9b0585d0-646e-4eee-9d8a-342203540510","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyName":"John","givenName":"Doe"},"userName":"groupUSR001","meta":
> {"lastModified":"2016-01-25T08:50:55","location":
> "https://localhost:9443/wso2/scim/Users/9b0585d0-646e-4eee-9d8a-342203540510;
> 
> ,"created":"2016-01-25T08:50:55"}}
>
> *2) Create a group with a member*
> curl -k --user admin:admin --data "{"displayName": 'ngioletGR', "members":
> [{"value": "9b0585d0-646e-4eee-9d8a-342203540510", "display":
> "groupUSR001"}]}" --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Groups
>
>
> {"id":"1b97b894-5cbe-4b39-b6ce-9606debc5a28","schemas":["urn:scim:schemas:core:1.0"],"displayName":"PRIMARY/ngioletGR","members":[{"value":"9b0585d0-646e-4eee-9d8a-342203540510","display":"groupUSR001"}],"meta":{"lastModified":"2016-01-25T08:59:49","created":"2016-01-25T08:59:49","location":
> "https://localhost:9443/wso2/scim/Groups/1b97b894-5cbe-4b39-b6ce-9606debc5a28;
> 
> }}
>
> *3) Create a second user*
> curl -k --user admin:admin --data "{"displayName": 'ngioletGR2',
> "members": [{"value": "9b0585d0-646e-4eee-9d8a-342203540510", "display":
> "groupUSR001"}]}" --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Groups
>
>
> {"id":"1b97b894-5cbe-4b39-b6ce-9606debc5a28","schemas":["urn:scim:schemas:core:1.0"],"displayName":"PRIMARY/ngioletGR2","members":[{"value":"9b0585d0-646e-4eee-9d8a-342203540510","display":"groupUSR001"}],"meta":{"lastModified":"2016-01-25T08:59:49","created":"2016-01-25T08:59:49","location":
> "https://localhost:9443/wso2/scim/Groups/1b97b894-5cbe-4b39-b6ce-9606debc5a28;
> 
> }}
>
>
> *3a) PATCH group to add the last user*
> curl -k -X PATCH --user admin:admin --data "{"displayName": 'ngioletGR',
> "members": [{"value": "9b0585d0-646e-4eee-9d8a-342203540510", "display":
> "groupUSR001"}, {"value": "1b97b894-5cbe-4b39-b6ce-9606debc5a28",
> "display": "groupUSR002"}]}" --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Groups/1b97b894-5cbe-4b39-b6ce-9606debc5a28
>
> *{"Errors":[{"description":"User: 1b97b894-5cbe-4b39-b6ce-9606debc5a28
> doesn't exist in the user store. Hence, can not update the group:
> ngioletGR","code":"500"}]}*
>
> *3b) PUT group **to add the last user*
> curl -k -X PUT --user admin:admin --data "{"displayName": 'ngioletGR',
> "members": [{"value": "9b0585d0-646e-4eee-9d8a-342203540510", "display":
> "groupUSR001"}, {"value": "1b97b894-5cbe-4b39-b6ce-9606debc5a28",
> "display": "groupUSR002"}]}" --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Groups/1b97b894-5cbe-4b39-b6ce-9606debc5a28
>
> *{"Errors":[{"description":"Error occurred while updating old group :
> PRIMARY/ngioletGR","code":"500"}]}*
>
>
> Am I wrong in some step?, I am using IS 5.1
>
> Best regards,
> Xavi
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SCIM missing members when list groups

2016-01-22 Thread Chamila Wijayarathna
Hi Xavier,

The result you are getting is the expected result. When you list groups,
you will only receive the list of groups available with group ID, group
name and their meta data.

If you perform a GET request by specifying an exact group, you will receive
response with list of group members.

Seems like response in the doc you have mentioned is wrong. It needs to be
corrected.

Thank You!

On Wed, Jan 20, 2016 at 7:22 PM, Xavier Pegenaute M2M <
xavier.pegena...@m2mcloudfactory.com> wrote:

> Hi all,
>
> I've been trying to follow the SCIM documentation [1] to manage user and
> groups but apparently the groups members are not visualized after the group
> creation phase. These are my steps:
>
> 1) Create user
> curl -v -k --user admin:admin --data "{"schemas":[],"name":{"familyName":"
> gunasinghe","givenName":"hasinitg"},"userName":"hasinitg","password":"
> hasinitg","emails":[{"primary":true,"value":"hasini_home.com","type":"home
> "},{"value":"hasini_work.com","type":"work"}]}" --header
> "Content-Type:application/json" https://localhost:9443/wso2/scim/Users
> OUTPUT { "meta": { "created": "2016-01-20T13:41:51", "location":
> "https://localhost:9443/wso2/scim/Users/c3561007-5174-4b7d-9d6f-db523164a370;
> ,
> "lastModified": "2016-01-20T13:41:51" }, "emails": [ { "type": "home",
> "value": "hasini_home.com" }, { "type": "work", "value": "hasini_work.com"
> } ], "userName": "hasinitg", "name": { "givenName": "hasinitg",
> "familyName": "gunasinghe" }, "schemas": [ "urn:scim:schemas:core:1.0" ],
> "id": "c3561007-5174-4b7d-9d6f-db523164a370" } 2) Create group adding the
> user curl -k --user admin:admin --data "{"displayName":
> "engineer","members":
> [{"value":"c3561007-5174-4b7d-9d6f-db523164a370","display": "hasinitg"}]}"
> --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Groups
>
> OUTPUT
> {
>   "meta": {
> "location":
> "https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a;
> 
> ,
> "created": "2016-01-20T13:47:20",
> "lastModified": "2016-01-20T13:47:20"
>   },
>   "members": [
> {
>   "display": "hasinitg",
>   "value": "c3561007-5174-4b7d-9d6f-db523164a370"
> }
>   ],
>   "displayName": "PRIMARY/engineer",
>   "schemas": [
> "urn:scim:schemas:core:1.0"
>   ],
>   "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
> }
>
> As you can notice, in member the hasinitg user is shown.
>
> 3) List groups (missing the members field)
> curl -k --user admin:admin --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Groups
>
>
> OUTPUT
> {
>   "Resources": [
> {
>   "meta": {
> "location":
> "https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a;
> 
> ,
> "created": "2016-01-20T13:47:20",
> "lastModified": "2016-01-20T13:47:20"
>   },
>   "displayName": "PRIMARY/engineer",
>   "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
> }
>   ],
>   "totalResults": 1,
>   "schemas": [
> "urn:scim:schemas:core:1.0"
>   ]
> }
>
> Any one of you have any similar experience?, as it is stated in the
> documentation [1], this output should show the members field.
>
> Thanks & Regards,
>
> [1] - https://docs.wso2.com/display/IS510/SCIM+APIs
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SCIM missing members when list groups

2016-01-22 Thread Chamila Wijayarathna
Hi Nadeesha,

Filtering operation is not extracting a specific group, its used to list
groups, but filter it by username or any other attribute name of attribute
pattern.

To retrieve specific group we need to use following command.

curl -k --user admin:admin --header "Content-Type:application/json"
https://localhost:9443/wso2/scim/Groups/ad583049-0cad-4dc4-ab08-e520dbb4fec8

There you will get the list of users with other attributes of the group as
follows.

{"id":"ad583049-0cad-4dc4-ab08-e520dbb4fec8","schemas":["urn:scim:schemas:core:1.0"],"displayName":"engineer","members":[{"value":"a5a564a4-5d63-416b-90bd-77fa2130cdc9","display":"hasinitg"}],"meta":{"lastModified":"2016-01-22T12:58:33","created":"2016-01-22T12:58:33","location":"
https://localhost:9443/wso2/scim/Groups/ad583049-0cad-4dc4-ab08-e520dbb4fec8
"}}

So what you have observed is not a bug, it is how it suppose to work. For
more information about requests and responses in SCIM 1.1, please refer
specification at [1].

[1]. http://www.simplecloud.info/specs/draft-scim-api-01.html

Thank You!

On Fri, Jan 22, 2016 at 2:14 PM, Nadeesha Meegoda <nadees...@wso2.com>
wrote:

> Hi Chamila,
>
> Why doesn't the filer command return the member list?
>
> On Fri, Jan 22, 2016 at 2:09 PM, Nadeesha Meegoda <nadees...@wso2.com>
> wrote:
>
>> Hi Chamila,
>>
>> I checked this. Neither specifying an exact group is not returning the
>> members of the Group. Seems this is a bug.
>>
>>
>> curl -v -k --user admin:admin
>> https://localhost:9443/wso2/scim/Groups?filter=displayName+Eq+%22engineer%22
>>
>>
>>
>> {"schemas":["urn:scim:schemas:core:1.0"],"totalResults":1,"Resources":[{"id":"0f13fb29-78b8-4eb4-832d-c7a6cf12e45f","displayName":"PRIMARY/engineer","meta":{"lastModified":"2016-01-22T13:38:13","created":"2016-01-22T13:38:13","location":"
>> https://localhost:9443/wso2/scim/Groups/0f13fb29-78b8-4eb4-832d-c7a6cf12e45f
>> "}}]}
>>
>> On Fri, Jan 22, 2016 at 1:59 PM, Chamila Wijayarathna <cham...@wso2.com>
>> wrote:
>>
>>> Hi Xavier,
>>>
>>> The result you are getting is the expected result. When you list groups,
>>> you will only receive the list of groups available with group ID, group
>>> name and their meta data.
>>>
>>> If you perform a GET request by specifying an exact group, you will
>>> receive response with list of group members.
>>>
>>> Seems like response in the doc you have mentioned is wrong. It needs to
>>> be corrected.
>>>
>>> Thank You!
>>>
>>> On Wed, Jan 20, 2016 at 7:22 PM, Xavier Pegenaute M2M <
>>> xavier.pegena...@m2mcloudfactory.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I've been trying to follow the SCIM documentation [1] to manage user
>>>> and groups but apparently the groups members are not visualized after the
>>>> group creation phase. These are my steps:
>>>>
>>>> 1) Create user
>>>> curl -v -k --user admin:admin --data "{"schemas":[],"name":{"familyName
>>>> ":"gunasinghe","givenName":"hasinitg"},"userName":"hasinitg","password
>>>> ":"hasinitg","emails":[{"primary":true,"value":"hasini_home.com","type
>>>> ":"home"},{"value":"hasini_work.com","type":"work"}]}" --header
>>>> "Content-Type:application/json" https://localhost:9443/wso2/scim/Users
>>>> OUTPUT { "meta": { "created": "2016-01-20T13:41:51", "location":
>>>> "https://localhost:9443/wso2/scim/Users/c3561007-5174-4b7d-9d6f-db523164a370;
>>>> <https://localhost:9443/wso2/scim/Users/c3561007-5174-4b7d-9d6f-db523164a370>,
>>>> "lastModified": "2016-01-20T13:41:51" }, "emails": [ { "type": "home",
>>>> "value": "hasini_home.com" }, { "type": "work", "value": "
>>>> hasini_work.com" } ], "userName": "hasinitg", "name": { "givenName":
>>>> "hasinitg", "familyName": "gunasinghe&

Re: [Dev] [VOTE] Release WSO2 Identity Server 5.1.0 RC2

2015-12-22 Thread Chamila Wijayarathna
Hi all,

I have tested following functionality in both super tenant and tenant mode.

*Workflow Management Embedded BPS*

   - Add/Delete/Update Workflow
   - Add/Delete/Disable Engagements
   - Engagements with apply if condition
   - User store operations associated with workflows
   - Approve/Reject workflow requests using dashboard
   - Delete workflow requests
   - Multi step workflows / Requests associate with multiple workflow

*UserPortal*

   - Self Sign Up (with/without workflows associated)
   - Update user profile
   - Associate local user accounts
   - Switch user accounts
   - Change password

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

On Mon, Dec 21, 2015 at 6:29 PM, Hasintha Indrajee 
wrote:

> Hi Devs,
>
> This is the second release candidate of WSO2 Identity Server 5.1.0.
>
> This release fixes the following issues:
> https://wso2.org/jira/issues/?filter=12586
>
> Please download, test and vote.
>
> Source & binary distribution files:
> https://github.com/wso2/product-is/releases/tag/v5.1.0-rc2
>
> Maven staging repo:
> http://maven.wso2.org/nexus/content/repositories/orgwso2is-218/
>
> The tag to be voted upon:
> https://github.com/wso2/product-is/tree/v5.1.0-rc2
>
>
> [ ]  Stable - go ahead and release
> [ ]  Broken - do not release (explain why)
>
> Thanks and Regards,
> WSO2 Identity Server Team.
>
> --
> Hasintha Indrajee
> Software Engineer
> WSO2, Inc.
> Mobile:+94 771892453
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Clarification Regarding the behavior of Multiple Local Account Associations via the Dashboard

2015-12-03 Thread Chamila Wijayarathna
Hi Nadeesha,

Yes, this is the expected behavior. What account association really means
is if you associate two accounts, both accounts belongs to same user or
something similar. In your case where 3 accounts are associated, it's
similar to one person owns all 3 accounts. So all 3 accounts will get
associated with each other. Its like a cluster of accounts belonging to a
person, When you associate new account it will added to the cluster.

Also when you have logged in as Admin and removed your association with
user A, association between A and B also get removed. Its similar to
removing account 'A' from the cluster.

Hope this helps.

Thanks

On Fri, Dec 4, 2015 at 12:29 PM, Nadeesha Meegoda 
wrote:

> Hi all,
>
> What is the expected behavior when two or more accounts are associated to
> one account? For example Assume there is 3 Local Accounts as "Admin", "A"
> and "B"
>
> Login as "Admin" to dashboard and Associate Account "A" and Account "B",
> Now Switch Account to  Account "A". Currently Account "Admin" and Account
> "B" both are shown as Associated Accounts for Account "A". I thought
> Account "A" should only be associated with Account "Admin" and if Account
> "A" wants to Associate with Account "B", "B" should be separately
> associated.
>
> I need to know whether what is happening currently is the expected
> behavior? Please Clarify!
>
>
> Thanks
> Nadeesha
>
> --
> *Nadeesha Meegoda*
> Software Engineer - QA
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> email : nadees...@wso2.com
> mobile: +94783639540
> <%2B94%2077%202273555>
>



-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Utility Method to Retrieve Services URL of a Server

2015-12-03 Thread Chamila Wijayarathna
Hi all,

Is there any utility method to retrieve services URL (eg :-
https://localhost:9443/services/

)
from java or jaggery?

Thank You!

-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS] [Cluster] Error while deploying BPEL & HT packages

2015-12-01 Thread Chamila Wijayarathna
t;>
>>>>>> Regards,
>>>>>> Aparna
>>>>>>
>>>>>> On Thu, Oct 29, 2015 at 2:39 PM, Vinod Kavinda <vi...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> HI,
>>>>>>> Adding to above, some of those tags such as 'xml:space'  are not
>>>>>>> required that are added by dev studio. They can be removed from the 
>>>>>>> model
>>>>>>> without affecting any functionality.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Vinod Kavinda
>>>>>>>
>>>>>>> On Thu, Oct 29, 2015 at 2:36 PM, Vinod Kavinda <vi...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi all,
>>>>>>>> Those errors can be seen in standalone mode also, they can be seen
>>>>>>>> in carbon logs. These are bpel compilation errors logged by ODE server 
>>>>>>>> due
>>>>>>>> to the extensions we have introduced in  BPS, which are not compliance 
>>>>>>>> with
>>>>>>>> ODE (They are not errors actually).
>>>>>>>> If the package get deployed successfully, please ignore those error
>>>>>>>> logs.
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Vinod
>>>>>>>>
>>>>>>>> On Thu, Oct 29, 2015 at 9:46 AM, Aparna Karunarathna <
>>>>>>>> apa...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi all,
>>>>>>>>>
>>>>>>>>> I have attached the bpel package to the jira[1]
>>>>>>>>>
>>>>>>>>> [1] https://wso2.org/jira/browse/IDENTITY-3950
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Aparna
>>>>>>>>>
>>>>>>>>> On Wed, Oct 28, 2015 at 10:29 PM, Nandika Jayawardana <
>>>>>>>>> nand...@wso2.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>> Can you attach the actual bpel package generated. It looks like
>>>>>>>>>> some invalid content is generated into the bpel file.
>>>>>>>>>>
>>>>>>>>>> Regards
>>>>>>>>>> Nandika
>>>>>>>>>>
>>>>>>>>>> On Wed, Oct 28, 2015 at 10:20 PM, Harsha Thirimanna <
>>>>>>>>>> hars...@wso2.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Is this intermittent ? Because I also reported this once
>>>>>>>>>>> earlier  in dev mail. This was happened intermittently earlier in
>>>>>>>>>>> standalone pack as well.
>>>>>>>>>>> On Oct 28, 2015 10:15 PM, "Chamila Wijayarathna" <
>>>>>>>>>>> cham...@wso2.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi all,
>>>>>>>>>>>>
>>>>>>>>>>>> Currently we are testing IS workflow feature with a BPS
>>>>>>>>>>>> cluster. When creating a new workflow, we have observed following 
>>>>>>>>>>>> error at
>>>>>>>>>>>> BPS terminal.
>>>>>>>>>>>>
>>>>>>>>>>>> ERROR
>>>>>>>>>>>> {org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler}
>>>>>>>>>>>>  -
>>>>>>>>>>>>  
>>>>>>>>>>>> null:file:///home/ubuntu/manager/wso2bps-3.5.0/repository/bpel/-1234/aa-10/aa.bpel:51:17:cvc-complex-type.2.4.a:
>>>>>>>>>>>> Invalid content was found starting with element 'extensions'. One 
>>>>>>>>>>>> of '{"
>>>>>>>>>>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":import,
>>>>>>>>>>>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":pa

Re: [Dev] Blocker in IS authenticator

2015-11-10 Thread Chamila Wijayarathna
Hi Shakila,

Can you please share a link of the source code of Tiqr authenticator you
are working with.

Thanks.

On Wed, Nov 11, 2015 at 10:08 AM, Rasika Perera  wrote:

> Hi Shakila,
>
> First error is more like deserialization issue. The
> "InvalidClassException" usually occurs when the receiver has loaded a class
> for the object that has a different serialVersionUID than that of the
> corresponding sender's class.
>
> Have you defined explicitly "serialVersionUID" in your serializable class
> "TiqrAuthenticator"? If you do not explicitly declare this, serialization
> runtime will calculate this based on the various aspect of the class.
> According to the java doc[1], recommended way is to explicitly
> declare serialVersionUID values, since the default serialVersionUID
> computation is highly sensitive to class details that may vary depending on
> compiler implementations, and can thus result in unexpected
> InvalidClassExceptions during deserialization.
>
> [1] http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html
>
> Thanks,
> Rasika
>
> On Wed, Nov 11, 2015 at 8:18 AM, Shakila Sivagnanarajah 
> wrote:
>
>> Hi all,
>>
>> I implemented IS authenticator for Tiqr for IS 5.0.0 earlier. Now to
>> enable another feature with association I need to modify the authenticator
>> for 5.1.0. I used wso2is-5.1.0-beta for this. Since required dependencies
>> (artifacts versioned as 5.1.0-beta) not in nexus, I put them locally and
>> given local path in pom. Now I'm getting two errors. I mentioned them here.
>> Can anyone help me to resolve this?
>>
>> [1] This is caused while retrieving previous session data.
>>
>> in FrameworkUtils:
>> SessionContextCacheEntry cacheEntryObj =
>> SessionContextCache.getInstance().getValueFromCache(cacheKey);
>> returns null
>>
>> I got this stack-trace:
>> [2015-11-11 07:38:22,258] ERROR
>> {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
>> -  Error while retrieving session data
>>
>> java.io.InvalidClassException:
>> org.wso2.carbon.identity.authenticator.TiqrAuthenticator; local class
>> incompatible: stream classdesc serialVersionUID = 1179165995021182755,
>> local class serialVersionUID = 7666485910146971411
>>
>> at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:604)
>>
>> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)
>>
>> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
>>
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
>>
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>>
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>>
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>>
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>>
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>>
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>>
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>
>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
>>
>> at java.util.HashMap.readObject(HashMap.java:1155)
>>
>> at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>
>> at java.lang.reflect.Method.invoke(Method.java:601)
>>
>> at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)
>>
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
>>
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>>
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>>
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>>
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>>
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>
>> at
>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>>
>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>>
>> at
>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>>
>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>
>> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
>>
>> at
>> org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore.getBlobObject(SessionDataStore.java:428)
>>
>> at
>> 

Re: [Dev] Blocker in IS authenticator

2015-11-10 Thread Chamila Wijayarathna
Hi Shakila,

It seems like you are using the same database you used with IS 5.0.0, after
moving to 5.1.0 beta.

If you are using the same database as your previous setup, those
scripts/tables may not compatible with what are expected in 5.1.0. You may
have to migrate or otherwise you can delete the previous database and start
IS again with -Dsetup. If 2nd option is possible, it would be the easiest.

The reason for the error is as I understand, we have fixed [1] in IS 5.1.0
and there we have changed serielVersionUID s of some objects which are
saved to databases as blobs by serializing. So when you try to retrieve old
entry which written to database in prior IS version would be serialized
with a 1 serialversionUID and when retrieving it from database after
migration, it try to deserialize, but version ID's does not match. So due
to that it fails to deserialize and this error occurs.

Thanks

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

On Wed, Nov 11, 2015 at 10:27 AM, Chamila Wijayarathna <cham...@wso2.com>
wrote:

> Hi Shakila,
>
> Can you please share a link of the source code of Tiqr authenticator you
> are working with.
>
> Thanks.
>
> On Wed, Nov 11, 2015 at 10:08 AM, Rasika Perera <rasi...@wso2.com> wrote:
>
>> Hi Shakila,
>>
>> First error is more like deserialization issue. The
>> "InvalidClassException" usually occurs when the receiver has loaded a class
>> for the object that has a different serialVersionUID than that of the
>> corresponding sender's class.
>>
>> Have you defined explicitly "serialVersionUID" in your serializable
>> class "TiqrAuthenticator"? If you do not explicitly declare this,
>> serialization runtime will calculate this based on the various aspect of
>> the class. According to the java doc[1], recommended way is to explicitly
>> declare serialVersionUID values, since the default serialVersionUID
>> computation is highly sensitive to class details that may vary depending on
>> compiler implementations, and can thus result in unexpected
>> InvalidClassExceptions during deserialization.
>>
>> [1] http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html
>>
>> Thanks,
>> Rasika
>>
>> On Wed, Nov 11, 2015 at 8:18 AM, Shakila Sivagnanarajah <shak...@wso2.com
>> > wrote:
>>
>>> Hi all,
>>>
>>> I implemented IS authenticator for Tiqr for IS 5.0.0 earlier. Now to
>>> enable another feature with association I need to modify the authenticator
>>> for 5.1.0. I used wso2is-5.1.0-beta for this. Since required dependencies
>>> (artifacts versioned as 5.1.0-beta) not in nexus, I put them locally and
>>> given local path in pom. Now I'm getting two errors. I mentioned them here.
>>> Can anyone help me to resolve this?
>>>
>>> [1] This is caused while retrieving previous session data.
>>>
>>> in FrameworkUtils:
>>> SessionContextCacheEntry cacheEntryObj =
>>> SessionContextCache.getInstance().getValueFromCache(cacheKey);
>>> returns null
>>>
>>> I got this stack-trace:
>>> [2015-11-11 07:38:22,258] ERROR
>>> {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
>>> -  Error while retrieving session data
>>>
>>> java.io.InvalidClassException:
>>> org.wso2.carbon.identity.authenticator.TiqrAuthenticator; local class
>>> incompatible: stream classdesc serialVersionUID = 1179165995021182755,
>>> local class serialVersionUID = 7666485910146971411
>>>
>>> at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:604)
>>>
>>> at
>>> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)
>>>
>>> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
>>>
>>> at
>>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
>>>
>>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>>
>>> at
>>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>>>
>>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>>>
>>> at
>>> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
>>>
>>> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
>>>
>>> at
>>> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
>>>
>>> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
>>>

Re: [Dev] Blocker in IS authenticator

2015-11-10 Thread Chamila Wijayarathna
Hi Shakila,

The proper way to do is migrating the database, but if you don't have any
useful data in the database deleting the database would be easier.

You can just drop the database, create a new database with same name and
the start server with './wso2server.sh -Dsetup'.

Thanks

On Wed, Nov 11, 2015 at 11:10 AM, Shakila Sivagnanarajah <shak...@wso2.com>
wrote:

> Thanks Rasika & Chamila Wijayarathna,
>
> Earlier I didn't specify the serialVersionUID. Now I set that as the
> expected one (1179165995021182755L). It's working fine.
>
>  @ Chamila Wijayarathna: Do I need to delete the database? If so, can you
> give reference to do that?
>
> Thanks
>
> On Wed, Nov 11, 2015 at 10:50 AM, Chamila Wijayarathna <cham...@wso2.com>
> wrote:
>
>> Hi Shakila,
>>
>> It seems like you are using the same database you used with IS 5.0.0,
>> after moving to 5.1.0 beta.
>>
>> If you are using the same database as your previous setup, those
>> scripts/tables may not compatible with what are expected in 5.1.0. You may
>> have to migrate or otherwise you can delete the previous database and start
>> IS again with -Dsetup. If 2nd option is possible, it would be the easiest.
>>
>> The reason for the error is as I understand, we have fixed [1] in IS
>> 5.1.0 and there we have changed serielVersionUID s of some objects which
>> are saved to databases as blobs by serializing. So when you try to retrieve
>> old entry which written to database in prior IS version would be serialized
>> with a 1 serialversionUID and when retrieving it from database after
>> migration, it try to deserialize, but version ID's does not match. So due
>> to that it fails to deserialize and this error occurs.
>>
>> Thanks
>>
>> [1]. https://wso2.org/jira/browse/IDENTITY-3621
>>
>> On Wed, Nov 11, 2015 at 10:27 AM, Chamila Wijayarathna <cham...@wso2.com>
>> wrote:
>>
>>> Hi Shakila,
>>>
>>> Can you please share a link of the source code of Tiqr authenticator
>>> you are working with.
>>>
>>> Thanks.
>>>
>>> On Wed, Nov 11, 2015 at 10:08 AM, Rasika Perera <rasi...@wso2.com>
>>> wrote:
>>>
>>>> Hi Shakila,
>>>>
>>>> First error is more like deserialization issue. The
>>>> "InvalidClassException" usually occurs when the receiver has loaded a class
>>>> for the object that has a different serialVersionUID than that of the
>>>> corresponding sender's class.
>>>>
>>>> Have you defined explicitly "serialVersionUID" in your serializable
>>>> class "TiqrAuthenticator"? If you do not explicitly declare this,
>>>> serialization runtime will calculate this based on the various aspect of
>>>> the class. According to the java doc[1], recommended way is to explicitly
>>>> declare serialVersionUID values, since the default serialVersionUID
>>>> computation is highly sensitive to class details that may vary depending on
>>>> compiler implementations, and can thus result in unexpected
>>>> InvalidClassExceptions during deserialization.
>>>>
>>>> [1] http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html
>>>>
>>>> Thanks,
>>>> Rasika
>>>>
>>>> On Wed, Nov 11, 2015 at 8:18 AM, Shakila Sivagnanarajah <
>>>> shak...@wso2.com> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I implemented IS authenticator for Tiqr for IS 5.0.0 earlier. Now to
>>>>> enable another feature with association I need to modify the authenticator
>>>>> for 5.1.0. I used wso2is-5.1.0-beta for this. Since required dependencies
>>>>> (artifacts versioned as 5.1.0-beta) not in nexus, I put them locally and
>>>>> given local path in pom. Now I'm getting two errors. I mentioned them 
>>>>> here.
>>>>> Can anyone help me to resolve this?
>>>>>
>>>>> [1] This is caused while retrieving previous session data.
>>>>>
>>>>> in FrameworkUtils:
>>>>> SessionContextCacheEntry cacheEntryObj =
>>>>> SessionContextCache.getInstance().getValueFromCache(cacheKey);
>>>>> returns null
>>>>>
>>>>> I got this stack-trace:
>>>>> [2015-11-11 07:38:22,258] ERROR
>>>>> {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
>>>>> -  Error while retrieving sessio

Re: [Dev] [IS] Admin/Tenant Admin Users cannot be filtered to get the SCIM ID

2015-11-05 Thread Chamila Wijayarathna
Hi Nadeesha,

As I mentioned in my previous mail, super admin and tenant admin are not
created with a SCIM ID, so you can't retrieve them using SCIM GET.

I was suggesting above request to get other users of tenant, if you are
interested, since the command you were using previously for retrieving
tenant users were wrong.

Thanks

On Thu, Nov 5, 2015 at 5:03 PM, Nadeesha Meegoda <nadees...@wso2.com> wrote:

> Hi all,
>
> So I requested to get the SCIM ID as what Chamila mentioned by the
> following command
> curl -v -k --user ten...@new.com:123456
> https://localhost:9443/wso2/scim/Users?filter=userNameEqtenant
>
> But still this doesn't give any result only a http 404 error. So tenant
> admins also are considered for the special flaw?
>
> On Thu, Nov 5, 2015 at 3:41 PM, Gayan Gunawardana <ga...@wso2.com> wrote:
>
>>
>>
>> On Thu, Nov 5, 2015 at 3:13 PM, Darshana Gunawardana <darsh...@wso2.com>
>> wrote:
>>
>>>
>>>
>>> On Thu, Nov 5, 2015 at 12:45 PM, Gayan Gunawardana <ga...@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Thu, Nov 5, 2015 at 11:26 AM, Chamila Wijayarathna <cham...@wso2.com
>>>> > wrote:
>>>>
>>>>> Hi Nadeesha,
>>>>>
>>>>> When creating super admin or tenant admin users, they don't get
>>>>> created with a SCIM ID since they are considered as special users in IS.
>>>>> Because of this when listing users through scim, those users will not get
>>>>> listed.
>>>>> But if you want, you can add a SCIM ID manually by updating the user
>>>>> and then you will be able to list the also as SCIM Users.
>>>>>
>>>>> When listing users of tenants, you need to use credentials of tenant
>>>>> admin users. When sending SCIM request with admin:admin, you will only see
>>>>> users at super tenant. Also for filter, don't use @tenant.com,
>>>>> because if u logged in as tenant admin and list users, there you won't see
>>>>> user name with @tenant.com, so your curl command to filter a user at
>>>>> tenant should be as follows.
>>>>>
>>>>> curl -v -k --user ad...@tenant.com:admin123
>>>>> https://localhost:9443/wso2/scim/Users?filter=userNameEqtenant
>>>>> <https://localhost:9443/wso2/scim/Users?filter=usernameeqten...@hello.com>
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Wed, Nov 4, 2015 at 8:40 PM, Nadeesha Meegoda <nadees...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Chamila,
>>>>>>
>>>>>> I'm using the embedded ldap which comes default in IS. In that SCIM
>>>>>> comes enabled as default.
>>>>>>
>>>>>> On Wed, Nov 4, 2015 at 6:27 PM, Chamila Wijayarathna <
>>>>>> cham...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Nadeesha,
>>>>>>>
>>>>>>> What is the value of SCIMEnabled configuration in your user-mgt.xml?
>>>>>>>
>>>>>>> Are you using LDAP or JDBC user store manager?
>>>>>>>
>>>>>> @Chamila
>>>>
>>>> admin user is added in very fist server start up by calling
>>>> "addInitialAdminData" in AbstractUserStoreManager. In embedded ldap
>>>> scenario concrete "doAddUser" method will be invoked in
>>>> ReadWriteLDAPUserStoreManager so user will be directly added to user store
>>>> without going through SCIM listener (without going through any listener).
>>>> Since there is no SCIM listener engagement SCIM ID will not be added to
>>>> user store.
>>>>
>>>> I am not sure about we are not getting SCIM ID just because of admin
>>>> user is a special user or kind of implementation we have right now.
>>>>
>>>
>>> Chamila checked with me on this and he meant admin user is special due
>>> to the same reason you explained above. Basically admin user is created
>>> through special flow compared to normal users.
>>>
>> If we generate SCIM ID even in that special flaw. Is that correct ?
>>
>>>
>>> Thanks,
>>>
>>>>
>>>> Adding Johann.
>>>>
>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> On Wed, Nov 4, 2015 at 6:2

Re: [Dev] [IS] Admin/Tenant Admin Users cannot be filtered to get the SCIM ID

2015-11-04 Thread Chamila Wijayarathna
Hi Nadeesha,

When creating super admin or tenant admin users, they don't get created
with a SCIM ID since they are considered as special users in IS. Because of
this when listing users through scim, those users will not get listed.
But if you want, you can add a SCIM ID manually by updating the user and
then you will be able to list the also as SCIM Users.

When listing users of tenants, you need to use credentials of tenant admin
users. When sending SCIM request with admin:admin, you will only see users
at super tenant. Also for filter, don't use @tenant.com, because if u
logged in as tenant admin and list users, there you won't see user name
with @tenant.com, so your curl command to filter a user at tenant should be
as follows.

curl -v -k --user ad...@tenant.com:admin123
https://localhost:9443/wso2/scim/Users?filter=userNameEqtenant
<https://localhost:9443/wso2/scim/Users?filter=usernameeqten...@hello.com>

Thanks

On Wed, Nov 4, 2015 at 8:40 PM, Nadeesha Meegoda <nadees...@wso2.com> wrote:

> Hi Chamila,
>
> I'm using the embedded ldap which comes default in IS. In that SCIM comes
> enabled as default.
>
> On Wed, Nov 4, 2015 at 6:27 PM, Chamila Wijayarathna <cham...@wso2.com>
> wrote:
>
>> Hi Nadeesha,
>>
>> What is the value of SCIMEnabled configuration in your user-mgt.xml?
>>
>> Are you using LDAP or JDBC user store manager?
>>
>> Thanks
>>
>> On Wed, Nov 4, 2015 at 6:20 PM, Nadeesha Meegoda <nadees...@wso2.com>
>> wrote:
>>
>>> Hi IS Team,
>>>
>>> I was trying to filter and get admin users SCIM ID and failed, even
>>> tried for tenant admin and still I couldn't filter and get the SCIM ID
>>>
>>> Command used :
>>> curl -v -k --user admin:admin
>>> https://localhost:9443/wso2/scim/Users?filter=userNameEqadmin
>>> curl -v -k --user admin:admin
>>> https://localhost:9443/wso2/scim/Users?filter=usernameeqten...@hello.com
>>>
>>> Searching through the jira found out that in the past, listing admin
>>> users as scim users were removed as per [1]
>>>
>>> How can we filter and get the admin/tenant admin SCIM ID?
>>>
>>> [1] - https://wso2.org/jira/browse/IDENTITY-503
>>>
>>> Thanks
>>>
>>> --
>>> *Nadeesha Meegoda*
>>> Software Engineer - QA
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> email : nadees...@wso2.com
>>> mobile: +94783639540
>>> <%2B94%2077%202273555>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Chamila Dilshan Wijayarathna,*
>> Software Engineer
>> Mobile:(+94)788193620
>> WSO2 Inc., http://wso2.com/
>>
>
>
>
> --
> *Nadeesha Meegoda*
> Software Engineer - QA
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> email : nadees...@wso2.com
> mobile: +94783639540
> <%2B94%2077%202273555>
>



-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Admin/Tenant Admin Users cannot be filtered to get the SCIM ID

2015-11-04 Thread Chamila Wijayarathna
Hi Nadeesha,

What is the value of SCIMEnabled configuration in your user-mgt.xml?

Are you using LDAP or JDBC user store manager?

Thanks

On Wed, Nov 4, 2015 at 6:20 PM, Nadeesha Meegoda  wrote:

> Hi IS Team,
>
> I was trying to filter and get admin users SCIM ID and failed, even tried
> for tenant admin and still I couldn't filter and get the SCIM ID
>
> Command used :
> curl -v -k --user admin:admin
> https://localhost:9443/wso2/scim/Users?filter=userNameEqadmin
> curl -v -k --user admin:admin
> https://localhost:9443/wso2/scim/Users?filter=usernameeqten...@hello.com
>
> Searching through the jira found out that in the past, listing admin users
> as scim users were removed as per [1]
>
> How can we filter and get the admin/tenant admin SCIM ID?
>
> [1] - https://wso2.org/jira/browse/IDENTITY-503
>
> Thanks
>
> --
> *Nadeesha Meegoda*
> Software Engineer - QA
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> email : nadees...@wso2.com
> mobile: +94783639540
> <%2B94%2077%202273555>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS][Workflow] Workflow Dashboard Gadget - Operations Exposed to End User

2015-11-03 Thread Chamila Wijayarathna
Hi all,

Currently we don't have any use case for the suspend operation, also when
we are using external BPS for an interested party suspending human tasks
can be done by logging to BPS. So we will remove suspend/resume operations
from dashboard gadget.

Thanks.

On Tue, Nov 3, 2015 at 10:43 AM, Hasitha Aravinda <hasi...@wso2.com> wrote:

> Hi Chamila,
>
> On Tue, Nov 3, 2015 at 9:50 AM, Chamila Wijayarathna <cham...@wso2.com>
> wrote:
>
>> Hi all,
>>
>> Currently IS expose a dashboard gadget where users can see and
>> approve/reject workflow requests assigned to him or claimable to him.
>> Previously we exposed following operations for dashboard users.
>>
>> Claim, Release, Start. Stop, Approve, Reject, Suspend, Resume.
>>
>> From the discussion I had with Prabath and Darshana, we decided that
>> Start and Stop operation does not mean any use for end user so we decided
>> to remove them. So now we have following operations.
>>
>> Claim, Release, Approve, Reject, Suspend, Resume
>>
>
> +1, This will simplify
> ​user operations. Do you have  use case where you need to suspend an
> approval. If so keep Suspend, Resume options. In Normal scenario Claim,
> Complete (Approve or Reject), Release should be sufficient.
>
> ​Thanks,
> Hasitha. ​
>
> ​
>
>
>>
>> Now users can directly approve or disapprove tasks in READY or RESERVED
>> state without starting them, and starting will be handled without user
>> involvement.
>>
>> It's obvious that user should be able to do Claim, Release, Approve,
>> Reject operations using dashboard, but I'm not sure that if we should allow
>> and user to suspend and then resume tasks. I believe giving minimum number
>> of options for end user is the best thing to do. WDYT? Should we keep those
>> two options or shall we remove them?
>>
>> Thanks
>>
>> [1].
>> http://docs.oasis-open.org/bpel4people/ws-humantask-1.1-spec-cs-01.html#_Toc135718798
>>
>> --
>> *Chamila Dilshan Wijayarathna,*
>> Software Engineer
>> Mobile:(+94)788193620
>> WSO2 Inc., http://wso2.com/
>>
>
>
>
> --
> --
> Hasitha Aravinda,
> Senior Software Engineer,
> WSO2 Inc.
> Email: hasi...@wso2.com
> Mobile : +94 718 210 200
>



-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS][Workflow] Workflow Dashboard Gadget - Operations Exposed to End User

2015-11-02 Thread Chamila Wijayarathna
Hi all,

Currently IS expose a dashboard gadget where users can see and
approve/reject workflow requests assigned to him or claimable to him.
Previously we exposed following operations for dashboard users.

Claim, Release, Start. Stop, Approve, Reject, Suspend, Resume.

>From the discussion I had with Prabath and Darshana, we decided that Start
and Stop operation does not mean any use for end user so we decided to
remove them. So now we have following operations.

Claim, Release, Approve, Reject, Suspend, Resume

Now users can directly approve or disapprove tasks in READY or RESERVED
state without starting them, and starting will be handled without user
involvement.

It's obvious that user should be able to do Claim, Release, Approve, Reject
operations using dashboard, but I'm not sure that if we should allow and
user to suspend and then resume tasks. I believe giving minimum number of
options for end user is the best thing to do. WDYT? Should we keep those
two options or shall we remove them?

Thanks

[1].
http://docs.oasis-open.org/bpel4people/ws-humantask-1.1-spec-cs-01.html#_Toc135718798

-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS] [Cluster] Error while deploying BPEL & HT packages

2015-11-02 Thread Chamila Wijayarathna
t;>>
>>>>> Shouldn't we fix this issue? Vinod has clearly mentioned in the
>>>>> jira[1] that this was getting from extension that introduced in BPS/Dev
>>>>> Studio which is not compliance with ODE.
>>>>>
>>>>> *"Those errors can be seen in both standalone and cluster mode. These
>>>>> are bpel compilation errors logged by ODE server due to the extensions we
>>>>> have introduced in BPS/Dev Studio, which are not compliance with ODE (They
>>>>> are not errors actually).*
>>>>> *If the package get deployed successfully, please ignore those error
>>>>> logs."*
>>>>>
>>>>> [1] https://wso2.org/jira/browse/BPS-915
>>>>>
>>>>> Regards,
>>>>> Aparna
>>>>>
>>>>> On Thu, Oct 29, 2015 at 2:39 PM, Vinod Kavinda <vi...@wso2.com> wrote:
>>>>>
>>>>>> HI,
>>>>>> Adding to above, some of those tags such as 'xml:space'  are not
>>>>>> required that are added by dev studio. They can be removed from the model
>>>>>> without affecting any functionality.
>>>>>>
>>>>>> Regards,
>>>>>> Vinod Kavinda
>>>>>>
>>>>>> On Thu, Oct 29, 2015 at 2:36 PM, Vinod Kavinda <vi...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi all,
>>>>>>> Those errors can be seen in standalone mode also, they can be seen
>>>>>>> in carbon logs. These are bpel compilation errors logged by ODE server 
>>>>>>> due
>>>>>>> to the extensions we have introduced in  BPS, which are not compliance 
>>>>>>> with
>>>>>>> ODE (They are not errors actually).
>>>>>>> If the package get deployed successfully, please ignore those error
>>>>>>> logs.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Vinod
>>>>>>>
>>>>>>> On Thu, Oct 29, 2015 at 9:46 AM, Aparna Karunarathna <
>>>>>>> apa...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> I have attached the bpel package to the jira[1]
>>>>>>>>
>>>>>>>> [1] https://wso2.org/jira/browse/IDENTITY-3950
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Aparna
>>>>>>>>
>>>>>>>> On Wed, Oct 28, 2015 at 10:29 PM, Nandika Jayawardana <
>>>>>>>> nand...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>> Can you attach the actual bpel package generated. It looks like
>>>>>>>>> some invalid content is generated into the bpel file.
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>> Nandika
>>>>>>>>>
>>>>>>>>> On Wed, Oct 28, 2015 at 10:20 PM, Harsha Thirimanna <
>>>>>>>>> hars...@wso2.com> wrote:
>>>>>>>>>
>>>>>>>>>> Is this intermittent ? Because I also reported this once earlier
>>>>>>>>>> in dev mail. This was happened intermittently earlier in standalone 
>>>>>>>>>> pack as
>>>>>>>>>> well.
>>>>>>>>>> On Oct 28, 2015 10:15 PM, "Chamila Wijayarathna" <
>>>>>>>>>> cham...@wso2.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi all,
>>>>>>>>>>>
>>>>>>>>>>> Currently we are testing IS workflow feature with a BPS cluster.
>>>>>>>>>>> When creating a new workflow, we have observed following error at 
>>>>>>>>>>> BPS
>>>>>>>>>>> terminal.
>>>>>>>>>>>
>>>>>>>>>>> ERROR
>>>>>>>>>>> {org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler}
>>>>>>>>>>>  -
>>>>>>>>>>>  
>>>>>>>>>>> null:file:///home/ubun

[Dev] [BPS] [Cluster] Error while deploying BPEL & HT packages

2015-10-28 Thread Chamila Wijayarathna
Hi all,

Currently we are testing IS workflow feature with a BPS cluster. When
creating a new workflow, we have observed following error at BPS terminal.

ERROR
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
 
null:file:///home/ubuntu/manager/wso2bps-3.5.0/repository/bpel/-1234/aa-10/aa.bpel:51:17:cvc-complex-type.2.4.a:
Invalid content was found starting with element 'extensions'. One of '{"
http://docs.oasis-open.org/wsbpel/2.0/process/executable":import, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":partnerLinks, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":messageExchanges,
"http://docs.oasis-open.org/wsbpel/2.0/process/executable":variables, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":correlationSets, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":faultHandlers, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":eventHandlers, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":assign, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensate, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensateScope, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":empty, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":exit, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":extensionActivity,
"http://docs.oasis-open.org/wsbpel/2.0/process/executable":flow, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":forEach, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":if, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":invoke, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":pick, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":receive, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":repeatUntil, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":reply, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":rethrow, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":scope, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":sequence, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":throw, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":validate, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":wait, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":while}' is
expected.
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler}
TID: [-1234] [] [2015-10-28 03:30:39,230] ERROR
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
 
null:file:///home/ubuntu/manager/wso2bps-3.5.0/repository/bpel/-1234/aa-10/aa.bpel:51:17:cvc-complex-type.2.4.a:
Invalid content was found starting with element 'extensions'. One of '{"
http://docs.oasis-open.org/wsbpel/2.0/process/executable":import, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":partnerLinks, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":messageExchanges,
"http://docs.oasis-open.org/wsbpel/2.0/process/executable":variables, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":correlationSets, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":faultHandlers, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":eventHandlers, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":assign, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensate, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensateScope, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":empty, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":exit, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":extensionActivity,
"http://docs.oasis-open.org/wsbpel/2.0/process/executable":flow, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":forEach, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":if, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":invoke, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":pick, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":receive, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":repeatUntil, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":reply, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":rethrow, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":scope, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":sequence, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":throw, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":validate, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":wait, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":while}' is
expected.
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler}
TID: [-1234] [] [2015-10-28 03:30:39,231] ERROR
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
 

Re: [Dev] [IS] Table "IDP_METADATA" not found

2015-10-21 Thread Chamila Wijayarathna
Hi Charitha,

This missing table was introduced to carbon-identity in a commit merged
within last  week. So my guess on your issue is, you may trying to start a
newly build server while pointing it to a DB early. So can you drop
existing DB, create a new DB and start your server with -Dsetup, and check
if this issue still occurs?

Thanks

On Wed, Oct 21, 2015 at 11:51 AM, Charitha Goonetilleke 
wrote:

> Hi All,
>
> I'm using carbon-identity 4.6.0-SNAPSHOT for IoT-Server. In
> my application-authentication.xml and identity.xml, I used WSO2AM_DB as
> data source. But when H2 console doesn't showing any table named
> IDP_METADATA under WSO2AM_DB.
>
> I'm getting following error on server startup and when try to login with
> sso.
>
> org.wso2.carbon.idp.mgt.IdentityProviderManagementException: Error
> occurred while retrieving registered Identity Provider Entity IDs for
> tenant carbon.super
> at
> org.wso2.carbon.idp.mgt.dao.IdPManagementDAO.getIdPs(IdPManagementDAO.java:139)
> at
> org.wso2.carbon.idp.mgt.dao.CacheBackedIdPMgtDAO.getIdPs(CacheBackedIdPMgtDAO.java:73)
> at
> org.wso2.carbon.idp.mgt.IdentityProviderManager.getIdPs(IdentityProviderManager.java:675)
> at
> org.wso2.carbon.idp.mgt.internal.IdPManagementServiceComponent.cleanUpRemovedIdps(IdPManagementServiceComponent.java:221)
> at
> org.wso2.carbon.idp.mgt.internal.IdPManagementServiceComponent.activate(IdPManagementServiceComponent.java:147)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
> at
> org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent.activate(IdentityCoreServiceComponent.java:107)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> 

[Dev] [jaggery] Where should I Report Issues in IDEA Jaggery Plugin?

2015-10-18 Thread Chamila Wijayarathna
Hi all,

I have installed jaggery plugin in IDEA 14.1.3. I observed following
suggestion which is not spelled correctly.

[image: Inline image 1]

Correct function which is supported is "isDebugEnabled", but here it shows
"isDebugEnabeld".

At where should I report this issue?

Thank You!

-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Human Tasks] Listing Human Tasks Completed by a User

2015-10-02 Thread Chamila Wijayarathna
Hi all,

In IS dashboard gadget for approving/disapproving human tasks, currently we
are only showing tasks which are in the types "ASSIGNED_TO_ME" and
"CLAIMABLE". In the below jira (IDENTITY-3680), it is requested the tasks
completed by a particular user need to be shown in dashboard as well. Is
there a way we can get a list of human tasks completed by the logged in
user?

@Prabath, Johann, Pulasthi,
Since the main idea of the dashboard gadget is to claim/approve/disapprove
tasks, should we show 'completed' tasks at dashboard?

Thanks



-- Forwarded message --
From: Aparna Karunarathna (JIRA) 
Date: Tue, Sep 29, 2015 at 6:59 PM
Subject: [Carbon-jira] [jira] (IDENTITY-3680) Completed task are not
getting listed
To: carbon-j...@wso2.org


Aparna Karunarathna

created [image: Bug] IDENTITY-3680

*Completed task are not getting listed*

*Issue Type:* [image: Bug] Bug *Affects Versions:* 5.1.0-Alpha
*Assignee:* Pulasthi
Mahawithana

*Components:* workflows *Created:* 29/Sep/15 6:58 PM *Description:*

Completed task are not getting listed

Steps to reproduce
1. Create a workflow to approve users and add some user
2. Login to the dashboard and approve those users
3. Completed tasks are not showing
*Environment:*

Pack: Alpha
OS: Debian 8
Java: jdk1.7.0_79
Dep: Standalone
DB: Mysql 5.5.44
Browser: Firefox 40.0/ Chrome 44.0
*Project:* WSO2 Identity Server 
*Priority:* [image: Highest] Highest *Reporter:* Aparna Karunarathna
 This
message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA
administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

___
Carbon-jira mailing list
carbon-j...@wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/carbon-jira




-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Human Tasks] Listing Human Tasks Completed by a User

2015-10-02 Thread Chamila Wijayarathna
Hi Hasitha/Vinod,

Thanks, by using

http://schemas.xmlsoap.org/soap/envelope/;
xmlns:ns="http://docs.oasis-open.org/ns/bpel4people/ws-humantask/api/200803;
xmlns:ns1="
http://docs.oasis-open.org/ns/bpel4people/ws-humantask/types/200803;>
   
   
  
 

COMPLETED
10

0


ASSIGNED_TO_ME
 
  
   


as you have suggested, I could get the COMPLETED tasks of the logged in
user.

Is there a way to get COMPLETED, RESERVED and IN-PROGRESS tasks of
ASSIGNED_TO_ME in one service call?

Thanks

On Fri, Oct 2, 2015 at 1:10 PM, Hasitha Aravinda <hasi...@wso2.com> wrote:

> Correct category is ASSIGNED_TO_ME and use status filter COMPLETED in
> SimpleQuery.
>
> Thanks,
> Hasitha.
>
> On Fri, Oct 2, 2015 at 12:41 PM, Vinod Kavinda <vi...@wso2.com> wrote:
>
>> Hi Chamila,
>> Sorry I made a mistake, You can't do this in the same way as Claimable.
>> Use the SimpleQuery in  HumanTaskClientAPIAdmin. Use the sample given.
>>
>> Thank You
>> Vinod
>>
>> On Fri, Oct 2, 2015 at 12:22 PM, Vinod Kavinda <vi...@wso2.com> wrote:
>>
>>> Hi Chamila,
>>> You can use SimpleQuery operatin in HumanTaskClientAPIAdmin service.
>>> Invoke this operation in the same way you used to claimable status with
>>> "COMPLETED" as the status.
>>>  You can find a sample code in [1] line no 64.
>>>
>>> [1] -
>>> https://github.com/wso2/carbon-business-process/blob/master/components/humantask/humantask-explorer-web/src/web/js/WSHTRequest.js#L64
>>>
>>> Regards,
>>> Vinod Kavinda
>>>
>>> On Fri, Oct 2, 2015 at 11:44 AM, Chamila Wijayarathna <cham...@wso2.com>
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> In IS dashboard gadget for approving/disapproving human tasks,
>>>> currently we are only showing tasks which are in the types "ASSIGNED_TO_ME"
>>>> and "CLAIMABLE". In the below jira (IDENTITY-3680), it is requested the
>>>> tasks completed by a particular user need to be shown in dashboard as well.
>>>> Is there a way we can get a list of human tasks completed by the logged in
>>>> user?
>>>>
>>>> @Prabath, Johann, Pulasthi,
>>>> Since the main idea of the dashboard gadget is to
>>>> claim/approve/disapprove tasks, should we show 'completed' tasks at
>>>> dashboard?
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>> -- Forwarded message --
>>>> From: Aparna Karunarathna (JIRA) <j...@wso2.org>
>>>> Date: Tue, Sep 29, 2015 at 6:59 PM
>>>> Subject: [Carbon-jira] [jira] (IDENTITY-3680) Completed task are not
>>>> getting listed
>>>> To: carbon-j...@wso2.org
>>>>
>>>>
>>>> Aparna Karunarathna
>>>> <https://wso2.org/jira/secure/ViewProfile.jspa?name=aparna%40wso2.com>
>>>> created [image: Bug] IDENTITY-3680
>>>> <https://wso2.org/jira/browse/IDENTITY-3680>
>>>> *Completed task are not getting listed*
>>>> <https://wso2.org/jira/browse/IDENTITY-3680>
>>>> *Issue Type:* [image: Bug] Bug *Affects Versions:* 5.1.0-Alpha
>>>> *Assignee:* Pulasthi Mahawithana
>>>> <https://wso2.org/jira/secure/ViewProfile.jspa?name=pulasthim%40wso2.com>
>>>> *Components:* workflows *Created:* 29/Sep/15 6:58 PM *Description:*
>>>>
>>>> Completed task are not getting listed
>>>>
>>>> Steps to reproduce
>>>> 1. Create a workflow to approve users and add some user
>>>> 2. Login to the dashboard and approve those users
>>>> 3. Completed tasks are not showing
>>>> *Environment:*
>>>>
>>>> Pack: Alpha
>>>> OS: Debian 8
>>>> Java: jdk1.7.0_79
>>>> Dep: Standalone
>>>> DB: Mysql 5.5.44
>>>> Browser: Firefox 40.0/ Chrome 44.0
>>>> *Project:* WSO2 Identity Server <https://wso2.org/jira/browse/IDENTITY>
>>>> *Priority:* [image: Highest] Highest *Reporter:* Aparna Karunarathna
>>>> <https://wso2.org/jira/secure/ViewProfile.jspa?name=aparna%40wso2.com> This
>>>> message is automatically generated by JIRA.
>>>> If you think it was sent incorrectly, please contact your JIRA
>>>> administrators
>>>> For more information on JIRA, see:
>>>> http://www.atlassian.com/software/jira
>>>>

[Dev] [UX] [Carbon-jira] [jira] (IDENTITY-3528) Error while adding datepicker for selecting date range with jquery 1.6.0

2015-09-24 Thread Chamila Wijayarathna
Hi Dakshika/ UX-team,

We are having the issue mentioned in IDENTITY-3525, this is a blocker for
IS 5.1.0 release.
Can someone from UX team look into this ASAP?

Thanks


-- Forwarded message --
From: Chamila Wijayarathna (JIRA) <j...@wso2.org>
Date: Fri, Aug 21, 2015 at 4:29 PM
Subject: [Carbon-jira] [jira] (IDENTITY-3528) Error while adding datepicker
for selecting date range with jquery 1.6.0
To: carbon-j...@wso2.org


Chamila Wijayarathna
<https://wso2.org/jira/secure/ViewProfile.jspa?name=chamila%40wso2.com>
created [image: Bug] IDENTITY-3528
<https://wso2.org/jira/browse/IDENTITY-3528>
*Error while adding datepicker for selecting date range with jquery 1.6.0*
<https://wso2.org/jira/browse/IDENTITY-3528>
*Issue Type:* [image: Bug] Bug *Assignee:* Thusitha Kalugamage
<https://wso2.org/jira/secure/ViewProfile.jspa?name=thusitha%40wso2.com>
*Components:* workflows *Created:* 21/Aug/15 4:29 PM *Description:*

This issue can be reproduced in current master branch of github. In
monitor-> workflow requests page, in date picker there, when onClose called
for one time, calander is not shown again, it shows input field as a test
box.
*Project:* WSO2 Identity Server <https://wso2.org/jira/browse/IDENTITY>
*Priority:* [image: Normal] Normal *Reporter:* Chamila Wijayarathna
<https://wso2.org/jira/secure/ViewProfile.jspa?name=chamila%40wso2.com> This
message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA
administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

___
Carbon-jira mailing list
carbon-j...@wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/carbon-jira




-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UX] [Carbon-jira] [jira] (IDENTITY-3528) Error while adding datepicker for selecting date range with jquery 1.6.0

2015-09-24 Thread Chamila Wijayarathna
Hi Dakshika,'

The issue can be reproduced in IS-5.1.0-alpha pack which can be downloaded
from [1].
The jsp page relevant to this issue is at [2].
I have described how the issue can be reproduced at the above jira [3].
Please let me know if you need any further details on this.

Thanks


1. https://github.com/wso2/product-is/releases/tag/v5.1.0-alpha
2.
https://github.com/wso2/carbon-identity/blob/master/components/workflow-mgt/org.wso2.carbon.identity.workflow.mgt.ui/src/main/resources/web/workflow-mgt/wf-request-list.jsp
3. https://wso2.org/jira/browse/IDENTITY-3528

On Fri, Sep 25, 2015 at 6:26 AM, Dakshika Jayathilaka <daksh...@wso2.com>
wrote:

> Hi Chamila,
>
> Yes we can help you on this. Can you share latest pack and other relevant
> information.
>
> Regards,
>
> *Dakshika Jayathilaka*
> PMC Member & Committer of Apache Stratos
> Senior Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Thu, Sep 24, 2015 at 5:04 PM, Chamila Wijayarathna <cham...@wso2.com>
> wrote:
>
>> Hi Dakshika/ UX-team,
>>
>> We are having the issue mentioned in IDENTITY-3525, this is a blocker for
>> IS 5.1.0 release.
>> Can someone from UX team look into this ASAP?
>>
>> Thanks
>>
>>
>> -- Forwarded message --
>> From: Chamila Wijayarathna (JIRA) <j...@wso2.org>
>> Date: Fri, Aug 21, 2015 at 4:29 PM
>> Subject: [Carbon-jira] [jira] (IDENTITY-3528) Error while adding
>> datepicker for selecting date range with jquery 1.6.0
>> To: carbon-j...@wso2.org
>>
>>
>> Chamila Wijayarathna
>> <https://wso2.org/jira/secure/ViewProfile.jspa?name=chamila%40wso2.com>
>> created [image: Bug] IDENTITY-3528
>> <https://wso2.org/jira/browse/IDENTITY-3528>
>> *Error while adding datepicker for selecting date range with jquery 1.6.0*
>> <https://wso2.org/jira/browse/IDENTITY-3528>
>> *Issue Type:* [image: Bug] Bug *Assignee:* Thusitha Kalugamage
>> <https://wso2.org/jira/secure/ViewProfile.jspa?name=thusitha%40wso2.com>
>> *Components:* workflows *Created:* 21/Aug/15 4:29 PM *Description:*
>>
>> This issue can be reproduced in current master branch of github. In
>> monitor-> workflow requests page, in date picker there, when onClose called
>> for one time, calander is not shown again, it shows input field as a test
>> box.
>> *Project:* WSO2 Identity Server <https://wso2.org/jira/browse/IDENTITY>
>> *Priority:* [image: Normal] Normal *Reporter:* Chamila Wijayarathna
>> <https://wso2.org/jira/secure/ViewProfile.jspa?name=chamila%40wso2.com> This
>> message is automatically generated by JIRA.
>> If you think it was sent incorrectly, please contact your JIRA
>> administrators
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>
>> ___
>> Carbon-jira mailing list
>> carbon-j...@wso2.org
>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-jira
>>
>>
>>
>>
>> --
>> *Chamila Dilshan Wijayarathna,*
>> Software Engineer
>> Mobile:(+94)788193620
>> WSO2 Inc., http://wso2.com/
>>
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   3   >