Re: [Dev] Need a clarification on APIM resource Auth Type functionality.
Hi Amila and Sanjeewa, Thank you for the clarifications. Best Regards, Sewmini Jayaweera *Software Engineer - QA Team* Mobile: +94 (0) 773 381 250 sewm...@wso2.com On Tue, Mar 31, 2015 at 11:23 AM, Sanjeewa Malalgoda sanje...@wso2.com wrote: If application owner requested user token for his own application he will get application token instead of user token. So you may consider as application owner and token will be application token. Then you may not be able to access resource specified with application user access level. And application owner accessing APIs as application user is very rare in real use cases. Thanks, sanjeewa. On Tue, Mar 31, 2015 at 11:18 AM, Sewmini Jayaweera sewm...@wso2.com wrote: Hi Amila, Once we have specified resource auth type as 'application user', can application owner invoke token API get a access token and invoke the particular resource? In that scenario application owner will also be considered as another application user and should be able to invoke the resource is it? Sewmini Jayaweera *Software Engineer - QA Team* Mobile: +94 (0) 773 381 250 sewm...@wso2.com On Tue, Mar 31, 2015 at 10:59 AM, Amila De Silva ami...@wso2.com wrote: Hi Sewmini, On Tue, Mar 31, 2015 at 10:39 AM, Sewmini Jayaweera sewm...@wso2.com wrote: Hi, When adding an API in the manage stage user has an option to set an auth type for each resource [1]. Below I have mentioned the auth types available and the functionality of auth types as i understood; 1. *Application* - once resource is given application auth type only the access token of the application owner can be used to access the particular resource. Once a resource is given Application auth type, it can only be accessed by an Application Access Token. If the Application Creator gets a token through the store UI, then the token becomes an Application Access Token. But if the same user gets it by calling token API, token is considered as a User Token. 1. *Application user* - Any registered user other *than application owner* can generate access token using consumer key and secret of the application and particular user's user credentials and can invoke resource using the access token. 2. *None * - No access tokens are required in order to access resources having non auth type. Can someone please tell me whether above mentioned functionality is correct, if so in a scenario where resource is given 'application user' auth type why can't application owner act as an application user ? [1] https://docs.wso2.com/download/attachments/41747085/API-resources.png?version=1modificationDate=1410272431000api=v2 ThankS Regards, Sewmini Sewmini Jayaweera *Software Engineer - QA Team* Mobile: +94 (0) 773 381 250 sewm...@wso2.com -- *Amila De Silva* WSO2 Inc. mobile :(+94) 775119302 -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] ESB script mediator - load JavaScript from file-system instead of registry
Hi, I'm trying to develop an API which contains a JS based script mediator and to have the JS file externally. But I don't want to keep it in the registry. Can someone please share some synapse configuration samples if it is possible to load a JS file from the local file-system? I came across [1] that uses localEntry but couldn't make it work. [1] https://docs.wso2.com/display/ESB480/Sample+353%3A+Using+Ruby+Scripts+for+Mediation Thanks. -- Akila Ravihansa Perera Software Engineer, WSO2 Blog: http://ravihansa3000.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ESB script mediator - load JavaScript from file-system instead of registry
Hi Chanaka, It seems like there has been some kind of caching issue OR I've made a mistake in the process. The API is working as expected. Really sorry about the noise. Anyways, thought of documenting what I did for future reference. First I created a LocalEntry in the ESB admin console by going to Main - Local Entries - Add Local Entries - Add Source URL Entry Name: MyLocalJSEntry2 URL: file:repository/deployment/server/synapse-configs/default/script/MyLocalJS.js *Note* - You need to have this file created at CARBON_HOME/repository/deployment/server/synapse-configs/default/script/MyLocalJS.js in this case *before* creating the Local Entry. Otherwise ESB wouldn't let you create the entry. Then create the API as follows; ?xml version=1.0 encoding=UTF-8? api xmlns=http://ws.apache.org/ns/synapse; name=MySampleAPI2 context=/MySampleAPI2 resource methods=GET inSequence send endpoint address uri=http://demo3177833.mockable.io/students/ /endpoint /send /inSequence outSequence property name=messageType value=application/json scope=axis2/ script language=js key=MyLocalJSEntry2 function=executeMain/ send/ /outSequence /resource /api Note that I'm referencing the LocalEntry in script mediator key attribute. Also I observed that ESB is caching this LocalEntry, but I'm not sure about the cache timeout or if that is permanent. Which means that if you make a change in the JS file you need to refresh the cache by saving the Local Entry again (Edit - Save). This is something that can be improved I guess. Thanks. On Tue, Mar 31, 2015 at 1:27 AM, Chanaka Fernando chana...@wso2.com wrote: Hi Akila, What is the error you are getting? This sample should work without any issue. Simply, you need to create a localEntry key and then refer that key from the script mediator. Thanks, Chanaka On Tue, Mar 31, 2015 at 1:27 PM, Akila Ravihansa Perera raviha...@wso2.com wrote: Hi, I'm trying to develop an API which contains a JS based script mediator and to have the JS file externally. But I don't want to keep it in the registry. Can someone please share some synapse configuration samples if it is possible to load a JS file from the local file-system? I came across [1] that uses localEntry but couldn't make it work. [1] https://docs.wso2.com/display/ESB480/Sample+353%3A+Using+Ruby+Scripts+for+Mediation Thanks. -- Akila Ravihansa Perera Software Engineer, WSO2 Blog: http://ravihansa3000.blogspot.com -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- Akila Ravihansa Perera Software Engineer, WSO2 Blog: http://ravihansa3000.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ESB script mediator - load JavaScript from file-system instead of registry
Hi Akila, What is the error you are getting? This sample should work without any issue. Simply, you need to create a localEntry key and then refer that key from the script mediator. Thanks, Chanaka On Tue, Mar 31, 2015 at 1:27 PM, Akila Ravihansa Perera raviha...@wso2.com wrote: Hi, I'm trying to develop an API which contains a JS based script mediator and to have the JS file externally. But I don't want to keep it in the registry. Can someone please share some synapse configuration samples if it is possible to load a JS file from the local file-system? I came across [1] that uses localEntry but couldn't make it work. [1] https://docs.wso2.com/display/ESB480/Sample+353%3A+Using+Ruby+Scripts+for+Mediation Thanks. -- Akila Ravihansa Perera Software Engineer, WSO2 Blog: http://ravihansa3000.blogspot.com -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] AppFactory's openstack is flooded with some unknown instances.
Hi all, AppFactory's internal openstack setup is flooded with some unknown instances with the prefix 'afgas'. Whoever own this prefix please look in to that. Thanks. Mahendran Pirinthapan Software Engineer | WSO2 Inc. Mobile +94772378732. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Applying QOS from developer studio with ESB 4.9.0 release
Additional notes: The proxy config would be as follows: proxy name=TestProxy startOnLoad=true trace=disable transports=http https xmlns=http://ws.apache.org/ns/synapse; target inSequence log/ /inSequence outSequence/ faultSequence/ /target policy key=conf:repository/test/UTOverTransport.xml/ *parameter name=allowRolesadmin/parameter* /proxy Thanks, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Tue, Mar 31, 2015 at 3:53 PM, Sohani Weerasinghe soh...@wso2.com wrote: Meeting notes is as follows Participants: Jasintha, Susinda, Awanthika, Chanaka, IsuruU, Johann, Godwin, Dulindra, Sohani Notes: From the Developer Studio perspective, currently we are implementing the security policy as a registry resource and as per the discussion had we will use the parameter 'allowRoles' to define the relevant user roles. This will be a service level parameter and the roles can be obtained by connecting to the server. This parameter is already available with ESB and this needs to be facilitated by DSS and Axis2. From the Servers (ESB, DSS and AS) a deployer needs to be implemented to handle user roles at the run time Please add points to this if I have missed anything. Thanks, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:35 PM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka, Thanks for the explanation and as per the offline discussion we had, let's have a meeting on next week so that we can discuss and finalize the things. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:26 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Sohani, I got your idea. But what I meant was that this does not give any additional security. BTW, I am not against the registry based approach :) Thanks, Chanaka On Thu, Mar 26, 2015 at 3:05 PM, Sohani Weerasinghe soh...@wso2.com wrote: @Chanaka : I just considered the fact that if we specify it as a parameter then that information will be visible. That is why thought of saving it as a registry resource would be better. But if we can continue with the parameter then we'll continue the testing with that. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:02 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Sohani, What is the additional security you get from having that parameter in registry? Thanks, Chanaka On Thu, Mar 26, 2015 at 2:55 PM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka, Please find my comments inline Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 2:18 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Godwin, Please see my comments inline. AFAIK, in old model (file base persistence) roles are not persisting in meta file and it use AuthorizationManager (JDBCAuthorizationManager) for persistence, We use same model for current implementation as well and roles are not persisting in registry. The problem with that approach is we need to include this information within the CAR file. Otherwise, it is not self contained. We need to have this user role information within the CAR file. @Sohani: If we can make sure all the security related scenarios (which requires user related information) are working properly with the parameter name=allowRolesadmin/parameter, then we can use this parameter instead of a separate registry resource. When considering the security perspective isn't it better to specify user roles information as a registry resource rather than use as a parameter? WDYT? Thanks, Chanaka On Wed, Mar 25, 2015 at 11:46 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi Sohani, AFAIK, in old model (file base persistence) roles are not persisting in meta file and it use AuthorizationManager (JDBCAuthorizationManager) for persistence, We use same model for current implementation as well and roles are not persisting in registry. Thanks Godwin On Wed, Mar 25, 2015 at 11:23 AM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka/Godwin, In order to further implement this feature I really appreciate your input on the below concerns. 1. When considering the
Re: [Dev] Applying QOS from developer studio with ESB 4.9.0 release
Hi, Two questions - 1. Why do we need a separate axis2 deployer to handle just user roles? 2. Isn't it much cleaner if we keep the list of user roles as a registry property of the registry resource that contains the policy? Then, this won't depend on the service type, and the security configuration will be located in a single place. I believe allowRoles was provided as a quick fix for a support ticket. Thanks. On Tue, Mar 31, 2015 at 3:53 PM, Sohani Weerasinghe soh...@wso2.com wrote: Meeting notes is as follows Participants: Jasintha, Susinda, Awanthika, Chanaka, IsuruU, Johann, Godwin, Dulindra, Sohani Notes: From the Developer Studio perspective, currently we are implementing the security policy as a registry resource and as per the discussion had we will use the parameter 'allowRoles' to define the relevant user roles. This will be a service level parameter and the roles can be obtained by connecting to the server. This parameter is already available with ESB and this needs to be facilitated by DSS and Axis2. From the Servers (ESB, DSS and AS) a deployer needs to be implemented to handle user roles at the run time Please add points to this if I have missed anything. Thanks, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:35 PM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka, Thanks for the explanation and as per the offline discussion we had, let's have a meeting on next week so that we can discuss and finalize the things. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:26 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Sohani, I got your idea. But what I meant was that this does not give any additional security. BTW, I am not against the registry based approach :) Thanks, Chanaka On Thu, Mar 26, 2015 at 3:05 PM, Sohani Weerasinghe soh...@wso2.com wrote: @Chanaka : I just considered the fact that if we specify it as a parameter then that information will be visible. That is why thought of saving it as a registry resource would be better. But if we can continue with the parameter then we'll continue the testing with that. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:02 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Sohani, What is the additional security you get from having that parameter in registry? Thanks, Chanaka On Thu, Mar 26, 2015 at 2:55 PM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka, Please find my comments inline Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 2:18 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Godwin, Please see my comments inline. AFAIK, in old model (file base persistence) roles are not persisting in meta file and it use AuthorizationManager (JDBCAuthorizationManager) for persistence, We use same model for current implementation as well and roles are not persisting in registry. The problem with that approach is we need to include this information within the CAR file. Otherwise, it is not self contained. We need to have this user role information within the CAR file. @Sohani: If we can make sure all the security related scenarios (which requires user related information) are working properly with the parameter name=allowRolesadmin/parameter, then we can use this parameter instead of a separate registry resource. When considering the security perspective isn't it better to specify user roles information as a registry resource rather than use as a parameter? WDYT? Thanks, Chanaka On Wed, Mar 25, 2015 at 11:46 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi Sohani, AFAIK, in old model (file base persistence) roles are not persisting in meta file and it use AuthorizationManager (JDBCAuthorizationManager) for persistence, We use same model for current implementation as well and roles are not persisting in registry. Thanks Godwin On Wed, Mar 25, 2015 at 11:23 AM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka/Godwin, In order to further implement this feature I really appreciate your input on the below concerns. 1. When considering the security perspective, it seems we have two options to specify user roles config either as a registry resource or using the parameter 'allowRoles' in the proxy
Re: [Dev] Publishing Gmail Connector
Hi Keerthika, Actually I have added the Gmail connector through Rest as a second version of gmail in git repo. Thanks, Rgds On Fri, Mar 20, 2015 at 12:25 PM, Keerthika Mahendralingam keerth...@wso2.com wrote: Hi All, Currently we have two different Gmail connectors based on sdk and rest api. How to publish these in connector store? Do I need to publish these as different connectors with different names or with versioning? Thanks, -- dev-requ...@wso2.org Keerthika Mahendralingam Associate Software Engineer Mobile :+94 (0) 776 121144 keerth...@wso2.com WSO2, Inc. lean . enterprise . middleware -- S.Sriashalya, Associate Software Engineer, WSO2. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] New orbit bundle for lucene with facet support
Hi Kasun Any update on this? On Mon, Mar 30, 2015 at 12:01 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Maheshika, Please hold on. I will send a mail when it's ready. On Mon, Mar 30, 2015 at 11:58 AM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Gimantha, This is merged. @Maheshika, please release this orbit bundle. On Sat, Mar 28, 2015 at 8:43 PM, Gimantha Bandara giman...@wso2.com wrote: Hi Kernel team, Can you please review and merge [1] ? [1] https://github.com/wso2/orbit/pull/73 Thanks, -- Gimantha Bandara Software Engineer WSO2. Inc : http://wso2.com Mobile : +94714961919 -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Thanks Best Regards, Maheshika Goonetilleke Engineering Process Coordinator *WSO2 Inc* *email : mahesh...@wso2.com mahesh...@wso2.com* *mobile : +94 773 596707* *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ESB script mediator - inject Java class as a JS native object
Hi Akila, You can try following, script language=js![CDATA[ importPackage(Packages.org...JSUtils); .. var result = JSUtils.parseJSON(someJsonVar); ]]/script On Tue, Mar 31, 2015 at 3:31 PM, Akila Ravihansa Perera raviha...@wso2.com wrote: Hi, Is it possible to do $subject? I've been playing around with wso2-synapse code base but couldn't find a way around without overriding ScriptMediator class which is something I'm trying to avoid. My requirement is that I've developed some Java Util methods which I would like to expose as JS native functions. I tried writing a class mediator and do the bindings but couldn't get it working. ScriptEngineManager manager = new ScriptEngineManager(); manager.registerEngineExtension(jsEngine, new RhinoScriptEngineFactory()); ScriptEngine scriptEngine = manager.getEngineByExtension(jsEngine); Bindings bindings = scriptEngine.createBindings(); bindings.put(jsUtils, new JSUtils()); JSUtils Java class has some string operations that should be accessible via JS. Inside JS script mediator I should be able to something like this; var result = jsUtils.parseJSON(someJsonVar); I know this can be done by purely using the class mediator to evaluate the whole JS source. But I'd much rather use built-in script mediator and only inject my custom Java classes onto it. I think this would be a cool feature to have, if it is not already supported. Thanks. -- Akila Ravihansa Perera Software Engineer, WSO2 Blog: http://ravihansa3000.blogspot.com -- Best Regards, Malaka Silva Senior Tech 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 http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Applying QOS from developer studio with ESB 4.9.0 release
Hi KasunG, On Tue, Mar 31, 2015 at 4:32 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi, Two questions - 1. Why do we need a separate axis2 deployer to handle just user roles? We were thinking about modifying existing deployers (proxy deployer etc) to call the relevant component in the security side. 2. Isn't it much cleaner if we keep the list of user roles as a registry property of the registry resource that contains the policy? Then, this won't depend on the service type, and the security configuration will be located in a single place. I believe allowRoles was provided as a quick fix for a support ticket. This is a very good suggestion. Let's consider this option as well. Thanks. On Tue, Mar 31, 2015 at 3:53 PM, Sohani Weerasinghe soh...@wso2.com wrote: Meeting notes is as follows Participants: Jasintha, Susinda, Awanthika, Chanaka, IsuruU, Johann, Godwin, Dulindra, Sohani Notes: From the Developer Studio perspective, currently we are implementing the security policy as a registry resource and as per the discussion had we will use the parameter 'allowRoles' to define the relevant user roles. This will be a service level parameter and the roles can be obtained by connecting to the server. This parameter is already available with ESB and this needs to be facilitated by DSS and Axis2. From the Servers (ESB, DSS and AS) a deployer needs to be implemented to handle user roles at the run time Please add points to this if I have missed anything. Thanks, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:35 PM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka, Thanks for the explanation and as per the offline discussion we had, let's have a meeting on next week so that we can discuss and finalize the things. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:26 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Sohani, I got your idea. But what I meant was that this does not give any additional security. BTW, I am not against the registry based approach :) Thanks, Chanaka On Thu, Mar 26, 2015 at 3:05 PM, Sohani Weerasinghe soh...@wso2.com wrote: @Chanaka : I just considered the fact that if we specify it as a parameter then that information will be visible. That is why thought of saving it as a registry resource would be better. But if we can continue with the parameter then we'll continue the testing with that. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:02 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Sohani, What is the additional security you get from having that parameter in registry? Thanks, Chanaka On Thu, Mar 26, 2015 at 2:55 PM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka, Please find my comments inline Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 2:18 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Godwin, Please see my comments inline. AFAIK, in old model (file base persistence) roles are not persisting in meta file and it use AuthorizationManager (JDBCAuthorizationManager) for persistence, We use same model for current implementation as well and roles are not persisting in registry. The problem with that approach is we need to include this information within the CAR file. Otherwise, it is not self contained. We need to have this user role information within the CAR file. @Sohani: If we can make sure all the security related scenarios (which requires user related information) are working properly with the parameter name=allowRolesadmin/parameter, then we can use this parameter instead of a separate registry resource. When considering the security perspective isn't it better to specify user roles information as a registry resource rather than use as a parameter? WDYT? Thanks, Chanaka On Wed, Mar 25, 2015 at 11:46 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi Sohani, AFAIK, in old model (file base persistence) roles are not persisting in meta file and it use AuthorizationManager (JDBCAuthorizationManager) for persistence, We use same model for current implementation as well and roles are not persisting in registry. Thanks Godwin On Wed, Mar 25, 2015 at 11:23 AM, Sohani Weerasinghe soh...@wso2.com wrote: Hi
Re: [Dev] New orbit bundle for lucene with facet support
Hi Maheshika, It's ready to deploy. Thanks. On Tue, Mar 31, 2015 at 4:40 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun Any update on this? On Mon, Mar 30, 2015 at 12:01 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Maheshika, Please hold on. I will send a mail when it's ready. On Mon, Mar 30, 2015 at 11:58 AM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Gimantha, This is merged. @Maheshika, please release this orbit bundle. On Sat, Mar 28, 2015 at 8:43 PM, Gimantha Bandara giman...@wso2.com wrote: Hi Kernel team, Can you please review and merge [1] ? [1] https://github.com/wso2/orbit/pull/73 Thanks, -- Gimantha Bandara Software Engineer WSO2. Inc : http://wso2.com Mobile : +94714961919 -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Thanks Best Regards, Maheshika Goonetilleke Engineering Process Coordinator *WSO2 Inc* *email : mahesh...@wso2.com mahesh...@wso2.com* *mobile : +94 773 596707 %2B94%20773%20596707* *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Applying QOS from developer studio with ESB 4.9.0 release
Hi Johann, KasunG's suggestion looks good. Rather than writing different deployers for different service types, we can change the security component to read the user roles from the registry resource property. WDYT? Thanks, Chanaka On Tue, Mar 31, 2015 at 4:32 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi, Two questions - 1. Why do we need a separate axis2 deployer to handle just user roles? 2. Isn't it much cleaner if we keep the list of user roles as a registry property of the registry resource that contains the policy? Then, this won't depend on the service type, and the security configuration will be located in a single place. I believe allowRoles was provided as a quick fix for a support ticket. Thanks. On Tue, Mar 31, 2015 at 3:53 PM, Sohani Weerasinghe soh...@wso2.com wrote: Meeting notes is as follows Participants: Jasintha, Susinda, Awanthika, Chanaka, IsuruU, Johann, Godwin, Dulindra, Sohani Notes: From the Developer Studio perspective, currently we are implementing the security policy as a registry resource and as per the discussion had we will use the parameter 'allowRoles' to define the relevant user roles. This will be a service level parameter and the roles can be obtained by connecting to the server. This parameter is already available with ESB and this needs to be facilitated by DSS and Axis2. From the Servers (ESB, DSS and AS) a deployer needs to be implemented to handle user roles at the run time Please add points to this if I have missed anything. Thanks, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:35 PM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka, Thanks for the explanation and as per the offline discussion we had, let's have a meeting on next week so that we can discuss and finalize the things. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:26 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Sohani, I got your idea. But what I meant was that this does not give any additional security. BTW, I am not against the registry based approach :) Thanks, Chanaka On Thu, Mar 26, 2015 at 3:05 PM, Sohani Weerasinghe soh...@wso2.com wrote: @Chanaka : I just considered the fact that if we specify it as a parameter then that information will be visible. That is why thought of saving it as a registry resource would be better. But if we can continue with the parameter then we'll continue the testing with that. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:02 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Sohani, What is the additional security you get from having that parameter in registry? Thanks, Chanaka On Thu, Mar 26, 2015 at 2:55 PM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka, Please find my comments inline Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 2:18 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Godwin, Please see my comments inline. AFAIK, in old model (file base persistence) roles are not persisting in meta file and it use AuthorizationManager (JDBCAuthorizationManager) for persistence, We use same model for current implementation as well and roles are not persisting in registry. The problem with that approach is we need to include this information within the CAR file. Otherwise, it is not self contained. We need to have this user role information within the CAR file. @Sohani: If we can make sure all the security related scenarios (which requires user related information) are working properly with the parameter name=allowRolesadmin/parameter, then we can use this parameter instead of a separate registry resource. When considering the security perspective isn't it better to specify user roles information as a registry resource rather than use as a parameter? WDYT? Thanks, Chanaka On Wed, Mar 25, 2015 at 11:46 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi Sohani, AFAIK, in old model (file base persistence) roles are not persisting in meta file and it use AuthorizationManager (JDBCAuthorizationManager) for persistence, We use same model for current implementation as well and roles are not persisting in registry. Thanks Godwin On Wed, Mar 25, 2015 at 11:23 AM, Sohani Weerasinghe
Re: [Dev] Applying QOS from developer studio with ESB 4.9.0 release
Hi, On Tue, Mar 31, 2015 at 4:59 PM, Isuru Udana isu...@wso2.com wrote: Hi KasunG, On Tue, Mar 31, 2015 at 4:32 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi, Two questions - 1. Why do we need a separate axis2 deployer to handle just user roles? We were thinking about modifying existing deployers (proxy deployer etc) to call the relevant component in the security side. To add the policy to a service, you can also use an AxisObserver. With this, you won't need to patch the deployers. You can re-use the existing code in DeploymentInterceptor class in carbon core component on applying policies to runtime AxisService object. 2. Isn't it much cleaner if we keep the list of user roles as a registry property of the registry resource that contains the policy? Then, this won't depend on the service type, and the security configuration will be located in a single place. I believe allowRoles was provided as a quick fix for a support ticket. This is a very good suggestion. Let's consider this option as well. Sounds good! Thanks. On Tue, Mar 31, 2015 at 3:53 PM, Sohani Weerasinghe soh...@wso2.com wrote: Meeting notes is as follows Participants: Jasintha, Susinda, Awanthika, Chanaka, IsuruU, Johann, Godwin, Dulindra, Sohani Notes: From the Developer Studio perspective, currently we are implementing the security policy as a registry resource and as per the discussion had we will use the parameter 'allowRoles' to define the relevant user roles. This will be a service level parameter and the roles can be obtained by connecting to the server. This parameter is already available with ESB and this needs to be facilitated by DSS and Axis2. From the Servers (ESB, DSS and AS) a deployer needs to be implemented to handle user roles at the run time Please add points to this if I have missed anything. Thanks, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:35 PM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka, Thanks for the explanation and as per the offline discussion we had, let's have a meeting on next week so that we can discuss and finalize the things. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:26 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Sohani, I got your idea. But what I meant was that this does not give any additional security. BTW, I am not against the registry based approach :) Thanks, Chanaka On Thu, Mar 26, 2015 at 3:05 PM, Sohani Weerasinghe soh...@wso2.com wrote: @Chanaka : I just considered the fact that if we specify it as a parameter then that information will be visible. That is why thought of saving it as a registry resource would be better. But if we can continue with the parameter then we'll continue the testing with that. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:02 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Sohani, What is the additional security you get from having that parameter in registry? Thanks, Chanaka On Thu, Mar 26, 2015 at 2:55 PM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka, Please find my comments inline Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 2:18 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Godwin, Please see my comments inline. AFAIK, in old model (file base persistence) roles are not persisting in meta file and it use AuthorizationManager (JDBCAuthorizationManager) for persistence, We use same model for current implementation as well and roles are not persisting in registry. The problem with that approach is we need to include this information within the CAR file. Otherwise, it is not self contained. We need to have this user role information within the CAR file. @Sohani: If we can make sure all the security related scenarios (which requires user related information) are working properly with the parameter name=allowRolesadmin/parameter, then we can use this parameter instead of a separate registry resource. When considering the security perspective isn't it better to specify user roles information as a registry resource rather than use as a parameter? WDYT? Thanks, Chanaka On Wed, Mar 25, 2015 at 11:46 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi Sohani, AFAIK, in
Re: [Dev] Fwd: Get end point url of Mailman API 3.0
Hi Sajith, Thank you. Command *python3 setup.py install *working*.* Thank you. On Tue, Mar 31, 2015 at 3:05 PM, Sajith Kariyawasam saj...@wso2.com wrote: Hi Vanii, I think you need to execute the command *python3 setup.py install* On Tue, Mar 31, 2015 at 9:30 AM, Vanii Thiyagarajah va...@wso2.com wrote: looping to dev Hi Kevin, Thanks. I am struggling to set up mailman on Ubuntu 14.04. I followed the doc [1]. I already installed python 3.4.3. In this doc python setup.py install did not work for me. Because of this, i couldn't start the mailman. Can u please guide me to setup? [image: Inline image 1] [1] http://wiki.list.org/DEV/A%205%20minute%20guide%20to%20get%20the%20Mailman%20web%20UI%20running Thanks. On Mon, Mar 30, 2015 at 1:20 PM, Kevin Ratnasekera djkevincr1...@gmail.com wrote: Hi Vaani, If you have properly installed mailman locally, type mailman info in the terminal this will give you output kevin@kevin-VAIO:~$ mailman info GNU Mailman 3.0.0b4 (Time and Motion) Python 2.7.8 (default, Oct 20 2014, 15:05:19) [GCC 4.9.1] config file: /home/kevin/var/etc/mailman.cfg db url: sqlite:home/kevin/var/data/mailman.db devmode: DISABLED REST root url: http://localhost:8001/3.0/ REST credentials: restadmin:restpass REST root url: gives you the local endpoint. if you have troubles in installing mailman let me know. Regards Kevin On Mon, Mar 30, 2015 at 11:12 AM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi vaani, For the above you need bazar installation http://wiki.bazaar.canonical.com/Download On Mon, Mar 30, 2015 at 11:07 AM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi Vaani, I think there is a problem with the way you start the corresponding server. Can you please go through the following https://pythonhosted.org/mailman/src/mailman/docs/WebUIin5.html#start-the-development-server On Mon, Mar 23, 2015 at 3:12 PM, Keerthika Mahendralingam keerth...@wso2.com wrote: Hi Vani, Please have a look in the following doc. https://help.ubuntu.com/community/Mailman https://www.google.com/url?q=https%3A%2F%2Fhelp.ubuntu.com%2Fcommunity%2FMailmansa=Dsntz=1usg=AFQjCNGW_VoSbthKsUfUfn6hn62ShcRUGA On Mon, Mar 23, 2015 at 2:35 PM, Vanii Thiyagarajah va...@wso2.com wrote: Hi Sriashalya! In mailman api we have to set the end point url locally.This is the doc for Mailman api set up guide https://fedorahosted.org/hyperkitty/wiki/DevelopmentSetupGuide. Thank you. On Mon, Mar 23, 2015 at 2:00 PM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi Vaani, Can you share the end point that you struggled and related stuff. Thank you. On Mon, Mar 23, 2015 at 12:29 PM, Vanii Thiyagarajah va...@wso2.com wrote: Hi all, I am reviewing the mailman connector3.0 done by wso2 trainees.I couldn't set mailman end url in my local machine. Have anyone worked on similar thing? Thank you. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- S.Sriashalya, Associate Software Engineer, WSO2. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- dev-requ...@wso2.org Keerthika Mahendralingam Associate Software Engineer Mobile :+94 (0) 776 121144 keerth...@wso2.com WSO2, Inc. lean . enterprise . middleware -- S.Sriashalya, Associate Software Engineer, WSO2. -- S.Sriashalya, Associate Software Engineer, WSO2. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] New orbit bundle for lucene with facet support
Hi Kasung Thanks for the update. Hi Gimantha Successfully deployed. On Tue, Mar 31, 2015 at 5:15 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Maheshika, It's ready to deploy. Thanks. On Tue, Mar 31, 2015 at 4:40 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun Any update on this? On Mon, Mar 30, 2015 at 12:01 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Maheshika, Please hold on. I will send a mail when it's ready. On Mon, Mar 30, 2015 at 11:58 AM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Gimantha, This is merged. @Maheshika, please release this orbit bundle. On Sat, Mar 28, 2015 at 8:43 PM, Gimantha Bandara giman...@wso2.com wrote: Hi Kernel team, Can you please review and merge [1] ? [1] https://github.com/wso2/orbit/pull/73 Thanks, -- Gimantha Bandara Software Engineer WSO2. Inc : http://wso2.com Mobile : +94714961919 -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Thanks Best Regards, Maheshika Goonetilleke Engineering Process Coordinator *WSO2 Inc* *email : mahesh...@wso2.com mahesh...@wso2.com* *mobile : +94 773 596707 %2B94%20773%20596707* *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Thanks Best Regards, Maheshika Goonetilleke Engineering Process Coordinator *WSO2 Inc* *email : mahesh...@wso2.com mahesh...@wso2.com* *mobile : +94 773 596707* *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Fwd: Get end point url of Mailman API 3.0
Hi Vanii, I think you need to execute the command *python3 setup.py install* On Tue, Mar 31, 2015 at 9:30 AM, Vanii Thiyagarajah va...@wso2.com wrote: looping to dev Hi Kevin, Thanks. I am struggling to set up mailman on Ubuntu 14.04. I followed the doc [1]. I already installed python 3.4.3. In this doc python setup.py install did not work for me. Because of this, i couldn't start the mailman. Can u please guide me to setup? [image: Inline image 1] [1] http://wiki.list.org/DEV/A%205%20minute%20guide%20to%20get%20the%20Mailman%20web%20UI%20running Thanks. On Mon, Mar 30, 2015 at 1:20 PM, Kevin Ratnasekera djkevincr1...@gmail.com wrote: Hi Vaani, If you have properly installed mailman locally, type mailman info in the terminal this will give you output kevin@kevin-VAIO:~$ mailman info GNU Mailman 3.0.0b4 (Time and Motion) Python 2.7.8 (default, Oct 20 2014, 15:05:19) [GCC 4.9.1] config file: /home/kevin/var/etc/mailman.cfg db url: sqlite:home/kevin/var/data/mailman.db devmode: DISABLED REST root url: http://localhost:8001/3.0/ REST credentials: restadmin:restpass REST root url: gives you the local endpoint. if you have troubles in installing mailman let me know. Regards Kevin On Mon, Mar 30, 2015 at 11:12 AM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi vaani, For the above you need bazar installation http://wiki.bazaar.canonical.com/Download On Mon, Mar 30, 2015 at 11:07 AM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi Vaani, I think there is a problem with the way you start the corresponding server. Can you please go through the following https://pythonhosted.org/mailman/src/mailman/docs/WebUIin5.html#start-the-development-server On Mon, Mar 23, 2015 at 3:12 PM, Keerthika Mahendralingam keerth...@wso2.com wrote: Hi Vani, Please have a look in the following doc. https://help.ubuntu.com/community/Mailman https://www.google.com/url?q=https%3A%2F%2Fhelp.ubuntu.com%2Fcommunity%2FMailmansa=Dsntz=1usg=AFQjCNGW_VoSbthKsUfUfn6hn62ShcRUGA On Mon, Mar 23, 2015 at 2:35 PM, Vanii Thiyagarajah va...@wso2.com wrote: Hi Sriashalya! In mailman api we have to set the end point url locally.This is the doc for Mailman api set up guide https://fedorahosted.org/hyperkitty/wiki/DevelopmentSetupGuide. Thank you. On Mon, Mar 23, 2015 at 2:00 PM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi Vaani, Can you share the end point that you struggled and related stuff. Thank you. On Mon, Mar 23, 2015 at 12:29 PM, Vanii Thiyagarajah va...@wso2.com wrote: Hi all, I am reviewing the mailman connector3.0 done by wso2 trainees.I couldn't set mailman end url in my local machine. Have anyone worked on similar thing? Thank you. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- S.Sriashalya, Associate Software Engineer, WSO2. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- dev-requ...@wso2.org Keerthika Mahendralingam Associate Software Engineer Mobile :+94 (0) 776 121144 keerth...@wso2.com WSO2, Inc. lean . enterprise . middleware -- S.Sriashalya, Associate Software Engineer, WSO2. -- S.Sriashalya, Associate Software Engineer, WSO2. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Getting 400 Bad Request
Hi Malintha, Thank you for your response, I sent the request without encoding, but still I get 400. Please find the request currently I sent through the REST, below {outboundSMSMessageRequest: { address: [tel:+94754284288], outboundSMSTextMessage: {message: Test Message:SMSX-02}, senderAddress: tel:+94772446947 } my end point is http://localhost:8080/oneapiserver/SendSMSService/1/smsmessaging/outbound/tel:+94772446947/requests and I'm getting the response like 400 Bad request { requestError: { serviceException: { messageId: SVC0002, text: Invalid input value for message part %1, variables: [ Missing mandatory parameter: senderAddress,address,message ] }, policyException: null } } On Tue, Mar 31, 2015 at 7:30 AM, Malintha Adikari malin...@wso2.com wrote: Hi Sriashalya, I missed the mail, sorry for that. Yes, I have faced 400 responses when my parameters are not compatible with expected ones. For your sample request , possible culprit is mobile number's format. Please look at following SMS send request, which I have used with a SMS gateway {outboundSMSMessageRequest:{ address:[tel:+941234456,tel:+941234566], senderAddress:tel:+200, outboundSMSTextMessage:{message:Hello World}, clientCorrelator:12g3456, receiptRequest: {notifyURL:http://abc123.com http://application.example.com/notifications/DeliveryInfoNotification, callbackData:some-data-useful-to-the-requester}, senderName:wso2} } Here we have used phone numbers with + ( note in your request you have encoded it). Could you try phone numbers without encoding and share the result. ? Does your BE give any fault response apart from the status code. If it does, could you please share it. Regards, Malintha On Tue, Mar 31, 2015 at 1:53 AM, Malintha Adikari malin...@wso2.com wrote: Hi Sriashalya, I missed the mail, sorry for that. Yes, I have faced 400 responses when my parameters are not compatible with expected ones. For your sample request , possible culprit is mobile number's format. Please look at following SMS send request, which I have used with a SMS gateway {outboundSMSMessageRequest:{ address:[tel:+941234456,tel:+941234566], senderAddress:tel:+200, outboundSMSTextMessage:{message:Hello World}, clientCorrelator:12g3456, receiptRequest: {notifyURL: http://application.example.com/notifications/DeliveryInfoNotification;, callbackData:some-data-useful-to-the-requester}, senderName:wso2} } Here we have used phone numbers with + ( note in your request you have encoded it). Could you try phone numbers without encoding and share the result. ? Is your BE gives any fault response apart from the status code. If it does, could you please share it. Regards, Malintha On Mon, Mar 30, 2015 at 5:47 AM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi Malintha, Have you experienced about above issue. Thank you, Rgds, On Fri, Mar 27, 2015 at 10:54 AM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi All, I'm trying to do the GSMA One API for send sms.For that I need to set up the back end. For that I tried the following information given by the API git repo. *Deployment: pull the oneapi directory and contents and build a .war. Deploy in your JEE application server (tested on Tomcat 6, OSX and Win XP) Usage: Start the application on localhost:8080 . This shows a form through which requests may be made to the OneAPI server. The src code is LGPL and m,ay be used to build a production OneAPI server that will actually fulfill the requests (i.e. charge/locate/message users)* I used the following end point in the REST client http://localhost:8080/oneapiserver/SendSMSService/1/smsmessaging/outbound/tel%3A94772446947/requests Content- Type application/json Accept - application/json Authorization - Basic YXNoYWx5YTg2QGdhbWlsLmNvbTpBc2gxOThAdmF0aA== {outboundSMSMessageRequest: { address: [tel%3A%2B94754284288], outboundSMSTextMessage: {message: Test Message:SMSX-02}, senderAddress: tel:94772446947 } but I'm getting the response 400, What I'm missing here? -- S.Sriashalya, Associate Software Engineer, WSO2. -- S.Sriashalya, Associate Software Engineer, WSO2. -- *Malintha Adikari* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile: +94 71 2312958 Blog:http://malinthas.blogspot.com Page: http://about.me/malintha -- *Malintha Adikari* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile: +94 71 2312958 Blog:http://malinthas.blogspot.com Page: http://about.me/malintha -- S.Sriashalya, Associate Software Engineer, WSO2. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Getting 400 Bad Request
Hi Malintha, Have you experienced about above issue. Thank you, Rgds, On Fri, Mar 27, 2015 at 10:54 AM, Sriashalya Srivathsan asha...@wso2.com wrote: Hi All, I'm trying to do the GSMA One API for send sms.For that I need to set up the back end. For that I tried the following information given by the API git repo. *Deployment: pull the oneapi directory and contents and build a .war. Deploy in your JEE application server (tested on Tomcat 6, OSX and Win XP) Usage: Start the application on localhost:8080 . This shows a form through which requests may be made to the OneAPI server. The src code is LGPL and m,ay be used to build a production OneAPI server that will actually fulfill the requests (i.e. charge/locate/message users)* I used the following end point in the REST client http://localhost:8080/oneapiserver/SendSMSService/1/smsmessaging/outbound/tel%3A94772446947/requests Content- Type application/json Accept - application/json Authorization - Basic YXNoYWx5YTg2QGdhbWlsLmNvbTpBc2gxOThAdmF0aA== {outboundSMSMessageRequest: { address: [tel%3A%2B94754284288], outboundSMSTextMessage: {message: Test Message:SMSX-02}, senderAddress: tel:94772446947 } but I'm getting the response 400, What I'm missing here? -- S.Sriashalya, Associate Software Engineer, WSO2. -- S.Sriashalya, Associate Software Engineer, WSO2. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] ESB script mediator - inject Java class as a JS native object
Hi, Is it possible to do $subject? I've been playing around with wso2-synapse code base but couldn't find a way around without overriding ScriptMediator class which is something I'm trying to avoid. My requirement is that I've developed some Java Util methods which I would like to expose as JS native functions. I tried writing a class mediator and do the bindings but couldn't get it working. ScriptEngineManager manager = new ScriptEngineManager(); manager.registerEngineExtension(jsEngine, new RhinoScriptEngineFactory()); ScriptEngine scriptEngine = manager.getEngineByExtension(jsEngine); Bindings bindings = scriptEngine.createBindings(); bindings.put(jsUtils, new JSUtils()); JSUtils Java class has some string operations that should be accessible via JS. Inside JS script mediator I should be able to something like this; var result = jsUtils.parseJSON(someJsonVar); I know this can be done by purely using the class mediator to evaluate the whole JS source. But I'd much rather use built-in script mediator and only inject my custom Java classes onto it. I think this would be a cool feature to have, if it is not already supported. Thanks. -- Akila Ravihansa Perera Software Engineer, WSO2 Blog: http://ravihansa3000.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Applying QOS from developer studio with ESB 4.9.0 release
Meeting notes is as follows Participants: Jasintha, Susinda, Awanthika, Chanaka, IsuruU, Johann, Godwin, Dulindra, Sohani Notes: From the Developer Studio perspective, currently we are implementing the security policy as a registry resource and as per the discussion had we will use the parameter 'allowRoles' to define the relevant user roles. This will be a service level parameter and the roles can be obtained by connecting to the server. This parameter is already available with ESB and this needs to be facilitated by DSS and Axis2. From the Servers (ESB, DSS and AS) a deployer needs to be implemented to handle user roles at the run time Please add points to this if I have missed anything. Thanks, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:35 PM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka, Thanks for the explanation and as per the offline discussion we had, let's have a meeting on next week so that we can discuss and finalize the things. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:26 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Sohani, I got your idea. But what I meant was that this does not give any additional security. BTW, I am not against the registry based approach :) Thanks, Chanaka On Thu, Mar 26, 2015 at 3:05 PM, Sohani Weerasinghe soh...@wso2.com wrote: @Chanaka : I just considered the fact that if we specify it as a parameter then that information will be visible. That is why thought of saving it as a registry resource would be better. But if we can continue with the parameter then we'll continue the testing with that. Regards, Sohani Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 3:02 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Sohani, What is the additional security you get from having that parameter in registry? Thanks, Chanaka On Thu, Mar 26, 2015 at 2:55 PM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka, Please find my comments inline Sohani Weerasinghe Software Engineer WSO2, Inc: http://wso2.com Mobile : +94 716439774 Blog :http://christinetechtips.blogspot.com/ Twitter : https://twitter.com/sohanichristine On Thu, Mar 26, 2015 at 2:18 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Godwin, Please see my comments inline. AFAIK, in old model (file base persistence) roles are not persisting in meta file and it use AuthorizationManager (JDBCAuthorizationManager) for persistence, We use same model for current implementation as well and roles are not persisting in registry. The problem with that approach is we need to include this information within the CAR file. Otherwise, it is not self contained. We need to have this user role information within the CAR file. @Sohani: If we can make sure all the security related scenarios (which requires user related information) are working properly with the parameter name=allowRolesadmin/parameter, then we can use this parameter instead of a separate registry resource. When considering the security perspective isn't it better to specify user roles information as a registry resource rather than use as a parameter? WDYT? Thanks, Chanaka On Wed, Mar 25, 2015 at 11:46 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi Sohani, AFAIK, in old model (file base persistence) roles are not persisting in meta file and it use AuthorizationManager (JDBCAuthorizationManager) for persistence, We use same model for current implementation as well and roles are not persisting in registry. Thanks Godwin On Wed, Mar 25, 2015 at 11:23 AM, Sohani Weerasinghe soh...@wso2.com wrote: Hi Chanaka/Godwin, In order to further implement this feature I really appreciate your input on the below concerns. 1. When considering the security perspective, it seems we have two options to specify user roles config either as a registry resource or using the parameter 'allowRoles' in the proxy configuration. IMO implement it as a registry resource would be better when considering the security perspective. WDYT? Also, if we are to implement it as a registry resource then the content of the resource will be parameter name=allowRolesadmin/parameter. @Chanaka: Can we have a parameter in the proxy config to define the registry resource for the user roles as we define the security policy (eg: policy key=conf:repository/policy.xml/ ) ? @Godwin : If user roles is going to be implemented as a
Re: [Dev] [MB] Getting an error on running a jmeter publisher script
Hi Anuja, can you try adding 'andes-client-3.0.0-SNAPSHOT.jar' in {jmeter-home}/lib/ and restart server. Regards, On Tue, Mar 31, 2015 at 3:44 PM, Indika Sampath indi...@wso2.com wrote: Hi Anuja, Please check MB running on defined port in jndi.properties file of Jmeter. Also make sure necessary MB client libraries copied to lib folder of Jmeter. Cheers! On Tue, Mar 31, 2015 at 3:39 PM, Anuja Herath an...@wso2.com wrote: Hi All, I m getting this error when I try to run a jmeter publisher script. org.wso2.andes.AMQConnectionFailureException: Could not open connection at org.wso2.andes.client.AMQConnection.init(AMQConnection.java:475) at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:328) at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:38) at org.apache.jmeter.protocol.jms.Utils.getConnection(Utils.java:194) at org.apache.jmeter.protocol.jms.client.Publisher.init(Publisher.java:104) at org.apache.jmeter.protocol.jms.sampler.PublisherSampler.initClient(PublisherSampler.java:138) at org.apache.jmeter.protocol.jms.sampler.PublisherSampler.sample(PublisherSampler.java:159) at org.apache.jmeter.protocol.jms.sampler.BaseJMSSampler.sample(BaseJMSSampler.java:80) at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:431) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:258) at java.lang.Thread.run(Thread.java:722) Caused by: org.wso2.andes.transport.TransportException: Could not open connection at org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:216) at org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:74) at org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:120) at org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:616) at org.wso2.andes.client.AMQConnection.init(AMQConnection.java:398) ... 10 more -- Anuja Herath *Software Engineer* *WSO2, Inc.* Mobile : +94 (0)71 429 8861 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Indika Sampath Software Engineer WSO2 Inc. http://wso2.com Phone: +94 716 424 744 Blog: http://indikasampath.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Pumudu Ruhunage Associate Software Engineer | WSO2 Inc M: +94 779 664493 | http://wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Getting 400 Bad Request
Hi All, I'm trying to do the GSMA One API for send sms.For that I need to set up the back end. For that I tried the following information given by the API git repo. *Deployment: pull the oneapi directory and contents and build a .war. Deploy in your JEE application server (tested on Tomcat 6, OSX and Win XP) Usage: Start the application on localhost:8080 . This shows a form through which requests may be made to the OneAPI server. The src code is LGPL and m,ay be used to build a production OneAPI server that will actually fulfill the requests (i.e. charge/locate/message users)* I used the following end point in the REST client http://localhost:8080/oneapiserver/SendSMSService/1/smsmessaging/outbound/tel%3A94772446947/requests Content- Type application/json Accept - application/json Authorization - Basic YXNoYWx5YTg2QGdhbWlsLmNvbTpBc2gxOThAdmF0aA== {outboundSMSMessageRequest: { address: [tel%3A%2B94754284288], outboundSMSTextMessage: {message: Test Message:SMSX-02}, senderAddress: tel:94772446947 } but I'm getting the response 400, What I'm missing here? -- S.Sriashalya, Associate Software Engineer, WSO2. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] Getting an error on running a jmeter publisher script
Hi Anuja, Please check MB running on defined port in jndi.properties file of Jmeter. Also make sure necessary MB client libraries copied to lib folder of Jmeter. Cheers! On Tue, Mar 31, 2015 at 3:39 PM, Anuja Herath an...@wso2.com wrote: Hi All, I m getting this error when I try to run a jmeter publisher script. org.wso2.andes.AMQConnectionFailureException: Could not open connection at org.wso2.andes.client.AMQConnection.init(AMQConnection.java:475) at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:328) at org.wso2.andes.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:38) at org.apache.jmeter.protocol.jms.Utils.getConnection(Utils.java:194) at org.apache.jmeter.protocol.jms.client.Publisher.init(Publisher.java:104) at org.apache.jmeter.protocol.jms.sampler.PublisherSampler.initClient(PublisherSampler.java:138) at org.apache.jmeter.protocol.jms.sampler.PublisherSampler.sample(PublisherSampler.java:159) at org.apache.jmeter.protocol.jms.sampler.BaseJMSSampler.sample(BaseJMSSampler.java:80) at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:431) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:258) at java.lang.Thread.run(Thread.java:722) Caused by: org.wso2.andes.transport.TransportException: Could not open connection at org.wso2.andes.transport.network.mina.MinaNetworkTransport$IoConnectorCreator.connect(MinaNetworkTransport.java:216) at org.wso2.andes.transport.network.mina.MinaNetworkTransport.connect(MinaNetworkTransport.java:74) at org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerConnection(AMQConnectionDelegate_8_0.java:120) at org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQConnection.java:616) at org.wso2.andes.client.AMQConnection.init(AMQConnection.java:398) ... 10 more -- Anuja Herath *Software Engineer* *WSO2, Inc.* Mobile : +94 (0)71 429 8861 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Indika Sampath Software Engineer WSO2 Inc. http://wso2.com Phone: +94 716 424 744 Blog: http://indikasampath.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] New orbit bundle for lucene with facet support
Thanks guys.. On Tue, Mar 31, 2015 at 5:20 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasung Thanks for the update. Hi Gimantha Successfully deployed. On Tue, Mar 31, 2015 at 5:15 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Maheshika, It's ready to deploy. Thanks. On Tue, Mar 31, 2015 at 4:40 PM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Kasun Any update on this? On Mon, Mar 30, 2015 at 12:01 PM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Maheshika, Please hold on. I will send a mail when it's ready. On Mon, Mar 30, 2015 at 11:58 AM, KasunG Gajasinghe kas...@wso2.com wrote: Hi Gimantha, This is merged. @Maheshika, please release this orbit bundle. On Sat, Mar 28, 2015 at 8:43 PM, Gimantha Bandara giman...@wso2.com wrote: Hi Kernel team, Can you please review and merge [1] ? [1] https://github.com/wso2/orbit/pull/73 Thanks, -- Gimantha Bandara Software Engineer WSO2. Inc : http://wso2.com Mobile : +94714961919 -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Thanks Best Regards, Maheshika Goonetilleke Engineering Process Coordinator *WSO2 Inc* *email : mahesh...@wso2.com mahesh...@wso2.com* *mobile : +94 773 596707 %2B94%20773%20596707* *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org -- Thanks Best Regards, Maheshika Goonetilleke Engineering Process Coordinator *WSO2 Inc* *email : mahesh...@wso2.com mahesh...@wso2.com* *mobile : +94 773 596707 %2B94%20773%20596707* *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware -- Gimantha Bandara Software Engineer WSO2. Inc : http://wso2.com Mobile : +94714961919 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [Bamboo-Build] Developer Studio Eclipse-Tools #1489 has FAILED. Change made by Sohani Weerasinghe.
--- Developer Studio Eclipse-Tools #1489 failed. --- Code has been updated by Sohani Weerasinghe. No failed tests found, a possible compilation error. https://wso2.org/bamboo/browse/DS0001-DSET01-1489/ - Currently Responsible - Sohani Weerasinghe (Automatically assigned) -- Failing Jobs -- - Default Job (Default Stage): No tests found. -- Code Changes -- Sohani Weerasinghe (09d0b1e7cdefbcc4bfd75b391b16f2c6b0d2f687): Fixing TOOLS-2727 - Allow to add multiple dbs files into a single DataServiceProject -- This message is automatically generated by Atlassian Bamboo___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please release Spark Core 1.2.1.wso2v2
Thanks. On Wed, Apr 1, 2015 at 1:34 AM, Maheshika Goonetilleke mahesh...@wso2.com wrote: Hi Nirmal Done. On Wed, Apr 1, 2015 at 12:56 AM, Nirmal Fernando nir...@wso2.com wrote: Hi Maheshika, Please release https://github.com/wso2/orbit/tree/master/spark-core_2.10/1.2.1.wso2v2 orbit bundle. -- Thanks regards, Nirmal Senior Software Engineer- Platform Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- Thanks Best Regards, Maheshika Goonetilleke Engineering Process Coordinator *WSO2 Inc* *email : mahesh...@wso2.com mahesh...@wso2.com* *mobile : +94 773 596707 %2B94%20773%20596707* *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware -- Thanks regards, Nirmal Senior Software Engineer- Platform Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Svn Connector Review - Blocked on start
Hi Dimuthu, Thank you for your quick response. Happy to say that code for LDAP is reviewed and merged , and the document have been restructured [1] [2] . [1] https://github.com/wso2/esb-connectors/tree/master/ldap [2] https://docs.wso2.com/display/CONNECTORS/LDAP+Connector I will proceed with the Svn links you have provided and let u know soon. Thank you. On Tue, Mar 31, 2015 at 8:11 PM, DImuthu Upeksha dimuthu.upeks...@gmail.com wrote: Hi Elilmatha, Currently I don't have access to svn repository. [1] is the code for svn connector which may be the one you are currently referring. Here [2] is the API which was written to handle access file of SVN. One issue of SVN is that they don't provide a REST/ SOAP API to handle their projects or users. So one easy way (which may not be the best approach) is to implement an API to handle the access file of SVN server. What this [2] API does is that task. You can fetch a sample access file of SVN from Yasith [3] in infra team. However I found a C API for SVN [4] but not sure whether it perfectly matches to our requirements like creating users, changing privileges and etc. If it does, you may have to write a JNI wrapper to call it from java. HTH [1] https://github.com/DImuthuUpe/svnConnector [2] https://github.com/DImuthuUpe/SvnAccessManager [3] http://wso2.com/about/team/yasith-tharindu/ [4] https://subversion.apache.org/docs/api/latest/annotated.html Thanks Dimuthu On Tue, Mar 31, 2015 at 7:34 PM, DImuthu Upeksha dimuthu.upeks...@gmail.com wrote: Hi Elilmatha, I was working on SVN connector when I was an intern at WSO2. Actually I have been working on 2 connectors : LDAP connector [1] [2] and SVN connector. Due to time constraints, I was able to completely finish (connector+ integration tests) of LDAP connector. So integration tests of SVN connectors are yet to be implemented. [1] https://github.com/DImuthuUpe/esb-connectors/tree/master/ldap [2] https://docs.wso2.com/display/ESBCONNECTORS/LDAP+Connector On Tue, Mar 31, 2015 at 10:31 AM, Elilmatha Sivanesan elilma...@wso2.com wrote: Hi all, I'm reviewing the SVN Connector, which was done by interns a year ago. The code base is found at [1]. The code base is written but the testing part is missing , Is there any other location I can find the full code More to that I'm unable to find out the proper api document for which they have implemented the connector to test the connector manually. Can anyone guide me to proceed further in this. [1] https://svn.wso2.com/wso2/interns/2013/dimuthuu/svn_connector/ Thank you. -- *S.Elilmatha* Associate Software Engineer, WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile 0779842221. -- Regards W.Dimuthu Upeksha Undergraduate Department of Computer Science And Engineering University of Moratuwa, Sri Lanka -- Regards W.Dimuthu Upeksha Undergraduate Department of Computer Science And Engineering University of Moratuwa, Sri Lanka -- *S.Elilmatha* Associate Software Engineer, WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile 0779842221. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB] Making iterate calls based on response element
Thank you Chanaka and Malaka. On Tue, Mar 31, 2015 at 9:06 PM, Malaka Silva mal...@wso2.com wrote: Hi Keerthika, Yes agree with Chanakaf. Similar is done with Salesforce query and querymore. You can follow similar approach. [1] https://docs.wso2.com/display/ESBCONNECTORS/Salesforce+Connector#SalesforceConnector-Queryingrecords [2] https://github.com/wso2-dev/esb-connectors/blob/master/salesforce/1.0.0/src/main/resources/salesforce/queryMore.xml On Tue, Mar 31, 2015 at 7:58 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Keerthika, This is a custom requirement which is more like a while loop. You need to write a class mediator to implement this logic since ESB does not have a construct similar to while loop. Thanks, Chanaka On Tue, Mar 31, 2015 at 6:56 PM, Keerthika Mahendralingam keerth...@wso2.com wrote: Hi All, When we invoke a method in Marketo API we are getting the following response: { requestId:a9ae#148add1e53d, success:true, nextPageToken:GIYDAOBNGEYS2MBWKQYDAORQGA5DAMBOGAYDAKZQGAYDALBRGA3TQ===, moreResult:true, result:[ { id:2, leadId:6, activityDate:2013-09-26T06:56:35+, activityTypeId:12 }, { id:3, leadId:9, activityDate:2013-12-28T00:39:45+, activityTypeId:1 } ] } If the moreResult attribute is true in the response, we need to call this method until the moreResult attribute returns false. The nextPageToken returned from the previous call need to be reused for the next iteration of this call. How can we do this? -- dev-requ...@wso2.org Keerthika Mahendralingam Associate Software Engineer Mobile :+94 (0) 776 121144 keerth...@wso2.com WSO2, Inc. lean . enterprise . middleware -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- Best Regards, Malaka Silva Senior Tech 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 http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. -- dev-requ...@wso2.org Keerthika Mahendralingam Associate Software Engineer Mobile :+94 (0) 776 121144 keerth...@wso2.com WSO2, Inc. lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please review and merge PR
Hi, Please review and merge PR[1] - Machine Learner Mediator [1] https://github.com/wso2/carbon-mediation/pull/100 Thanks. -- Manorama Perera Software Engineer WSO2, Inc.; http://wso2.com/ Mobile : +94716436216 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] ESB Mediator for WSO2 Machine Learner
Hi Chanaka, Thanks for the review. I'll do the necessary changes accordingly. I'll add the required unit tests as well. Thanks. On Wed, Apr 1, 2015 at 10:25 AM, Chanaka Fernando chana...@wso2.com wrote: Hi Manorama, I have added few comments to the PR. Please review them and do the necessary changes to the PR. Is it possible to write some unit tests for the mediator? Thanks, Chanaka On Wed, Apr 1, 2015 at 10:03 AM, Manorama Perera manor...@wso2.com wrote: Hi Nirmal, I've sent the PR[1] to carbon-mediation repo [1] https://github.com/wso2/carbon-mediation/pull/100 Thanks. On Wed, Apr 1, 2015 at 6:53 AM, Nirmal Fernando nir...@wso2.com wrote: [Removing architecture@ and moving the discussion to dev@] Hi Manorama, Shall we work with the ESB team and get this mediator merged to the relevant repo please? On Wed, Mar 25, 2015 at 3:35 PM, Nirmal Fernando nir...@wso2.com wrote: Thanks everyone. So, we decided to have following improvements; 1. /s/ml/machineLearner 2. Instead of specifying storage-location, we should get the model-name from the user. 3. feature elements should be wrapped from a features element. 4. prediction element currently replaces an existing element in the incoming message, we can support the append as well. On Tue, Mar 24, 2015 at 11:56 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Manorama, I guess that the names are not finalized yet. The name ml does not make much impression on the users. Please give a valid name like MachineLearner and that would make life easier for ESB developers. All our mediators has self explanatory names. Thanks, Chanaka On Tue, Mar 24, 2015 at 4:09 PM, Supun Sethunga sup...@wso2.com wrote: Hi Maninda, With the initial release of ML, the model would not update on the fly. If we need to update the model, it has to be done in ML by training a model with the same configurations, but with the new data. In future releases we will be looking at this for possible improvements. Here the term domain refers to the definition of the data which use to train the model. In the case you mentioned, If the model was trained using the data collected from all incoming requests; then domain is all sales. and can be used to handle all incoming requests. But if the model was trained using the data collected from the incoming requests of, say Seller_A, then it cannot be used to predict/handle incoming requests of all sellers, which is a different domain. When we say domain, it also includes the Schema (set of features/variables) of the dataset on which the prediction is going to be done. Handling multiple schema is tricky. If the data from a different domain doesn't contain some of the features (variables in the dataset) used to train the model, then that model cannot be used to predict on that particular data. So we have to work with this limitation, hence all the data has to be on the same domain (i.e. should have the same schema). Regards, Supun On Tue, Mar 24, 2015 at 3:10 PM, Maninda Edirisooriya mani...@wso2.com wrote: Does this update the model time to time or use the same modal throughout the ESB up time? It is better if we can update the model while the ESB is up and running. There may be some use cases related to multiple domains right? So I think would be more generic and useful if we can apply the mediator not based on the domain but with a custom argument expression. For example if the target service is SalesService and the operation is getTotalSalesCount we want to use the modal to analyze all incoming requests from all domains. WDYT? Thanks. *Maninda Edirisooriya* Senior Software Engineer *WSO2, Inc.*lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *E-mail* : mani...@wso2.com *Skype* : @manindae *Twitter* : @maninda On Tue, Mar 24, 2015 at 12:00 PM, Manorama Perera manor...@wso2.com wrote: Hi, ESB mediator for WSO2 ML enables making use of the models generated by WSO2 Machine Leaner, to predict values in message mediation in ESB. - Machine Learner feature needs to be installed in ESB prior to configure the ML mediator. - Mediator will extract the data from the incoming messages and send to the ML model as features. - The mediator use the Machine Learner features to predict the output value for every message passing through the mediator. *Proposed Mediator Configuration* ml model storage-location=string/ feature name=string expression=xpath/+ prediction expression=xpath/ /ml *model* storage-location : Storage location of the generated model. *feature* name : Feature name according to the generated model. expression : XPath expression used to determine the feature value. *prediction* expression : XPath expression to determine the location to insert the predicted value. The generated models can be applied to predict only the data coming from the same domain, as
Re: [Dev] [DEV] [ESB] test case for using RequestHashGenerator in cache mediator
Merged. Thanks, Ishan. On Tue, Mar 31, 2015 at 6:53 PM, Gayan Dhanushka gay...@wso2.com wrote: Hi Ishan, Please merge pull request [1] done for [2]. [1] https://github.com/wso2/product-esb/pull/112 [2] https://wso2.org/jira/browse/APIMANAGER-1838 Regards Gayan -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd -- Ishan Jayawardena Senior Software Engineer ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] ESB Mediator for WSO2 Machine Learner
Hi Nirmal, I've sent the PR[1] to carbon-mediation repo [1] https://github.com/wso2/carbon-mediation/pull/100 Thanks. On Wed, Apr 1, 2015 at 6:53 AM, Nirmal Fernando nir...@wso2.com wrote: [Removing architecture@ and moving the discussion to dev@] Hi Manorama, Shall we work with the ESB team and get this mediator merged to the relevant repo please? On Wed, Mar 25, 2015 at 3:35 PM, Nirmal Fernando nir...@wso2.com wrote: Thanks everyone. So, we decided to have following improvements; 1. /s/ml/machineLearner 2. Instead of specifying storage-location, we should get the model-name from the user. 3. feature elements should be wrapped from a features element. 4. prediction element currently replaces an existing element in the incoming message, we can support the append as well. On Tue, Mar 24, 2015 at 11:56 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Manorama, I guess that the names are not finalized yet. The name ml does not make much impression on the users. Please give a valid name like MachineLearner and that would make life easier for ESB developers. All our mediators has self explanatory names. Thanks, Chanaka On Tue, Mar 24, 2015 at 4:09 PM, Supun Sethunga sup...@wso2.com wrote: Hi Maninda, With the initial release of ML, the model would not update on the fly. If we need to update the model, it has to be done in ML by training a model with the same configurations, but with the new data. In future releases we will be looking at this for possible improvements. Here the term domain refers to the definition of the data which use to train the model. In the case you mentioned, If the model was trained using the data collected from all incoming requests; then domain is all sales. and can be used to handle all incoming requests. But if the model was trained using the data collected from the incoming requests of, say Seller_A, then it cannot be used to predict/handle incoming requests of all sellers, which is a different domain. When we say domain, it also includes the Schema (set of features/variables) of the dataset on which the prediction is going to be done. Handling multiple schema is tricky. If the data from a different domain doesn't contain some of the features (variables in the dataset) used to train the model, then that model cannot be used to predict on that particular data. So we have to work with this limitation, hence all the data has to be on the same domain (i.e. should have the same schema). Regards, Supun On Tue, Mar 24, 2015 at 3:10 PM, Maninda Edirisooriya mani...@wso2.com wrote: Does this update the model time to time or use the same modal throughout the ESB up time? It is better if we can update the model while the ESB is up and running. There may be some use cases related to multiple domains right? So I think would be more generic and useful if we can apply the mediator not based on the domain but with a custom argument expression. For example if the target service is SalesService and the operation is getTotalSalesCount we want to use the modal to analyze all incoming requests from all domains. WDYT? Thanks. *Maninda Edirisooriya* Senior Software Engineer *WSO2, Inc.*lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *E-mail* : mani...@wso2.com *Skype* : @manindae *Twitter* : @maninda On Tue, Mar 24, 2015 at 12:00 PM, Manorama Perera manor...@wso2.com wrote: Hi, ESB mediator for WSO2 ML enables making use of the models generated by WSO2 Machine Leaner, to predict values in message mediation in ESB. - Machine Learner feature needs to be installed in ESB prior to configure the ML mediator. - Mediator will extract the data from the incoming messages and send to the ML model as features. - The mediator use the Machine Learner features to predict the output value for every message passing through the mediator. *Proposed Mediator Configuration* ml model storage-location=string/ feature name=string expression=xpath/+ prediction expression=xpath/ /ml *model* storage-location : Storage location of the generated model. *feature* name : Feature name according to the generated model. expression : XPath expression used to determine the feature value. *prediction* expression : XPath expression to determine the location to insert the predicted value. The generated models can be applied to predict only the data coming from the same domain, as the data used to train the model. So the mediator should be configured only to mediate messages which carry data coming from the same domain, as the data used to train the model. Any suggestion are appreciated. Thanks. -- Manorama Perera Software Engineer WSO2, Inc.; http://wso2.com/ Mobile : +94716436216 ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
Re: [Dev] PR for membrane-soa-model orbit bundle version upgrade
Done. Maheshika, Can you release this orbit? Thanks, Sameera. On Tue, Mar 31, 2015 at 11:38 PM, Isuruwan Herath isuru...@wso2.com wrote: Hi Kernel Team, Could you please review and merge [1] related to $subject? Created a v2 of the released version since it needed an upgrade of slf4j dependency version. [1] https://github.com/wso2/orbit/pull/78 Thanks! Isuruwan -- Isuruwan Herath Technical Lead Contact: +94 776 273 296 -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://blog.sameera.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] ESB Mediator for WSO2 Machine Learner
Hi Manorama, I have added few comments to the PR. Please review them and do the necessary changes to the PR. Is it possible to write some unit tests for the mediator? Thanks, Chanaka On Wed, Apr 1, 2015 at 10:03 AM, Manorama Perera manor...@wso2.com wrote: Hi Nirmal, I've sent the PR[1] to carbon-mediation repo [1] https://github.com/wso2/carbon-mediation/pull/100 Thanks. On Wed, Apr 1, 2015 at 6:53 AM, Nirmal Fernando nir...@wso2.com wrote: [Removing architecture@ and moving the discussion to dev@] Hi Manorama, Shall we work with the ESB team and get this mediator merged to the relevant repo please? On Wed, Mar 25, 2015 at 3:35 PM, Nirmal Fernando nir...@wso2.com wrote: Thanks everyone. So, we decided to have following improvements; 1. /s/ml/machineLearner 2. Instead of specifying storage-location, we should get the model-name from the user. 3. feature elements should be wrapped from a features element. 4. prediction element currently replaces an existing element in the incoming message, we can support the append as well. On Tue, Mar 24, 2015 at 11:56 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Manorama, I guess that the names are not finalized yet. The name ml does not make much impression on the users. Please give a valid name like MachineLearner and that would make life easier for ESB developers. All our mediators has self explanatory names. Thanks, Chanaka On Tue, Mar 24, 2015 at 4:09 PM, Supun Sethunga sup...@wso2.com wrote: Hi Maninda, With the initial release of ML, the model would not update on the fly. If we need to update the model, it has to be done in ML by training a model with the same configurations, but with the new data. In future releases we will be looking at this for possible improvements. Here the term domain refers to the definition of the data which use to train the model. In the case you mentioned, If the model was trained using the data collected from all incoming requests; then domain is all sales. and can be used to handle all incoming requests. But if the model was trained using the data collected from the incoming requests of, say Seller_A, then it cannot be used to predict/handle incoming requests of all sellers, which is a different domain. When we say domain, it also includes the Schema (set of features/variables) of the dataset on which the prediction is going to be done. Handling multiple schema is tricky. If the data from a different domain doesn't contain some of the features (variables in the dataset) used to train the model, then that model cannot be used to predict on that particular data. So we have to work with this limitation, hence all the data has to be on the same domain (i.e. should have the same schema). Regards, Supun On Tue, Mar 24, 2015 at 3:10 PM, Maninda Edirisooriya mani...@wso2.com wrote: Does this update the model time to time or use the same modal throughout the ESB up time? It is better if we can update the model while the ESB is up and running. There may be some use cases related to multiple domains right? So I think would be more generic and useful if we can apply the mediator not based on the domain but with a custom argument expression. For example if the target service is SalesService and the operation is getTotalSalesCount we want to use the modal to analyze all incoming requests from all domains. WDYT? Thanks. *Maninda Edirisooriya* Senior Software Engineer *WSO2, Inc.*lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *E-mail* : mani...@wso2.com *Skype* : @manindae *Twitter* : @maninda On Tue, Mar 24, 2015 at 12:00 PM, Manorama Perera manor...@wso2.com wrote: Hi, ESB mediator for WSO2 ML enables making use of the models generated by WSO2 Machine Leaner, to predict values in message mediation in ESB. - Machine Learner feature needs to be installed in ESB prior to configure the ML mediator. - Mediator will extract the data from the incoming messages and send to the ML model as features. - The mediator use the Machine Learner features to predict the output value for every message passing through the mediator. *Proposed Mediator Configuration* ml model storage-location=string/ feature name=string expression=xpath/+ prediction expression=xpath/ /ml *model* storage-location : Storage location of the generated model. *feature* name : Feature name according to the generated model. expression : XPath expression used to determine the feature value. *prediction* expression : XPath expression to determine the location to insert the predicted value. The generated models can be applied to predict only the data coming from the same domain, as the data used to train the model. So the mediator should be configured only to mediate messages which carry data coming from the same domain, as the data used to train the model. Any suggestion are appreciated.
Re: [Dev] [Architecture] ESB Mediator for WSO2 Machine Learner
[Removing architecture@ and moving the discussion to dev@] Hi Manorama, Shall we work with the ESB team and get this mediator merged to the relevant repo please? On Wed, Mar 25, 2015 at 3:35 PM, Nirmal Fernando nir...@wso2.com wrote: Thanks everyone. So, we decided to have following improvements; 1. /s/ml/machineLearner 2. Instead of specifying storage-location, we should get the model-name from the user. 3. feature elements should be wrapped from a features element. 4. prediction element currently replaces an existing element in the incoming message, we can support the append as well. On Tue, Mar 24, 2015 at 11:56 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Manorama, I guess that the names are not finalized yet. The name ml does not make much impression on the users. Please give a valid name like MachineLearner and that would make life easier for ESB developers. All our mediators has self explanatory names. Thanks, Chanaka On Tue, Mar 24, 2015 at 4:09 PM, Supun Sethunga sup...@wso2.com wrote: Hi Maninda, With the initial release of ML, the model would not update on the fly. If we need to update the model, it has to be done in ML by training a model with the same configurations, but with the new data. In future releases we will be looking at this for possible improvements. Here the term domain refers to the definition of the data which use to train the model. In the case you mentioned, If the model was trained using the data collected from all incoming requests; then domain is all sales. and can be used to handle all incoming requests. But if the model was trained using the data collected from the incoming requests of, say Seller_A, then it cannot be used to predict/handle incoming requests of all sellers, which is a different domain. When we say domain, it also includes the Schema (set of features/variables) of the dataset on which the prediction is going to be done. Handling multiple schema is tricky. If the data from a different domain doesn't contain some of the features (variables in the dataset) used to train the model, then that model cannot be used to predict on that particular data. So we have to work with this limitation, hence all the data has to be on the same domain (i.e. should have the same schema). Regards, Supun On Tue, Mar 24, 2015 at 3:10 PM, Maninda Edirisooriya mani...@wso2.com wrote: Does this update the model time to time or use the same modal throughout the ESB up time? It is better if we can update the model while the ESB is up and running. There may be some use cases related to multiple domains right? So I think would be more generic and useful if we can apply the mediator not based on the domain but with a custom argument expression. For example if the target service is SalesService and the operation is getTotalSalesCount we want to use the modal to analyze all incoming requests from all domains. WDYT? Thanks. *Maninda Edirisooriya* Senior Software Engineer *WSO2, Inc.*lean.enterprise.middleware. *Blog* : http://maninda.blogspot.com/ *E-mail* : mani...@wso2.com *Skype* : @manindae *Twitter* : @maninda On Tue, Mar 24, 2015 at 12:00 PM, Manorama Perera manor...@wso2.com wrote: Hi, ESB mediator for WSO2 ML enables making use of the models generated by WSO2 Machine Leaner, to predict values in message mediation in ESB. - Machine Learner feature needs to be installed in ESB prior to configure the ML mediator. - Mediator will extract the data from the incoming messages and send to the ML model as features. - The mediator use the Machine Learner features to predict the output value for every message passing through the mediator. *Proposed Mediator Configuration* ml model storage-location=string/ feature name=string expression=xpath/+ prediction expression=xpath/ /ml *model* storage-location : Storage location of the generated model. *feature* name : Feature name according to the generated model. expression : XPath expression used to determine the feature value. *prediction* expression : XPath expression to determine the location to insert the predicted value. The generated models can be applied to predict only the data coming from the same domain, as the data used to train the model. So the mediator should be configured only to mediate messages which carry data coming from the same domain, as the data used to train the model. Any suggestion are appreciated. Thanks. -- Manorama Perera Software Engineer WSO2, Inc.; http://wso2.com/ Mobile : +94716436216 ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture -- *Supun Sethunga* Software Engineer WSO2,
[Dev] [Bamboo-Build] Developer Studio Eclipse-Tools #1490 was SUCCESSFUL. Change made by Sohani Weerasinghe.
--- Developer Studio Eclipse-Tools #1490 was successful. --- Code has been updated by Sohani Weerasinghe. https://wso2.org/bamboo/browse/DS0001-DSET01-1490/ -- Code Changes -- Sohani Weerasinghe (8a434165fe5f9933a655da671857da8d0b965dc0): Revert Fixing TOOLS-2727 - Allow to add multiple dbs files into a single DataServiceProject This reverts commit 09d0b1e7cdefbcc4bfd75b391b16f2c6b0d2f687. -- This message is automatically generated by Atlassian Bamboo___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB] Making iterate calls based on response element
Hi Keerthika, This is a custom requirement which is more like a while loop. You need to write a class mediator to implement this logic since ESB does not have a construct similar to while loop. Thanks, Chanaka On Tue, Mar 31, 2015 at 6:56 PM, Keerthika Mahendralingam keerth...@wso2.com wrote: Hi All, When we invoke a method in Marketo API we are getting the following response: { requestId:a9ae#148add1e53d, success:true, nextPageToken:GIYDAOBNGEYS2MBWKQYDAORQGA5DAMBOGAYDAKZQGAYDALBRGA3TQ===, moreResult:true, result:[ { id:2, leadId:6, activityDate:2013-09-26T06:56:35+, activityTypeId:12 }, { id:3, leadId:9, activityDate:2013-12-28T00:39:45+, activityTypeId:1 } ] } If the moreResult attribute is true in the response, we need to call this method until the moreResult attribute returns false. The nextPageToken returned from the previous call need to be reused for the next iteration of this call. How can we do this? -- dev-requ...@wso2.org Keerthika Mahendralingam Associate Software Engineer Mobile :+94 (0) 776 121144 keerth...@wso2.com WSO2, Inc. lean . enterprise . middleware -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB] Making iterate calls based on response element
Hi Keerthika, Yes agree with Chanakaf. Similar is done with Salesforce query and querymore. You can follow similar approach. [1] https://docs.wso2.com/display/ESBCONNECTORS/Salesforce+Connector#SalesforceConnector-Queryingrecords [2] https://github.com/wso2-dev/esb-connectors/blob/master/salesforce/1.0.0/src/main/resources/salesforce/queryMore.xml On Tue, Mar 31, 2015 at 7:58 PM, Chanaka Fernando chana...@wso2.com wrote: Hi Keerthika, This is a custom requirement which is more like a while loop. You need to write a class mediator to implement this logic since ESB does not have a construct similar to while loop. Thanks, Chanaka On Tue, Mar 31, 2015 at 6:56 PM, Keerthika Mahendralingam keerth...@wso2.com wrote: Hi All, When we invoke a method in Marketo API we are getting the following response: { requestId:a9ae#148add1e53d, success:true, nextPageToken:GIYDAOBNGEYS2MBWKQYDAORQGA5DAMBOGAYDAKZQGAYDALBRGA3TQ===, moreResult:true, result:[ { id:2, leadId:6, activityDate:2013-09-26T06:56:35+, activityTypeId:12 }, { id:3, leadId:9, activityDate:2013-12-28T00:39:45+, activityTypeId:1 } ] } If the moreResult attribute is true in the response, we need to call this method until the moreResult attribute returns false. The nextPageToken returned from the previous call need to be reused for the next iteration of this call. How can we do this? -- dev-requ...@wso2.org Keerthika Mahendralingam Associate Software Engineer Mobile :+94 (0) 776 121144 keerth...@wso2.com WSO2, Inc. lean . enterprise . middleware -- -- Chanaka Fernando Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 773337238 Blog : http://soatutorials.blogspot.com LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0 Twitter:https://twitter.com/chanakaudaya Wordpress:http://chanakaudaya.wordpress.com -- Best Regards, Malaka Silva Senior Tech 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 http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ http://wso2.com/about/team/malaka-silva/ Save a tree -Conserve nature Save the world for your future. Print this email only if it is absolutely necessary. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Svn Connector Review - Blocked on start
looping yasith hi yasith, Can you please provide me with the sample access file for SVN. Thank you. On Wed, Apr 1, 2015 at 9:38 AM, Elilmatha Sivanesan elilma...@wso2.com wrote: Hi Dimuthu, Thank you for your quick response. Happy to say that code for LDAP is reviewed and merged , and the document have been restructured [1] [2] . [1] https://github.com/wso2/esb-connectors/tree/master/ldap [2] https://docs.wso2.com/display/CONNECTORS/LDAP+Connector I will proceed with the Svn links you have provided and let u know soon. Thank you. On Tue, Mar 31, 2015 at 8:11 PM, DImuthu Upeksha dimuthu.upeks...@gmail.com wrote: Hi Elilmatha, Currently I don't have access to svn repository. [1] is the code for svn connector which may be the one you are currently referring. Here [2] is the API which was written to handle access file of SVN. One issue of SVN is that they don't provide a REST/ SOAP API to handle their projects or users. So one easy way (which may not be the best approach) is to implement an API to handle the access file of SVN server. What this [2] API does is that task. You can fetch a sample access file of SVN from Yasith [3] in infra team. However I found a C API for SVN [4] but not sure whether it perfectly matches to our requirements like creating users, changing privileges and etc. If it does, you may have to write a JNI wrapper to call it from java. HTH [1] https://github.com/DImuthuUpe/svnConnector [2] https://github.com/DImuthuUpe/SvnAccessManager [3] http://wso2.com/about/team/yasith-tharindu/ [4] https://subversion.apache.org/docs/api/latest/annotated.html Thanks Dimuthu On Tue, Mar 31, 2015 at 7:34 PM, DImuthu Upeksha dimuthu.upeks...@gmail.com wrote: Hi Elilmatha, I was working on SVN connector when I was an intern at WSO2. Actually I have been working on 2 connectors : LDAP connector [1] [2] and SVN connector. Due to time constraints, I was able to completely finish (connector+ integration tests) of LDAP connector. So integration tests of SVN connectors are yet to be implemented. [1] https://github.com/DImuthuUpe/esb-connectors/tree/master/ldap [2] https://docs.wso2.com/display/ESBCONNECTORS/LDAP+Connector On Tue, Mar 31, 2015 at 10:31 AM, Elilmatha Sivanesan elilma...@wso2.com wrote: Hi all, I'm reviewing the SVN Connector, which was done by interns a year ago. The code base is found at [1]. The code base is written but the testing part is missing , Is there any other location I can find the full code More to that I'm unable to find out the proper api document for which they have implemented the connector to test the connector manually. Can anyone guide me to proceed further in this. [1] https://svn.wso2.com/wso2/interns/2013/dimuthuu/svn_connector/ Thank you. -- *S.Elilmatha* Associate Software Engineer, WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile 0779842221. -- Regards W.Dimuthu Upeksha Undergraduate Department of Computer Science And Engineering University of Moratuwa, Sri Lanka -- Regards W.Dimuthu Upeksha Undergraduate Department of Computer Science And Engineering University of Moratuwa, Sri Lanka -- *S.Elilmatha* Associate Software Engineer, WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile 0779842221. -- *S.Elilmatha* Associate Software Engineer, WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile 0779842221. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Using LogViewerClient in Integration Tests
Hi, I want to read the logs in ESB to do perform a few assertions. However, since I have multiple test methods in the test case, I am unable to find the correct required log. To further elaborate, my first test case prints 20 of required logs and the second test case prints 100. When I iterate through all logs, although logViewer.clearLogs() is done at the start of each method, the count for the second run test case is 120 and not 20 or 100 (I am verifying the log count in the test case). I verified with the log length before and after clearLogs() is called and the length remains the same. What is the expectation of the clearLogs() method. Does it clear all the system logs or something else? If I use the length of the logs before and after the test functionality and iterate through that, the required logs are not available. Also believe, logViewer.getAllRemoteSystemLogs() is the successor to deprecated method logViewer.getAllSystemLogs() ? Thanks, Maheeka Maheeka Jayasuriya Software Engineer Mobile : +9450661 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Using LogViewerClient in Integration Tests
Hi Maheeka, We have encountered issue with delay of clear logs in our test cases at times. So you will have to consider that. Thanks, Waruna On Wed, Apr 1, 2015 at 11:15 AM, Maheeka Jayasuriya mahe...@wso2.com wrote: Hi, I want to read the logs in ESB to do perform a few assertions. However, since I have multiple test methods in the test case, I am unable to find the correct required log. To further elaborate, my first test case prints 20 of required logs and the second test case prints 100. When I iterate through all logs, although logViewer.clearLogs() is done at the start of each method, the count for the second run test case is 120 and not 20 or 100 (I am verifying the log count in the test case). I verified with the log length before and after clearLogs() is called and the length remains the same. What is the expectation of the clearLogs() method. Does it clear all the system logs or something else? If I use the length of the logs before and after the test functionality and iterate through that, the required logs are not available. Also believe, logViewer.getAllRemoteSystemLogs() is the successor to deprecated method logViewer.getAllSystemLogs() ? Thanks, Maheeka Maheeka Jayasuriya Software Engineer Mobile : +9450661 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Carbon] [MDM] Why is it possible to assign [Internal/everyone] role to a user twice?
[Looping identity folks in] On Wed, Apr 1, 2015 at 11:24 AM, Dilan Udara Ariyaratne dil...@wso2.com wrote: Hi Folks, I am currently working on WSO2 MDM UI and when I called the Jaggery addUser() function that exposes org.wso2.carbon.user.core osgi layer to the outside, I noticed the following. When I deliberately add Internal/everyone role to a user which is the default user role that gets assigned to any user by carbon user core, that gets added twice which seems to be a bug in the system. An image is also attached herewith on the observed scenario. Appreciate if we can have a quick look into this? Regards, *Dilan U. Ariyaratne* Software Engineer WSO2 Inc. http://wso2.com/ Mobile: +94775149066 lean . enterprise . middleware -- Prabath Abeysekara Associate Technical Lead, Data TG. WSO2 Inc. Email: praba...@wso2.com Mobile: +94774171471 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] About boxcarring and set-cookie issue.
Hi Jorge, I'm not sure this is because you have call the begin_boxcar operation as out only operation. Just remove it and try. Also you can find complete working scenario in [1]. [1] - http://harshcreationz.blogspot.com/2015/02/boxcarring-sample-with-wso2-dss-and.html Thanks, Harsha On Tue, Mar 31, 2015 at 11:44 PM, Jorge isildur...@gmail.com wrote: Hi all. I call a begin boxcarring operation in a dataservice deployed in WSO2 AS 5.2.1 using this config in a proxy service deployed in ESB 4.8.1 header name=Action value=urn:begin_boxcar/ payloadFactory media-type=xml format soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelopesa=Dsntz=1usg=AFQjCNGfMX1ZVGPTZcRDvsElhc17DotqKg soapenv:Body ns1:begin_boxcar xmlns:ns1= http://jorgesoftdevelop.org http://www.google.com/url?q=http%3A%2F%2Fjorgesoftdevelop.orgsa=Dsntz=1usg=AFQjCNFnuP-gyDwMY1qSC23cC9vgQzFpcg / /soapenv:Body /soapenv:Envelope /format args/ /payloadFactory property name=OUT_ONLY value=true scope=default type=STRING/ call endpoint address uri=http://localhost:/services/ActualizarUsuariosBloqueados/ http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A%2Fservices%2FActualizarUsuariosBloqueados%2Fsa=Dsntz=1usg=AFQjCNFsi_lEOtKcR8fr6iiQMnOPFgiRcw / /endpoint /call And I can see the response using tcpmon: HTTP/1.1 202 Accepted Set-Cookie: JSESSIONID=2D2B1404523D0233E2B445E1BC315F7A; Path=/; HttpOnly Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Sat, 28 Mar 2015 07:03:23 GMT Server: WSO2 Carbon Server When I try to get the Set-Cookie value using this property: property name=setCookieHeader expression=$trp:Set-Cookie/ I receive a null value. Any idea? Regards, Jorge. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] About boxcarring and set-cookie issue.
In my dataservice the begin_boxcar has only only an input message, without and output message. porttype: wsdl:operation name=begin_boxcarwsdl:documentationControl operation for beginning a boxcarring session/wsdl:documentationwsdl:input message=ns0:begin_boxcarRequest wsaw:Action=urn:begin_boxcar//wsdl:operation binding: wsdl:operation name=begin_boxcarsoap:operation soapAction=urn:begin_boxcar style=document/wsdl:inputsoap:body use=literal//wsdl:input/wsdl:operation Without the property name=OUT_ONLY value=true scope=default type=STRING description=solo salida/ the proxy raise several error in console. Jorge. 2015-03-31 14:37 GMT-04:00 Harsha Kumara hars...@wso2.com: Hi Jorge, I'm not sure this is because you have call the begin_boxcar operation as out only operation. Just remove it and try. Also you can find complete working scenario in [1]. [1] - http://harshcreationz.blogspot.com/2015/02/boxcarring-sample-with-wso2-dss-and.html Thanks, Harsha On Tue, Mar 31, 2015 at 11:44 PM, Jorge isildur...@gmail.com wrote: Hi all. I call a begin boxcarring operation in a dataservice deployed in WSO2 AS 5.2.1 using this config in a proxy service deployed in ESB 4.8.1 header name=Action value=urn:begin_boxcar/ payloadFactory media-type=xml format soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelopesa=Dsntz=1usg=AFQjCNGfMX1ZVGPTZcRDvsElhc17DotqKg soapenv:Body ns1:begin_boxcar xmlns:ns1= http://jorgesoftdevelop.org http://www.google.com/url?q=http%3A%2F%2Fjorgesoftdevelop.orgsa=Dsntz=1usg=AFQjCNFnuP-gyDwMY1qSC23cC9vgQzFpcg / /soapenv:Body /soapenv:Envelope /format args/ /payloadFactory property name=OUT_ONLY value=true scope=default type=STRING/ call endpoint address uri=http://localhost:/services/ActualizarUsuariosBloqueados/ http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A%2Fservices%2FActualizarUsuariosBloqueados%2Fsa=Dsntz=1usg=AFQjCNFsi_lEOtKcR8fr6iiQMnOPFgiRcw / /endpoint /call And I can see the response using tcpmon: HTTP/1.1 202 Accepted Set-Cookie: JSESSIONID=2D2B1404523D0233E2B445E1BC315F7A; Path=/; HttpOnly Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Sat, 28 Mar 2015 07:03:23 GMT Server: WSO2 Carbon Server When I try to get the Set-Cookie value using this property: property name=setCookieHeader expression=$trp:Set-Cookie/ I receive a null value. Any idea? Regards, Jorge. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please release Spark Core 1.2.1.wso2v2
Hi Maheshika, Please release https://github.com/wso2/orbit/tree/master/spark-core_2.10/1.2.1.wso2v2 orbit bundle. -- Thanks regards, Nirmal Senior Software Engineer- Platform Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] About boxcarring and set-cookie issue.
Hi all. I call a begin boxcarring operation in a dataservice deployed in WSO2 AS 5.2.1 using this config in a proxy service deployed in ESB 4.8.1 header name=Action value=urn:begin_boxcar/ payloadFactory media-type=xml format soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope http://www.google.com/url?q=http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelopesa=Dsntz=1usg=AFQjCNGfMX1ZVGPTZcRDvsElhc17DotqKg soapenv:Body ns1:begin_boxcar xmlns:ns1= http://jorgesoftdevelop.org http://www.google.com/url?q=http%3A%2F%2Fjorgesoftdevelop.orgsa=Dsntz=1usg=AFQjCNFnuP-gyDwMY1qSC23cC9vgQzFpcg / /soapenv:Body /soapenv:Envelope /format args/ /payloadFactory property name=OUT_ONLY value=true scope=default type=STRING/ call endpoint address uri=http://localhost:/services/ActualizarUsuariosBloqueados/ http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A%2Fservices%2FActualizarUsuariosBloqueados%2Fsa=Dsntz=1usg=AFQjCNFsi_lEOtKcR8fr6iiQMnOPFgiRcw / /endpoint /call And I can see the response using tcpmon: HTTP/1.1 202 Accepted Set-Cookie: JSESSIONID=2D2B1404523D0233E2B445E1BC315F7A; Path=/; HttpOnly Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Sat, 28 Mar 2015 07:03:23 GMT Server: WSO2 Carbon Server When I try to get the Set-Cookie value using this property: property name=setCookieHeader expression=$trp:Set-Cookie/ I receive a null value. Any idea? Regards, Jorge. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [DEV] [ESB] test case for using RequestHashGenerator in cache mediator
Hi Ishan, Please merge pull request [1] done for [2]. [1] https://github.com/wso2/product-esb/pull/112 [2] https://wso2.org/jira/browse/APIMANAGER-1838 Regards Gayan -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [ESB] Making iterate calls based on response element
Hi All, When we invoke a method in Marketo API we are getting the following response: { requestId:a9ae#148add1e53d, success:true, nextPageToken:GIYDAOBNGEYS2MBWKQYDAORQGA5DAMBOGAYDAKZQGAYDALBRGA3TQ===, moreResult:true, result:[ { id:2, leadId:6, activityDate:2013-09-26T06:56:35+, activityTypeId:12 }, { id:3, leadId:9, activityDate:2013-12-28T00:39:45+, activityTypeId:1 } ] } If the moreResult attribute is true in the response, we need to call this method until the moreResult attribute returns false. The nextPageToken returned from the previous call need to be reused for the next iteration of this call. How can we do this? -- dev-requ...@wso2.org Keerthika Mahendralingam Associate Software Engineer Mobile :+94 (0) 776 121144 keerth...@wso2.com WSO2, Inc. lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please release Spark Core 1.2.1.wso2v2
Hi Nirmal Done. On Wed, Apr 1, 2015 at 12:56 AM, Nirmal Fernando nir...@wso2.com wrote: Hi Maheshika, Please release https://github.com/wso2/orbit/tree/master/spark-core_2.10/1.2.1.wso2v2 orbit bundle. -- Thanks regards, Nirmal Senior Software Engineer- Platform Technologies Team, WSO2 Inc. Mobile: +94715779733 Blog: http://nirmalfdo.blogspot.com/ -- Thanks Best Regards, Maheshika Goonetilleke Engineering Process Coordinator *WSO2 Inc* *email : mahesh...@wso2.com mahesh...@wso2.com* *mobile : +94 773 596707* *www: :http://wso2.com http://wso2.com/*lean . enterprise . middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev