[Dev] [AM] Adding a Custom Tier without the use of UI

2017-07-11 Thread Saad Sahibjan
Hi,

I want to add a custom tier to API Manager 1.9.1 but not through UI. I
checked the API Manager 2.1.0, adding a custom tier could be done through
editing the 'default-tiers.xml' file in the
'wso2am-2.1.0\repository\resources\default-tiers'

Is there any way to add a custom tier in to AM 1.9.1 pack without the use
of UI?

Regards,
Saad

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


[Dev] WSO2 Committers += Pahan Sarathchandra

2017-07-11 Thread Joseph Fonseka
Hi All

It's my pleasure to announce Pahan Sarathchandra as a WSO2 Committer !

Congratulations! Pahan

Cheers
Jo

-- 

-- 
*Joseph Fonseka*
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 772 512 430
skype: jpfonseka

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


Re: [Dev] [GSoC][Siddhi][CEP]: Siddhi Pattern for Absence of Events

2017-07-11 Thread Gobinath
Hi,
I defined the number of operands as the number of LogicalStreamProcessors
that can be partners. Not is handled by one LogicalStreamProcessor so it
can be partner with another LogicalStreamProcessor.

Does it make sense?

Thanks and Regards,
Gobinath

On Jul 11, 2017 3:06 PM, "Sriskandarajah Suhothayan"  wrote:

> Can you please elaborate on "more than two pattern operands is not
> supported by Siddhi"
> I thought (not C and D) is still one operand as we can't access C.
>
> On Tue, Jul 11, 2017 at 1:42 AM, Gobinath  wrote:
>
>> Hi Suho,
>>
>> I have added the test cases to all the cases you have mentioned except
>> the four listed below because having more than two pattern operands is not
>> supported by Siddhi. I hope it is okay to skip those test cases. WDYT?
>>
>>
>>- every ( (not C and D) and B ) -> A
>>- every ((not C and D) or B ) -> A
>>- every (B and (not C and D) ) -> A
>>- every (B or (not C and D) ) -> A
>>
>>
>> If there are no more cases to test, may I start with the SEQUENCE?
>>
>>
>> Thanks & Regards,
>> Gobinath
>>
>> On Mon, Jul 3, 2017 at 2:32 PM, Gobinath  wrote:
>>
>>> Hi,
>>> Sure. I will add test cases for each of these cases.
>>>
>>>
>>> Thanks & Regards,
>>> Gobinath
>>>
>>> On Mon, Jul 3, 2017 at 2:23 PM, Sriskandarajah Suhothayan >> > wrote:
>>>


 On Mon, Jul 3, 2017 at 5:18 PM, Gobinath  wrote:

> Hi,
>
> The following absent event cases are implemented and tested so far and
> now I am focusing on testing these patterns in the form of *Sequence*.
> If you find any cases that I missed or any improvements, please share 
> them.
>
>
>
> A not B for 1sec
>
> After the arrival of A, wait for 1 sec & B not arrived
>
> A → not B and C
>
> When C arrive if B is not available
>
> A → (not B and C) within 1sec
>
> If B not arrived but C arrived within 1 sec from A
>
> A → (not B for 1sec  and C) within 2sec
>
> Wait for 1 sec from the arrival of A; if B not arrived and C arrived
> and both happened within 2 sec from A
>
> not A for 1sec → B
>
> Wait for 1 sec; if A not arrived but B arrived after 1sec
>
> not A and B → C
>
> When B arrive if A is not available followed by C
>
> every ( not B and  A)  → C
>
> Every combination of the previous case
>
> every ( not B for 1sec) → C
>
> Check and emit C every second, if B not arrive
>
> A → not B  for 1 sec and not C for 1 sec
>
> After A, both B and C are not received within 1 sec
>
> not A  for 1 sec and not B for 1 sec → C
>
> A and B are not received for 1 sec and then C
>
> A → not B   for 1 sec or not C for 1 sec
>
> After A, wait for 1 sec B or C not received
>
> not A  for 1 sec or not B for 1 sec → C
>
> Wait for 1 sec; A or B not received followed by C
>
> A → not B for 1 sec or C
>
> After A, if C arrives, emit it otherwise emit after 1 sec if B not
> arrived
>
> not A for 1 sec or B → C
>
> Same as previous but the other way around
>
> I think these will also work but better if you can check them too via
 testcase.

 A → C or not B for 1 sec

 B or not A for 1 sec → C

 every (not B  for 1 sec and not C for 1 sec ) -> A

 every (not B  for 1 sec or not C for 1 sec ) -> A

 every (B *and* not C for 1 sec ) -> A

 every (not C for 1 sec *and* B ) -> A

 every (B *or* not C for 1 sec ) -> A

 every (not C for 1 sec *or* B ) -> A

 every (B *and* (not C and D) ) -> A

 every ( (not C and D) *and* B ) -> A

 every (B *or* (not C and D) ) -> A

 every ((not C and D) *or* B ) -> A


>
> Thanks & Regards,
> Gobinath
>
> On Sun, Jul 2, 2017 at 6:34 AM, Gobinath  wrote:
>
>> Thanks, Suho.
>>
>> Sure I will.
>>
>>
>> Thanks & Regards,
>> Gobinath
>>
>> On Sun, Jul 2, 2017 at 6:32 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> Thanks merged the PR.
>>>
>>> Can you inform in SOF that you have fixed this issue, and this is
>>> the PR.
>>>
>>> Thanks
>>> Suho
>>>
>>> On Sun, Jul 2, 2017 at 6:21 AM, Gobinath 
>>> wrote:
>>>
 Hi,

 Please find the PR [1] fixing the following issues in Siddhi.

 1. Logical pattern not obeying the '*within*' keyword

 2. Sequence not obeying the '*every*' keyword

 3. Logical pattern '*from* *A or B select...*' not producing the
 output

 With this fix, the problems asked in Stack Overflow [2] are
 resolved.


 [1] https://github.com/wso2/siddhi/pull/436

 [2] https://stackoverflow.com/questions/41557227/siddhi-logi
 cal-and-with-with

Re: [Dev] [APIM] Workflow in multi-tenant environment

2017-07-11 Thread Chamila Adhikarinayake
Hi

There is no method to configure same executors for all the tenants. For
each tenant you will have to configure workflow-extensions.xml

Setting same configuration for all the tenants is also not a proper
solution to have because some user credentials are used to connect with BPS
server. these configurations are defined in the workflow-extensions.xml
file. If the same configuration is used, tenants will be using same super
tenant credentials and super tenant's BPS's services. That is not a proper
solution in a multi tenant environment

Chamila.

On Tue, Jul 11, 2017 at 8:49 AM, Godwin Shrimal  wrote:

> Hi All,
>
> If we create a custom workflow executer we need to configure it in [1]
> with required classes, properties etc. So in multi-tenant env we cannot
> modify [1] each time when we create a tenant. Do we have a better solution
> for this ?
>
> [1] /_system/governance/apimgt/applicationdata/workflow-extensions.xml
>
>
> 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
> 
>



-- 
Regards,
Chamila Adhikarinayake
Senior 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] WSO2 DAS data export

2017-07-11 Thread Mohanadarshan Vivekanandalingam
On Tue, Jul 11, 2017 at 1:31 PM, Sajith Abeywardhana 
wrote:

> Hi Team,
>
> Is there any way that I can export the data to the CSV format from the
> given table? I used the APIs[1] but it won't gives me a total number of
> records as a result. When I looked from the data explorer it shows more
> than 10 records but APIs gives me only 7000+ records.
>
>
AFAIK, you have used the correct API, I have tried with few records and it
worked fine.. Whether you have encountered above situation when there are
large number of events ? Hope there is no any connection timeout with the
server when executing above request.

@Gimanatha, can you please provide your input on this.

Thanks,
Mohan

