Re: [Dev] WSO2 Docker images layered composition

2016-06-24 Thread Akila Ravihansa Perera
Hi, I've merged the PR [1] which introduces wso2base image. This base image will include packages that were previously installed from Puppet (zip and unzip), and those are removed from Puppet/Hiera side. With that we should be able to build WSO2 Docker images in offline mode. wso2base image is pu

[Dev] WSO2 Dashboard Server 2.1.0-M3 Released!

2016-06-24 Thread Sinthuja Ragendran
WSO2 Dashboard Server 2.1.0-M3 Released! WSO2 Dashboard Server team is pleased to announce the release of WSO2 Dashboard Server 2.1.0 Milestone 3. This release comes with the following bug fixes and features. You can download the distribution from [1]. Bug [UES-924] - In drill down dashboards (pu

Re: [Dev] GSoC2016-Contact Development Team Feature

2016-06-24 Thread Nathiesha Maddage
Hi all, This is the list of external libraries I have added to the project. Pleases let me know if they satisfy the licience requirements. commons-codec-1.9.jar json-simple.jar java-mail-1.4.4.jar com.sun.net.ssl.jar Thanks and regards Nathiesha On Wed, Jun 22, 2016 at 9:23 AM, Nathiesha Madda

Re: [Dev] [GSOC 16] Initial Project Progress

2016-06-24 Thread Imesh Gunaratne
On Fri, Jun 24, 2016 at 10:43 PM, Akila Ravihansa Perera wrote: > Hi Osura, > > I still see some issues in the code. > > 1. Make sure to use consts when appropriate [1] > 2. Where do you use tenantId [2] ? > 3. Use the actual parameter key in the error message [3] instead of hard > coding it > 4.

Re: [Dev] [GSOC 16] Initial Project Progress

2016-06-24 Thread Akila Ravihansa Perera
Hi Osura, I still see some issues in the code. 1. Make sure to use consts when appropriate [1] 2. Where do you use tenantId [2] ? 3. Use the actual parameter key in the error message [3] instead of hard coding it 4. You need to adhere to max line len of 120 chars. I see this standard being violat

Re: [Dev] Clarification on closing database connections when using DAO Manager

2016-06-24 Thread Samith Dassanayake
Hi Sabra, IMHO I think we should close the db connection in the Dao Manager. That way Dao manager has the control over the transactions and we can implement fine grained Dao Classes. Regards, Samith On Thu, Jun 23, 2016 at 10:28 PM, Danushka Fernando wrote: > Ping > > Thanks & Regards > Danush

Re: [Dev] [C5] How do we get IP address of the Carbon Server?

2016-06-24 Thread Manuranga Perera
Yes, this will work regardless; since Host header is clients way of saying to the server "this is the name I used to reach you". So it is granted to reach the server from client, regardless of server IP bindings/ client proxies/ load balancers. Places it will not work: 1) Non HTTP flows - Can't us

Re: [Dev] [UUF] Convert a timestamp in long format to readable format in HBS.

2016-06-24 Thread Manuranga Perera
Hi Hemika, Converting from long to string should happen on client side. Otherwise we will display times in server time zone, which is not useful. You should always record time in long UTC and send to the client in long. UTC to current time-zone conversion should happen at client as follows. var d

Re: [Dev] [C5] How do we get IP address of the Carbon Server?

2016-06-24 Thread Isuru Haththotuwa
Hi Manu, On Fri, Jun 24, 2016 at 7:33 PM, Manuranga Perera wrote: > Having server IP/Hostname in configuration/kernel is a mistake we have > done in C4. This makes it harder to setup load balances since we have to do > more configuration. It's also confusing when same server is in multiple > net

Re: [Dev] [C5] How do we get IP address of the Carbon Server?

2016-06-24 Thread Manuranga Perera
Having server IP/Hostname in configuration/kernel is a mistake we have done in C4. This makes it harder to setup load balances since we have to do more configuration. It's also confusing when same server is in multiple networks and therefore have multiple IPs. Best thing we should do is to use the

Re: [Dev] [APIM 2.0] Revoked access and revoked refresh tokens returning with http response header

2016-06-24 Thread Nuwan Dias
Any idea why its bad? That jira doesn't clearly say why. It won't return anything in those headers if someone sends invalid values. So I'm wondering how it can be bad. The reason we use these return values is to clear the gateway cache. When the key manager refreshes a token, the Gateway doesn't k

Re: [Dev] [APIM 2.0] Revoked access and revoked refresh tokens returning with http response header

2016-06-24 Thread Aparna Karunarathna
Hi Nuwan, Kavitha was asking, RevokedAccessToken & RevokedRefreshToken are getting in the header because it was requested requirement by APIM team [1] ? Jira [1] says it's a bad implementation. So are we going to fix[2] ? [1] https://wso2.org/jira/browse/IDENTITY-4112 [2] https://wso2.org/jira/br

Re: [Dev] [C5] How do we get IP address of the Carbon Server?

2016-06-24 Thread Kishanthan Thangarajah
Since there is no transport level information at C5 kernel level, we can't add this to kernel. The relevant transport implementation should provide such information IMO. For example, netty based http implementation can provide information about the IP or Ports when server is ready serve requests.

Re: [Dev] [APIM 2.0] Revoked access and revoked refresh tokens returning with http response header

2016-06-24 Thread Nuwan Dias
Can you explain what the issue here is? You have raised the ticket as a bug but you've forgotten to describe what the bug actually is? On Fri, Jun 24, 2016 at 5:39 PM, Kavitha Subramaniyam wrote: > Hi apim team, > A jira has been raised to track this issue in [1] > > [1] https://wso2.org/jira/br

Re: [Dev] [APIM 2.0] Revoked access and revoked refresh tokens returning with http response header

2016-06-24 Thread Kavitha Subramaniyam
Hi apim team, A jira has been raised to track this issue in [1] [1] https://wso2.org/jira/browse/APIMANAGER-5098 Thanks, On Thu, Jun 23, 2016 at 6:31 PM, Kavitha Subramaniyam wrote: > Hi team, > Highly appreciate your update on this. > > Thanks, > > On Wed, Jun 22, 2016 at 2:28 PM, Kavitha Sub

Re: [Dev] [Carbon][IS][AppM] Kernel update to 4.4.6 in AppM gives ClassNotFoundException by opensaml_2.6.4.wso2v2

2016-06-24 Thread Kasun Bandara
Hi Dinuhsa, We will be releasing the required repositories on top of the kernel 4.4.6 release next week for the IS 5.3.0-M3. Along with that we have decided to release a component release for release-productis-5.2.0 branch as well, which you can use on top of kernel 4.4.6. (5.1.1 SNAPSHOT) Thanks

Re: [Dev] DASHBOARD: Bar chart isn't displaying results in expected manner

2016-06-24 Thread Tharik Kanaka
Hi Aneela, Apparently "logins" attribute is a String type. For bar charts the y axis needs to be linear scale that means you need to have an attribute type such as int, long, double and float. Regards, On Fri, Jun 24, 2016 at 11:57 AM, Aneela Safdar wrote: > Hi all, > > > I am using bar chart

Re: [Dev] Fixing APIMANAGER-4202 at carbon-mediation level

2016-06-24 Thread Uvindra Dias Jayasinha
Problem is the issue is intermittent so its difficult to verify but I will test the fix out and send a PR On 24 June 2016 at 13:52, Chanaka Fernando wrote: > Hi Uvindra, > > Could you please verify the fix and send us a PR so that we can merge it? > > On Fri, Jun 24, 2016 at 1:02 PM, Uvindra Dia

Re: [Dev] Custom configuration of gadget in dashboard

2016-06-24 Thread Dilini Muthumala
Hi Aneela, When creating a Line Chart, String attributes will not be listed in the drop-down list of x-axis. (but for bar charts, String attributes are allowed). Could this be the reason? Thanks, Dilini On Fri, Jun 24, 2016 at 3:07 AM, Aneela Safdar wrote: > Hi all, > > I am trying to use a u

[Dev] [C5] How do we get IP address of the Carbon Server?

2016-06-24 Thread Rasika Perera
Hi All, How do we retrieve $subject that the server has binded? In 4.4.x it was available via java system property "bind.address" ? There are use-cases such as in IoTS we need to provide server ip address for downloading device agents. "localhost" would not work when the invoker is remote. ​Than

Re: [Dev] [Kernel] Why don't we support "##" on web app names?

2016-06-24 Thread Thilini Cooray
Hi Kalpa, Thanks for pointing it out. AFAIU what we should do is searching for invalid # sequences such as "###". Because a WAR names such as api#v1.0##1.war is accepted by our underlying Tomcat and that approach is highly helpful when we want to indicate the correct version number of a webapp wi

Re: [Dev] Possible bottleneck in the updatePermissionTree() method of user.core.authorization.PermissionTree class

2016-06-24 Thread Chalitha Kulathunga
+ IS team members On Fri, Jun 24, 2016 at 1:37 PM, Chalitha Kulathunga wrote: > Hi kernal team, > > When multiple threads access updatePermissionTree() method for the first > time, they all will end up in the else block. Those threads will call the > updatePermissionTreeFromDB() method one by on

Re: [Dev] Fixing APIMANAGER-4202 at carbon-mediation level

2016-06-24 Thread Chanaka Fernando
Hi Uvindra, Could you please verify the fix and send us a PR so that we can merge it? On Fri, Jun 24, 2016 at 1:02 PM, Uvindra Dias Jayasinha wrote: > Hi All, > > The original issue encountered in [1] was fixed via the resolution of [2]. > > But now this has been reopened and in this case the s

[Dev] Possible bottleneck in the updatePermissionTree() method of user.core.authorization.PermissionTree class

2016-06-24 Thread Chalitha Kulathunga
Hi kernal team, When multiple threads access updatePermissionTree() method for the first time, they all will end up in the else block. Those threads will call the updatePermissionTreeFromDB() method one by one. Seems like this is creating a bottleneck in the execution flow. void updatePermissionT

Re: [Dev] [Kernel] Why don't we support "##" on web app names?

2016-06-24 Thread Kalpa Welivitigoda
Hi Thilini, I guess it is related to https://wso2.org/jira/browse/WSAS-1350 On Fri, Jun 24, 2016 at 1:01 PM, Thilini Cooray wrote: > Hi team, > > Why have we specifically captured web app names with version separator > ("##") as not supported [1] ? > > AFAIU Apache Tomcat supports this property

[Dev] Fixing APIMANAGER-4202 at carbon-mediation level

2016-06-24 Thread Uvindra Dias Jayasinha
Hi All, The original issue encountered in [1] was fixed via the resolution of [2]. But now this has been reopened and in this case the same issue has got exposed, but on this occasion the call stack is different. This is happening when setting the tenant info at [3]. So we need to apply the same

[Dev] [ESB][4.9.0] Error is starting worker node in clustered setup.

2016-06-24 Thread Anuruddha Liyanarachchi
Hi, I am observing the same error[2] reported in JIRA [1] with oracle jdk-7u80. Is this bug fixed in the released 4.9.0 pack ? [1] https://wso2.org/jira/browse/ESBJAVA-4169 [2] TID: [-1234] [] [2016-06-24 06:46:36,828] INFO {org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl} - Task serv

[Dev] [Kernel] Why don't we support "##" on web app names?

2016-06-24 Thread Thilini Cooray
Hi team, Why have we specifically captured web app names with version separator ("##") as not supported [1] ? AFAIU Apache Tomcat supports this property [2]. This property is useful when we want to provide the versioning on the WAR name but do not need to change the web app context (Ex : patch re

Re: [Dev] [Carbon][IS][AppM] Kernel update to 4.4.6 in AppM gives ClassNotFoundException by opensaml_2.6.4.wso2v2

2016-06-24 Thread Dinusha Senanayaka
Hi Kasun, Please find the identity features used in AppM. org.wso2.carbon.identity:org.wso2.carbon.security.mgt.feature:${carbon.identity.version} org.wso2.carbon.identity:org.wso2.carbon.identity.application.mgt.feature:${carbon.identity.version} org.wso2.carbon.identity:org.wso2.carbon.user.m

Re: [Dev] [Carbon][IS][AppM] Kernel update to 4.4.6 in AppM gives ClassNotFoundException by opensaml_2.6.4.wso2v2

2016-06-24 Thread Kasun Bandara
Hi Dinusha, Can you please specify the identity features you are using ?. opensaml orbit bundles with other components such as identity-agent-sso [1] as well. Hence wanted to know the list of identity features used by AppM for a repository release. [1] https://github.com/wso2-extensions/identity

[Dev] JSON Path support for Mediators from Developer Studio

2016-06-24 Thread Sohani Weerasinghe
Hi All, As per discussed at [1], since json path support was not facilitated in Call- Template and Validate mediators, I have made changes to support json path for those two mediators from DevS side. Since json path was already supported in switch and filter mediators, AFAIK DevS is now compatibl