Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.9 RC3

2016-08-28 Thread Kasun Bandara
Hi Thusitha,

I could successfully run IS test suite with the upgraded Kernel 4.4.9.
Hence +1 for the release.

Thanks,
Kasun


On Fri, Aug 26, 2016 at 6:23 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi DSS/IS Team,
>
> Can IS and DSS teams test their products with the carbon kernel 4.4.9-rc3
> and vote?
>
> Thanks
> Thusitha
>
> On Fri, Aug 26, 2016 at 5:49 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> This is the 3rd release candidate of the WSO2 Carbon Kernel 4.4.9.
>>
>> This release fixes the following issues
>> *https://wso2.org/jira/issues/?filter=13289
>> *
>>
>> Please download, test your products with kernel 4.4.9 RC3 and vote. Vote
>> will be open for 72 hours or as longer as needed.
>>
>> *Source and binary distribution files:*
>> https://github.com/wso2/carbon-kernel/archive/v4.4.9-rc3.zip
>> http://svn.wso2.org/repos/wso2/people/thusithad/4.4.9/wso2ca
>> rbon-4.4.9-rc3.zip
>>
>> *Maven staging repository*
>> https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1039
>>
>> *The tag to be voted upon : *
>> *https://github.com/wso2/carbon-kernel/releases/tag/v4.4.9-rc3*
>> 
>>
>> [ ] Broken - Do not release (explain why)
>> [ ] Stable  - Go ahead and release
>>
>> Thank you
>> Carbon Team
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> 
>>
>>
>
>
> --
> 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
>
>


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


Re: [Dev] [IS] SCIM extension attributes missing in retrieval

2016-08-28 Thread Gayan Gunawardana
Hi Ayoma,

Yes this is reproducible in embedded LDAP too. As I can remember this works
fine in JDBC user store.
Is there any possibility to report support jira for this issue ?

Thanks,
Gayan

On Mon, Aug 29, 2016 at 8:14 AM, Ayoma Wijethunga  wrote:

> Hi All,
>
> When user is created with a SCIM extension schema [1], "User Retrievals"
> does not include the extended schema attributes. Please advice on how we
> can get these values using SCIM API.
>
> Please find addition query level details below.
>
> [1] https://docs.wso2.com/display/IS510/Extensible+SCIM+
> User+Schemas+With+WSO2+Identity+Server
>
> Thank you,
> Ayoma.
>
>
> *User Creation *
>
> Request
>
> curl -v -k --user admin:admin --data '{"schemas":[],"userName":"
> SureshAtt","password":"Wso2@123",*"wso2Extension":{"dob":"12/12/2012"}}'*
> --header "Content-Type:application/json" https://localhost:9443/wso2/
> scim/Users
>
>
> Response
>
> {"id":"cf6db727-fb6c-40d8-9b72-e004f912e686",
> *"wso2Extension":{"dob":"12/12/2012"}*,"schemas":["urn:scim:
> schemas:core:1.0","urn:scim:schemas:extension:wso2:1.0"],"
> userName":"SureshAtt","meta":{"lastModified":"2016-08-28T21:
> 32:40","location":"https://localhost:9443/wso2/scim/
> Users/cf6db727-fb6c-40d8-9b72-e004f912e686","created":"2016-
> 08-28T21:32:40"}}
>
>
>
> *LDIF*
>
> dn: uid=SureshAtt,ou=Users,dc=WSO2,dc=ORG
> objectClass: top
> objectClass: identityPerson
> objectClass: person
> objectClass: organizationalPerson
> objectClass: inetOrgPerson
> objectClass: wso2Person
> objectClass: scimPerson
> cn: SureshAtt
> sn: SureshAtt
> createdDate: 2016-08-28T21:32:40
> *dateOfBirth: 12/12/2012*
> lastModifiedDate: 2016-08-28T21:32:40
> location: https://localhost:9443/wso2/scim/Users/cf6db727-fb6c-40d8-
> 9b72-e00
>  4f912e686
> scimId: cf6db727-fb6c-40d8-9b72-e004f912e686
> uid: SureshAtt
> userPassword:: V3NvMkAxMjM=
>
>
> *User Retrieval*
>
> Request
>
> curl -v -k --user admin:admin https://localhost:9443/wso2/
> scim/Users/cf6db727-fb6c-40d8-9b72-e004f912e686
>
>
> Response
>
> {"id":"cf6db727-fb6c-40d8-9b72-e004f912e686","schemas":[
> "urn:scim:schemas:core:1.0"],"name":{"familyName":"
> SureshAtt"},"userName":"SureshAtt","meta":{"lastModified":"2016-08-28T21:
> 32:40","created":"2016-08-28T21:32:40","location":"https
> ://localhost:9443/wso2/scim/Users/cf6db727-fb6c-40d8-9b72-e004f912e686"}}
>
>
> --
> Ayoma Wijethunga
> Software Engineer
> Platform Security Team
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile : +94 (0) 719428123 <+94+(0)+719428123>
> Blog : http://www.ayomaonline.com
> LinkedIn: https://www.linkedin.com/in/ayoma
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] JIT provisioning for Federated authenticators: changing email as the username

2016-08-28 Thread Chamila Adhikarinayake
Hi All,

I tried the Facebook authenticator and set the 'User ID Claim URI'
parameter from the 'Claim Configuration' section in the IDP and managed to
do the provisioning based on the property returned from FB. But that didn't
work for Google. seems like a bug in the code

On Mon, Aug 29, 2016 at 6:19 AM, Chamila Adhikarinayake 
wrote:

> Hi IS team,
>
> I setup Google as a federated authenticator and enabled Just in time
> provisioning. When that authenticator is used for log in, user gets
> provisioned based on his email address. Is there any way to configure this?
> I configured the parameters coming from google userinfo endpoint to claims
> ('family_name', 'given_name', etc) in basic claim configuration section. Is
> there any way to use one of this clam as the user name for the provisioned
> user?
>
> Thanks
> Chamila
>
>
> --
> Regards,
> Chamila Adhikarinayake
> Software Engineer
> WSO2, Inc.
> Mobile - +94712346437
> Email  - chami...@wso2.com
> Blog  -  http://helpfromadhi.blogspot.com/
>



-- 
Regards,
Chamila Adhikarinayake
Software Engineer
WSO2, Inc.
Mobile - +94712346437
Email  - chami...@wso2.com
Blog  -  http://helpfromadhi.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE][RC2] Release - WSO2 API Manager mediation policy tooling 2.0.0 RC2.

2016-08-28 Thread Roshan Wijesena
Hi All,

Due to the above-mentioned issue, we have to drop the RC2. We will fix this
and release RC3 soon.

Thanks.


On Mon, Aug 29, 2016 at 10:22 AM, Jasintha Dasanayake 
wrote:

> Hi Roshan
>
> Plugins is not singed , seems jar singer plugin is not configured in the
> POM . Could you please fix this
>
> Thanks and Regards
> /Jasintha
>
>
> On Mon, Aug 29, 2016 at 10:08 AM, Sam Sivayogam  wrote:
>
>> Tested in Mac. Was able add custom sequences to APIM through dev studio.
>>
>>  [+] Stable - go ahead and release
>>
>> On Fri, Aug 26, 2016 at 6:04 PM, Roshan Wijesena  wrote:
>>
>>> Hi All,
>>>
>>> This is the 2nd Release Candidate of WSO2 API Manager mediation policy
>>> tooling 2.0.0.
>>>
>>> Please download, test the product and vote. The vote will be open for 72
>>> hours or as needed.
>>>
>>> *Source and distribution*
>>>
>>> *Tooling*  : https://github.com/wso2/devstudio-tooling-apim/releases/ta
>>> g/Released-release-2.0.2-RC2-2016-08-26-113147
>>>
>>>
>>> Please vote as follows.
>>> [+] Stable - go ahead and release
>>> [-] Broken - do not release (explain why)
>>>
>>> Thanks,
>>> WSO2 APIM team.
>>>
>>> --
>>> Roshan Wijesena.
>>> Senior Software Engineer-WSO2 Inc.
>>> Mobile: *+94719154640 <%2B94719154640>*
>>> Email: ros...@wso2.com
>>> *WSO2, Inc. :** wso2.com *
>>> lean.enterprise.middleware.
>>>
>>
>>
>>
>> --
>> *Sam Sivayogam*
>>
>> Senior Software Engineer
>> Mobile  : +94 772 906 439
>> Office   : +94 112 145 345
>> *WSO2, Inc. :** wso2.com *
>> lean.enterprise.middleware.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Jasintha Dasanayake**Associate Technical Lead*
>
> *WSO2 Inc. | http://wso2.com lean . enterprise .
> middleware*
>
>
> *mobile :- 0711-368-118*
>



-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94719154640*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure of EMM agent for android

2016-08-28 Thread Rasika Perera
Hi Jacky,

This is due to the recent changes for the fixing the issue with calling
system method without qualified user. This API change in the WSO2-Agent
requires access to hidden APIs(those APIs are available at runtime).

Hence, you need to replace your SDK; android.jar file as in
https://github.com/anggrayudi/android-hidden-api/tree/master/android-23.

Thanks,
Rasika

On Sat, Aug 27, 2016 at 9:35 AM, Jacky.Lam  wrote:

> Dear all,
>
>
>
> Sorry if it is re-post.
>
>
>
> Currently, I try to follow the instruction on
> https://docs.wso2.com/display/EMM201/White+Labeling+WSO2+EMM+Android+Agent
> to build my own wso2 agent for Android.
>
> I am using Android Studio 2.1.3 on Windows 7. The document seems a bit
> outdate as it asks me to open the project under /modules/
> mobile-agent/android.
>
> But I found that there are two separate projects under the that. One is
> client and one is system-service. I try to build both of them, but both of
> them failed.
>
>
>
> The build error for client is like this:
>
>
>
> C:\shared\source\product-mdm\modules\mobile-agents\android\
> client\client\src\main\java\org\wso2\emm\agent\services\
> NetworkConnectedReceiver.java
> Error:(42, 28) error: cannot find symbol method startServiceAsUser(Intent,
> UserHandle)
> C:\shared\source\product-mdm\modules\mobile-agents\android\
> client\client\src\main\java\org\wso2\emm\agent\utils\CommonUtils.java
> Error:(432, 11) error: cannot find symbol method startServiceAsUser(Intent,
> UserHandle)
> Error:(445, 11) error: cannot find symbol method startServiceAsUser(Intent,
> UserHandle)
> Note: Some input files use or override a deprecated API.
>
>
>
> Build error for system-service is even more, but also complaining
> startServiceAsUser() is not existing.
>
>
>
> Am I downloading the correct source and following the right instruction to
> build? Please help.
>
>
>
> Thanks.
>
> Jacky
>
>
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
With Regards,

*Rasika Perera*
Software Engineer
LinkedIn: http://lk.linkedin.com/in/rasika90

[image: wso2-signature-general.png] 

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


Re: [Dev] [VOTE][RC2] Release - WSO2 API Manager mediation policy tooling 2.0.0 RC2.

2016-08-28 Thread Jasintha Dasanayake
Hi Roshan

Plugins is not singed , seems jar singer plugin is not configured in the
POM . Could you please fix this

Thanks and Regards
/Jasintha


On Mon, Aug 29, 2016 at 10:08 AM, Sam Sivayogam  wrote:

> Tested in Mac. Was able add custom sequences to APIM through dev studio.
>
>  [+] Stable - go ahead and release
>
> On Fri, Aug 26, 2016 at 6:04 PM, Roshan Wijesena  wrote:
>
>> Hi All,
>>
>> This is the 2nd Release Candidate of WSO2 API Manager mediation policy
>> tooling 2.0.0.
>>
>> Please download, test the product and vote. The vote will be open for 72
>> hours or as needed.
>>
>> *Source and distribution*
>>
>> *Tooling*  : https://github.com/wso2/devstudio-tooling-apim/releases/
>> tag/Released-release-2.0.2-RC2-2016-08-26-113147
>>
>>
>> Please vote as follows.
>> [+] Stable - go ahead and release
>> [-] Broken - do not release (explain why)
>>
>> Thanks,
>> WSO2 APIM team.
>>
>> --
>> Roshan Wijesena.
>> Senior Software Engineer-WSO2 Inc.
>> Mobile: *+94719154640 <%2B94719154640>*
>> Email: ros...@wso2.com
>> *WSO2, Inc. :** wso2.com *
>> lean.enterprise.middleware.
>>
>
>
>
> --
> *Sam Sivayogam*
>
> Senior Software Engineer
> Mobile  : +94 772 906 439
> Office   : +94 112 145 345
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Jasintha Dasanayake**Associate Technical Lead*

*WSO2 Inc. | http://wso2.com lean . enterprise .
middleware*


*mobile :- 0711-368-118*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE][RC2] Release - WSO2 API Manager mediation policy tooling 2.0.0 RC2.

2016-08-28 Thread Sam Sivayogam
Tested in Mac. Was able add custom sequences to APIM through dev studio.

 [+] Stable - go ahead and release

On Fri, Aug 26, 2016 at 6:04 PM, Roshan Wijesena  wrote:

> Hi All,
>
> This is the 2nd Release Candidate of WSO2 API Manager mediation policy
> tooling 2.0.0.
>
> Please download, test the product and vote. The vote will be open for 72
> hours or as needed.
>
> *Source and distribution*
>
> *Tooling*  : https://github.com/wso2/devstudio-tooling-apim/
> releases/tag/Released-release-2.0.2-RC2-2016-08-26-113147
>
>
> Please vote as follows.
> [+] Stable - go ahead and release
> [-] Broken - do not release (explain why)
>
> Thanks,
> WSO2 APIM team.
>
> --
> Roshan Wijesena.
> Senior Software Engineer-WSO2 Inc.
> Mobile: *+94719154640 <%2B94719154640>*
> Email: ros...@wso2.com
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>



-- 
*Sam Sivayogam*

Senior Software Engineer
Mobile  : +94 772 906 439
Office   : +94 112 145 345
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Scatter Plot missing values

2016-08-28 Thread Dakshika Jayathilaka
Looping Tharik.



*Dakshika Jayathilaka*
PMC Member & Committer of Apache Stratos
Associate Technical Lead
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Sat, Aug 27, 2016 at 5:02 PM, Aneela Safdar  wrote:

> Hi,
>
> I am trying scatter plot and there are some values missing in the final
> output I dont know why. I am plotting port_numbers against ip_addresses and
> the problem is its keeping only latest ip_address and port_number pair
> discarding any previous port_number related to that ip.
>
> G1 : source_ip as X-axis, source_port as Y-axis and protocol as color
> (type - ordinal)
> G12: destination_ip as X-axis, destination_port as Y-axis and protocol as
> color (type - ordinal)
>
> Below plot is the result of following data
>
> source_ip, source_port, destination_ip, destination_port, protocol
> 192.168.227.102,123,192.168.227.101,21,ftp
> 192.168.227.102,101,192.168.227.101,21,ftp
> 192.168.227.105,445,192.168.227.101,21,ftp
> 192.168.227.105,123,192.168.227.101,21,ftp
> 192.168.227.105,65576,192.168.227.101,22,ssh
> 192.168.227.109,123,192.168.227.101,22,ssh
> 192.168.227.109,123,192.168.227.101,22,ssh
> 192.168.227.109,3345,192.168.227.101,22,ssh
> 192.168.227.233,123,192.168.227.101,445,smb
> 192.168.227.233,123,192.168.227.101,445,smb
> 192.168.227.233,111,192.168.227.101,445,smb
> 192.168.227.202,123,192.168.227.101,3302,smtp
> 192.168.227.202,233,192.168.227.101,3302,smtp
> 192.168.227.102,123,192.168.227.101,3302,smtp
> 192.168.227.102,123,192.168.227.101,25,sql
> 192.168.227.102,123,192.168.227.101,25,sql
>
> For example:
> The only destination_port and dest_ip are the latest ones and similarly
> with source ips. There is no record of  dest_port 3302 or 445 or 21, 22 etc
> in second graph. Where are thesepairs??
>
> Any Suggestions??
>
> [image: Inline image]
>
> Regards,
> Aneela Safdar
>
> ___
> 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


[Dev] [IS] SCIM extension attributes missing in retrieval

2016-08-28 Thread Ayoma Wijethunga
Hi All,

When user is created with a SCIM extension schema [1], "User Retrievals"
does not include the extended schema attributes. Please advice on how we
can get these values using SCIM API.

Please find addition query level details below.

[1]
https://docs.wso2.com/display/IS510/Extensible+SCIM+User+Schemas+With+WSO2+Identity+Server

Thank you,
Ayoma.


*User Creation *

Request

curl -v -k --user admin:admin --data
'{"schemas":[],"userName":"SureshAtt","password":"Wso2@123",
*"wso2Extension":{"dob":"12/12/2012"}}'* --header
"Content-Type:application/json" https://localhost:9443/wso2/scim/Users


Response

{"id":"cf6db727-fb6c-40d8-9b72-e004f912e686",
*"wso2Extension":{"dob":"12/12/2012"}*
,"schemas":["urn:scim:schemas:core:1.0","urn:scim:schemas:extension:wso2:1.0"],"userName":"SureshAtt","meta":{"lastModified":"2016-08-28T21:32:40","location":"
https://localhost:9443/wso2/scim/Users/cf6db727-fb6c-40d8-9b72-e004f912e686
","created":"2016-08-28T21:32:40"}}



*LDIF*

dn: uid=SureshAtt,ou=Users,dc=WSO2,dc=ORG
objectClass: top
objectClass: identityPerson
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: wso2Person
objectClass: scimPerson
cn: SureshAtt
sn: SureshAtt
createdDate: 2016-08-28T21:32:40
*dateOfBirth: 12/12/2012*
lastModifiedDate: 2016-08-28T21:32:40
location: https://localhost:9443/wso2/scim/Users/cf6db727-fb6c-40d8-9b72-e00
 4f912e686
scimId: cf6db727-fb6c-40d8-9b72-e004f912e686
uid: SureshAtt
userPassword:: V3NvMkAxMjM=


*User Retrieval*

Request

curl -v -k --user admin:admin
https://localhost:9443/wso2/scim/Users/cf6db727-fb6c-40d8-9b72-e004f912e686


Response

{"id":"cf6db727-fb6c-40d8-9b72-e004f912e686","schemas":["urn:scim:schemas:core:1.0"],"name":{"familyName":"SureshAtt"},"userName":"SureshAtt","meta":{"lastModified":"2016-08-28T21:32:40","created":"2016-08-28T21:32:40","location":"
https://localhost:9443/wso2/scim/Users/cf6db727-fb6c-40d8-9b72-e004f912e686
"}}


-- 
Ayoma Wijethunga
Software Engineer
Platform Security Team
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

Mobile : +94 (0) 719428123 <+94+(0)+719428123>
Blog : http://www.ayomaonline.com
LinkedIn: https://www.linkedin.com/in/ayoma
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] JIT provisioning for Federated authenticators: changing email as the username

2016-08-28 Thread Chamila Adhikarinayake
Hi IS team,

I setup Google as a federated authenticator and enabled Just in time
provisioning. When that authenticator is used for log in, user gets
provisioned based on his email address. Is there any way to configure this?
I configured the parameters coming from google userinfo endpoint to claims
('family_name', 'given_name', etc) in basic claim configuration section. Is
there any way to use one of this clam as the user name for the provisioned
user?

Thanks
Chamila


-- 
Regards,
Chamila Adhikarinayake
Software Engineer
WSO2, Inc.
Mobile - +94712346437
Email  - chami...@wso2.com
Blog  -  http://helpfromadhi.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Improving MB Slot Coordinator to Work in a NATed/Containerized Environment

2016-08-28 Thread Isuru Haththotuwa
Hi Hasitha,

On Sun,  Aug 28, 2016 at 7:30 AM, Hasitha Hiranya  wrote:

> Hi,
>
> Thank You, Isuru...!!
>
> If you add a new property to broker.xml config file, that file needs a
> update as well. So broker.xml of carbon-business-messaging [1] has to be
> changed I guess. Please add a proper description to the property in the
> file for the parameter you are adding.
>
Thanks, will do and send a PR.

>
> [1]. https://github.com/wso2/carbon-business-messaging/
> blob/master/features/andes/org.wso2.carbon.andes.server.
> feature/resources/conf/broker.xml
>
> Thanks
>
> On Fri, Aug 26, 2016 at 8:15 PM, Imesh Gunaratne  wrote:
>
>> [+ Ramith]
>>
>> Great work Isuru!! Well written!!
>> I think it might be useful for explaining why this feature was needed in
>> the PR description.
>>
>> Thanks!
>>
>> On Fri, Aug 26, 2016 at 5:37 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> Hi MB team,
>>>
>>> Please review the P/R for $subject [1], for the jira ticket reported at
>>> [2]. I'm yet to write a test for this, will send a separate P/R once done.
>>>
>>> [1]. https://github.com/wso2/andes/pull/685
>>>
>>> [2]. https://wso2.org/jira/browse/MB-1736
>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Software Architect
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: https://medium.com/@imesh TW: @imesh
>> lean. enterprise. middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Hasitha Abeykoon*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
>


-- 
Thanks and Regards,

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


Re: [Dev] Improving MB Slot Coordinator to Work in a NATed/Containerized Environment

2016-08-28 Thread Isuru Haththotuwa
Updated the description.

On Sat, Aug 27, 2016 at 4:16 PM, Ramith Jayasinghe  wrote:

> Thank you Isuru for this.
> we like to have the changes suggested by Imesh.
>
> On Fri, Aug 26, 2016 at 8:15 PM, Imesh Gunaratne  wrote:
>
>> [+ Ramith]
>>
>> Great work Isuru!! Well written!!
>> I think it might be useful for explaining why this feature was needed in
>> the PR description.
>>
>> Thanks!
>>
>> On Fri, Aug 26, 2016 at 5:37 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> Hi MB team,
>>>
>>> Please review the P/R for $subject [1], for the jira ticket reported at
>>> [2]. I'm yet to write a test for this, will send a separate P/R once done.
>>>
>>> [1]. https://github.com/wso2/andes/pull/685
>>>
>>> [2]. https://wso2.org/jira/browse/MB-1736
>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Software Architect
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: https://medium.com/@imesh TW: @imesh
>> lean. enterprise. middleware
>>
>>
>
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
> P: +94 772534930
>



-- 
Thanks and Regards,

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


Re: [Dev] Installing APIM features to IS 5.2.0 beta2 pack says No features to be installed

2016-08-28 Thread Kavitha Subramaniyam
Hi Kasun,

Yes I tried this on 25/08, and it is installed KM 6.0.4 feature
successfully(p2 repo built from git location due to this[1]) and I could do
a smoke test on it.

[1] P2 Repository updates related to APIM 2.0 release

Thanks,

On Sun, Aug 28, 2016 at 1:45 PM, Kasun Bandara  wrote:

> Hi Kavitha,
>
> Have you been able to try KM 6.0.4 feature installation in IS 5.2.0 as
> suggested by @Darshana.
>
> Thanks,
> Kasun
>
> On Thu, Aug 25, 2016 at 7:21 AM, Darshana Gunawardana 
> wrote:
>
>> Hi Harsha,
>>
>> Sorry, my understanding was APIM 2.0.0 KM version is 5.0.3. As per your
>> above reply it seems to be 6.0.4.
>>
>> IS 5.2.0 should compatible with APIM 2.0.0 for KM installation. So we
>> should try KM 6.0.4 feature installation in IS 5.2.0. @Kavitha : Can you
>> please try that.
>>
>> Thanks,
>>
>> On Wed, Aug 24, 2016 at 11:47 PM, Harsha Kumara  wrote:
>>
>>> Hi Darshana,
>>>
>>> It was due to version ranges of dependent feature that we specified in
>>> the key manager features doesn't match with feature version in IS
>>> 5.2.0-beta. We also haven't had a deep look on installing 5.0.3 version on
>>> IS 5.2.0 releases.
>>>
>>> @kavitha Any reason we going to try 5.0.3 features with IS 5.2.0 beta
>>> instead of trying latest APIM feature versions which is 6.0.4. During the
>>> latest release we installed 6.0.4 features on IS 5.2.0 release.
>>>
>>> Thanks,
>>> Harsha
>>>
>>> On Wed, Aug 24, 2016 at 11:10 PM, Darshana Gunawardana <
>>> darsh...@wso2.com> wrote:
>>>
 Hi Harsha,

 Can you bit explain what was the issue?

 Thanks,

 On Wed, Aug 24, 2016 at 11:03 PM, Harsha Kumara 
 wrote:

> Hi Kavitha,
>
> We won't be able to install 5.0.3 features on top of IS 5.2.0-beta due
> to dependency issues.
>
> Thanks,
> Harsha
>
> On Wed, Aug 24, 2016 at 5:52 PM, Kavitha Subramaniyam <
> kavi...@wso2.com> wrote:
>
>> Thanks Kasun.
>>
>> On Wed, Aug 24, 2016 at 5:50 PM, Kavitha Subramaniyam <
>> kavi...@wso2.com> wrote:
>>
>>> Found a public jira[1] created and updated the latest comment
>>> [1] https://wso2.org/jira/browse/IDENTITY-4842
>>>
>>> Thanks,
>>>
>>> On Wed, Aug 24, 2016 at 5:21 PM, Kavitha Subramaniyam <
>>> kavi...@wso2.com> wrote:
>>>
 Hi IS team,

 Here I'm using IS 5.2.0 beta2 (24/08 build) pack and p2 repo (4.4.7
 - P2 Repo - WSO2 API Manager 2.0.0) available here [1]. Once the
 repo added, I could find the feature list 'API Key Manager 5.0.3'
 and I was trying to install it; But cannot go with next and there were 
 no
 features to be installed (feature.jpeg showing the message displayed).

 Why this message comes and what would be done to install the
 features success?

 [1] http://wso2.com/products/carbon/release-matrix/

 Thanks,


 --
 Kavitha.S
 *Software Engineer -QA*
 Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
 kavi...@wso2.com 

>>>
>>>
>>>
>>> --
>>> Kavitha.S
>>> *Software Engineer -QA*
>>> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
>>> kavi...@wso2.com 
>>>
>>
>>
>>
>> --
>> Kavitha.S
>> *Software Engineer -QA*
>> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
>> kavi...@wso2.com 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>



 --
 Regards,


 *Darshana Gunawardana*Associate Technical Lead
 WSO2 Inc.; http://wso2.com

 *E-mail: darsh...@wso2.com *
 *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware

>>>
>>>
>>>
>>> --
>>> Harsha Kumara
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94775505618
>>> Blog:harshcreationz.blogspot.com
>>>
>>
>>
>>
>> --
>> Regards,
>>
>>
>> *Darshana Gunawardana*Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>>
>> *E-mail: darsh...@wso2.com *
>> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>>
>
>
>
> --
> Kasun Bandara
> *Software Engineer*
> Mobile : +94 (0) 718 338 360
> <%2B94%20%280%29%20773%20451194>
> kas...@wso2.com 
>



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


Re: [Dev] Content-Type header is not set when calling via a scheduled task

2016-08-28 Thread Rajith Vitharana
Hi Nirodha,

I just tried your scenario with latest ESB 5.0.0 and it works fine for me.
With message type property[1] and "Accept" header[2], we can control what
"Content-Type" header and "Accept" header goes to the back end even when
the proxy service get invoked by a schedule task.

Can you specify the ESB version you are using and can you attach the proxy
service and schedule task you used?

[1] - 
[2] - 

Thanks,

On 27 August 2016 at 21:40, Nirodha Gallage  wrote:

> Hi Rajith,
>
> It is already there and worked when calling with SOAP client. But not
> working with the task.
>
> Thanks,
>
> On Sat, Aug 27, 2016 at 7:54 PM, Rajith Vitharana 
> wrote:
>
>> Hi Nirodha,
>>
>> Try setting "messageType" property before calling the Rest backend,
>> sample would be [1]
>>
>> [1] - 
>>
>> Thanks,
>>
>> On 27 August 2016 at 19:41, Nirodha Gallage  wrote:
>>
>>> Hi,
>>>
>>> I'm have created a proxy service which calls a REST endpoint which sends
>>> a text response. Before calling the endpoint I have set the below headers
>>> to get the response as text/plain. And then I read values from response
>>> using xpath function.
>>>
>>> ​​
>>> ​​
>>>
>>> The whole scenario works fine when you call the proxy service with a
>>> SOAP client. But when the proxy is invoked with a scheduled task it does
>>> not work and gives a message builder error. While debugging it I figured
>>> out that 'Content-Type' header is not set in the second scenario(task) in
>>> the rest service call, due to that it is sending text/html response. Is
>>> this a known issue? Is there any solution for this.
>>>
>>> I also tried with setting following two header/property but that also
>>> did not work.
>>>
>>> >> action="set" />
>>>  >> action="set" />
>>>
>>> Thanks,
>>> Nirodha
>>>
>>> --
>>>
>>> *Nirodha Gallage*
>>> Associate Technical Lead
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94716429078
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>> 
>>
>
>
>
> --
>
> *Nirodha Gallage*
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94716429078
>



-- 
Rajith Vitharana

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

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


Re: [Dev] Installing APIM features to IS 5.2.0 beta2 pack says No features to be installed

2016-08-28 Thread Kasun Bandara
Hi Kavitha,

Have you been able to try KM 6.0.4 feature installation in IS 5.2.0 as
suggested by @Darshana.

Thanks,
Kasun

On Thu, Aug 25, 2016 at 7:21 AM, Darshana Gunawardana 
wrote:

> Hi Harsha,
>
> Sorry, my understanding was APIM 2.0.0 KM version is 5.0.3. As per your
> above reply it seems to be 6.0.4.
>
> IS 5.2.0 should compatible with APIM 2.0.0 for KM installation. So we
> should try KM 6.0.4 feature installation in IS 5.2.0. @Kavitha : Can you
> please try that.
>
> Thanks,
>
> On Wed, Aug 24, 2016 at 11:47 PM, Harsha Kumara  wrote:
>
>> Hi Darshana,
>>
>> It was due to version ranges of dependent feature that we specified in
>> the key manager features doesn't match with feature version in IS
>> 5.2.0-beta. We also haven't had a deep look on installing 5.0.3 version on
>> IS 5.2.0 releases.
>>
>> @kavitha Any reason we going to try 5.0.3 features with IS 5.2.0 beta
>> instead of trying latest APIM feature versions which is 6.0.4. During the
>> latest release we installed 6.0.4 features on IS 5.2.0 release.
>>
>> Thanks,
>> Harsha
>>
>> On Wed, Aug 24, 2016 at 11:10 PM, Darshana Gunawardana > > wrote:
>>
>>> Hi Harsha,
>>>
>>> Can you bit explain what was the issue?
>>>
>>> Thanks,
>>>
>>> On Wed, Aug 24, 2016 at 11:03 PM, Harsha Kumara 
>>> wrote:
>>>
 Hi Kavitha,

 We won't be able to install 5.0.3 features on top of IS 5.2.0-beta due
 to dependency issues.

 Thanks,
 Harsha

 On Wed, Aug 24, 2016 at 5:52 PM, Kavitha Subramaniyam >>> > wrote:

> Thanks Kasun.
>
> On Wed, Aug 24, 2016 at 5:50 PM, Kavitha Subramaniyam <
> kavi...@wso2.com> wrote:
>
>> Found a public jira[1] created and updated the latest comment
>> [1] https://wso2.org/jira/browse/IDENTITY-4842
>>
>> Thanks,
>>
>> On Wed, Aug 24, 2016 at 5:21 PM, Kavitha Subramaniyam <
>> kavi...@wso2.com> wrote:
>>
>>> Hi IS team,
>>>
>>> Here I'm using IS 5.2.0 beta2 (24/08 build) pack and p2 repo (4.4.7
>>> - P2 Repo - WSO2 API Manager 2.0.0) available here [1]. Once the
>>> repo added, I could find the feature list 'API Key Manager 5.0.3'
>>> and I was trying to install it; But cannot go with next and there were 
>>> no
>>> features to be installed (feature.jpeg showing the message displayed).
>>>
>>> Why this message comes and what would be done to install the
>>> features success?
>>>
>>> [1] http://wso2.com/products/carbon/release-matrix/
>>>
>>> Thanks,
>>>
>>>
>>> --
>>> Kavitha.S
>>> *Software Engineer -QA*
>>> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
>>> kavi...@wso2.com 
>>>
>>
>>
>>
>> --
>> Kavitha.S
>> *Software Engineer -QA*
>> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
>> kavi...@wso2.com 
>>
>
>
>
> --
> Kavitha.S
> *Software Engineer -QA*
> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
> kavi...@wso2.com 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com

>>>
>>>
>>>
>>> --
>>> Regards,
>>>
>>>
>>> *Darshana Gunawardana*Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>>
>>> *E-mail: darsh...@wso2.com *
>>> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>
>
>
> --
> Regards,
>
>
> *Darshana Gunawardana*Associate Technical Lead
> WSO2 Inc.; http://wso2.com
>
> *E-mail: darsh...@wso2.com *
> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>



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


[Dev] Making use of a complete day data with in-memory table

2016-08-28 Thread Aneela Safdar
Hi,
I am interested in creating a pie chart of % of protocols in network traffic 
for a complete day which during a day keeps on updating with newer traffic 
events. I think event streams keep on discarding the previous data as new 
events arrive. Is it so? So as I have to need previous events along with 
incoming data, I decided to use event tables which keep data for a longer time 
but the thing is I need to join table with stream in order to make it of any 
use and If I do so I will be only using events that are in stream currently 
(not the one that are already stored and required for the chart).
/* Enter a unique ExecutionPlan */
@Plan:name('MAINExecutionPlan')

/* Enter a unique description for ExecutionPlan */
-- @Plan:description('ExecutionPlan')

/* define streams/tables and write queries here ... */

@Import('MAINInStream:1.0.0')
define stream MAINInStream (ts string, uid string, id_orig_h string, id_orig_p 
int, id_resp_h string, id_resp_p int, proto string, service string, duration 
double, orig_bytes long, resp_bytes long, conn_state string, local_orig bool, 
local_resp bool, missed_bytes long, history string, orig_pkts long, 
orig_ip_bytes long, resp_pkts long, resp_ip_bytes long, tunnel_parents string, 
sensorname string);

@Export('ProtocolStream:1.0.0')
define stream ProtocolStream (protocol string, count int);


define table mem_conn_table (timestamp string, id_orig_h string, id_orig_p int, 
id_resp_h string, id_resp_p int, proto string);

@info(data from stream to table in proper local date format )
from MAINInStream
select time:dateAdd(str:replaceAll(ts,'T',' '), 5, 'hour',"-MM-dd 
HH:mm:ss") as timestamp, id_orig_h, id_orig_p, id_resp_h, id_resp_p, proto
insert into mem_conn_table;

@info(From that table which contains all previous and newer data, take those 
records of current day and update column with protocol name)from 
mem_conn_table[time:dateDiff(time:currentTimestamp(), timestamp, "-MM-dd 
HH:mm:ss", "-MM-dd HH:mm:ss") == 0]
SELECT (ifThenElse(id_resp_p == 21,'FTP', ifThenElse(id_resp_p == 22,'SSH', 
ifThenElse(id_resp_p == 25,'SMTP', ifThenElse(id_resp_p == 
445,'SMB','MYSQL')  as protocol , count() as count
insert into ProtocolStream;

Its not working obviously as there is no join but how to make it work with the 
goal I mentioned? Regards, 
Aneela Safdar___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev