Re: [Dev] [IS6] [M2] Add CXF Dependencies

2017-07-14 Thread Chamara Silva
On Sat, Jul 15, 2017 at 9:30 AM, Isuranga Perera 
wrote:

> Hi,
>
> I have embedded cxf dependencies in OSGI bundle. But even with cxf
> dependencies embedded I'm getting an error  "*Unresolved requirement:
> Import-Package*" related to all cxf packages. [1] is my *pom.xml* file.
> Appreciate if you can help with the issue.
>
> [1] https://gist.github.com/IsurangaPerera/6d881ad7b5996549e785fb08abdbf6
> e6
>
> Best Regards
>
> On Fri, Jul 14, 2017 at 11:26 PM, Isuranga Perera <
> isurangamper...@gmail.com> wrote:
>
>> Hi,
>>
>> What is the current method used in IS6 (C5)  to install a feature bundle?
>>
>>
>> On Fri, Jul 14, 2017 at 4:18 PM, Isuranga Perera <
>> isurangamper...@gmail.com> wrote:
>>
>>> Hi Sagara,
>>>
>>> Yes, this is for my GSoC project. I'll embed dependencies within my
>>> feature bundle.
>>>
>>> Best Regards
>>>
>>> On Fri, Jul 14, 2017 at 1:55 PM, Sagara Gunathunga 
>>> wrote:
>>>


 On Fri, Jul 14, 2017 at 1:30 PM, Harsha Thirimanna 
 wrote:

> Hi Sagara,
>
> It is correct to carbon 4.x.x.
>
> Is that same to IS 6.0.0 also in C5 ?
>

 AFAIK we don't have generic use cases to use CXF in any of our C5
 products  instead we can use MSF4J or Ballerina.  CXF is only required for
 IS to support  WS-Trust.

 @Isuranga, I assume this is for your GSoC project, if so for the time
 being  can you embed CXF dependencies  within your  feature bundle without
 exporting  to OSGi, later we can decide proper approach.  We had number of
 issues running CXF/Spring on OSGi so I don't want distract you with those
 issues during the project timeline.

 Thanks !

>
> On 14 Jul 2017 1:24 pm, "Sagara Gunathunga"  wrote:
>
>>
>> In Carbon products we don't use CXF as OSGi bundle instead CXF is a
>> custom runtime environment.
>>
>> Thanks !
>>
>> On Fri, Jul 14, 2017 at 12:42 PM, Isuranga Perera <
>> isurangamper...@gmail.com> wrote:
>>
>>> Hi Malithi,
>>>
>>> Yes, that is an osgi bundle.Thanks
>>>
>>>
>>>
>>> On Fri, Jul 14, 2017 at 11:55 AM, Malithi Edirisinghe <
>>> malit...@wso2.com> wrote:
>>>


 On Fri, Jul 14, 2017 at 11:09 AM, Isuranga Perera <
 isurangamper...@gmail.com> wrote:

> Hi All,
>
> I'm trying to add CXF support to IS6 m2. Even though the readme
> file mentions that external libraries have to be added to lib folder 
> there
> isn't a folder named lib. So can you suggest a way to add cxf 
> libraries to
> IS6 m2.
>

 Is this library an osgi bundle. If so, you can add it to dropins.
 Else you will have to wrap that to a bundle.


>
> Best Regards
> Isuranga Perera
>



 --

 *Malithi Edirisinghe*
 Associate Technical Lead
 WSO2 Inc.

 Mobile : +94 (0) 718176807
 malit...@wso2.com

>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>


 --
 Sagara Gunathunga

 Associate Director / Architect; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com


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


-- 
Suminda Chamara Silva
Technical Lead
WSO2 Inc.
Mobile: +94718302858
blog: http://chamaras.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS6] [M2] Add CXF Dependencies

2017-07-14 Thread Isuranga Perera
Hi,

I have embedded cxf dependencies in OSGI bundle. But even with cxf
dependencies embedded I'm getting an error  "*Unresolved requirement:
Import-Package*" related to all cxf packages. [1] is my *pom.xml* file.
Appreciate if you can help with the issue.

[1] https://gist.github.com/IsurangaPerera/6d881ad7b5996549e785fb08abdbf6e6

Best Regards

On Fri, Jul 14, 2017 at 11:26 PM, Isuranga Perera  wrote:

> Hi,
>
> What is the current method used in IS6 (C5)  to install a feature bundle?
>
>
> On Fri, Jul 14, 2017 at 4:18 PM, Isuranga Perera <
> isurangamper...@gmail.com> wrote:
>
>> Hi Sagara,
>>
>> Yes, this is for my GSoC project. I'll embed dependencies within my
>> feature bundle.
>>
>> Best Regards
>>
>> On Fri, Jul 14, 2017 at 1:55 PM, Sagara Gunathunga 
>> wrote:
>>
>>>
>>>
>>> On Fri, Jul 14, 2017 at 1:30 PM, Harsha Thirimanna 
>>> wrote:
>>>
 Hi Sagara,

 It is correct to carbon 4.x.x.

 Is that same to IS 6.0.0 also in C5 ?

>>>
>>> AFAIK we don't have generic use cases to use CXF in any of our C5
>>> products  instead we can use MSF4J or Ballerina.  CXF is only required for
>>> IS to support  WS-Trust.
>>>
>>> @Isuranga, I assume this is for your GSoC project, if so for the time
>>> being  can you embed CXF dependencies  within your  feature bundle without
>>> exporting  to OSGi, later we can decide proper approach.  We had number of
>>> issues running CXF/Spring on OSGi so I don't want distract you with those
>>> issues during the project timeline.
>>>
>>> Thanks !
>>>

 On 14 Jul 2017 1:24 pm, "Sagara Gunathunga"  wrote:

>
> In Carbon products we don't use CXF as OSGi bundle instead CXF is a
> custom runtime environment.
>
> Thanks !
>
> On Fri, Jul 14, 2017 at 12:42 PM, Isuranga Perera <
> isurangamper...@gmail.com> wrote:
>
>> Hi Malithi,
>>
>> Yes, that is an osgi bundle.Thanks
>>
>>
>>
>> On Fri, Jul 14, 2017 at 11:55 AM, Malithi Edirisinghe <
>> malit...@wso2.com> wrote:
>>
>>>
>>>
>>> On Fri, Jul 14, 2017 at 11:09 AM, Isuranga Perera <
>>> isurangamper...@gmail.com> wrote:
>>>
 Hi All,

 I'm trying to add CXF support to IS6 m2. Even though the readme
 file mentions that external libraries have to be added to lib folder 
 there
 isn't a folder named lib. So can you suggest a way to add cxf 
 libraries to
 IS6 m2.

>>>
>>> Is this library an osgi bundle. If so, you can add it to dropins.
>>> Else you will have to wrap that to a bundle.
>>>
>>>

 Best Regards
 Isuranga Perera

>>>
>>>
>>>
>>> --
>>>
>>> *Malithi Edirisinghe*
>>> Associate Technical Lead
>>> WSO2 Inc.
>>>
>>> Mobile : +94 (0) 718176807
>>> malit...@wso2.com
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sagara Gunathunga
>
> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>>>
>>>
>>> --
>>> Sagara Gunathunga
>>>
>>> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
>>> V.P Apache Web Services;http://ws.apache.org/
>>> Linkedin; http://www.linkedin.com/in/ssagara
>>> Blog ;  http://ssagara.blogspot.com
>>>
>>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need to increase column width for DATA_VALUE column of IDN_IDENTITY_USER_DATA table

2017-07-14 Thread Johann Nallathamby
Thanks Isura.

On Thu, Jul 13, 2017 at 6:39 AM, Isura Karunaratne  wrote:

> Fixed with https://wso2.org/jira/browse/IDENTITY-6142
>
> On Thu, Jul 13, 2017 at 9:43 AM, Isura Karunaratne  wrote:
>
>>
>> On Wed, Jul 12, 2017 at 11:00 PM Johann Nallathamby 
>> wrote:
>>
>>> Hi IAM Team,
>>>
>>> Please consider $subject high priority because the default column width
>>> is 256 characters which could be insufficient for some use cases.
>>> Especially with TOTP authenticator we are encrypting the secret key and
>>> storing it in this table. The production recommendation for key size is
>>> 2048 bits.
>>>
>> +1 will do
>>
>> Thanks
>> Isura
>>
>>>
>>>
>>> Thanks & Regards,
>>> Johann.
>>>
>>> --
>>>
>>> *Johann Dilantha Nallathamby*
>>> Senior Lead Solutions Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - *+9476950*
>>> Blog - *http://nallaa.wordpress.com *
>>>
>>
>
>
> --
>
> *Isura Dilhara Karunaratne*
> Senior Software Engineer | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810 <+94%2077%20225%204810>
> Blog : http://isurad.blogspot.com/
>
>
>
>


-- 
Thanks & Regards,

*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


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.17 RC2

2017-07-14 Thread Rushmin Fernando
Built IS 5.x.x branch with the integrations tests.

Manually tested user management.
  1) In tenants
  2) Using the embedded LDAP primary user store
  3) Using a JDBC secondary user store


Found no issues.

[ x] Stable  - Go ahead and release

On Fri, Jul 14, 2017 at 2:04 PM, Chandana Napagoda 
wrote:

> Hi All,
>
> This is the 2nd release candidate of WSO2 Carbon Kernel 4.4.17.
>
> This release fixes the following issues
> https://github.com/wso2/carbon-kernel/milestone/15?closed=1
>
> Please download and test your products with kernel 4.4.17 RC2 and vote.
> The vote will be open for 72 hours or as long as needed.
>
> Maven staging repository:
> https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1184/
>
> The tag to be voted upon:
> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.17-rc2
>
> [ ] Broken - Do not release (explain why)
> [ ] Stable  - Go ahead and release
>
> Thank you
> Platform Team
>
> --
> *Chandana Napagoda*
> Associate Technical Lead
> WSO2 Inc. - http://wso2.org
>
> *Email  :  chand...@wso2.com **Mobile : +94718169299
> <+94%2071%20816%209299>*
>
> *Blog  :http://cnapagoda.blogspot.com 
> | http://chandana.napagoda.com *
>
> *Linkedin : http://www.linkedin.com/in/chandananapagoda
> *
>
>


-- 
*Best Regards*

*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

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


Re: [Dev] [IS6] [M2] Add CXF Dependencies

2017-07-14 Thread Isuranga Perera
Hi,

What is the current method used in IS6 (C5)  to install a feature bundle?


On Fri, Jul 14, 2017 at 4:18 PM, Isuranga Perera 
wrote:

> Hi Sagara,
>
> Yes, this is for my GSoC project. I'll embed dependencies within my
> feature bundle.
>
> Best Regards
>
> On Fri, Jul 14, 2017 at 1:55 PM, Sagara Gunathunga 
> wrote:
>
>>
>>
>> On Fri, Jul 14, 2017 at 1:30 PM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Sagara,
>>>
>>> It is correct to carbon 4.x.x.
>>>
>>> Is that same to IS 6.0.0 also in C5 ?
>>>
>>
>> AFAIK we don't have generic use cases to use CXF in any of our C5
>> products  instead we can use MSF4J or Ballerina.  CXF is only required for
>> IS to support  WS-Trust.
>>
>> @Isuranga, I assume this is for your GSoC project, if so for the time
>> being  can you embed CXF dependencies  within your  feature bundle without
>> exporting  to OSGi, later we can decide proper approach.  We had number of
>> issues running CXF/Spring on OSGi so I don't want distract you with those
>> issues during the project timeline.
>>
>> Thanks !
>>
>>>
>>> On 14 Jul 2017 1:24 pm, "Sagara Gunathunga"  wrote:
>>>

 In Carbon products we don't use CXF as OSGi bundle instead CXF is a
 custom runtime environment.

 Thanks !

 On Fri, Jul 14, 2017 at 12:42 PM, Isuranga Perera <
 isurangamper...@gmail.com> wrote:

> Hi Malithi,
>
> Yes, that is an osgi bundle.Thanks
>
>
>
> On Fri, Jul 14, 2017 at 11:55 AM, Malithi Edirisinghe <
> malit...@wso2.com> wrote:
>
>>
>>
>> On Fri, Jul 14, 2017 at 11:09 AM, Isuranga Perera <
>> isurangamper...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I'm trying to add CXF support to IS6 m2. Even though the readme file
>>> mentions that external libraries have to be added to lib folder there 
>>> isn't
>>> a folder named lib. So can you suggest a way to add cxf libraries to 
>>> IS6 m2.
>>>
>>
>> Is this library an osgi bundle. If so, you can add it to dropins.
>> Else you will have to wrap that to a bundle.
>>
>>
>>>
>>> Best Regards
>>> Isuranga Perera
>>>
>>
>>
>>
>> --
>>
>> *Malithi Edirisinghe*
>> Associate Technical Lead
>> WSO2 Inc.
>>
>> Mobile : +94 (0) 718176807
>> malit...@wso2.com
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Sagara Gunathunga

 Associate Director / Architect; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com


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


>>
>>
>> --
>> Sagara Gunathunga
>>
>> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get Super tenant admin email

2017-07-14 Thread Godwin Shrimal
What you told is correct Tharindu, We need to get it via claims of the
users, not from Tenant. That's how I implemented.
And we cannot change the tenant email address which we enter while creating
and so righ thing is to get it from user store.


Thanks
Godwin

On Fri, Jul 14, 2017 at 5:08 AM, Tharindu Edirisinghe 
wrote:

> Hi Godwin,
>
> Can't you get the email address of the admin as a user claim ?
>
> I created a new tenant and at the time of tenant creation, we need to
> specify the email address of the tenant admin. Then the same email address
> is added as the admin's email address in the profile of the admin. So, if
> we retrieve the email address of the admin user of the tenant, I believe we
> receive the tenant's email address.
>
> For super tenant, since we don't create it (automatically created), we
> don't specify the email address for the tenant (like for other tenants).
> Then I believe what you need to retrieve is the email address defined in
> super tenant admin's profile.
>
> Is that the case ?
>
> Regards,
> TharinduE
>
>
>
> On Tue, Jul 11, 2017 at 7:09 PM, Godwin Shrimal  wrote:
>
>> Hi Ayesh,
>>
>> What I want is super tenant admin email.
>>
>>
>> Thanks
>> Godwin
>>
>> On Jul 11, 2017 12:17 AM, "Ayesha Dissanayaka"  wrote:
>>
>>> Hi Godwin,
>>>
>>> You can admin username from carbon context when in super-tenant flow.
>>>
>>> PrivilegedCarbonContext.getThreadLocalCarbonContext().getUse
>>> rRealm().getRealmConfiguration()
>>> .getAdminUserName()
>>>
>>> Thanks!
>>> -Ayesha
>>>
>>>
>>> On Tue, Jul 11, 2017 at 7:35 AM, Godwin Shrimal  wrote:
>>>
 Hi All,

 We cannot get super tenant information via TenantManager. Below code
 returns null, So how can we get the super tenant admin's email address ?

 *tenantManager.getTenant(-1234)*


 Thanks
 Godwin

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

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D *
 twitter: https://twitter.com/godwinamila
 

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


>>>
>>>
>>> --
>>> *Ayesha Dissanayaka*
>>> Senior Software Engineer,
>>> WSO2, Inc : http://wso2.com
>>> 
>>> 20, Palm grove Avenue, Colombo 3
>>> E-Mail: aye...@wso2.com 
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Senior Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : http://tharindue.blogspot.com
> mobile : +94 775181586 <+94%2077%20518%201586>
>



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

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila

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


Re: [Dev] [IS6] [M2] Add CXF Dependencies

2017-07-14 Thread Isuranga Perera
Hi Sagara,

Yes, this is for my GSoC project. I'll embed dependencies within my feature
bundle.

Best Regards

On Fri, Jul 14, 2017 at 1:55 PM, Sagara Gunathunga  wrote:

>
>
> On Fri, Jul 14, 2017 at 1:30 PM, Harsha Thirimanna 
> wrote:
>
>> Hi Sagara,
>>
>> It is correct to carbon 4.x.x.
>>
>> Is that same to IS 6.0.0 also in C5 ?
>>
>
> AFAIK we don't have generic use cases to use CXF in any of our C5 products
>  instead we can use MSF4J or Ballerina.  CXF is only required for IS to
> support  WS-Trust.
>
> @Isuranga, I assume this is for your GSoC project, if so for the time
> being  can you embed CXF dependencies  within your  feature bundle without
> exporting  to OSGi, later we can decide proper approach.  We had number of
> issues running CXF/Spring on OSGi so I don't want distract you with those
> issues during the project timeline.
>
> Thanks !
>
>>
>> On 14 Jul 2017 1:24 pm, "Sagara Gunathunga"  wrote:
>>
>>>
>>> In Carbon products we don't use CXF as OSGi bundle instead CXF is a
>>> custom runtime environment.
>>>
>>> Thanks !
>>>
>>> On Fri, Jul 14, 2017 at 12:42 PM, Isuranga Perera <
>>> isurangamper...@gmail.com> wrote:
>>>
 Hi Malithi,

 Yes, that is an osgi bundle.Thanks



 On Fri, Jul 14, 2017 at 11:55 AM, Malithi Edirisinghe <
 malit...@wso2.com> wrote:

