Re: [Dev] Clarification on invoking particular fragment in UUF

2017-01-10 Thread Shan Mahanama
Hi all,

We can solve this by adding a hidden field to each form.



Then inside of the onRequest function, we can check the value of the hidden
field.

if (env.request.method == "POST" && env.request.formParams["tabId"]="tab1") {

// do stuff related to tab1

}

If a fragment is used only in one place, that means that fragment is not
reused. So you can remove the fragment and add the fragment content
directly into the page. Our recommendation is, not to create a fragment
until the code is reused somewhere else.

Thanks,
Shan.

On Wed, Jan 11, 2017 at 11:44 AM, KasunG Gajasinghe  wrote:

> +Dev
>
> On Wed, Jan 11, 2017 at 12:49 AM, Denuwanthi De Silva  > wrote:
>
>> Hi,
>>
>> During user-portal implementations for IS, I can see that the POST
>> methods of all fragments get invoked if you do a POST only in one fragment.
>>
>> Ex:
>> we have base account-settings page.
>> It has several tabs/menu like "profiles", "password"
>> We define fragment for each tab inside account-setting.hbs
>>
>> But when we go inside one tab and do a Submit (POST) it invokes the POST
>> methods inside ''onReuest" methods of each fragment.
>>
>> Is there a way we can make only needed fragment is invoked when it is
>> selected?
>>
>> Ex: provide an env.param for each fragment
>>
>> {{fragment "org.wso2.carbon.iam.user-portal.feature.profile" 
>> envParam="profile"}}
>>
>> and and and AND statement like
>>
>> if (env.request.method == "POST" && env.params.envParam="profile") {
>>
>>
>> Then, only the desired fragment will be invoked.
>>
>> Can anyone shed some light on this matter as it is affecting the update
>> password flow due to and update calim happening inside profile.js
>>
>>
>> Thanks
>>
>> --
>> Denuwanthi De Silva
>> Senior Software Engineer;
>> WSO2 Inc.; http://wso2.com,
>> Email: denuwan...@wso2.com
>> Blog: https://denuwanthi.wordpress.com/
>>
>
>
>
> --
>
> *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
> phone: +1 650-745-4499 <(650)%20745-4499>, 77 678 0813
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Shan Mahanama

Software Engineer, WSO2 Inc. http://wso2.com

Email: sh...@wso2.com
Mobile: +94 71 2000 498
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 API Manager 2.1.0 RC2

2017-01-10 Thread Abimaran Kugathasan
Tested Endpoints, Throttling and general API invocations scenarios

[+] Stable - go ahead and release

On Wed, Jan 11, 2017 at 11:20 AM, Praminda Jayawardana 
wrote:

> Tested client SDK generation for super tenant, non admin, tenant and self
> signup users.
>
> [+] Stable - go ahead and release
>
> On Wed, Jan 11, 2017 at 10:56 AM, Arshardh Ifthikar 
> wrote:
>
>> Tested the Websocket API feature
>>
>> [+] Stable - go ahead and release
>>
>> On Wed, Jan 11, 2017 at 10:52 AM, Tharindu Dharmarathna <
>> tharin...@wso2.com> wrote:
>>
>>> Tested the Blocking condition and Advance throtting feature
>>>
>>> [+] Stable - go ahead and release
>>>
>>>
>>> On Wed, Jan 11, 2017 at 10:50 AM, Chamila Adhikarinayake <
>>> chami...@wso2.com> wrote:
>>>
 Tested workflows for API lifecycle state change feature.

 [+] Stable - go ahead and release

 On Tue, Jan 10, 2017 at 4:35 PM, Malintha Amarasinghe <
 malint...@wso2.com> wrote:

> Hi All,
>
> This is the 2nd Release Candidate of WSO2 API Manager 2.1.0
>
> Please download, test the product and vote. The vote will be open for
> 72 hours or as needed.
>
> Source and distribution
>
> Run-time : https://github.com/wso2/prod
> uct-apim/releases/download/v2.1.0-rc2/wso2am-2.1.0-RC2.zip
> Analytics : https://github.com/wso2/anal
> ytics-apim/releases/download/v2.1.0-rc2/wso2am-analytics-2.1.0-RC2.zip
> Tooling : https://github.com/wso2/devs
> tudio-tooling-apim/releases/tag/v2.1.0-rc2
>
>
> This release fixes the following issues:
> Runtime : https://wso2.org/jira/issues/?filter=13623
> Analytics : https://wso2.org/jira/issues/?filter=13624
> Tooling : https://wso2.org/jira/browse/DEVTOOLAPI-1
>
>
> Please vote as follows.
> [+] Stable - go ahead and release
> [-] Broken - do not release (explain why)
>
>
> Thanks,
> - WSO2 API Manager Team -
>
> --
> Malintha Amarasinghe
> Software Engineer
> *WSO2, Inc. - lean | enterprise | middleware*
> http://wso2.com/
>
> Mobile : +94 712383306 <+94%2071%20238%203306>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


 --
 Regards,
 Chamila Adhikarinayake
 Software Engineer
 WSO2, Inc.
 Mobile - +94712346437 <+94%2071%20234%206437>
 Email  - chami...@wso2.com
 Blog  -  http://helpfromadhi.blogspot.com/

 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


>>>
>>>
>>> --
>>>
>>> *Tharindu Dharmarathna*Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94779109091 <+94%2077%20910%209091>*
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> *Arshardh Ifthikar*
>> Trainee Software Engineer
>> WSO2, Inc.
>> Mobile: +94719806525 <+94%2071%20980%206525>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Praminda Jayawardana*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> Mobile : +94 (0) 716 590918 <+94%2071%20659%200918>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
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] Clarification on invoking particular fragment in UUF

2017-01-10 Thread KasunG Gajasinghe
+Dev

On Wed, Jan 11, 2017 at 12:49 AM, Denuwanthi De Silva 
wrote:

> Hi,
>
> During user-portal implementations for IS, I can see that the POST methods
> of all fragments get invoked if you do a POST only in one fragment.
>
> Ex:
> we have base account-settings page.
> It has several tabs/menu like "profiles", "password"
> We define fragment for each tab inside account-setting.hbs
>
> But when we go inside one tab and do a Submit (POST) it invokes the POST
> methods inside ''onReuest" methods of each fragment.
>
> Is there a way we can make only needed fragment is invoked when it is
> selected?
>
> Ex: provide an env.param for each fragment
>
> {{fragment "org.wso2.carbon.iam.user-portal.feature.profile" 
> envParam="profile"}}
>
> and and and AND statement like
>
> if (env.request.method == "POST" && env.params.envParam="profile") {
>
>
> Then, only the desired fragment will be invoked.
>
> Can anyone shed some light on this matter as it is affecting the update
> password flow due to and update calim happening inside profile.js
>
>
> Thanks
>
> --
> Denuwanthi De Silva
> Senior Software Engineer;
> WSO2 Inc.; http://wso2.com,
> Email: denuwan...@wso2.com
> Blog: https://denuwanthi.wordpress.com/
>



-- 

*Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
phone: +1 650-745-4499, 77 678 0813
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 API Manager 2.1.0 RC2

2017-01-10 Thread Praminda Jayawardana
Tested client SDK generation for super tenant, non admin, tenant and self
signup users.

[+] Stable - go ahead and release

On Wed, Jan 11, 2017 at 10:56 AM, Arshardh Ifthikar 
wrote:

> Tested the Websocket API feature
>
> [+] Stable - go ahead and release
>
> On Wed, Jan 11, 2017 at 10:52 AM, Tharindu Dharmarathna <
> tharin...@wso2.com> wrote:
>
>> Tested the Blocking condition and Advance throtting feature
>>
>> [+] Stable - go ahead and release
>>
>>
>> On Wed, Jan 11, 2017 at 10:50 AM, Chamila Adhikarinayake <
>> chami...@wso2.com> wrote:
>>
>>> Tested workflows for API lifecycle state change feature.
>>>
>>> [+] Stable - go ahead and release
>>>
>>> On Tue, Jan 10, 2017 at 4:35 PM, Malintha Amarasinghe <
>>> malint...@wso2.com> wrote:
>>>
 Hi All,

 This is the 2nd Release Candidate of WSO2 API Manager 2.1.0

 Please download, test the product and vote. The vote will be open for
 72 hours or as needed.

 Source and distribution

 Run-time : https://github.com/wso2/prod
 uct-apim/releases/download/v2.1.0-rc2/wso2am-2.1.0-RC2.zip
 Analytics : https://github.com/wso2/anal
 ytics-apim/releases/download/v2.1.0-rc2/wso2am-analytics-2.1.0-RC2.zip
 Tooling : https://github.com/wso2/devs
 tudio-tooling-apim/releases/tag/v2.1.0-rc2


 This release fixes the following issues:
 Runtime : https://wso2.org/jira/issues/?filter=13623
 Analytics : https://wso2.org/jira/issues/?filter=13624
 Tooling : https://wso2.org/jira/browse/DEVTOOLAPI-1


 Please vote as follows.
 [+] Stable - go ahead and release
 [-] Broken - do not release (explain why)


 Thanks,
 - WSO2 API Manager Team -

 --
 Malintha Amarasinghe
 Software Engineer
 *WSO2, Inc. - lean | enterprise | middleware*
 http://wso2.com/

 Mobile : +94 712383306 <+94%2071%20238%203306>

 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


>>>
>>>
>>> --
>>> Regards,
>>> Chamila Adhikarinayake
>>> Software Engineer
>>> WSO2, Inc.
>>> Mobile - +94712346437 <+94%2071%20234%206437>
>>> Email  - chami...@wso2.com
>>> Blog  -  http://helpfromadhi.blogspot.com/
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>>
>> *Tharindu Dharmarathna*Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94779109091 <+94%2077%20910%209091>*
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> *Arshardh Ifthikar*
> Trainee Software Engineer
> WSO2, Inc.
> Mobile: +94719806525 <+94%2071%20980%206525>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Praminda Jayawardana*
Software Engineer
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 716 590918
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 API Manager 2.1.0 RC2

2017-01-10 Thread Arshardh Ifthikar
Tested the Websocket API feature

[+] Stable - go ahead and release

On Wed, Jan 11, 2017 at 10:52 AM, Tharindu Dharmarathna 
wrote:

> Tested the Blocking condition and Advance throtting feature
>
> [+] Stable - go ahead and release
>
>
> On Wed, Jan 11, 2017 at 10:50 AM, Chamila Adhikarinayake <
> chami...@wso2.com> wrote:
>
>> Tested workflows for API lifecycle state change feature.
>>
>> [+] Stable - go ahead and release
>>
>> On Tue, Jan 10, 2017 at 4:35 PM, Malintha Amarasinghe > > wrote:
>>
>>> Hi All,
>>>
>>> This is the 2nd Release Candidate of WSO2 API Manager 2.1.0
>>>
>>> Please download, test the product and vote. The vote will be open for 72
>>> hours or as needed.
>>>
>>> Source and distribution
>>>
>>> Run-time : https://github.com/wso2/prod
>>> uct-apim/releases/download/v2.1.0-rc2/wso2am-2.1.0-RC2.zip
>>> Analytics : https://github.com/wso2/anal
>>> ytics-apim/releases/download/v2.1.0-rc2/wso2am-analytics-2.1.0-RC2.zip
>>> Tooling : https://github.com/wso2/devstudio-tooling-apim/releases/ta
>>> g/v2.1.0-rc2
>>>
>>>
>>> This release fixes the following issues:
>>> Runtime : https://wso2.org/jira/issues/?filter=13623
>>> Analytics : https://wso2.org/jira/issues/?filter=13624
>>> Tooling : https://wso2.org/jira/browse/DEVTOOLAPI-1
>>>
>>>
>>> Please vote as follows.
>>> [+] Stable - go ahead and release
>>> [-] Broken - do not release (explain why)
>>>
>>>
>>> Thanks,
>>> - WSO2 API Manager Team -
>>>
>>> --
>>> Malintha Amarasinghe
>>> Software Engineer
>>> *WSO2, Inc. - lean | enterprise | middleware*
>>> http://wso2.com/
>>>
>>> Mobile : +94 712383306 <+94%2071%20238%203306>
>>>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>> Regards,
>> Chamila Adhikarinayake
>> Software Engineer
>> WSO2, Inc.
>> Mobile - +94712346437 <+94%2071%20234%206437>
>> Email  - chami...@wso2.com
>> Blog  -  http://helpfromadhi.blogspot.com/
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
>
> *Tharindu Dharmarathna*Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94779109091 <+94%2077%20910%209091>*
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Arshardh Ifthikar*
Trainee Software Engineer
WSO2, Inc.
Mobile: +94719806525
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 API Manager 2.1.0 RC2

2017-01-10 Thread Tharindu Dharmarathna
Tested the Blocking condition and Advance throtting feature

[+] Stable - go ahead and release


On Wed, Jan 11, 2017 at 10:50 AM, Chamila Adhikarinayake 
wrote:

> Tested workflows for API lifecycle state change feature.
>
> [+] Stable - go ahead and release
>
> On Tue, Jan 10, 2017 at 4:35 PM, Malintha Amarasinghe 
> wrote:
>
>> Hi All,
>>
>> This is the 2nd Release Candidate of WSO2 API Manager 2.1.0
>>
>> Please download, test the product and vote. The vote will be open for 72
>> hours or as needed.
>>
>> Source and distribution
>>
>> Run-time : https://github.com/wso2/product-apim/releases/download/v2.
>> 1.0-rc2/wso2am-2.1.0-RC2.zip
>> Analytics : https://github.com/wso2/analytics-apim/releases/download/
>> v2.1.0-rc2/wso2am-analytics-2.1.0-RC2.zip
>> Tooling : https://github.com/wso2/devstudio-tooling-apim/releases/
>> tag/v2.1.0-rc2
>>
>>
>> This release fixes the following issues:
>> Runtime : https://wso2.org/jira/issues/?filter=13623
>> Analytics : https://wso2.org/jira/issues/?filter=13624
>> Tooling : https://wso2.org/jira/browse/DEVTOOLAPI-1
>>
>>
>> Please vote as follows.
>> [+] Stable - go ahead and release
>> [-] Broken - do not release (explain why)
>>
>>
>> Thanks,
>> - WSO2 API Manager Team -
>>
>> --
>> Malintha Amarasinghe
>> Software Engineer
>> *WSO2, Inc. - lean | enterprise | middleware*
>> http://wso2.com/
>>
>> Mobile : +94 712383306 <+94%2071%20238%203306>
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Regards,
> Chamila Adhikarinayake
> Software Engineer
> WSO2, Inc.
> Mobile - +94712346437 <+94%2071%20234%206437>
> Email  - chami...@wso2.com
> Blog  -  http://helpfromadhi.blogspot.com/
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 

*Tharindu Dharmarathna*Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] [Architecture] [VOTE] Release WSO2 API Manager 2.1.0 RC2

2017-01-10 Thread Chamila Adhikarinayake
Tested workflows for API lifecycle state change feature.

[+] Stable - go ahead and release

On Tue, Jan 10, 2017 at 4:35 PM, Malintha Amarasinghe 
wrote:

> Hi All,
>
> This is the 2nd Release Candidate of WSO2 API Manager 2.1.0
>
> Please download, test the product and vote. The vote will be open for 72
> hours or as needed.
>
> Source and distribution
>
> Run-time : https://github.com/wso2/product-apim/releases/
> download/v2.1.0-rc2/wso2am-2.1.0-RC2.zip
> Analytics : https://github.com/wso2/analytics-apim/releases/
> download/v2.1.0-rc2/wso2am-analytics-2.1.0-RC2.zip
> Tooling : https://github.com/wso2/devstudio-tooling-apim/
> releases/tag/v2.1.0-rc2
>
>
> This release fixes the following issues:
> Runtime : https://wso2.org/jira/issues/?filter=13623
> Analytics : https://wso2.org/jira/issues/?filter=13624
> Tooling : https://wso2.org/jira/browse/DEVTOOLAPI-1
>
>
> Please vote as follows.
> [+] Stable - go ahead and release
> [-] Broken - do not release (explain why)
>
>
> Thanks,
> - WSO2 API Manager Team -
>
> --
> Malintha Amarasinghe
> Software Engineer
> *WSO2, Inc. - lean | enterprise | middleware*
> http://wso2.com/
>
> Mobile : +94 712383306 <+94%2071%20238%203306>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
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] [APIM][C5] Intermittent error while loading Swagger Definition

2017-01-10 Thread Thilini Shanika
Please find the issue in [1]

[1] https://github.com/wso2/msf4j/issues/337

Thanks
Thilini

On Tue, Jan 10, 2017 at 5:19 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Thilini,
>
> It seems that some services are getting register before all the carbon
> transports get registered.  Could you please create a github issue for this.
> We'll look into this.
>
> Thanks
> Thusitha
>
> On Tue, Jan 10, 2017 at 4:55 PM, Thilini Shanika 
> wrote:
>
>> Hi all,
>>
>> We are experiencing an issue while loading swagger definition via
>> SwaggerDefinitionService. Intermittently, after a server restart, we are
>> getting 'Swagger definition not found ' error while loading a given
>> swagger definition by path.
>>
>> For example, if we are loading http://localhost:9090/
>> swagger?path=/api/am/store/v0.10/apis definition (by
>> /api/am/store/v0.10/apis
>>  base
>> path), intermittently the definition cannot be retrieved and getting
>> following error.
>>
>> {"error": "Swagger definition not found for path /api/am/store/v0.10/apis"}
>>
>> But after one or more server restarts, we can load the swagger definition 
>> with the given base path, successfully.
>>
>> When we were debugging, getSwaggerDefinition implementation in 
>> SwaggerDefinitionService, we observed that intermittently 
>> serviceRegistry.getServiceWithBasePath(path) [1] turned to be empty. So that 
>> the swagger definition could not be loaded.
>>
>> Any clue on this behavior of not having a service registered with a given 
>> base path, intermittently?
>>
>> [1] 
>> https://github.com/wso2/msf4j/blob/v2.1.0/swagger/src/main/java/org/wso2/msf4j/swagger/SwaggerDefinitionService.java#L75
>>
>>
>>
>>
>> --
>> Thilini Shanika
>> Senior Software Engineer
>> WSO2, Inc.; http://wso2.com
>> 20, Palmgrove Avenue, Colombo 3
>>
>> E-mail: tgtshan...@gmail.com
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <+94%2071%20275%206809>
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> 
>
>


-- 
Thilini Shanika
Senior Software Engineer
WSO2, Inc.; http://wso2.com
20, Palmgrove Avenue, Colombo 3

E-mail: tgtshan...@gmail.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Content-Length of the message header is missing when it goes through the API Gateway

2017-01-10 Thread Nuwan Dias
Hi all,

This is the expected behavior of the product AFAIK. And this behavior is
related to response chunking since the Gateway by default sends data in
chunked mode. There are four possible combinations related to response
chunking.

1. Back-End sends chunked data, Gateway also sends in chunked mode.
2. Back-End sends chunked data, Gateway sends in un-chunked mode.
3. Back-End sends un-chunked data, Gateway sends in chunked mode.
4. Back-End sends un-chunked data, Gateway also sends in un-chunked mode.

The behavior you're experiencing is (3). The reason is because the Gateway
by default sends data in chunked mode and hence it drops off the
Content-Length header.

The behavior you're expecting is (4) and to do that you need to set the
FORCE_HTTP_CONTENT_LENGTH and COPY_CONTENT_LENGTH_FROM_INCOMING properties.
Hence the JiRA actually cannot be considered a bug :).

If this particular back-end is in our (wso2) control, I would suggest that
we fix it to support chunking since most modern services support it. And
then disable chunking on the Gateway if the clients of the API cannot work
on chunked data. Switch to option (2) basically.

Thanks,
NuwanD.

On Wed, Jan 11, 2017 at 8:42 AM, Joseph Fonseka  wrote:

> Hi Hasunie
>
> It would be ideal if we can enable this only for the specific APIs but the
> way IoT publisher's the APIs it will be hard to achieve.
>
> Thanks
> Jo
>
> On Wed, Jan 11, 2017 at 4:18 AM, Hasunie Adikari  wrote:
>
>> Hi all,
>>
>> IOT backend server gives Content-length header of the response as
>> expected, But Issue is arisen while passing it through the API Gateway,
>> Content-Length of the response header is missing. We have already created
>>  a public JIRA [1]
>> for the issue in APIM 2.1.0 RC1.
>> Since the issue is affected only for few of APIS, We are trying to add
>> some custom sequence (outSequence) by creating per API Extensions [2].
>>
>> 
>> > value="true"/>
>> > value="true" scope="axis2"/>
>> 
>>  
>>
>> [1] https://wso2.org/jira/browse/APIMANAGER-5573
>> [2] https://docs.wso2.com/display/AM1100/Adding+Mediation+Extensions
>>
>>
>> Thanks
>> Hasunie
>>
>> --
>> *Hasunie Adikari*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> blog http://hasuniea.blogspot.com
>> Mobile:+94713350904 <+94%2071%20335%200904>
>>
>
>
>
> --
>
> --
> *Joseph Fonseka*
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 772 512 430
> skype: jpfonseka
>
> * *
>
>


-- 
Nuwan Dias

Software Architect - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Help required

2017-01-10 Thread Malaka Silva
Hi Amit,

Have you tried the streaming with inbound endpoints?

Also please send your queries to dev@wso2.org. You can cc me. That way more
people from community can help you. :)

[1]
http://mrmalakasilva.blogspot.com/2016/03/streaming-large-files-using-wso2-esb.html
[2] https://docs.wso2.com/display/ESB500/Tuning+the+VFS+Transport
[3] https://docs.wso2.com/display/ESB500/File+Inbound+Protocol

-- Forwarded message --
From: Amit Rajvanshi 
Date: Tue, Jan 10, 2017 at 7:05 PM
Subject: Help required
To: Malaka Silva 


Hi Malaka,



We again need your help :



We are trying to process one xml which contains around 6 instance of an
object and the size of XML is 140 MB.

We are receiving this file through Inbound endpoint file location and doing
some changes in custom mediator java code using DOM object.

While we are processing small files around 30 MB it get processed
successfully but for large files it is giving out of memory error:



java.lang.OutOfMemoryError: Java heap space



if we set our JVM to *-Xms2048m -Xmx2048m -XX:MaxPermSize=1024m* which is
suggested by WSO2 it is giving error and if we set it to *-Xms1024m
-Xmx4096m -XX:MaxPermSize=2048m*

 then it is working fine while if we process same file in java code then it
is working fine with less memory as well. While debugging we have also
found that it is increasing heap memory when we are taking

xml object from context.



This scenario is also reproducible for iterate mediator .

Could you please help us or suggest if there are any memory tuning required
for xml at message context level or somewhere else.



Best regards,
*Amit Rajvanshi*
Eperium Business Solutions (I) Pvt Ltd,
B-13, Sector 57,
Noida (U.P.) - 201301
Phone: +91-120-4737401 <+91%20120%20473%207401>
Web: www.eperiumindia.com

*Shaping future commerce together*

This message may contain confidential or legally privileged information. In
the event of any error in transmission, unauthorized recipients are
requested to contact the sender immediately and not to disclose or make use
of this information. No warranties or assurance are made or given as to the
accuracy of the information given or in relation to the safety of this
e-mail and any attachments. No liability whatsoever is accepted for any
consequences arising from this e-mail.





-- 

Best Regards,

Malaka Silva
Senior Technical Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
https://wso2.com/signature
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Don't make Trees rare, we should keep them with care
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Content-Length of the message header is missing when it goes through the API Gateway

2017-01-10 Thread Joseph Fonseka
Hi Hasunie

It would be ideal if we can enable this only for the specific APIs but the
way IoT publisher's the APIs it will be hard to achieve.

Thanks
Jo

On Wed, Jan 11, 2017 at 4:18 AM, Hasunie Adikari  wrote:

> Hi all,
>
> IOT backend server gives Content-length header of the response as
> expected, But Issue is arisen while passing it through the API Gateway,
> Content-Length of the response header is missing. We have already created
>  a public JIRA [1]
> for the issue in APIM 2.1.0 RC1.
> Since the issue is affected only for few of APIS, We are trying to add
> some custom sequence (outSequence) by creating per API Extensions [2].
>
> 
>  value="true"/>
>  value="true" scope="axis2"/>
> 
>  
>
> [1] https://wso2.org/jira/browse/APIMANAGER-5573
> [2] https://docs.wso2.com/display/AM1100/Adding+Mediation+Extensions
>
>
> Thanks
> Hasunie
>
> --
> *Hasunie Adikari*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> blog http://hasuniea.blogspot.com
> Mobile:+94713350904 <+94%2071%20335%200904>
>



-- 

-- 
*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] [WSO2 IS] Handle fine-grained role permissions : Enhancing the existing API or replacing it

2017-01-10 Thread Chamila Wijayarathna
Hi Hanen,

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

I have written a blog

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

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

Hope that helps!
Chamila

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

> Hi,
>
> Let's suppose I want to develop a new API to handle a fine grained
> permissions per each created role. What should be the reference API that I
> need to modify or replace?
>
> Regards,
> Hanen
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chamila Dilshan Wijayarathna,
PhD Research Student
The University of New South Wales (UNSW Canberra)
Australian Centre for Cyber Security
Australian Defence Force Academy
PO Box 7916, Canberra BA ACT 2610
Australia
Mobile:(+61)416895795
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Content-Length of the message header is missing when it goes through the API Gateway

2017-01-10 Thread Hasunie Adikari
Hi all,

IOT backend server gives Content-length header of the response as expected,
But Issue is arisen while passing it through the API Gateway,
Content-Length of the response header is missing. We have already created
 a public JIRA [1]
for the issue in APIM 2.1.0 RC1.
Since the issue is affected only for few of APIS, We are trying to add some
custom sequence (outSequence) by creating per API Extensions [2].





 

[1] https://wso2.org/jira/browse/APIMANAGER-5573
[2] https://docs.wso2.com/display/AM1100/Adding+Mediation+Extensions


Thanks
Hasunie

-- 
*Hasunie Adikari*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
blog http://hasuniea.blogspot.com
Mobile:+94713350904 <+94%2071%20335%200904>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2 IS] SCIM call to create a role with permissions

2017-01-10 Thread Chaminda Jayawardena
Hi Hanen,

You may use RemoteAuthorizationManager API [1] for assigning permissions to
roles.

[1] https://docs.wso2.com/display/IS520/Managing+Permissions+with+APIs

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

> Hi,
>
> Is it possible to create a role with a list of permissions through SCIM ?
> I created one with this command
>
> curl -v -k --user admin:admin --data '{"displayName":
> "TenantAdmin","members": 
> [{"value":"09f55b8d-9a94-484c-9fff-09e02013167a","hanen":
> "hanen"}]}' --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Groups
>
> but the result is stripped of any kind of permission, is it possible to
> assign them through such calls ?
>
>
> Regards,
> Hanen
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards

*Chaminda Jayawardena*
Senior Software Engineer - QA
WSO2 Inc. - http://wso2.com
+94-77-7725234
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [API-Import-Export] Templating import

2017-01-10 Thread JOSE MARIA ALVAREZ FERNANDEZ
Hello all,Again, as part of the project here in "El Corte Ingles" in Spain, we have detected another issue that we wanted to address and contribute to the project. Basically, we like the idea of being able to modify the API bundles on runtime, and not having to save different artifacts (zips) for every of the environments that we may have. So we have introduced a step in the import process to replace wildcards with velocity in the api.json file of the API bundle zip.The idea is working fine, but before doing the pull request, I wanted to separate our custom implementation of the Template interface that we have created from the solution. But as the solution is a war that is loaded as an application, I don't see a good way to try to load the implementation from somewhere else. I've tried to leave the jar file with only the implementation in the repository/components/lib folder of the APIM, but it of course fails due to a ClassNotFound (because the interface can't be found in the OSGI bundle that was created from the jar file).Do you have a way to try and resolve the split of interface and different implementations of this, so that the classloading is not a problem? The only way I could come up with is basically forking the app and including the custom implementation as a dependency, but I wanted to avoid that.I hope this is clear, if not, please don't hesitate to ask.Thank you for your help,Jose Maria.

www.elcorteingles.es


---

Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede
contener información confidencial, siendo para uso exclusivo del 
destinatario, quedando prohibida su divulgación copia o  distribución a 
terceros sin la autorización expresa del remitente. Si Vd. ha recibido 
este mensaje erróneamente, se ruega lo  notifique al remitente y 
proceda a su borrado.
Gracias por su colaboración.

This message (including any attachments) may contain confidential 
information. It is intended for use by the recipient only. Any 
dissemination, copying or distribution to third parties without the 
express consent of the sender is strictly prohibited. If you have 
received this message in error, please delete it immediately and 
notify the sender. 
Thank you for your collaboration.
 

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


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

2017-01-10 Thread Hanen Ben Rhouma
Hi,

Let's suppose I want to develop a new API to handle a fine grained
permissions per each created role. What should be the reference API that I
need to modify or replace?

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


[Dev] [WSO2 IS] SCIM call to create a role with permissions

2017-01-10 Thread Hanen Ben Rhouma
Hi,

Is it possible to create a role with a list of permissions through SCIM ?
I created one with this command

curl -v -k --user admin:admin --data '{"displayName":
"TenantAdmin","members":
[{"value":"09f55b8d-9a94-484c-9fff-09e02013167a","hanen": "hanen"}]}'
--header "Content-Type:application/json"
https://localhost:9443/wso2/scim/Groups

but the result is stripped of any kind of permission, is it possible to
assign them through such calls ?


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


Re: [Dev] [APIM][C5] Intermittent error while loading Swagger Definition

2017-01-10 Thread Thusitha Thilina Dayaratne
Hi Thilini,

It seems that some services are getting register before all the carbon
transports get registered.  Could you please create a github issue for this.
We'll look into this.

Thanks
Thusitha

On Tue, Jan 10, 2017 at 4:55 PM, Thilini Shanika  wrote:

> Hi all,
>
> We are experiencing an issue while loading swagger definition via
> SwaggerDefinitionService. Intermittently, after a server restart, we are
> getting 'Swagger definition not found ' error while loading a given
> swagger definition by path.
>
> For example, if we are loading http://localhost:9090/
> swagger?path=/api/am/store/v0.10/apis definition (by
> /api/am/store/v0.10/apis
>  base path),
> intermittently the definition cannot be retrieved and getting following
> error.
>
> {"error": "Swagger definition not found for path /api/am/store/v0.10/apis"}
>
> But after one or more server restarts, we can load the swagger definition 
> with the given base path, successfully.
>
> When we were debugging, getSwaggerDefinition implementation in 
> SwaggerDefinitionService, we observed that intermittently 
> serviceRegistry.getServiceWithBasePath(path) [1] turned to be empty. So that 
> the swagger definition could not be loaded.
>
> Any clue on this behavior of not having a service registered with a given 
> base path, intermittently?
>
> [1] 
> https://github.com/wso2/msf4j/blob/v2.1.0/swagger/src/main/java/org/wso2/msf4j/swagger/SwaggerDefinitionService.java#L75
>
>
>
>
> --
> Thilini Shanika
> Senior Software Engineer
> WSO2, Inc.; http://wso2.com
> 20, Palmgrove Avenue, Colombo 3
>
> E-mail: tgtshan...@gmail.com
>
>


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


[Dev] WSO2 Carbon Kernel 5.2.0-m3 Released

2017-01-10 Thread Niranjan Karunanandham
WSO2 Carbon Kernel 5.2.0-m3 Released

The Carbon team is pleased to announce the release of Carbon Kernel 5.2.0-M2.
It is now available to download from here
.

*Improvements and Bug fixes*
https://github.com/wso2/carbon-kernel/milestone/8?closed=1

