Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread Manorama Perera
Hi Aditya, In order to preserve the double quotations around the numbers, you can configure the below property in /repository/conf/synapse.properties synapse.commons.json.output.autoPrimitive=false Thanks, Manorama On Wed, Oct 25, 2017 at 11:31 AM, aditya shivankar < shivankar.adit...@gmail.com

[Dev] [product-sp] Can't access editor in the latest product-sp release

2017-10-25 Thread Niruhan Viswarupan
Started the editor from latest release pack M14. When I try to access the editor at http://localhost:9090/editor it shows the following error message. Problem accessing: /editor. Reason: Not Found *Find the terminal logs below,* niruhan@wso2-ThinkPad-T530:~/Documents/Quick-Start-Guide-doc/produc

Re: [Dev] [product-sp] Can't access editor in the latest product-sp release

2017-10-25 Thread Anoukh Jayawardena
Hi Niruhan This is an intermediate issue. We are currently looking into this and will be fixed in the next immediate release. Thank you for reporting. Regards On Wed, Oct 25, 2017 at 12:47 PM, Niruhan Viswarupan wrote: > Started the editor from latest release pack M14. When I try to access the

Re: [Dev] How can I reset secret key of a federated identity when using TOTP

2017-10-25 Thread Kanapriya Kuleswararajan
Hi Malithi, > > I'm still confused on the expectation here. > 1. When TOTP is enabled as second factor for a federated login scenario, > should that federated identity be always mapped with a local account ? > Yes, that is how these use-cases are working in federated scenario. > 2. If (1) should

Re: [Dev] How can I reset secret key of a federated identity when using TOTP

2017-10-25 Thread Malithi Edirisinghe
On Wed, Oct 25, 2017 at 1:40 PM, Kanapriya Kuleswararajan < kanapr...@wso2.com> wrote: > Hi Malithi, > >> >> I'm still confused on the expectation here. >> 1. When TOTP is enabled as second factor for a federated login scenario, >> should that federated identity be always mapped with a local accou

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread Sudharma Subasinghe
Hi Aditya, You can have [] with one json element using PayloadFactory mediator. I tried below instead of enrich mediator and it worked for both single element and multiple elements. {"id" : $1, "parts" : $2, "make" : "Tamsung"}

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread aditya shivankar
Hi, Thanks Manorama , the 2nd issue is relsoved with this. Could you please help me with 1st issue as well ? Or Provide some configuration like above , which will preserve the array, even if there is only one element in array. With Regards Aditya On Wed, Oct 25, 2017 at 12:32 PM, Manorama Pere

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread Vinod Kavinda
HI, You can fix the second issue by enabling the property " synapse.commons.json.output.disableAutoPrimitive.regex". Refer doc [1] for more information. [1] - https://docs.wso2.com/display/EI611/JSON+Support#JSONSupport-XMLtoJSONtransformationparameters /Vinod On Wed, Oct 25, 2017 at 2:28 PM, ad

Re: [Dev] In a ESB sequence, how to continue process in case of error

2017-10-25 Thread Vinod Kavinda
Hi Thomas, You can control the error scenarios in your Fault Sequence. If you haven't added a fault sequence to your proxy service/ API the default fault sequence will be invoked. If you want to control the error scenario, add a fault sequence to your synapse configuration and include the relevant

Re: [Dev] Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread aditya shivankar
Hi, As mentioned earlier "Below is the sample service I have created to Highlight the issues I am facing in my project(where the request and response are very big and these issues are repeating at many places)." Actually , I cannot recreate the message using payloadFactory as you did because,

Re: [Dev] In a ESB sequence, how to continue process in case of error

2017-10-25 Thread Isuru Udana
Hi Thomas, In ESB, 404 response is treated as a legitimate message (as similar to other responses like 200 OK). So neither flow getting stopped nor fault sequence is getting invoked in this case. Basically message flow behaves same for both 404 and 200 responses. If you can provide more details a

Re: [Dev] How can I reset secret key of a federated identity when using TOTP

2017-10-25 Thread Kanapriya Kuleswararajan
> > +1. In that case, can you explain this expectation in the JIRA. Because, > JIRA just includes the error and does not mention how the flow should be. > Updated the JIRA with the relevant information. > > >> >> That's the reason for raising this JIRA. >> >> 3. For the case I tried, where in fir

Re: [Dev] lengthof operator

2017-10-25 Thread Sabeena Kumrawadu
Hi Gayan, AFAIK "lenghtof" was introduced from Ballerina 0.9 Anyway you can try this, int lengthOfTheArray = jsons:getInt ( jsonArray , "$.length()"); where you only have to include the folloeing import, import ballerina.lang.jsons; It worked for me. Regards. On Wed, Oct 25, 2017 at 11:42

Re: [Dev] How to configure the IS Dashboard for a IS cluster fronted by Nginx

2017-10-25 Thread Asela Pathberiya
On Tue, Oct 24, 2017 at 5:41 PM, Sashika Wijesinghe wrote: > Hi All, > > We have configured two IS nodes fronted by Nginx and the site.json with > server host details as below. > > { > "proxy" : { > "proxyHost" : "is.dev.wso2.org", > "proxyHTTPSPort" : "443", > "proxyC

[Dev] [C5] How to programmatically shut down C5 based products?

2017-10-25 Thread Grainier Perera
Hi Devs, I have a requirement where I need to programmatically shut down a C5 based product. Is there a carbon utility to do that? Thanks, Grainier. -- Grainier Perera Senior Software Engineer Mobile : +94716122384 WSO2 Inc. | http://wso2.com lean.enterprise.middleware __

[Dev] Fwd: Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread aditya shivankar
Hi, Let me reformat(summarize) the remaining issue now, as one issue is resolved. The issue which still needs to be addressed is. Below is the sample service I have created to Highlight the issue I am facing in my project(In actual project service, the request and response are very big, dynamic

Re: [Dev] lengthof operator

2017-10-25 Thread Gayan Chamara
Hi Sabeena, Thanks for the help. I'll try it. Regards, Gayan. On Wed, Oct 25, 2017 at 5:30 PM, Sabeena Kumrawadu wrote: > Hi Gayan, > > AFAIK "lenghtof" was introduced from Ballerina 0.9 > > Anyway you can try this, > > int lengthOfTheArray = jsons:getInt ( jsonArray , "$.length()"); > > where

Re: [Dev] [Architecture] WSO2 Stream Processor 4.0.0-M14 Released !

2017-10-25 Thread Nirmal Fernando
On Fri, Oct 20, 2017 at 1:57 AM, Anoukh Jayawardena wrote: > Hi All, > > The WSO2 Analytics team is pleased to announce the release of *WSO2 Stream > Processor Version > 4.0.0 Milestone 14*. > > WSO2 Smart Analytics let digital business creating real-time, intelligent, > actionable business insi

Re: [Dev] Fwd: Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread Sudharma Subasinghe
Ok aditya, got the whole idea of your question.Can I know the esb version which is used ? On 25 Oct 2017 17:37, "aditya shivankar" wrote: Hi, Let me reformat(summarize) the remaining issue now, as one issue is resolved. The issue which still needs to be addressed is. Below is the sample servi

Re: [Dev] Fwd: Enrich mediator Issue with Json in wso2 esb

2017-10-25 Thread aditya shivankar
Currently I am using wso2esb-5.0.0. With Regards, Aditya On Wed, Oct 25, 2017 at 6:54 PM, Sudharma Subasinghe wrote: > Ok aditya, got the whole idea of your question.Can I know the esb version > which is used ? > > On 25 Oct 2017 17:37, "aditya shivankar" > wrote: > > Hi, > > Let me reformat(s

Re: [Dev] How to configure the IS Dashboard for a IS cluster fronted by Nginx

2017-10-25 Thread Ashen Weerathunga
Hi Sashika, Can you check with IS 5.4.0 Clustered guide [1]. I guess it has the information you need. [1] https://docs.wso2.com/display/IS540/Clustered+Deployment Thanks, Ashen On Wed, Oct 25, 2017 at 5:34 PM, Asela Pathberiya wrote: > > > On Tue, Oct 24, 2017 at 5:41 PM, Sashika Wijesinghe

Re: [Dev] [APIM] Testing for Offline Microgateway

2017-10-25 Thread Sabeena Kumrawadu
Hi Rajith and Abimaran, Thank you very much, it was really helpful. I went through all the links, I will be using feign client with Swagger codegen. Reagards. On Wed, Oct 25, 2017 at 10:17 AM, Abimaran Kugathasan wrote: > Hi Sabeena, > > I guess you are planning to write an HTTP client library

[Dev] MSF4J (v2.4.1) Metrics sample throws NPE

2017-10-25 Thread Chanaka Fernando
Hi Devs, When I try to run metrics sample[1] in MSF4J, I'm getting the below NPE during the invocation of the service. [msf4j.executor.workerpool-1] INFO org.wso2.msf4j.analytics.metrics.Metrics - Initializing Metrics Services [msf4j.executor.workerpool-1] ERROR org.wso2.msf4j.analytics.metrics

Re: [Dev] ${ballerina.home} variable found in the netty-transports.yml config in carbon-tranposrts

2017-10-25 Thread Pubudu Fernando
Hi Charuka, You can ignore that netty-transports.yml file. Carbon transport simply provides a jar which you can use as a dependency. If you need to configure it, the relevant netty configurations should be provided by the product itself. You can add your own netty-transports.yml file with the conf

[Dev] [Architecture] WSO2 Stream Processor 4.0.0-M15 Released !

2017-10-25 Thread Chiran Fernando
Hi All, The WSO2 Analytics team is pleased to announce the release of *WSO2 Stream Processor Version 4.0.0 Milestone 15*. WSO2 Smart Analytics let digital business creating real-time, intelligent, actionable business insights, and data products which are achieved by WSO2 Stream Processor's real-t

Re: [Dev] How to configure the IS Dashboard for a IS cluster fronted by Nginx

2017-10-25 Thread Sashika Wijesinghe
Hi Ashen, The IS clustering guide you pointed out does not contain any information to configure the IS dashboard in a cluster setup. In my scenario, I can log in to the management console successfully but the issue occurs when login to the IS dashboard. Could this be due to any missing configurat

Re: [Dev] How to configure the IS Dashboard for a IS cluster fronted by Nginx

2017-10-25 Thread Ashen Weerathunga
Hi Sashika, Have you added the proxy port 443 for https connector in *catalina-server.xml*? That config needs to be there for the dashboard. Go to /repository/conf/tomcat/catalina-server.xml and add the proxy port 443 as below. wrote: > Hi Ashen, > > The IS clustering guide you pointed out doe

Re: [Dev] How to configure the IS Dashboard for a IS cluster fronted by Nginx

2017-10-25 Thread Sashika Wijesinghe
Hi Ashen, We have already configured the proxy port in the catalina-server.xml. Regards, Sashika On Thu, Oct 26, 2017 at 11:19 AM, Ashen Weerathunga wrote: > Hi Sashika, > > Have you added the proxy port 443 for https connector in > *catalina-server.xml*? > That config needs to be there for