>
>
> On Fri, Jul 14, 2017 at 11:09 AM, Isuranga Perera <
> isurangamper...@gmail.com> wrote:
>
>> Hi All,
>>
>> I'm trying to add CXF support to IS6 m2. Even though the readme file
>> mentions that external libraries have to be added to lib folder there 
>> isn't
>> a folder named lib. So can you suggest a way to add cxf libraries to IS6 
>> m2.
>>
>
> Is this library an osgi bundle. If so, you can add it to dropins. Else
> you will have to wrap that to a bundle.
>
>
>>
>> Best Regards
>> Isuranga Perera
>>
>
>
>
> --
>
> *Malithi Edirisinghe*
> Associate Technical Lead
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>


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


>>>
>>>
>>> --
>>> Sagara Gunathunga
>>>
>>> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
>>> V.P Apache Web Services;http://ws.apache.org/
>>> Linkedin; http://www.linkedin.com/in/ssagara
>>> Blog ;  http://ssagara.blogspot.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>
>
> --
> Sagara Gunathunga
>
> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] [Siddhi] Accepting options as dynamic options when placeholder is placed within a string.

2017-07-14 Thread Minudika Malshan
Hi,

Currently siddhi only identifies option parameter values defined only with
a place holder. But it does not identifies option parameters as dynamic if
the place holder is placed in the middle of a string. [1]

For example :
*@sink(type='file', uri={{symbol}}'*
In this case, *uri* will be identified as a dynamic option.

*@sink(type='file', uri='/abc/{{symbol}}.json*
In this case, *uri* will not be taken as a dynamic parameter even we have
registered as a supported dynamic option.

I have made a fix for this issue, but need to confirm it won't be an issue
for other implementations.

Shall we accept both above types of values as dynamic options?

[1]
https://github.com/wso2/siddhi/blob/master/modules/siddhi-core/src/main/java/org/wso2/siddhi/core/util/parser/helper/DefinitionParserHelper.java#L670

Thanks and regards!

-- 
*Minudika Gammanpila*
Software Engineer - WSO2

Email   :  minud...@wso2.com
Mobile :  +94715659887
Web :  http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get Super tenant admin email

2017-07-14 Thread Tharindu Edirisinghe
Hi Godwin,

Can't you get the email address of the admin as a user claim ?

I created a new tenant and at the time of tenant creation, we need to
specify the email address of the tenant admin. Then the same email address
is added as the admin's email address in the profile of the admin. So, if
we retrieve the email address of the admin user of the tenant, I believe we
receive the tenant's email address.

For super tenant, since we don't create it (automatically created), we
don't specify the email address for the tenant (like for other tenants).
Then I believe what you need to retrieve is the email address defined in
super tenant admin's profile.

Is that the case ?

Regards,
TharinduE



On Tue, Jul 11, 2017 at 7:09 PM, Godwin Shrimal  wrote:

> Hi Ayesh,
>
> What I want is super tenant admin email.
>
>
> Thanks
> Godwin
>
> On Jul 11, 2017 12:17 AM, "Ayesha Dissanayaka"  wrote:
>
>> Hi Godwin,
>>
>> You can admin username from carbon context when in super-tenant flow.
>>
>> PrivilegedCarbonContext.getThreadLocalCarbonContext().getUse
>> rRealm().getRealmConfiguration()
>> .getAdminUserName()
>>
>> Thanks!
>> -Ayesha
>>
>>
>> On Tue, Jul 11, 2017 at 7:35 AM, Godwin Shrimal  wrote:
>>
>>> Hi All,
>>>
>>> We cannot get super tenant information via TenantManager. Below code
>>> returns null, So how can we get the super tenant admin's email address ?
>>>
>>> *tenantManager.getTenant(-1234)*
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Ayesha Dissanayaka*
>> Senior Software Engineer,
>> WSO2, Inc : http://wso2.com
>> 
>> 20, Palm grove Avenue, Colombo 3
>> E-Mail: aye...@wso2.com 
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Tharindu Edirisinghe
Senior Software Engineer | WSO2 Inc
Platform Security Team
Blog : http://tharindue.blogspot.com
mobile : +94 775181586
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.17 RC2

2017-07-14 Thread Chandana Napagoda
Hi All,

This is the 2nd release candidate of WSO2 Carbon Kernel 4.4.17.

This release fixes the following issues
https://github.com/wso2/carbon-kernel/milestone/15?closed=1

Please download and test your products with kernel 4.4.17 RC2 and vote. The
vote will be open for 72 hours or as long as needed.

Maven staging repository:
https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1184/

The tag to be voted upon:
https://github.com/wso2/carbon-kernel/releases/tag/v4.4.17-rc2

[ ] Broken - Do not release (explain why)
[ ] Stable  - Go ahead and release

Thank you
Platform Team

-- 
*Chandana Napagoda*
Associate Technical Lead
WSO2 Inc. - http://wso2.org

*Email  :  chand...@wso2.com **Mobile : +94718169299*

*Blog  :http://cnapagoda.blogspot.com  |
http://chandana.napagoda.com *

*Linkedin : http://www.linkedin.com/in/chandananapagoda
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error when invoking Salesforce login method using jaggery

2017-07-14 Thread Mushthaq Rumy
Hi All,

I'm getting an error while invoking the Salesforce login operation using
jaggery. I tried the same payload through SOAP UI and it is working fine.
The following is the jaggery code block.

var payload =  '' +
  '' +
salesforce_username + '' +
  '' +
salesforce_password + salesforce_security_token + '' +
   '';
var options = new Array();
options.useSOAP = 1.1;
options.CONNECTION_TIMEOUT = 12;
salesforce.open(options, salesforce_url, false);
*salesforce.send(payload);*

The following is the error logged and the full error log is attached
herewith.

ERROR {org.jaggeryjs.modules.ws.WSRequestHostObject} -  Error occured while
invoking the service {org.jaggeryjs.modules.ws.WSRequestHostObject}
java.lang.NullPointerException

Any thoughts or help on this is highly appreciated.

Thanks & Regards,
Mushthaq
-- 
Mushthaq Rumy
*Software Engineer*
Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
Email : musht...@wso2.com
WSO2, Inc.; http://wso2.com/
lean . enterprise . middleware.




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


[Dev] WSO2 Enterprise Integrator 6.2.0-M1 Released!

2017-07-14 Thread Vinod Kavinda
The WSO2 Integration team is pleased to announce the release of Enterprise
Integrator 6.2.0-M1. It is available for download now from following
location.

https://github.com/wso2/product-ei/releases/tag/v6.2.0-m1
*Tasks/Bug Fixes and Improvements*

WSO2 Jira - Fixed Issues 
Product EI - Github fixed issues

*List of Open Issues*

WSO2 Jira - Open Issues 
WSO2 EI Github - Open Issues


*Mailing Lists*
Join our mailing list and correspond with the developers directly.
Developer List : dev@wso2.org | Subscribe | Mail Archive
User Forum : StackOverflow

*Reporting Issues*

We encourage you to report issues, improvements and feature requests
regarding WSO2 Integrator through WSO2 EI GIT Issues.

~ The WSO2 Integration Team ~

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

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


Re: [Dev] [IS6] [M2] Add CXF Dependencies

2017-07-14 Thread Sagara Gunathunga
On Fri, Jul 14, 2017 at 1:30 PM, Harsha Thirimanna  wrote:

> Hi Sagara,
>
> It is correct to carbon 4.x.x.
>
> Is that same to IS 6.0.0 also in C5 ?
>

AFAIK we don't have generic use cases to use CXF in any of our C5 products
 instead we can use MSF4J or Ballerina.  CXF is only required for IS to
support  WS-Trust.

@Isuranga, I assume this is for your GSoC project, if so for the time being
 can you embed CXF dependencies  within your  feature bundle without
exporting  to OSGi, later we can decide proper approach.  We had number of
issues running CXF/Spring on OSGi so I don't want distract you with those
issues during the project timeline.

Thanks !

>
> On 14 Jul 2017 1:24 pm, "Sagara Gunathunga"  wrote:
>
>>
>> In Carbon products we don't use CXF as OSGi bundle instead CXF is a
>> custom runtime environment.
>>
>> Thanks !
>>
>> On Fri, Jul 14, 2017 at 12:42 PM, Isuranga Perera <
>> isurangamper...@gmail.com> wrote:
>>
>>> Hi Malithi,
>>>
>>> Yes, that is an osgi bundle.Thanks
>>>
>>>
>>>
>>> On Fri, Jul 14, 2017 at 11:55 AM, Malithi Edirisinghe >> > wrote:
>>>


 On Fri, Jul 14, 2017 at 11:09 AM, Isuranga Perera <
 isurangamper...@gmail.com> wrote:

> Hi All,
>
> I'm trying to add CXF support to IS6 m2. Even though the readme file
> mentions that external libraries have to be added to lib folder there 
> isn't
> a folder named lib. So can you suggest a way to add cxf libraries to IS6 
> m2.
>

 Is this library an osgi bundle. If so, you can add it to dropins. Else
 you will have to wrap that to a bundle.


>
> Best Regards
> Isuranga Perera
>



 --

 *Malithi Edirisinghe*
 Associate Technical Lead
 WSO2 Inc.

 Mobile : +94 (0) 718176807
 malit...@wso2.com

>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>


-- 
Sagara Gunathunga

Associate Director / Architect; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS6] [M2] Add CXF Dependencies

2017-07-14 Thread Harsha Thirimanna
Hi Sagara,

It is correct to carbon 4.x.x.

Is that same to IS 6.0.0 also in C5 ?

On 14 Jul 2017 1:24 pm, "Sagara Gunathunga"  wrote:

>
> In Carbon products we don't use CXF as OSGi bundle instead CXF is a custom
> runtime environment.
>
> Thanks !
>
> On Fri, Jul 14, 2017 at 12:42 PM, Isuranga Perera <
> isurangamper...@gmail.com> wrote:
>
>> Hi Malithi,
>>
>> Yes, that is an osgi bundle.Thanks
>>
>>
>>
>> On Fri, Jul 14, 2017 at 11:55 AM, Malithi Edirisinghe 
>> wrote:
>>
>>>
>>>
>>> On Fri, Jul 14, 2017 at 11:09 AM, Isuranga Perera <
>>> isurangamper...@gmail.com> wrote:
>>>
 Hi All,

 I'm trying to add CXF support to IS6 m2. Even though the readme file
 mentions that external libraries have to be added to lib folder there isn't
 a folder named lib. So can you suggest a way to add cxf libraries to IS6 
 m2.

>>>
>>> Is this library an osgi bundle. If so, you can add it to dropins. Else
>>> you will have to wrap that to a bundle.
>>>
>>>

 Best Regards
 Isuranga Perera

>>>
>>>
>>>
>>> --
>>>
>>> *Malithi Edirisinghe*
>>> Associate Technical Lead
>>> WSO2 Inc.
>>>
>>> Mobile : +94 (0) 718176807
>>> malit...@wso2.com
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sagara Gunathunga
>
> Associate Director / Architect; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS6] [M2] Add CXF Dependencies

2017-07-14 Thread Sagara Gunathunga
In Carbon products we don't use CXF as OSGi bundle instead CXF is a custom
runtime environment.

Thanks !

On Fri, Jul 14, 2017 at 12:42 PM, Isuranga Perera  wrote:

> Hi Malithi,
>
> Yes, that is an osgi bundle.Thanks
>
>
>
> On Fri, Jul 14, 2017 at 11:55 AM, Malithi Edirisinghe 
> wrote:
>
>>
>>
>> On Fri, Jul 14, 2017 at 11:09 AM, Isuranga Perera <
>> isurangamper...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I'm trying to add CXF support to IS6 m2. Even though the readme file
>>> mentions that external libraries have to be added to lib folder there isn't
>>> a folder named lib. So can you suggest a way to add cxf libraries to IS6 m2.
>>>
>>
>> Is this library an osgi bundle. If so, you can add it to dropins. Else
>> you will have to wrap that to a bundle.
>>
>>
>>>
>>> Best Regards
>>> Isuranga Perera
>>>
>>
>>
>>
>> --
>>
>> *Malithi Edirisinghe*
>> Associate Technical Lead
>> WSO2 Inc.
>>
>> Mobile : +94 (0) 718176807
>> malit...@wso2.com
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sagara Gunathunga

Associate Director / Architect; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS6] [M2] Add CXF Dependencies

2017-07-14 Thread Isuranga Perera
Hi Malithi,

Yes, that is an osgi bundle.Thanks



On Fri, Jul 14, 2017 at 11:55 AM, Malithi Edirisinghe 
wrote:

>
>
> On Fri, Jul 14, 2017 at 11:09 AM, Isuranga Perera <
> isurangamper...@gmail.com> wrote:
>
>> Hi All,
>>
>> I'm trying to add CXF support to IS6 m2. Even though the readme file
>> mentions that external libraries have to be added to lib folder there isn't
>> a folder named lib. So can you suggest a way to add cxf libraries to IS6 m2.
>>
>
> Is this library an osgi bundle. If so, you can add it to dropins. Else you
> will have to wrap that to a bundle.
>
>
>>
>> Best Regards
>> Isuranga Perera
>>
>
>
>
> --
>
> *Malithi Edirisinghe*
> Associate Technical Lead
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Taking a list of values as input to a mediator configuration

2017-07-14 Thread Riyafa Abdul Hameed
Hi Sudharma,

Thank you for the quick reply. Yes the values need to be trimmed to make
sure there are no whitespaces at the beginning or ends.



On Fri, Jul 14, 2017 at 12:08 PM, Riyafa Abdul Hameed 
wrote:

> Hi Asanka,
>
> The question is not about the cache mediator. It is about the standard way
> of including a list of values in a configuration parameter in a custom
> mediator.
> As to answer your question, by the requirements[1], it should be possible
> for us to allow the user to specify a list of headers which he does not
> want to hashed like the "timestamp" header because hashing it would mean
> all request messages would give a different hash.
>
> [1] https://docs.google.com/document/d/1iPtArrW6C-
> VgzAzjjSsLmG9aqAFEubmFgNkQhoDvqz8/edit
>
> On Fri, Jul 14, 2017 at 12:02 PM, Asanka Abeyweera 
> wrote:
>
>> Hi Riyafa,
>>
>> Can't we remove the unwanted headers before pushing to cache so that we
>> don't have to use "headersToExcludeInHash" in cache mediator?
>>
>> On Fri, Jul 14, 2017 at 11:53 AM, Riyafa Abdul Hameed 
>> wrote:
>>
>>> Hi,
>>>
>>> I am creating a custom mediator and one of the configuration parameters
>>> would have to take as input a list of values. What is the best or standard
>>> way to do this? I plan to take in string with comma separated values and
>>> split it by the commas and then trim it to get the values in the list.
>>> Would that work?
>>>
>>> To elaborate more consider the syntax for cache mediator:
>>>
>>> >> [scope=(per-host | per-mediator)] collector=(true | false)
>>> [maxMessageSize="in-bytes"] hTTPMethodToCache = (GET | POST)]
>>>
>>> headersToExcludeInHash=”comma separated list of headers”>
>>>
>>>   
>>>
>>> (mediator)+
>>>
>>>   ?
>>>
>>>   
>>>
>>> 
>>>
>>>
>>> if the value for the "headersToExcludeInHash" needs to be a list, is it
>>> correct to take as input a list of comma separated values in a single
>>> string?
>>>
>>>
>>> Thank you.
>>>
>>> Yours faithfully,
>>>
>>> Riyafa
>>>
>>> --
>>> Riyafa Abdul Hameed
>>> Software Engineer, WSO2 Lanka (Pvt) Ltd 
>>>
>>> Email: riy...@wso2.com 
>>> Website: https://riyafa.wordpress.com/ 
>>>   
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Asanka Abeyweera
>> Senior Software Engineer
>> WSO2 Inc.
>>
>> Phone: +94 712228648 <+94%2071%20222%208648>
>> Blog: a5anka.github.io
>>
>> 
>>
>
>
>
> --
> Riyafa Abdul Hameed
> Software Engineer, WSO2 Lanka (Pvt) Ltd 
>
> Email: riy...@wso2.com 
> Website: https://riyafa.wordpress.com/ 
>   
> 
>



-- 
Riyafa Abdul Hameed
Software Engineer, WSO2 Lanka (Pvt) Ltd 

Email: riy...@wso2.com 
Website: https://riyafa.wordpress.com/ 
  

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


Re: [Dev] [ESB] Taking a list of values as input to a mediator configuration

2017-07-14 Thread Riyafa Abdul Hameed
Hi Asanka,

The question is not about the cache mediator. It is about the standard way
of including a list of values in a configuration parameter in a custom
mediator.
As to answer your question, by the requirements[1], it should be possible
for us to allow the user to specify a list of headers which he does not
want to hashed like the "timestamp" header because hashing it would mean
all request messages would give a different hash.

[1]
https://docs.google.com/document/d/1iPtArrW6C-VgzAzjjSsLmG9aqAFEubmFgNkQhoDvqz8/edit

On Fri, Jul 14, 2017 at 12:02 PM, Asanka Abeyweera 
wrote:

> Hi Riyafa,
>
> Can't we remove the unwanted headers before pushing to cache so that we
> don't have to use "headersToExcludeInHash" in cache mediator?
>
> On Fri, Jul 14, 2017 at 11:53 AM, Riyafa Abdul Hameed 
> wrote:
>
>> Hi,
>>
>> I am creating a custom mediator and one of the configuration parameters
>> would have to take as input a list of values. What is the best or standard
>> way to do this? I plan to take in string with comma separated values and
>> split it by the commas and then trim it to get the values in the list.
>> Would that work?
>>
>> To elaborate more consider the syntax for cache mediator:
>>
>> > [scope=(per-host | per-mediator)] collector=(true | false)
>> [maxMessageSize="in-bytes"] hTTPMethodToCache = (GET | POST)]
>>
>> headersToExcludeInHash=”comma separated list of headers”>
>>
>>   
>>
>> (mediator)+
>>
>>   ?
>>
>>   
>>
>> 
>>
>>
>> if the value for the "headersToExcludeInHash" needs to be a list, is it
>> correct to take as input a list of comma separated values in a single
>> string?
>>
>>
>> Thank you.
>>
>> Yours faithfully,
>>
>> Riyafa
>>
>> --
>> Riyafa Abdul Hameed
>> Software Engineer, WSO2 Lanka (Pvt) Ltd 
>>
>> Email: riy...@wso2.com 
>> Website: https://riyafa.wordpress.com/ 
>>   
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Asanka Abeyweera
> Senior Software Engineer
> WSO2 Inc.
>
> Phone: +94 712228648 <+94%2071%20222%208648>
> Blog: a5anka.github.io
>
> 
>



-- 
Riyafa Abdul Hameed
Software Engineer, WSO2 Lanka (Pvt) Ltd 

Email: riy...@wso2.com 
Website: https://riyafa.wordpress.com/ 
  

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


Re: [Dev] [ESB] Taking a list of values as input to a mediator configuration

2017-07-14 Thread Sudharma Subasinghe
Hi,

+1 for taking the input as a list of comma separated values. It is better
to validate those values.

Thanks
Sudharma

On Fri, Jul 14, 2017 at 11:53 AM, Riyafa Abdul Hameed 
wrote:

> Hi,
>
> I am creating a custom mediator and one of the configuration parameters
> would have to take as input a list of values. What is the best or standard
> way to do this? I plan to take in string with comma separated values and
> split it by the commas and then trim it to get the values in the list.
> Would that work?
>
> To elaborate more consider the syntax for cache mediator:
>
>  [scope=(per-host | per-mediator)] collector=(true | false)
> [maxMessageSize="in-bytes"] hTTPMethodToCache = (GET | POST)]
>
> headersToExcludeInHash=”comma separated list of headers”>
>
>   
>
> (mediator)+
>
>   ?
>
>   
>
> 
>
>
> if the value for the "headersToExcludeInHash" needs to be a list, is it
> correct to take as input a list of comma separated values in a single
> string?
>
>
> Thank you.
>
> Yours faithfully,
>
> Riyafa
>
> --
> Riyafa Abdul Hameed
> Software Engineer, WSO2 Lanka (Pvt) Ltd 
>
> Email: riy...@wso2.com 
> Website: https://riyafa.wordpress.com/ 
>   
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sudharma Subasinghe,
Software Engineer,
WSO2 Inc.
Email: sudhar...@wso2.com 
Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Taking a list of values as input to a mediator configuration

2017-07-14 Thread Asanka Abeyweera
Hi Riyafa,

Can't we remove the unwanted headers before pushing to cache so that we
don't have to use "headersToExcludeInHash" in cache mediator?

On Fri, Jul 14, 2017 at 11:53 AM, Riyafa Abdul Hameed 
wrote:

> Hi,
>
> I am creating a custom mediator and one of the configuration parameters
> would have to take as input a list of values. What is the best or standard
> way to do this? I plan to take in string with comma separated values and
> split it by the commas and then trim it to get the values in the list.
> Would that work?
>
> To elaborate more consider the syntax for cache mediator:
>
>  [scope=(per-host | per-mediator)] collector=(true | false)
> [maxMessageSize="in-bytes"] hTTPMethodToCache = (GET | POST)]
>
> headersToExcludeInHash=”comma separated list of headers”>
>
>   
>
> (mediator)+
>
>   ?
>
>   
>
> 
>
>
> if the value for the "headersToExcludeInHash" needs to be a list, is it
> correct to take as input a list of comma separated values in a single
> string?
>
>
> Thank you.
>
> Yours faithfully,
>
> Riyafa
>
> --
> Riyafa Abdul Hameed
> Software Engineer, WSO2 Lanka (Pvt) Ltd 
>
> Email: riy...@wso2.com 
> Website: https://riyafa.wordpress.com/ 
>   
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Asanka Abeyweera
Senior Software Engineer
WSO2 Inc.

Phone: +94 712228648
Blog: a5anka.github.io


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


[Dev] [ESB] Taking a list of values as input to a mediator configuration

2017-07-14 Thread Riyafa Abdul Hameed
Hi,

I am creating a custom mediator and one of the configuration parameters
would have to take as input a list of values. What is the best or standard
way to do this? I plan to take in string with comma separated values and
split it by the commas and then trim it to get the values in the list.
Would that work?

To elaborate more consider the syntax for cache mediator:



  

(mediator)+

  ?

  




if the value for the "headersToExcludeInHash" needs to be a list, is it
correct to take as input a list of comma separated values in a single
string?