>
> [1].
> curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic
> YWRtaW46YWRtaW4=" https://10.0.4.42:9443/analy tics/search_count -d
> '{"tableName":"SENSOR_EVENT_DATA_STREAM"}' -k
>
> curl -k -X POST   https://10.0.4.42:9443/analytics/search   -H
> 'authorization: Basic YWRtaW46YWRtaW4='   -H 'cache-contr ol: no-cache'
> -H 'content-type: application/json'   -H 'postman-token:
> 96b4b45b-dcae-841b-40ed-0e6e1f12d36b'   -d '{
>  "tableName":"SENSOR_EVENT_DATA_STREAM",
>  "start":0,
>  "count":100
> }' >> das1-data.json
>
> Thanks,
> Sajith.
>



-- 
*V. Mohanadarshan*
*Associate Tech Lead,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: mo...@wso2.com
phone:(+94) 771117673
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Workflow in multi-tenant environment

2017-07-11 Thread Godwin Shrimal
Hi All,

If we create a custom workflow executer we need to configure it in [1] with
required classes, properties etc. So in multi-tenant env we cannot modify
[1] each time when we create a tenant. Do we have a better solution for
this ?

[1] /_system/governance/apimgt/applicationdata/workflow-extensions.xml


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


Re: [Dev] Get Super tenant admin email

2017-07-11 Thread Godwin Shrimal
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().getUserRealm().
> 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


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


[Dev] Supporting attributes feature for SCIM filtering

2017-07-11 Thread Johann Nallathamby
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


[Dev] efficient processing of huge json responses. Guidance required.

2017-07-11 Thread aditya shivankar
Hi

I need to call a backend service as many times as there are elements in my
request array.

The response of the backend rest service is very huge for each request
array element(min 2k to 3k lines)  .

But When I provide Xpath  in iterator mediator, as given in wso2 documents
it internally converts json to XML. Which ( json to XML conversion and
vice-versa) will definitely hamper my application performance in production
when several requests come at same time, as I already mentioned backend
service response is quite huge each time and is in json format.

For sending the request to the backend service I am using iterate mediator
which only allows Xpath as input.

I am aggregating all responses in one response xml using aggregator
mediator. which also is taking Xpath as input. That means again json to xml
conversion will take place again.



I need to do it synchronously because the response is immediately required
to be displayed on my application screen.

Could you please guide me, is there any way iterate , aggregate, foreach
mediators will accept jsonpath as input instead of Xpath. So that I could
get rid off these internal json-xml conversions.
or is there any other efficient way to process json requests within wso2.

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


[Dev] Foreach is not working properly under AggregateMediator's scope in response flow

2017-07-11 Thread aditya shivankar
Foreach is not working properly under AggregateMediator's scope in response
flow

Input request :

[
{
"name" : "Home"
},
{
"name" : "Car"
},
{
"name" : "Mobile"
}
]


I am using iterate, to send each element of above array as request to a
passthrough service( In myactual project this is not pass through. for
better understanding of issue I kept it like this ).

The responses of the pass through service are aggregated in one soap xml by
AggregateMediator.


Below is response from AggregateMediator


http://schemas.xmlsoap.org/soap/envelope/";>



Mobile


Car


Home






Using foreach to modify each response depending on some parameters coming
in response.
But Foreach is not working properly under Aggregator scope in response flow
. Its response is weird.
-
For-each response :

[2017-07-11 14:07:44,696]  INFO - LogMediator msg4 = "Inside Foreach"
[2017-07-11 14:07:44,697]  INFO - LogMediator To:
http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
MessageID: urn:uuid:3e1fd827-12ab-413c-824d-c9daf7b6df7c, Direction:
response, Envelope: 
http://schemas.xmlsoap.org/soap/envelope/";>


Home




[2017-07-11 14:07:44,697]  INFO - LogMediator msg4 = "Inside Foreach"
[2017-07-11 14:07:44,697]  INFO - LogMediator To:
http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
MessageID: urn:uuid:3e1fd827-12ab-413c-824d-c9daf7b6df7c, Direction:
response, Payload: {"name":"Home"}

