Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Geeth Munasinghe
On Tue, Nov 24, 2015 at 12:12 AM, Chamara Ariyarathne wrote: > Hi Milan. Thanks for the information. We will try this tomorrow. But our > purpose is to replace this whole url with a configured host name. > > However Geeth, I think the EMM team having to introduce a new config

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Chamara Ariyarathne
Hi Milan. Thanks for the information. We will try this tomorrow. But our purpose is to replace this whole url with a configured host name. However Geeth, I think the EMM team having to introduce a new config to put the globally exposed server url deviates from the purpose of having HostName and

Re: [Dev] [GREG][ES] Validating regex in RXT input values

2015-11-23 Thread Manuranga Perera
What will happen if I do a patten like "^.*$" . In this case even the empty string matches. Will it still throw an error if I didn't send anything.? On Mon, Nov 23, 2015 at 1:43 PM, Ayesha Dissanayaka wrote: > Hi all, > > As of now, governance API validates all the fields which

Re: [Dev] [APIM] setting up cluster without using -Dprofile - with puppet scripts

2015-11-23 Thread Pubudu Priyashan
Hey Nuwan. We've been experiencing some issues when trying to start the cluster nodes with -Dprofile option in our cluster set up for APIM 1.10.0 Alpha pack. I have logged a ticket [1] with exceptions attached. Please let us know if any further details required on this matter. [1]

Re: [Dev] Log Analyzer progress status

2015-11-23 Thread Dakshika Jayathilaka
Hi Anuruddha, Thank you for sharing related docs. Shall we set up a meeting to discuss wireframes. IMO UX team can share some re-usable components as well as platform level design guide for implementation. Regards, *Dakshika Jayathilaka* PMC Member & Committer of Apache Stratos Senior Software

[Dev] [GREG][ES] Validating regex in RXT input values

2015-11-23 Thread Ayesha Dissanayaka
Hi all, As of now, governance API validates all the fields which has validate="" attribute in the field, and throws an exception whenever regex is not matched with input value. Hence, such fields get required by default even thought required="true" is not set to the field definition in RXT. ex:

Re: [Dev] [GREG][ES] Validating regex in RXT input values

2015-11-23 Thread Ayesha Dissanayaka
Hi, Correct behavior is observed when carbon.governance.version is updated to 4.6.1, earlier it was 4.6.0. Thanks! -Ayesha On Mon, Nov 23, 2015 at 2:00 PM, Chandana Napagoda wrote: > Hi Ayesha, > > No, it's not. Governance API doesn't validate the fields when a value is >

[Dev] Is it okay to depend on auto commit when writing JDBC code?

2015-11-23 Thread Isuru Perera
Hi, When we write JDBC code, is it okay if we depend on auto commit in the connection we get from the DataSource? The JDBC Reporter for Metrics [1] depends on auto commit "true" value set in the DataSource configuration. The JDBC reporter doesn't have any complex transactions and I thought it

Re: [Dev] wso2esb 4.8.1 and 4.9.0 different behaviour onError

2015-11-23 Thread Nariman Abdullayev (TD)
Hello, Could someone help me with this issue? I cannot understand why SOAP message is lost after an http exception Thank in advance, Nariman. On 11/17/2015 09:05 AM, Nariman Abdullayev (TD) wrote: Hi Madhuranga, Thank you for the sample. There is actually full envelope body in your example.

Re: [Dev] ApplicationDAOImpl trying to query UM_PERMISSION tables against the Identity DB

2015-11-23 Thread Lasitha Wattaladeniya
Hi Nuwan/Lakmali, >From Identity side, the requirement was to change the roles/permissions when renaming applications (SPs), which will access the UM_PERMISSION table and change each permission path and it uses the same connection to update the UM_PERMISSION table and Identity DB related tables.

Re: [Dev] Is it okay to depend on auto commit when writing JDBC code?

2015-11-23 Thread Nuwan Dias
Depending on it might cause issues. API Manager had to face some complexities on Postgre. These however were because API Manager depended on defaultAutoCommit to be false, not true. I guess it can have its complications on various DB engines. And as a best practise I think its better to not

[Dev] ApplicationDAOImpl trying to query UM_PERMISSION tables against the Identity DB

2015-11-23 Thread Lakmali Baminiwatta
Hi all, In APIM 1.10.0, when we try to rename an Application, below error is thrown. When I checked the code, there are queries to UM_PERMISSION table against the Identity DB [1]. Shouldn't we use existing UM APIs or run these against the UM DB? Caused by: org.h2.jdbc.JdbcSQLException: Table

Re: [Dev] ApplicationDAOImpl trying to query UM_PERMISSION tables against the Identity DB

2015-11-23 Thread Nuwan Dias
Looks like a bug to me. This would require the Identity and UM tables to be on a single schema, which would be wrong. Thanks, NuwanD. On Mon, Nov 23, 2015 at 4:28 PM, Lakmali Baminiwatta wrote: > Hi all, > > In APIM 1.10.0, when we try to rename an Application, below error is

Re: [Dev] Is it okay to depend on auto commit when writing JDBC code?

2015-11-23 Thread Sumedha Rubasinghe
Isuru, By allowing autocommit = true, your giving control of your JDBC logic completely to database engine. This will be problematic when you want to perform a rollback resulted by multiple SQL statements. For example: with autocommit=true insertOrder()

Re: [Dev] [GREG][ES] Validating regex in RXT input values

2015-11-23 Thread Ayesha Dissanayaka
On Mon, Nov 23, 2015 at 1:47 PM, Manuranga Perera wrote: > "^.*$" Nope, this doesn't throw an error if the input is empty. -- *Ayesha Dissanayaka* Software Engineer, WSO2, Inc : http://wso2.com

Re: [Dev] Log Analyzer progress status

2015-11-23 Thread Malith Dhanushka
On Mon, Nov 23, 2015 at 1:39 PM, Dakshika Jayathilaka wrote: > Hi Anuruddha, > > Thank you for sharing related docs. Shall we set up a meeting to discuss > wireframes. IMO UX team can share some re-usable components as well as > platform level design guide for implementation.

[Dev] Authentication Endpoint deployment failure with Securevault

2015-11-23 Thread Lakmali Baminiwatta
Hi all, We ran cipher tool for APIM 1.10 and when starting the server, authentication endpoint web app deployment fails saying "Invalid class as SecretCallbackHandler : Class Name : org.wso2.securevault.secret.handler.SecretManagerSecretCallbackHandler". In the code level it is trying to resolve

Re: [Dev] [IS] "hostname in certificate didn't match:" issue when accessing IS dashboard

2015-11-23 Thread Dilshan Edirisuriya
Sorry the other thread is [1] [1] - [Clarification](EONPROD-24) Accessing webpage via WSO2 ESB not possbile - handshake error On Mon, Nov 23, 2015 at 2:29 PM, Dilshan Edirisuriya wrote: > Hi Aparna, > > It seems that the same issue occurring at [1]. > > [1] - [Dev][IS]

Re: [Dev] [IS] "hostname in certificate didn't match:" issue when accessing IS dashboard

2015-11-23 Thread Dilshan Edirisuriya
Hi Aparna, It seems that the same issue occurring at [1]. [1] - [Dev][IS] "hostname in certificate didn't match:" issue when accessing IS dashboard Regards, Dilshan On Fri, Nov 20, 2015 at 11:38 AM, Aparna Karunarathna wrote: > Actually I have used another Nginx to resolve

Re: [Dev] [GREG][ES] Validating regex in RXT input values

2015-11-23 Thread Chandana Napagoda
Hi Ayesha, No, it's not. Governance API doesn't validate the fields when a value is not present. You can check it in latest G-Reg pack. We(Chanaka and me) implemented this for G-Reg 5.1.0 release. Regards, Chandana On Mon, Nov 23, 2015 at 1:43 PM, Ayesha Dissanayaka wrote: >

Re: [Dev] [GREG][ES] Validating regex in RXT input values

2015-11-23 Thread Manuranga Perera
seems this Greg side behavior is correct. On Mon, Nov 23, 2015 at 1:58 PM, Ayesha Dissanayaka wrote: > > On Mon, Nov 23, 2015 at 1:47 PM, Manuranga Perera wrote: > >> "^.*$" > > > Nope, this doesn't throw an error if the input is empty. > > -- > *Ayesha

Re: [Dev] Implementing -Dsetup in a Carbon product

2015-11-23 Thread Hasitha Hiranya
Hi, Thanks, Nirmal/Anuruddha, sources were useful Thanks On Sun, Nov 22, 2015 at 6:09 PM, Nirmal Fernando wrote: > Hi Hasitha, > > Check this >

Re: [Dev] Is it okay to depend on auto commit when writing JDBC code?

2015-11-23 Thread Isuru Perera
Hi Sumedha, Nuwan, Yes, I understand that we shouldn't be using auto commit if we need to rollback multiple transactions. In Metrics reporter, it just does a batch insert and it has only one transaction. So, there were no issues with auto commit yet. I thought of asking question as we also let

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Chamara Ariyarathne
We have a major design culprit with this situation now with the hostname not getting picked up from carbon.xml. First reported jira is this https://wso2.org/jira/browse/EMM-900 Today we found out that even when the Host Names are configured in the carbonl.xml to be server's identified domain

[Dev] [IS] How can we retrieve the Service Provider when the Role created for SP is accidentally deleted?

2015-11-23 Thread Nadeesha Meegoda
Hi IS team, I created a Service Provider and automatically *Application/Service_Provider_Name* Role was created. This Role is used to give permission for users to edit and view the SP. Deleting this Role will also delete the Service Provider created. If this Role was deleted accidentally, how am

[Dev] Http Servlet forwarding issue

2015-11-23 Thread Godwin Shrimal
Hi, I am trying to forward the servlet request from *samlsso* servlet to *commonauth* and getting following error in browser. *HTTP Status 405 - HTTP method GET is not supported by this URL* Note : Both servlets are registered from OSGI Service component and has implemented doGet and doPost

Re: [Dev] [Builder] Jenkins build became unstable: carbon4-kernel_4.4.x__java8 #88

2015-11-23 Thread Nipuni Perera
Merged fix[1] to 4.4.x branch with commit 2d5895e217cb9eb3873a3f1a41ac908338c2f162 [1] https://wso2.org/jira/browse/CARBON-15609 Thanks, Nipuni On Mon, Nov 23, 2015 at 9:46 AM, Manuri Amaya Perera wrote: > Hi, > > The reason is, a fix[1] was introduced for this but it was

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Geeth Munasinghe
Hi Chamara For the first issue, as you and me had many offline discussions about it, let me explain the reason again, why we moved the LB host name and LB port to be taken from a different file (cdm-config.xml). This was required when we send email to users to get their devices enrolled, we need

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Chamara Ariyarathne
So Geeth, my argument is even if there is a url re-write in the load balancer, the carbon.xml HostName and MgtHostName value should be the domain name which is exposed to outside world, hence in your example: emm.wso2.com. Do you have a counter argument for this? On Mon, Nov 23, 2015 at 8:03

Re: [Dev] [IS] Retrieve all permissions and actions of a user using admin services

2015-11-23 Thread Tharindu Edirisinghe
Hi Sajith, You can take a look at *RemoteAuthorizationManagerService* [1]. There we have the following method. *isUserAuthorized* (username, resourceId, action) >From this you can check if the user is authorized to perform some action on a particular resource. similarly you can check the same

Re: [Dev] WSO2 Committers += Thilini Cooray

2015-11-23 Thread Sajith Ariyarathna
Congratz Thilini! On Mon, Nov 23, 2015 at 9:52 PM, Nuwan Dias wrote: > Hi, > > It is with great pleasure we welcome Thilini Cooray as a WSO2 Committer. @ > Thilini, congratulations and keep up the good work! > > Thanks, > NuwanD. > > -- > Nuwan Dias > > Technical Lead - WSO2,

[Dev] [DAS]Error while getting data from DAS to DB2 tables

2015-11-23 Thread Lakshman Udayakantha
Hi, I configured APIM with DAS to publish runtime statistics with DB2. When The spark query runs with cron job, I got below error. * [2015-11-24 10:15:00,007] INFO {org.wso2.carbon.analytics.spark.core.AnalyticsTask} -

[Dev] Adding Metrics to APIManager 1.10.0

2015-11-23 Thread Dinesh J Weerakkody
Hi All, As a part of the effort of performance measuring and improvement of WSO2 API Manager, we are planing to incorporate the Metrics feature [1], which will help us to gather statistics during the runtime. Initially we will add metrics to all the handlers in APIM and based on the results we

Re: [Dev] [IS] Retrieve all permissions and actions of a user using admin services

2015-11-23 Thread Sajith Ariyarathna
Hi Tharindu, Thanks for the info. Since I'm implementing this using Jaggery, I'll use the 'RemoteAuthorizationManagerService' admin service. Cheers. On Tue, Nov 24, 2015 at 4:30 AM, Tharindu Edirisinghe wrote: > Hi Sajith, > > You can take a look at

Re: [Dev] Http Servlet forwarding issue

2015-11-23 Thread Godwin Shrimal
Hi Harsha, As you told, samlsso and commonauth is in separate web context and tomcat block access across the context by default. But we can enable crossContext in context.xml. In our carbon products crossContext is enabled by default. Thanks Godwin On Mon, Nov 23, 2015 at 11:29 PM, Harsha

Re: [Dev] [DAS]Error while getting data from DAS to DB2 tables