Thank you.

Yours faithfully,

Riyafa

-- 
Riyafa Abdul Hameed
Software Engineer, WSO2 Lanka (Pvt) Ltd 

Email: riy...@wso2.com 
Website: https://riyafa.wordpress.com/ 
  

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


Re: [Dev] [APIM] Hostname verification error when call BPS endpoint

2017-07-14 Thread Abimaran Kugathasan
Hi Godwin,

Can you try using -Dhttpclient.hostnameVerifier=false if you are using APIM
2.1. The configuration in axis2.xml will suitable for PT.

On Fri, Jul 14, 2017 at 6:17 AM, Godwin Shrimal  wrote:

> Hi All,
>
> I am getting below error when invoking BPS endpoing from APIM, I know its
> due to keystore and we need to create a keystore and put into the server
> with correct CN. My problem is there are other URLs such as DASRestApiURL,
> PolicyDeployer used https endpoints with IP address and there are no
> errors. What tis the reason for that and do we have any configuration to
> skip this ?
>
>
> javax.net.ssl.SSLException: *hostname in certificate didn't match:
> <192.168.10.10> != 
> *at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
> ory.verifyHostName(SSLProtocolSocketFactory.java:341)
> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
> ory.verifyHostName(SSLProtocolSocketFactory.java:277)
> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
> ory.verifyHostName(SSLProtocolSocketFactory.java:260)
> at org.apache.commons.httpclient.protocol.SSLProtocolSocketFact
> ory.createSocket(SSLProtocolSocketFactory.java:169)
> at org.apache.commons.httpclient.HttpConnection.open(HttpConnec
> tion.java:707)
>
>
> *Note : I tried with AllowAll in axis.xml and
> -Dorg.wso2.ignoreHostnameVerification=true in wso2server.sh and no one
> works*
>
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
> 
>



-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820


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


Re: [Dev] New device type for IOTS ( Laptop agent )

2017-07-14 Thread Kamidu Punchihewa
Hi Lahiru,

I stringly belive that this device can be used to monitor and manage both
laptops and desktops so can we change the device type name to some thing
more genaralized.

And at the enterprise level where people manage and monitor computers they
intent to ask for the following features as well,

   - Installing patches
   

   - Installing software
   

   - Managing software licenses
   

   - Monitoring software usage statistics
   - Managing USB device usage
   - Taking control of remote desktops
   - Manage data Encryption

IMHO I think we can include most of the above features and it will be in
our best interest to include those or at least include them in our roadmap.

Thanks and Best Regards,

Kamidu Sachith Punchihewa
*Software Engineer*
WSO2, Inc.
lean . enterprise . middleware
Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>

Please Note that I have dyslexia and it may results in few misspelled words
in the content.

Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
retransmit, disseminate, or otherwise use the information contained in this
communication. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.

On Thu, Jul 6, 2017 at 8:17 PM, Lahiru Madushanka 
wrote:

> Hi Waruna,
>
> We will have some notification mechanisms in IOTS for infra / team lead
> level users.
> Ex:-  RAM capacity of device profile X is 8GB, when avg RAM usage of IOT
> group + profile X machines reach 7GB IOT team leads and infra team must
> receive notifications.
>
> Sure, I will update this thread with the progress.
>
> Thanks all of you guys for the suggestions. I gathered lot more use cases
> and different viewpoints.
>
> Thanks,
> Lahiru
>
> On Thu, Jul 6, 2017 at 12:13 PM, Waruna Jayaweera 
> wrote:
>
>> Hi Lahiru,
>>
>> Few Suggestions. You can also add alerts mechanism like [1] based on
>> analysed data. As an example if laptop cpu utilization is more than 90%
>> then send email to operation user.
>>
>> As others said you can reuse most of existing components for dashboard
>> and analysis. Your sample use cases are applied for any device types as we
>> can use same way to do predicative maintenance in iot devices. If we have
>> new device type , send some attributes to server and take some decisions.
>> So you can come up with documentation as if as how we can reuse those
>> components to support similar use cases in any device type/agent.
>>
>> [1]https://docs.wso2.com/display/DAS310/Creating+Alerts
>>
>> Thanks,
>> Waruna
>>
>>
>>
>> On Thu, Jul 6, 2017 at 11:04 AM, Lahiru Madushanka 
>> wrote:
>>
>>> Hi Harshan,
>>>
>>> Sorry for the unclarity of my initial statement. This is a continuation
>>> of "Laptop" device type developed by Thisari.
>>> Yeah the process is same as you explained.
>>>
>>> Thanks
>>>
>>> On Thu, Jul 6, 2017 at 10:16 AM, Harshan Liyanage 
>>> wrote:
>>>
 Hi Lahiru,

 Could you please clarify why we need a new device-type in this
 scenario? It looks like a feature on-top of "PC" or "Laptop" device-type.
 Analytics/ML part can be separated from the device-type. What we need to do
 is to just get the required data like RAM, CPU, HDD usage etc from that
 particular device type and push them into DAS. This is somewhat similar to
 what we are currently doing with the Android device-type. I'm wondering why
 we can't use the same approach here.

 Thanks,

 Harshan Liyanage
 EMM/IoT TG
 Mobile: *+94765672894*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com *
 lean.enterprise.middleware.

 On Wed, Jul 5, 2017 at 10:57 PM, Pasindu Jayaweera 
 wrote:

> Hi Lahiru,
> Q.) Other than pushing data from the laptop, will there be any
> operations or policies than can be applied from the server-side?
>
> Q) What could be the agent's behavior;
>
> a.) when the laptop is out of the network?
>
> b.) when the laptop has multiple operating systems?
>
>
> When designing analytics views and creating ML plans, I would like to
> suggest to make them in such a way that those units can be plugged not 
> only
> with the