[2017-07-11 14:07:44,697]  INFO - LogMediator msg4 = "Inside Foreach"
[2017-07-11 14:07:44,698]  INFO - LogMediator To:
http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
MessageID: urn:uuid:3e1fd827-12ab-413c-824d-c9daf7b6df7c, Direction:
response, Payload: {"name":"Home"}


The second and third iterate of foreach should have been like below :

http://schemas.xmlsoap.org/soap/envelope/";>


Mobile




http://schemas.xmlsoap.org/soap/envelope/";>


Car




Instead of :

 Payload: {"name":"Home"}
 Payload: {"name":"Home"}

 Please find attached flow xml's.

http://ws.apache.org/ns/synapse";>

















http://ws.apache.org/ns/synapse";>














































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


Re: [Dev] [IS] Source code for org.wso2.carbon.identity.sso.saml module

2017-07-11 Thread Hanen Ben Rhouma
Thanks Pulasthi!!

Regards,
Hanen

On Tue, Jul 11, 2017 at 10:24 AM, Pulasthi Mahawithana 
wrote:

> Hi Hanen,
>
> It's now at 'identity-inbound-auth-saml' repo [1]. The 5.3.0 version can
> be found at the tag at [2].
>
> [1] https://github.com/wso2-extensions/identity-inbound-
> auth-saml/tree/5.3.x/components/org.wso2.carbon.identity.sso.saml
>
> [2] https://github.com/wso2-extensions/identity-inbound-
> auth-saml/tree/v5.3.0/components/org.wso2.carbon.identity.sso.saml
>
> On Tue, Jul 11, 2017 at 1:43 PM, Hanen Ben Rhouma 
> wrote:
>
>> Hello guys,
>>
>> Could you please tell me where can I find the source code for
>> org.wso2.carbon.identity.sso.saml_5.3.0.jar.
>> I checked this git repo https://github.com/wso2-a
>> ttic/carbon-identity/tree/master/components/sso-saml/org.
>> wso2.carbon.identity.sso.saml  but the latest version in 5.0.9-SNAPSHOT
>>
>>
>> Any idea please?
>>
>> Regards,
>> Hanen
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pulasthi Mahawithana*
> Senior Software Engineer
> WSO2 Inc., http://wso2.com/
> Mobile: +94-71-5179022 <+94%2071%20517%209022>
> Blog: https://medium.com/@pulasthi7/
>
> 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Source code for org.wso2.carbon.identity.sso.saml module

2017-07-11 Thread Pulasthi Mahawithana
Hi Hanen,

It's now at 'identity-inbound-auth-saml' repo [1]. The 5.3.0 version can be
found at the tag at [2].

[1]
https://github.com/wso2-extensions/identity-inbound-auth-saml/tree/5.3.x/components/org.wso2.carbon.identity.sso.saml

[2]
https://github.com/wso2-extensions/identity-inbound-auth-saml/tree/v5.3.0/components/org.wso2.carbon.identity.sso.saml

On Tue, Jul 11, 2017 at 1:43 PM, Hanen Ben Rhouma 
wrote:

> Hello guys,
>
> Could you please tell me where can I find the source code for
> org.wso2.carbon.identity.sso.saml_5.3.0.jar.
> I checked this git repo https://github.com/wso2-
> attic/carbon-identity/tree/master/components/sso-saml/
> org.wso2.carbon.identity.sso.saml  but the latest version in
> 5.0.9-SNAPSHOT
>
>
> Any idea please?
>
> Regards,
> Hanen
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Pulasthi Mahawithana*
Senior Software Engineer
WSO2 Inc., http://wso2.com/
Mobile: +94-71-5179022
Blog: https://medium.com/@pulasthi7/


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


[Dev] [IS] Source code for org.wso2.carbon.identity.sso.saml module

2017-07-11 Thread Hanen Ben Rhouma
Hello guys,

Could you please tell me where can I find the source code for
org.wso2.carbon.identity.sso.saml_5.3.0.jar.
I checked this git repo
https://github.com/wso2-attic/carbon-identity/tree/master/components/sso-saml/org.wso2.carbon.identity.sso.saml
 but the latest version in 5.0.9-SNAPSHOT


Any idea please?

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