2015-11-23 Thread Inosh Goonewardena
Hi Lakshman, There was an issue [1] and this has been fixed now. As a workaround can you try by specifying the exact DB2 database type instead of DB* in rdbms-config.xml [1] https://wso2.org/jira/browse/DAS-311 On Tuesday, November 24, 2015, Lakshman Udayakantha wrote: >

Re: [Dev] [CARBON] Parameterizing the Maven bundle plugin and moving plugin configuration inside carbon-parent pom

2015-11-23 Thread Manuri Amaya Perera
Hi, I have created a doc[1] on 1. What configurations should be allowed to be changed by component developers (may have default values or not) 2. What should have default values which cannot be overridden without redeclaring the plugin inside the bundle Please share your thoughts on this. And

Re: [Dev] [CARBON] Parameterizing the Maven bundle plugin and moving plugin configuration inside carbon-parent pom

2015-11-23 Thread Afkham Azeez
Can carbon-parent be the parent of non-osgi jars as well? If so should we call it carbon-componet-parent? On Nov 24, 2015 11:13 AM, "Manuri Amaya Perera" wrote: > Hi, > > I have created a doc[1] on > 1. What configurations should be allowed to be changed by component >

Re: [Dev] [CARBON] Parameterizing the Maven bundle plugin and moving plugin configuration inside carbon-parent pom

2015-11-23 Thread Manuri Amaya Perera
Hi Azeez, [1] is a non-osgi jar which has the parent carbon-kernel of which the parent is carbon-parent. Why do we need to add "component" ? Doesn't it already sound generic? [1] https://github.com/wso2/carbon-kernel/blob/master/launcher/pom.xml Thank you. On Tue, Nov 24, 2015 at 11:18 AM,

Re: [Dev] [DAS]Error while getting data from DAS to DB2 tables

2015-11-23 Thread Lakshman Udayakantha
Hi Inosh, Thanks for the info. As you pointed out, specifying DB2 type as DB2/NT. This error is gone and statistics published successfully. Thanks On Tue, Nov 24, 2015 at 11:06 AM, Inosh Goonewardena wrote: > Hi Lakshman, > > There was an issue [1] and this has been fixed now.

Re: [Dev] [DEV] Implement unit/integration test cases for API Manager JAX-RS Rest API

2015-11-23 Thread Dharshana Warusavitharana
Hi Sanjeewa, Sorry for late reply , some how i missed this. Please use following versions on dependencies 2.0.0.wso2v1 3.0.2.Final 2.0.1 And place the dependency with scope of compile so that won't conflict with other dependencies. org.jboss.resteasy resteasy-client compile

Re: [Dev] [CARBON] Parameterizing the Maven bundle plugin and moving plugin configuration inside carbon-parent pom

2015-11-23 Thread Afkham Azeez
We can't make all non-osgi jars make carbon-kernel their parent On Nov 24, 2015 11:37 AM, "Manuri Amaya Perera" wrote: > Hi Azeez, > > [1] is a non-osgi jar which has the parent carbon-kernel of which the > parent is carbon-parent. > Why do we need to add "component" ? Doesn't

Re: [Dev] [Architecture] [CARBON] Creating an archetype for a simple carbon component

2015-11-23 Thread Manuri Amaya Perera
Hi, As decided in the discussion with Carbon Team, I have implemented two archetypes. 1. carbon-bundle-archetype This is an archetype for a generic OSGi bundle which does not include anything Carbon specific. 2. carbon-component-archetype This is an archetype for a carbon component with a

[Dev] [APIM 1.10.x] Error while add comment on API

2015-11-23 Thread Malintha Adikari
Hi, I am getting following error while trying to add comment to an API in store node in a distributed setup. I tried this in stadalone pack and this issue is not there. Is there any suspicious configuration which cause this error ? TID: [-1234] [] [2015-11-24 06:34:29,454] ERROR

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Afkham Azeez
Yes. You have to use the value in the carbon. Xml On Nov 24, 2015 8:17 AM, "Selvaratnam Uthaiyashankar" wrote: > I agree with Chamara. We have a way to configure public hostname > (HostName, MgtHostName in carbon.xml) and port (proxy port in > tomcat/catalina-server.xml). This

Re: [Dev] [BPS][DAS] Sorting feature and range faceting for the aggregated records

2015-11-23 Thread Gimantha Bandara
Hi Chathura, In DAS 3.0.0, aggregation of bucketed range is not supported. But if the aggregation is summation, we can use score-functions and use facet count APIs to aggregate per range. @Anjana, Shall we add this functionality as an improvement to DAS 3.0.1? On Mon, Nov 23, 2015 at 1:46 AM,

