Re: [Dev] [EI] JSON null value taking as "null" String

2018-03-07 Thread Godwin Shrimal
Hi Madhawa, Thanks for the response. Yes, we can pass a null value as you suggested, But think of a scenario, there are a lot of elements in the payload which can be null. Then its hard to handle like this. +1 to fix this. Thanks Godwin On Thu, Mar 8, 2018 at 1:15 PM, Madhawa Gunasekara

Re: [Dev] [EI] JSON null value taking as "null" String

2018-03-07 Thread Madhawa Gunasekara
Hi Godwin, You can try below-mentioned way to pass the null value correctly to the data service. IMO, We need to fix this issue. It's not correct to evaluate JSON null value as String "null" http://www.test.com.;> $1

[Dev] Problems with aggregate: empty enclosingElementProperty

2018-03-07 Thread Bernard Paris
Hi, could someone tell me why my "all_programs" property remains empty after aggregation ? In my logs I can see the aggregation seems to work correctly but all_programs property is empty. Here is my code :

[Dev] [Announce] [Architecture] WSO2 IoT Server 3.2.0 Released !

2018-03-07 Thread Rasika Perera
*We are pleased to announce the general availability of WSO2 IoT Server 3.2.0Download WSO2 IoT Server (IoTS) 3.2.0 from the WSO2 IoT Page .WSO2 IoT Server is one of the most adaptive, Apache-licensed, open source IoT platforms available today. It provides the best technologies

Re: [Dev] How do we use properties file(to store connection details) in wso2?

2018-03-07 Thread Madhawa Gunasekara
Hi Aditya, We don't recommend to use properties files to maintain endpoints. :) We use registry projects to maintain those. BTW You can achieve your requirement in several ways, 1) You can create separate registry projects per environment and separate car files which has the registry resources

Re: [Dev] [IoT-Core] ERROR - Unable to destroy process - WSO2 IOT Server 3.2.0

2018-03-07 Thread PASAN MANULA
More Details, status: broker.sh [2018-03-08 00:09:28,945] [IoT-Core] ERROR - {org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver} Error occurred during error handling, give up! org.apache.cxf.interceptor.Fault: Unable to destroy the process . at

[Dev] [IoT-Core] ERROR - Unable to destroy process - WSO2 IOT Server 3.2.0

2018-03-07 Thread PASAN MANULA
Hi all, When I'm running the virtual firealram with the iot-server it suddenly gives an error and stop displaying temperature reading on the dashboard. Any idea how to solve this issue? Please note that I haven't changed any defaults settings. Running on Ubuntu 16.04 LTS - localhost [2018-03-07

Re: [Dev] [Architecture] Support for encrypted ID tokens in OIDC

2018-03-07 Thread Vihanga Liyanage
Yeah, that is correct. Apart from explaining what is what in the doc, even I couldn't think of a more descriptive name. Please do share your thoughts if anything came to your mind. On Thu, Mar 8, 2018 at 10:16 AM, Godwin Shrimal wrote: > Thanks for the response Vihanga, So

Re: [Dev] [Architecture] Support for encrypted ID tokens in OIDC

2018-03-07 Thread Godwin Shrimal
Thanks for the response Vihanga, So according to your response. Encryption Algorithm = Asymmetric Key Encryption Algorithm Encryption Method = Symmetric Key Encryption Algorithm Yeah, I think its bit confusing. we may use better names than lib. nothing comes to my mind now :) Thanks Godwin On

[Dev] How do we use properties file(to store connection details) in wso2?

2018-03-07 Thread aditya shivankar
Respected Sir, Where do we to store connection details with third party systems or db in wso2. Suppose we have developed a service in wso2 which inserts some record in db. For that we need to define the connection details of db in some properties file or something similar, how do we do this? so

Re: [Dev] [Architecture] Support for encrypted ID tokens in OIDC

