[Dev] [APIM] Issue while using Conditional Group

2016-06-10 Thread Amila De Silva
Hi All, This is related to the discussion had with Harsha on a particular behaviour observed when having Conditional Groups. Suppose we have a throttling policy like below; *default* - 1000 req/min *Condition* - 50 req/min if IP is 10.100.0.5 The expected behaviour is, if requests are coming

Re: [Dev] Issue in processing certain integer values in data mapper

2016-06-10 Thread Viraj Rajaguru
Hi Sohani, +1 for suggestion. This will solve the same issue we are solving with synapse.commons.json.json.output.autoPrimitive and synapse.commons.json.json.output.disableAutoPrimitive.regex in synapse.properties file while XML to JSON conversion in ESB. With Datamapper we will have more flexibil

Re: [Dev] Developer Studio changes ordering of XML attributes

2016-06-10 Thread Kavith Lokuhewage
Hi, On an additional note, this is a major drawback that we have with several components in DevStudio. While trying to improve artfact.xml and pom.xml handling components, we recently came across [1], which is based on the concept of non extractive parsing[2]. Unfortunately this is licensed with G

Re: [Dev] Developer Studio changes ordering of XML attributes

2016-06-10 Thread Viraj Rajaguru
Hi Rajeevan, I think we have two issues. 1. The way attributes are ordered in generated source is not readable. Eg: Property name should come before the Property expression. This is a valid requirement and we will try to fix in a future release. (not in the next immediate release). We will need

Re: [Dev] [IS 510] Keystore configs required in multiple locations

2016-06-10 Thread Udara Liyanage
Hi Malith, I removed that file from a fresh pack and started the server and found web app deployment error. at java.lang.Thread.run(Thread.java:745) [2016-06-11 10:11:08,811] ERROR {org.wso2.carbon.tomcat.internal.CarbonTomcat} - Webapp StandardEngine[Catalina].StandardHost[localhost].StandardCo

Re: [Dev] Exception handling in Spark UDF

2016-06-10 Thread Sachith Withana
If you need to skip the rows that would be throwing the exception, as you said, you'd have to do that in a where clause. If there's a scenario where you need to transform the values and use in a SELECT statement, use a subquery and filter out the unwanted rows. ex: SELECT date FROM ( SELECT dateC

Re: [Dev] Developer Studio changes ordering of XML attributes

2016-06-10 Thread Vimalanathan Rajeevan
Thanks Nuwan and Susinda for your prompt responses. I would say it is a nice to have thing rather not a blocker for Developer Studio. Here the issue is user can not keep desired attribute order when using Graphical Editor(when switching between Design and Source view it is getting overwritten). IM

Re: [Dev] ESB analytics dashboard

2016-06-10 Thread Jerad Rutnam
Hi Dulitha, This was discussed previously in the review meeting and agreed to leave as it is for the initial release. As there is a limitation in Dashboard Server to have views based on conditions. But hopefully this will get fix in the future. Cheers! Jerad On Sat, Jun 11, 2016 at 5:02 AM, Dak

Re: [Dev] ESB analytics dashboard

2016-06-10 Thread Dakshika Jayathilaka
Looping Jeard.. *Dakshika Jayathilaka* PMC Member & Committer of Apache Stratos Associate Technical Lead WSO2, Inc. lean.enterprise.middleware 0771100911 On Sat, Jun 11, 2016 at 12:52 AM, Dulitha Wijewantha wrote: > Hi Dakshitha, > When I go to view analytics of proxies the UI is not intuitive

Re: [Dev] [App Cloud] Reproduce the intermittent Malformed JSON Exception when calling tier api

2016-06-10 Thread Kasun De Silva
​Did you try create version from rest api? Can we do a load test to the rest api and see? ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

Re: [Dev] Exception handling in Spark UDF

2016-06-10 Thread Dulitha Wijewantha
The default value will work for scenarios where we are using the function on a where clause. There is also another scenario where you use it to transform the value in the select. In the below query - if we put a default value it will be returned by the result set rather than ignoring it. select se

[Dev] ESB analytics dashboard

2016-06-10 Thread Dulitha Wijewantha
Hi Dakshitha, When I go to view analytics of proxies the UI is not intuitive to let me know that i have to select a proxy to view stats. Below is a screenshot - Ideally on this - first one should be selected or an aggregated result should be shown [image: Inline image 1] Cheers~ -- Dulitha Wije

Re: [Dev] [IS] RESTful Fine Grained Authorization-as-a-Service (AZaaS)

2016-06-10 Thread Manuranga Perera
Hi Manujith, Please have a look at WSO2 REST API guideline [1]. This will help you to improve the URL nameing. [1] http://wso2.com/whitepapers/wso2-rest-apis-design-guidelines/ On Thu, Jun 9, 2016 at 3:49 PM, Manujith Pallewatte wrote: > Hi Pushpalanka, > > Was confused in the PR procedure, an

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-06-10 Thread Asantha Thilina
Hi Tharindu, sorry for the delay i have updated my blog today and i'm keep posting all the progress in their[1] up to now and i am look forward for your feedbacks and comments [1]http://asanthamax.blogspot.com/ Thanks, Asantha On Thu, Jun 9, 2016 at 7:37 AM, Tharindu Edirisinghe wrote: > Hi A

Re: [Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-10 Thread Ayoma Wijethunga
+1 for not using "{{{". We will further check on adding such patterns ("{{{ * }}}") in planned Jenkins based automated security scans (static code analysis). On Fri, Jun 10, 2016 at 8:47 PM, SajithAR Ariyarathna wrote: > +1 for abandoning "{{{" > > toClent("fromBackend.protocols", protocols); >

Re: [Dev] [UUF] Programmatically add/remove/modify items on menu.

2016-06-10 Thread SajithAR Ariyarathna
As for now UUF only support for pre- configured menus. We are hoping to add menu disabling & modifying capability (these operation can be done in the server-side JS) in future releases. Thanks. On Fri, Jun 10, 2016 at 4:49 PM, Hemika Kodikara wrote: > Hi All, > > Is it possible to programmatica

Re: [Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-10 Thread SajithAR Ariyarathna
+1 for abandoning "{{{" toClent("fromBackend.protocols", protocols); We can implement this in the next milestone. On Fri, Jun 10, 2016 at 8:12 PM, Manuranga Perera wrote: > These are mistakes we have already made in our old systems, let's not > repeat them > > 1) Please DO NOT use "{{{", it in

Re: [Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-10 Thread Manuranga Perera
These are mistakes we have already made in our old systems, let's not repeat them 1) Please DO NOT use "{{{", it introduces SECURITY VULNERABILITIES, Sajith,Rasika we need to introduce a new function. Don't even tell people about "{{{" in backend JS, Hemika should be able to do the following toCl

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

2016-06-10 Thread KasunG Gajasinghe
+Dulanja, +Ayoma On Fri, Jun 10, 2016 at 6:36 PM, Geeth Munasinghe wrote: > > > On Fri, Jun 10, 2016 at 6:10 PM, KasunG Gajasinghe > wrote: > >> Hi Geeth, >> >> On Fri, Jun 10, 2016 at 5:09 PM, Geeth Munasinghe wrote: >> >>> Hi Kasun, >>> >>> >>> On Fri, Jun 10, 2016 at 4:10 PM, KasunG Gajasin

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

2016-06-10 Thread Geeth Munasinghe
On Fri, Jun 10, 2016 at 6:10 PM, KasunG Gajasinghe wrote: > Hi Geeth, > > On Fri, Jun 10, 2016 at 5:09 PM, Geeth Munasinghe wrote: > >> Hi Kasun, >> >> >> On Fri, Jun 10, 2016 at 4:10 PM, KasunG Gajasinghe >> wrote: >> >>> Hi Bhathiya, >>> >>> On Fri, Jun 10, 2016 at 3:19 PM, Bhathiya Jayasekar

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

2016-06-10 Thread KasunG Gajasinghe
Hi Geeth, On Fri, Jun 10, 2016 at 5:09 PM, Geeth Munasinghe wrote: > Hi Kasun, > > > On Fri, Jun 10, 2016 at 4:10 PM, KasunG Gajasinghe > wrote: > >> Hi Bhathiya, >> >> On Fri, Jun 10, 2016 at 3:19 PM, Bhathiya Jayasekara >> wrote: >> >>> Hi Kalpa, >>> >>> I tried to do a smoke test. But I can

Re: [Dev] [GREG] Invalid value error for REG_CREATED_TIME column in REG_RESOURCE with mysql 5.7

2016-06-10 Thread Sewmini Jayaweera
Hi Uvindra, I used pre configured IS to configure IS as key manager. But due to [1] I could not start api manager using -Dsetup. Therefore I sourced tables manually by following [2]. According to [2] we need to source /dbscripts/apimgt/mysql.sql and /dbscripts/identity/mysql.sql. in order to creat

Re: [Dev] [APIM 2.0]What is the order of matching Conditional groups in Advance Resource Throttling?

2016-06-10 Thread Ushani Balasooriya
Thanks for the clarification Harsha On Fri, Jun 10, 2016 at 4:24 PM, Harsha Kumara wrote: > Hi Ushani, > > On Fri, Jun 10, 2016 at 2:28 PM, Ushani Balasooriya > wrote: > >> Hi Harsha, >> >> Additionally please explain how it should behave if the request matches >> one conditional group and defa

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

2016-06-10 Thread Kalpa Welivitigoda
Hi all, Thanks for testing kernel 4.4.6 RC2. We have to call off the vote as we needed to fix [1]. The fix is already in place, we will call a vote for RC3 soon. [1] https://wso2.org/jira/browse/IDENTITY-4656 On Fri, Jun 10, 2016 at 5:01 PM, KasunG Gajasinghe wrote: > > > On Fri, Jun 10, 2016

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

2016-06-10 Thread Geeth Munasinghe
Hi Kasun, On Fri, Jun 10, 2016 at 4:10 PM, KasunG Gajasinghe wrote: > Hi Bhathiya, > > On Fri, Jun 10, 2016 at 3:19 PM, Bhathiya Jayasekara > wrote: > >> Hi Kalpa, >> >> I tried to do a smoke test. But I can't login to any jaggery app, due to >> the same error. So I think we have 2 options her

Re: [Dev] [GREG] Invalid value error for REG_CREATED_TIME column in REG_RESOURCE with mysql 5.7

2016-06-10 Thread Uvindra Dias Jayasinha
So this has nothing to do with the TIMESTAMP issue, this is because you have already run the script once before and now its failing because primary keys are being duplicated On 10 June 2016 at 16:56, Sewmini Jayaweera wrote: > Hi Uvindra, > > As per my observation in some mysql servers the scrip

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

2016-06-10 Thread KasunG Gajasinghe
On Fri, Jun 10, 2016 at 4:42 PM, Bhathiya Jayasekara wrote: > Hi Kasun, > > On Fri, Jun 10, 2016 at 4:10 PM, KasunG Gajasinghe > wrote: > >> Hi Bhathiya, >> >> On Fri, Jun 10, 2016 at 3:19 PM, Bhathiya Jayasekara >> wrote: >> >>> Hi Kalpa, >>> >>> I tried to do a smoke test. But I can't login t

Re: [Dev] Issue in processing certain integer values in data mapper

2016-06-10 Thread Sohani Weerasinghe
Hi All, Since there is already a feature to edit the properties of a particular tree node, we can use that to change the data type Thanks, Sohani Sohani Weerasinghe Senior Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitt

Re: [Dev] [GREG] Invalid value error for REG_CREATED_TIME column in REG_RESOURCE with mysql 5.7

2016-06-10 Thread Sewmini Jayaweera
Hi Uvindra, As per my observation in some mysql servers the script attached in my previous mail works but for me I had to add 'DEFAULT CURRENT_TIMESTAMP' option for REG_LAST_UPDATED_TIME and REG_CREATED_TIME columns of 'REG_RESOURCE_HISTORY' tables in addition to 'REG_RESOURCE' table. I could

[Dev] [UUF] Programmatically add/remove/modify items on menu.

2016-06-10 Thread Hemika Kodikara
Hi All, Is it possible to programmatically add/remove/modify items to the menu ? In MB we are making changes to have pluggable protocols. So the UI should reflect when a protocol is added/removed. Thoughts ? Regards, Hemika Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middle

Re: [Dev] [CEP] Dynamic key and values support in CEP output adapter

2016-06-10 Thread Mohanadarshan Vivekanandalingam
On Fri, Jun 10, 2016 at 3:13 PM, Rajjaz Mohammed wrote: > Hi, > > I'm planning to follow the same approach followed in CEP kafka input event > adapter to get optional configuration properties. > > @Mohanadharshan > WDYT? > If that is the requirement then +1.. Thanks, Mohan > > [1] > https://d

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

2016-06-10 Thread Bhathiya Jayasekara
Hi Kasun, On Fri, Jun 10, 2016 at 4:10 PM, KasunG Gajasinghe wrote: > Hi Bhathiya, > > On Fri, Jun 10, 2016 at 3:19 PM, Bhathiya Jayasekara > wrote: > >> Hi Kalpa, >> >> I tried to do a smoke test. But I can't login to any jaggery app, due to >> the same error. So I think we have 2 options here

Re: [Dev] [APIM 2.0]What is the order of matching Conditional groups in Advance Resource Throttling?

2016-06-10 Thread Harsha Kumara
Hi Ushani, On Fri, Jun 10, 2016 at 2:28 PM, Ushani Balasooriya wrote: > Hi Harsha, > > Additionally please explain how it should behave if the request matches > one conditional group and default conditional group as well. > There is no possibility of request being applying to conditional group a

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

2016-06-10 Thread KasunG Gajasinghe
Hi Bhathiya, On Fri, Jun 10, 2016 at 3:19 PM, Bhathiya Jayasekara wrote: > Hi Kalpa, > > I tried to do a smoke test. But I can't login to any jaggery app, due to > the same error. So I think we have 2 options here. > > 1) Modify default jks to accept * (wildcard) hostname. > 2) Introduce some co

[Dev] [DEV] [SMS Transport] Problem with Exception Handling

2016-06-10 Thread Biruntha Gnaneswaran
Hi Devs, I want to send SMS using axis2 SMS Transport [1] . I try with below code. It works fine in normal case. Here sentInfo() is used to send SMS. But if there is an exception in sentInfo() method, I couldn’t catch that exception from my code. Because sendSMS() method in SMPPImplManager class d

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

2016-06-10 Thread Bhathiya Jayasekara
Hi Kalpa, I tried to do a smoke test. But I can't login to any jaggery app, due to the same error. So I think we have 2 options here. 1) Modify default jks to accept * (wildcard) hostname. 2) Introduce some config or system variable to disable hostname verification, read it from everywhere we us

Re: [Dev] [CEP] Dynamic key and values support in CEP output adapter

2016-06-10 Thread Rajjaz Mohammed
Hi, I'm planning to follow the same approach followed in CEP kafka input event adapter to get optional configuration properties. @Mohanadharshan WDYT? [1] https://docs.wso2.com/display/CEP300/Input+Kafka+Event+Adapter#InputKafkaEventAdapter-ConfiguringinputKafkaeventadapter

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

2016-06-10 Thread Bhathiya Jayasekara
Hi Kalpa, Thanks. I'll try to fix that. Regards, Bhathiya On Fri, Jun 10, 2016 at 2:31 PM, Kalpa Welivitigoda wrote: > Hi Bhathiya, > > We are using a newer version of httpclient orbit > (commons-httpclient-3.1.0.wso2v3.jar) in kernel 4.4.6 and it verify the > host name. You will be able to ge

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

2016-06-10 Thread Kalpa Welivitigoda
Hi Bhathiya, We are using a newer version of httpclient orbit (commons-httpclient-3.1.0.wso2v3.jar) in kernel 4.4.6 and it verify the host name. You will be able to get it fixed from your test module. On Fri, Jun 10, 2016 at 1:02 PM, Bhathiya Jayasekara wrote: > Hi Kalpa, > > I'm getting this e

Re: [Dev] [APIM 2.0]What is the order of matching Conditional groups in Advance Resource Throttling?

2016-06-10 Thread Ushani Balasooriya
Hi Harsha, Additionally please explain how it should behave if the request matches one conditional group and default conditional group as well. Scenario 2 : E.g., E.g. Conditional group 1 : JWT claim condition and Query Param Condition Conditional group 2 : Header condition A request matches b

Re: [Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-10 Thread Hemika Kodikara
Also please note that I used JSON.stringify method in server side js. Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +9477762 On Fri, Jun 10, 2016 at 2:13 PM, Hemika Kodikara wrote: > Thanks Rasika for the solution. > > In the client sid

[Dev] [APIM 2.0]What is the order of matching Conditional groups in Advance Resource Throttling?

2016-06-10 Thread Ushani Balasooriya
Hi Harsha, In API Manager 2.0, Advance throttling configuration, if there are multiple conditional groups defined and if a request matches multiple conditional groups how it should work? Is there a priority that should be matched or should it match the lowest request count? E.g. Conditional grou

Re: [Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-10 Thread Hemika Kodikara
Thanks Rasika for the solution. In the client side JS, have the following code : var protocols = *{{{protocols}}}*; $.each(protocols, function(index, value) { $('#queue-subscription-protocols').append($('

Re: [Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-10 Thread Hemika Kodikara
Hi Milinda, It is not a string array, its actually java objects that is there. Hi Sajith, I modified the nashorn script as following : var onRequest = function (context) { var protocols = callOSGiService("org.wso2.andes.kernel.Andes", "getSupportedProtocols", []); var protocolStrings =

Re: [Dev] [CEP] Dynamic key and values support in CEP output adapter

2016-06-10 Thread Rajjaz Mohammed
Hi, Currently, FileWriter will Save the events in given file but As we discussed I need to add events to different files based on some unique keys from the single stream. So we need to keep unique value and the file name belongs to the unique key. How this possible in CEP output adapter? On Fri,

Re: [Dev] [CEP] Dynamic key and values support in CEP output adapter

2016-06-10 Thread Yashothara Shanmugarajah
Hi, In CEP output adapter, we give values for predefined parameters. But we cant add dynamic parameters and values for that parameters. Is there any way to add dynamic parameters when we configure output adapter? Through that we can give parameter name and values. @Rajjaz Please clarify whether i

Re: [Dev] Checking isDebugEnabled() for formatted debug logs

2016-06-10 Thread Isuru Perera
Okay. But I still believe we should have guard conditions especially for debug messages. It doesn't matter how the underlying implementation handles the log message. As a practice, we should use guard conditions. SLF4J API already provides a way to check the log level. So, we should use that. It al

Re: [Dev] Checking isDebugEnabled() for formatted debug logs

2016-06-10 Thread Abimaran Kugathasan
Hi Isuru, On Thu, Jun 9, 2016 at 4:54 PM, Isuru Perera wrote: > > > On Thu, Jun 9, 2016 at 4:28 PM, Abimaran Kugathasan > wrote: > >> I think, it's depends on the framework and their versions. >> >> latest versions of slf4j or log4j 2 don't require guard statements. >> > Have they mentioned abo

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

2016-06-10 Thread Bhathiya Jayasekara
Hi Kalpa, I'm getting this error while running tests with new kernel. Any idea why? [2016-06-10 12:45:49,077] INFO - HTTPSender Unable to sendViaPost to url[ https://10.100.0.189:9943//services/AuthenticationAdmin] INFO [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - jav

Re: [Dev] Modifications to the DCR endpoint

2016-06-10 Thread Kaveesha Perera
Hi, Removed the call to retrieveApplication method. Relevant PR can be found in[1]. [1]https://github.com/wso2/carbon-apimgt/pull/2495 On Thu, Jun 9, 2016 at 2:08 PM, Amila De Silva wrote: > Hi, > > IMO DCR implementation should not depend on/use AMDefaultKeyManagerImpl > because; > 1. DCR of

Re: [Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-10 Thread Milinda Perera
Hi Hemika, If AMQP-0-10, MQTT-default, AMQP-0-91, AMQP-8-0, AMQP-0-9 are strings, following should work JSON.parse("[\"AMQP-0-10\", \"MQTT-default\", \"AMQP-0-91\", \"AMQP-8-0\", \"AMQP-0-9\"]") Accroding to [1] within array " A *value* can be a *string* in double quotes, or a *number*, or true

Re: [Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-10 Thread SajithAR Ariyarathna
> > My OSGi method returns a Set. > In Nashorn you can iterate though any Java Collection. var osgiOutput = callOsgiService( ... ); var protocolNames = []; // this is a JS array for (item in osgiOutput) { // 'item' is a ProtocolType Java object. // You can call Java methods on it. For example

[Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-10 Thread Hemika Kodikara
Hi All, I am invoking the callOSGiService method in nashorn to get a list of protocols thats in andes of MB. I am getting the following output after invoking the callOSGiService : [AMQP-0-10, MQTT-default, AMQP-0-91, AMQP-8-0, AMQP-0-9] But need to convert it into a javascript array(Probably a S