Re: [Dev] Revoked Access Token and Revoked Refresh Token returned back in token revoke endpoint response

2015-11-23 Thread Sanjeewa Malalgoda
On Tue, Nov 24, 2015 at 7:47 AM, Amila De Silva wrote: > Hi Sanjeewa, > > On Sunday, November 22, 2015, Sanjeewa Malalgoda > wrote: > >> In 1.10 we have commemted out cache clear handler in revoke api but it >> was there in token API. So by default we will

Re: [Dev] Revoked Access Token and Revoked Refresh Token returned back in token revoke endpoint response

2015-11-23 Thread Amila De Silva
Hi Sanjeewa, On Sunday, November 22, 2015, Sanjeewa Malalgoda wrote: > In 1.10 we have commemted out cache clear handler in revoke api but it was > there in token API. So by default we will not use transport headers coming > from revoke request but use in token api. But i

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Selvaratnam Uthaiyashankar
I agree with Chamara. We have a way to configure public hostname (HostName, MgtHostName in carbon.xml) and port (proxy port in tomcat/catalina-server.xml). This is what used in generating service endpoints, WSDL URLs etc. when a server is fronted with LB. I don't see any necessary for EMM to have

Re: [Dev] [APIM 1.10.x] Error while add comment on API

2015-11-23 Thread Nuwan Dias
The error says "ssoEnabled" is not defined. Can you check if an old webapp is being added to the runtime via dep-sync maybe? Thanks, NuwanD. On Tue, Nov 24, 2015 at 12:33 PM, Malintha Adikari wrote: > Hi, > > I am getting following error while trying to add comment to an API

[Dev] [Automation] Add new users in Tests

2015-11-23 Thread Lakshani Gamage
Hi all, I'm trying to write some tests for app manager and I want to login to store with a non admin user. I updated automation.xml as below. admin admin

[Dev] WSO2 Committers += Thilini Cooray

2015-11-23 Thread Nuwan Dias
Hi, It is with great pleasure we welcome Thilini Cooray as a WSO2 Committer. @ Thilini, congratulations and keep up the good work! Thanks, NuwanD. -- Nuwan Dias Technical Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Geeth Munasinghe
What about the port? On Monday, November 23, 2015, Chamara Ariyarathne wrote: > So Geeth, my argument is even if there is a url re-write in the load > balancer, the carbon.xml HostName and MgtHostName value should be the > domain name which is exposed to outside world, > >

Re: [Dev] [Automation] Add new users in Tests

2015-11-23 Thread Lakshani Gamage
Thanks Irham. It works. Regards, Lakshani. On Mon, Nov 23, 2015 at 9:38 PM, Irham Iqbal wrote: > Hi Lakshani, > > You need to this extension to populate user > org.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension. > > you will have the following inside

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Milan Perera
Hi ​Chamara​ , Today we found out that even when the Host Names are configured in the > carbonl.xml to be server's identified domain name, the QR code which is > generated while device registration, uses the host ip address which is > picked up from nowhere. > ​ Actually this IP is taking from

Re: [Dev] Http Servlet forwarding issue

2015-11-23 Thread Harsha Thirimanna
I think, both samlsso and commonauth behave as separate web context. If that is true then the tomcat by default block to access across the context . to allow that we have to enable it in tomcat level. I don't think we can do it in here. AFAIK Only think you can do is redirecting. On Nov 23, 2015

[Dev] [IS] Retrieve all permissions and actions of a user using admin services

2015-11-23 Thread Sajith Ariyarathna
Hi IS team, Is it possible to do $subject? I have the username, domain and tenant ID of the user. Thanks. -- Sajith Ariyarathna Software Engineer; WSO2, Inc.; http://wso2.com/ mobile: +94 77 6602284, +94 71 3951048 ___ Dev mailing list Dev@wso2.org

Re: [Dev] [Automation] Add new users in Tests

2015-11-23 Thread Hemika Kodikara
Hi Lakshani, Can you check whether the user has enough permissions ? Like login and etc. This is just a hunch. Regards, Hemika Hemika Kodikara Software Engineer WSO2 Inc. lean . enterprise . middleware http://wso2.com Mobile : +9477762 On Mon, Nov 23, 2015 at 10:59 AM, Lakshani Gamage

Re: [Dev] [Automation] Add new users in Tests

2015-11-23 Thread Irham Iqbal
Hi Lakshani, You need to this extension to populate user org.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension. you will have the following inside extentionClasses under platformExecutionManager as below.