2018-03-07 Thread Vihanga Liyanage
The encryption algorithm is the asymmetric key encryption algorithm that is used to encrypt the CEK with the recipient's public key. I've updated these in the public docs [1], [2]. I know these two names are confusing a bit. I just followed the lib for the time being. I'd be happy to talk about a

Re: [Dev] [Architecture] Support for encrypted ID tokens in OIDC

2018-03-07 Thread Godwin Shrimal
Well, if Encryption Method mentioned is referring to "symmetric key encryption algorithm", What is "Encryption Algorithm" on the screen? Thanks Godwin On Thu, Mar 8, 2018 at 9:47 AM, Godwin Shrimal wrote: > Can you send me the list of values in that dropdown? Cipher Block

Re: [Dev] [Architecture] Support for encrypted ID tokens in OIDC

2018-03-07 Thread Godwin Shrimal
Can you send me the list of values in that dropdown? Cipher Block Chaining is how we are chaining encrypted values since encryption happens as blocks (8 bit, 6 bit etc.) You can read about it here [1]. [1] https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation Thanks Godwin On Wed, Mar 7,

Re: [Dev] Query Regarding the wso2 identity server and API manager configuration

2018-03-07 Thread Chanika Geeganage
Hi Monika, It looks like a configuration issue. Please follow [1] for the APIM 2.1.0 to configure IS as a key manager. You can check the API Manager management console whether the SP is added correctly. For that go to Main -> Service Providers. If it is there, the SP provider is not visible in

Re: [Dev] Clarification on Private key JWT Client Authentication for OIDC

2018-03-07 Thread Hasanthi Purnima Dissanayake
Hi Shanika, Thank you for the clarification. In the same doc [1] under step 15 it is > asking to replace the in the CURL command but no > guidance for a user on how to get thisvalue. > Appreciate any guidance on this. > > +Shiraz as these details need to be added to the doc > > We do have

Re: [Dev] [Architecture] Support for encrypted ID tokens in OIDC

2018-03-07 Thread Vihanga Liyanage
The Encryption Method mentioned here is the symmetric key encryption algorithm that is used to encrypt the JWT claims set. We used the Nimbus [1] library for the implementation and within that, they have used the name "Encryption Method" to

Re: [Dev] [Architecture] Support for encrypted ID tokens in OIDC

2018-03-07 Thread Godwin Shrimal
should be corrected as "Chaining Mode". Thanks Godwin On Wed, Mar 7, 2018 at 5:26 PM, Godwin Shrimal wrote: > "Encryption Method" is the correct term/word here? AFAIK It's cipher > chaining mode. I know it's a technical word, but still, I feel like we have > to use correct

Re: [Dev] [APIM] Synchronous call from apim-gateway to Google Analytics

2018-03-07 Thread Dushani Wellappili
Hi all, please note that I have created an issue [1] in git repository. [1] https://github.com/wso2/product-apim/issues/2922 *Dushani Wellappili* Software Engineer - WSO2 Email : dusha...@wso2.com Mobile : +94779367571 Web : https://wso2.com/ On Wed, Mar 7, 2018 at 5:25 PM, Dushani

Re: [Dev] [EI] JSON null value taking as "null" String

2018-03-07 Thread Senduran
Hi Godwin, As a workaround you can try the following. This happens because of the following property contains null as string value So instead of reading the property in the argument, evaluating the JSON path will solve I think i.e Regards Senduran On Wed, Mar 7, 2018 at 5:13 PM, Godwin

Re: [Dev] [Architecture] Support for encrypted ID tokens in OIDC

2018-03-07 Thread Godwin Shrimal
"Encryption Method" is the correct term/word here? AFAIK It's cipher chaining mode. I know it's a technical word, but still, I feel like we have to use correct naming. Something like "Chaning Mode". Thanks Godwin On Wed, Mar 7, 2018 at 11:26 AM, Vihanga Liyanage wrote: > Hi

Re: [Dev] [APIM] Synchronous call from apim-gateway to Google Analytics

2018-03-07 Thread Dushani Wellappili
Hi Rukshan, Thank you for the answer. Yes, now in the existing code, event publishing task is done by the same PassThroughMessageProcessor thread. I will create a git issue. *Dushani Wellappili* Software Engineer - WSO2 Email : dusha...@wso2.com Mobile : +94779367571 Web : https://wso2.com/

[Dev] Test failure in axis2 transport when the axis2 version is upgraded

2018-03-07 Thread Chanika Geeganage
Hi, I tried to upgrade the axis2 version (1.6.1-wso2v24) in wso2-axis2-transport repo. I'm getting the following test failures in the JMS transport test cases. org.apache.axis2.AxisFault: Did not receive a JMS response within 3 ms to destination :

[Dev] [EI] JSON null value taking as "null" String

2018-03-07 Thread Godwin Shrimal
Hi All, If we pass a JSON Payload with a null value, it is considering that null value as "null" string. Please see a sample API and payload API http://www.test.com.;> $1

Re: [Dev] [APIM] Synchronous call from apim-gateway to Google Analytics

2018-03-07 Thread Rukshan Premathunga
Hi Dushani, I'm not sure it is possible to publish event async to google APIs. But we can implement in a way that handover the event publishing task to a separate thread and continue. So please create a git issue and we will looking to it. Thanks and Regards On Wed, Mar 7, 2018 at 3:11 PM,

[Dev] [APIM] Synchronous call from apim-gateway to Google Analytics

2018-03-07 Thread Dushani Wellappili
Hi all, The api-manager gateway performs a https GET call to publish to google analytics [1]. It is a synchronous call. If so, the round trip time for an api invocation would depend on the Internet connection speed in publishing to google analytics. Is there any specific reason for making the

Re: [Dev] ERROR: Axis2Server

2018-03-07 Thread Sashika Wijesinghe
Hi Pendekal, This issue [1] is fixed in the latest EI 6.1.1 update. Could you try out the scenario in latest EI 6.1.1 update (6.1.1-update23) pack? [1] https://github.com/wso2/product-ei/issues/570 Regards, Sashika On Wed, Mar 7, 2018 at 1:38 PM, Yohanna Fernando wrote: >

Re: [Dev] Siddhi long value comparison

2018-03-07 Thread Niveathika Rajendran
Hi Dinusha, The reason for the above issue is that the '259200' value, we get from the multiplication exceeds the maximum value of the int datatype( 2,147,483,647). As per the use case, since only the 30 in the multiplication needs to be configured, you can use the following query, *from

Re: [Dev] How to comment or remove an xml element during package preparing time

2018-03-07 Thread Naduni Pamudika
On Wed, Mar 7, 2018 at 1:26 PM, Madhawa Gunasekara wrote: > Hi Naduni, > > You can use ant plugin [1]. Here is a sample config [2] > > [1] https://ant.apache.org/manual/Tasks/replace.html > [2] https://github.com/wso2-attic/product-dss/blob/master/ >

Re: [Dev] ERROR: Axis2Server

2018-03-07 Thread Yohanna Fernando
Forwarded mail to dev@wso2.org. On Wed, Mar 7, 2018 at 12:36 PM, Pendekal Sanketh < pendekal.sank...@bridgesgi.com> wrote: > Hey, >While starting axis2server.bat, I got the following error: > Server could not start due to class loading issue > java.lang.NoSuchMethodException: samples.util.

Re: [Dev] [Architecture] Support for encrypted ID tokens in OIDC

2018-03-07 Thread Denuwanthi De Silva
On Wed, Mar 7, 2018 at 12:56 PM, Vihanga Liyanage wrote: > Even with signed id tokens, we didn't persist them in the database. Hense > I didn't either. Do you see any value in doing so? > Then there is no problem. > > On Wed, Mar 7, 2018 at 12:46 PM, Denuwanthi De Silva