*How to Contribute*
WSO2 Carbon Kernel code is hosted in Github.
The Git repository is https://github.com/wso2/carbon-kernel/
Carbon Kernel 5.2.0-M2 release tag is https://github.com/wso2/car
bon-kernel/releases/tag/v5.2.0-m3
Please report issues at Carbon Jira: https://github.com/wso2/
carbon-kernel/issues

*Contact Us*
WSO2 Carbon developers can be contacted via following mailing lists:
WSO2 Developers List: dev@wso2.org
WSO2 Architecture List: architect...@wso2.org

You can download the released distribution from the following location:
https://github.com/wso2/carbon-kernel/releases

Thank you for your interest in WSO2 Carbon Kernel.

Best Regards
Carbon Team

-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM][C5] Intermittent error while loading Swagger Definition

2017-01-10 Thread Thilini Shanika
Hi all,

We are experiencing an issue while loading swagger definition via
SwaggerDefinitionService. Intermittently, after a server restart, we are
getting 'Swagger definition not found ' error while loading a given swagger
definition by path.

For example, if we are loading http://localhost:9090/
swagger?path=/api/am/store/v0.10/apis definition (by
/api/am/store/v0.10/apis
 base path),
intermittently the definition cannot be retrieved and getting following
error.

{"error": "Swagger definition not found for path /api/am/store/v0.10/apis"}

But after one or more server restarts, we can load the swagger
definition with the given base path, successfully.

When we were debugging, getSwaggerDefinition implementation in
SwaggerDefinitionService, we observed that intermittently
serviceRegistry.getServiceWithBasePath(path) [1] turned to be empty.
So that the swagger definition could not be loaded.

Any clue on this behavior of not having a service registered with a
given base path, intermittently?

[1] 
https://github.com/wso2/msf4j/blob/v2.1.0/swagger/src/main/java/org/wso2/msf4j/swagger/SwaggerDefinitionService.java#L75




-- 
Thilini Shanika
Senior Software Engineer
WSO2, Inc.; http://wso2.com
20, Palmgrove Avenue, Colombo 3

E-mail: tgtshan...@gmail.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Identity Server analytic username/password configuration

2017-01-10 Thread Godwin Shrimal
Hi Mohan,

Thanks for response, I think having a separate user (may be in another
userstore) which have required permission will be a option.

Thanks
Godwin

On Tue, Jan 10, 2017 at 2:30 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
>
> On Tue, Jan 10, 2017 at 11:52 AM, Godwin Shrimal  wrote:
>
>> Hi All,
>>
>> As described in [1] we need to configure username/password in
>> IsAnalytics-Publisher-wso2event-AuthenticationData.xml and
>> IsAnalytics-Publisher-wso2event-SessionData.xml files. How do we handle
>> when some user store has policies to change credentials periodically. Do we
>> have to change credentials in those configs file and restart Identity
>> Server all the time or do we have any alternative for this ?
>>
>
> ATM, we only support basicAuth; there is no any other option.. Only thing
> that you can do is, have a seperate user (in another usestore) which have
> login and event pulisher permissions..
>
> Actually these files are hot deployable artifacts.. You don't have to
> restart the server for a change.
>
>
> Thanks,
> Mohan
>
>
>
>>
>> [1] https://docs.wso2.com/display/IS520/Prerequisites+to+Publish
>> +Statistics#PrerequisitestoPublishStatistics-Configuringeventpublishers
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>
>
>
> --
> *V. Mohanadarshan*
> *Associate Tech Lead,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673 <+94%2077%20111%207673>
>



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

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

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


Re: [Dev] WSO2 Identity Server analytic username/password configuration

2017-01-10 Thread Mohanadarshan Vivekanandalingam
On Tue, Jan 10, 2017 at 11:52 AM, Godwin Shrimal  wrote:

> Hi All,
>
> As described in [1] we need to configure username/password in
> IsAnalytics-Publisher-wso2event-AuthenticationData.xml and
> IsAnalytics-Publisher-wso2event-SessionData.xml files. How do we handle
> when some user store has policies to change credentials periodically. Do we
> have to change credentials in those configs file and restart Identity
> Server all the time or do we have any alternative for this ?
>

ATM, we only support basicAuth; there is no any other option.. Only thing
that you can do is, have a seperate user (in another usestore) which have
login and event pulisher permissions..

Actually these files are hot deployable artifacts.. You don't have to
restart the server for a change.


Thanks,
Mohan



>
> [1] https://docs.wso2.com/display/IS520/Prerequisites+to+
> Publish+Statistics#PrerequisitestoPublishStatisti
> cs-Configuringeventpublishers
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
> 
>



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