[Dev] Pass build-time arguments when building Docker images for PPaaS cartridges

2015-10-07 Thread Akila Ravihansa Perera
Hi, Currently PCA_VERSION and PPAAS_VERSION parameters are hard-coded in Dockerfiles of cartridge images hence these files need to be updated for each release manually. I'm proposing to use build-time variables when building the Docker images to resolve this. Fortunately, Docker has introduced

Re: [Dev] [DAS] Performing SQL COUNT() operation through luciene

2015-10-07 Thread Gimantha Bandara
I tested COUNT aggregate Function locally and it works as expected. It works without setting aggregateLevel and parentPath also. Can you try with your request payload in a REST client (may be Chrome Advanced REST client) and see if you get Internal Error? if you get the internal error code 500 and

Re: [Dev] Is there any method which can checks the resource exists or not in registry

2015-10-07 Thread Rajeenthini Satkunam
Hi, @kasun @rajith @denuwanthi @isuruwan Thanks you for your prompt reply.I have tried the way which isuruwan mentiond above.It is working fine now. On Wed, Oct 7, 2015 at 11:52 AM, Isuruwan Herath wrote: > Also if you're using ResourceAdminServiceClient, this [1] is an

Re: [Dev] Is there any method which can checks the resource exists or not in registry

2015-10-07 Thread Isuruwan Herath
Also if you're using ResourceAdminServiceClient, this [1] is an example how resource exists is checked in G-Reg tests. [1]

Re: [Dev] Table 'is510reg.REG_LOG' doesn't exist" error was thrown when starting the server

2015-10-07 Thread Aparna Karunarathna
Hi Isuru, To troubleshoot the wso2.war deploying issue, I have dropped and created databases several times. Since this is intermittent issue didn't try to troubleshoot it much. We have reported this because we got the same issue on two different databases(mssql 2012 & mysql 5.6.25 and OSs(Linux,

Re: [Dev] Please review and merge

2015-10-07 Thread Sajith Abeywardhana
The pack I used for the testing is one commit behind and due to that it didn't render correctly. When we tested with the missing commit we got Ayesha's mentioned issue and we fixed it. *Sajith Abeywardhana* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo

Re: [Dev] [DEV] [IS] [user-mgt] Clarification for Bulk Import Users

2015-10-07 Thread Damith Senanayake
Hi Kavitha, As per the jira pointed out by you (IDENTITY-), we have incorporated a change to allow bulk user import for other user stores as well. However, this required an API change in the carbon kernel so we're waiting for the 4.4.2 release to support it in carbon-identity. This will be

Re: [Dev] Table 'is510reg.REG_LOG' doesn't exist" error was thrown when starting the server

2015-10-07 Thread Aparna Karunarathna
Hi Isuru / Isuruwan, I was able to reproduce the issue now, that Table exists. ERROR {org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO} - Failed to update log batch records . Table 'is510reg.REG_LOG' doesn't exist java.sql.BatchUpdateException: Table 'is510reg.REG_LOG' doesn't exist at

Re: [Dev] [IS] XACML error : DOM of request element can not be created from String

2015-10-07 Thread Harsha Thirimanna
Yes, I just mentioned that jira fixed not yours one even though it is the same error. On Oct 8, 2015 8:41 AM, "Lakshani Gamage" wrote: > Hi Harsha, > > I got the same issue in tryit tool of the admin console too. > > Thanks, > > On Thu, Oct 8, 2015 at 8:28 AM, Harsha

Re: [Dev] [jaggery] product-jaggery build fail due to version mismatch

2015-10-07 Thread Lalanke Athauda
Hi Madhawa, Thanks for your response, I updated carbon registry version as follows but it gives the same error. *4.4.3* On Wed, Oct 7, 2015 at 7:26 PM, Madhawa Gunasekara wrote: > Hi Lalanke, > > Can you update carbon registry version to a newer version and try. > hope

Re: [Dev] Build failed in Jenkins: private-paas-cartridges #26

2015-10-07 Thread Imesh Gunaratne
Hi Maheshika, We are still seeing an issue in the private-paas-cartridges build, may be something to do with the snapshot maven deploy process: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact org.wso2.ppaas.cartridges:

Re: [Dev] [IS] XACML error : DOM of request element can not be created from String

2015-10-07 Thread Godwin Amila Shrimal
Hi Lakshani, Can you pull the latest source from git, build the pack again and try this ? since there was a bug and we fixed it. Thanks Godwin On Thu, Oct 8, 2015 at 7:59 AM, Lakshani Gamage wrote: > Hi Devs, > > I defined following XACML policy[1] from latest

Re: [Dev] [IS] XACML error : DOM of request element can not be created from String

2015-10-07 Thread Harsha Thirimanna
Mentioned jira was fixed an issue that is in tryout tool of the admin console. Your issue should be a different one and need to be check on that. Adding :Godwin On Oct 8, 2015 8:00 AM, "Lakshani Gamage" wrote: > Hi Devs, > > I defined following XACML policy[1] from latest

Re: [Dev] [IS] XACML error : DOM of request element can not be created from String

2015-10-07 Thread Lakshani Gamage
Hi Harsha, I got the same issue in tryit tool of the admin console too. Thanks, On Thu, Oct 8, 2015 at 8:28 AM, Harsha Thirimanna wrote: > Mentioned jira was fixed an issue that is in tryout tool of the admin > console. Your issue should be a different one and need to be

Re: [Dev] [jaggery] product-jaggery build fail due to version mismatch

2015-10-07 Thread Danesh Kuruppu
Hi Lalanke, Latest carbon-registry version is 4.4.9. solr version is 5.2.1.wso2v1. but solr dependency is also changed as follows, > org.wso2.orbit.org.apache.solr > solr > ${solr.wso2.version} > > Please check with the

Re: [Dev] Build failed in Jenkins: private-paas-cartridges #26

2015-10-07 Thread Imesh Gunaratne
Yes thanks Maheshika! At the time the build was triggered one of the artifact versions were set to 4.1.0-beta. That was the reason for this build failure. https://github.com/wso2/private-paas-cartridges/commit/118eca2984a70d6864be983a61613293f7e26eea Thanks On Thu, Oct 8, 2015 at 9:32 AM, Imesh

Re: [Dev] [DEV] [IS] [user-mgt] Clarification for Bulk Import Users

2015-10-07 Thread Kavitha Subramaniyam
Hi Damith, Thanks you for the infor and clarification. A jira has been raised as improvement [1] to track this feature for future implementation. [1] https://wso2.org/jira/browse/IDENTITY-3771 Thanks & Kind regards, On Wed, Oct 7, 2015 at 12:30 PM, Damith Senanayake wrote:

Re: [Dev] Build failed in Jenkins: private-paas-cartridges #26

2015-10-07 Thread Maheshika Goonetilleke
Hi Imesh As discussed, triggered another build. On Thu, Oct 8, 2015 at 10:03 AM, Imesh Gunaratne wrote: > Yes thanks Maheshika! At the time the build was triggered one of the > artifact versions were set to 4.1.0-beta. That was the reason for this > build failure. > > >

[Dev] Change app title in sso app

2015-10-07 Thread Charitha Goonetilleke
Hi, I need to do $subject in IoT Server, because user sign in page still showing 'Enterprise Store' as app title. Also we want to customize few thing in that registration page. So is there any specific ways to do that like we are doing it in store extensions? -- *Charitha Goonetilleke* Software

Re: [Dev] [PPaaS] PPaaS 4.1.0 installer

2015-10-07 Thread Imesh Gunaratne
[+ Suho & Anjana] On Wed, Oct 7, 2015 at 10:37 PM, Gayan Gunarathne wrote: > Yeah. We need to consider external CEP/DAS. > > Installer will ask whether user need to setup CEP/DAS as a separate > service? If user input as it needs to be external service, installer will >

[Dev] [IS] XACML error : DOM of request element can not be created from String

2015-10-07 Thread Lakshani Gamage
Hi Devs, I defined following XACML policy[1] from latest IS51.0._SNAPSHOT server. I sent a XACML request[2] to validate against that policy from SoapUI. I used "getDecision" operation of "EntitlementService" .But I didn't get the expected response. The response I got is in [3]. But this jira[4]

Re: [Dev] Build failed in Jenkins: private-paas-cartridges #26

2015-10-07 Thread Imesh Gunaratne
Thanks Maheshika! On Thu, Oct 8, 2015 at 10:06 AM, Maheshika Goonetilleke wrote: > Hi Imesh > > As discussed, triggered another build. > > On Thu, Oct 8, 2015 at 10:03 AM, Imesh Gunaratne wrote: > >> Yes thanks Maheshika! At the time the build was triggered

Re: [Dev] [jaggery] product-jaggery build fail due to version mismatch

2015-10-07 Thread Dinithi De Silva
Hi Lalanke, In the error message it says "requires 'package org.apache.solr.client.solrj [5.0.0,5.1.0)' but it could not be found". The mentioned registry version depends on solr version 5.0.0.wso2v1. Check [1]. And the jaggery version uses the same 5.0.0.wso2v1. Check [2]. Make the changes

Re: [Dev] Table 'is510reg.REG_LOG' doesn't exist" error was thrown when starting the server

2015-10-07 Thread Isuruwan Herath
Hi Aparna, Shall we have a quick look at this in the QA set up? Thanks! On Wed, Oct 7, 2015 at 3:04 PM, Isura Karunaratne wrote: > Registry team, > > Do you have any input on this issue ? > > > Thanks > Isura > On Wed, Oct 7, 2015 at 12:55 PM, Aparna Karunarathna

Re: [Dev] Table 'is510reg.REG_LOG' doesn't exist" error was thrown when starting the server

2015-10-07 Thread Aparna Karunarathna
Sure, will have a quick look now. Regards, Aparna. On Wed, Oct 7, 2015 at 3:14 PM, Isuruwan Herath wrote: > Hi Aparna, > > Shall we have a quick look at this in the QA set up? > > Thanks! > > On Wed, Oct 7, 2015 at 3:04 PM, Isura Karunaratne wrote: > >>

Re: [Dev] ESB 4.9.0 - NPE occurs in tenant APIs with same context and different versions

2015-10-07 Thread Nuwan Dias
Hi Chanaka, Thanks for looking into this. Hope we can get it merged to the kernel soon :). Thanks, NuwanD. On Wed, Oct 7, 2015 at 5:19 PM, Chanaka Fernando wrote: > Hi NuwanD, > > I have found the root cause for this issue. As mentioned in [1], this > error is coming from

[Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2015-10-07 Thread Sachith Punchihewa
Hi, I am currently using a locally build of IS Server from the latest code.When i try to get a OAuth Access token via a curl execution i am getting an error. Curl Format used : *curl-k-d*** > *"grant_type=password=userNamepasswork&=**passWord* >

Re: [Dev] Table 'is510reg.REG_LOG' doesn't exist" error was thrown when starting the server

2015-10-07 Thread Isura Karunaratne
Registry team, Do you have any input on this issue ? Thanks Isura On Wed, Oct 7, 2015 at 12:55 PM, Aparna Karunarathna wrote: > Hi Isuru / Isuruwan, > > I was able to reproduce the issue now, that Table exists. > > ERROR {org.wso2.carbon.registry.core.jdbc.dao.JDBCLogsDAO} -

Re: [Dev] ESB 4.9.0 - NPE occurs in tenant APIs with same context and different versions

2015-10-07 Thread Chanaka Fernando
Hi NuwanD, I have found the root cause for this issue. As mentioned in [1], this error is coming from kernel level and that has been propagated to the synapse level. Actual root cause is mentioned below. [2015-10-07 17:13:38,135] ERROR - ServerWorker Error processing GET reguest for :

Re: [Dev] [ESB] EmptyStackException when resuming a paused message processor

2015-10-07 Thread Chanaka Fernando
Hi Sameera/KasunG, I have debugged the code to find the root cause for this empty stack exception. This is causing several other issues at the ESB layer. What actually happens is that inside the MultitenantMessageReceiver.processRequest() method, we have the following code segment. try {

Re: [Dev] ESB 4.9.0 - NPE occurs in tenant APIs with same context and different versions

2015-10-07 Thread Chanaka Fernando
Hi Nuwan, Here is the mail thread. [Dev][ESB] EmptyStackException when resuming a paused message processor On Wed, Oct 7, 2015 at 5:22 PM, Nuwan Dias wrote: > Hi Chanaka, > > Thanks for looking into this. Hope we can get it merged to the kernel soon > :). > > Thanks, > NuwanD.

Re: [Dev] WSO2ESB and MQTT

2015-10-07 Thread Imesh Gunaratne
[+ WSO2 Dev] Hi Marco, I have copied this mail to WSO2 Dev, please find my comments inline: On Tue, Oct 6, 2015 at 11:28 PM, Monaco Marco wrote: > > > firstly I would like to notify you that I found some issues on DAS > Cartridge template modules. > > In the file >

Re: [Dev] WSO2ESB and MQTT

2015-10-07 Thread Chanika Geeganage
Hi Marco, On Wed, Oct 7, 2015 at 5:36 PM, Imesh Gunaratne wrote: > [+ WSO2 Dev] > > Hi Marco, > > I have copied this mail to WSO2 Dev, please find my comments inline: > > On Tue, Oct 6, 2015 at 11:28 PM, Monaco Marco > wrote: >> >> >> firstly I would

Re: [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2015-10-07 Thread Sachith Punchihewa
Hi All, @Pushpalanka I used that then it gives me an error indicating "Client Authentication failed". This issues was not there in the IS 5.0.0. I did a debugging and found the issue. I have send a pull request regarding this. Thanks and Regards. Kamidu Sachith Punchihewa *Software Engineer*

[Dev] [Carbon]Can't login in to management console when both proxycontextpath and webcontextroot is used together

2015-10-07 Thread Hasanthi Purnima Dissanayake
Hi, I configured both ProxyContextPath and WebContextRoot together in carbon.xml and tried to log in to the management console. But it did not redirect to the index page even I got success information in the console as below. INFO{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -

[Dev] Merge PR 372 to wso2-synapse

2015-10-07 Thread Nuwan Dias
Hi, Could you please review and merge the PR [1] to wso2-synapse. This is a fix for getting an additional '/' character in the Location header. [1] - https://github.com/wso2/wso2-synapse/pull/372 Thanks, NuwanD. -- Nuwan Dias Technical Lead - WSO2, Inc. http://wso2.com email :

Re: [Dev] [jaggery] product-jaggery build fail due to version mismatch

2015-10-07 Thread Lalanke Athauda
Hi, I changed the the pom.xml file in product-jaggeryjs as follows, *4.4.1* 4.3.4 4.3.0 [4.3.0, 4.4.0) *4.5.3* 4.3.3 *0.10.0* 0.9.0-SNAPSHOT *0.10.0* - *5.0.0* - *1.4.1-SNAPSHOT* When I build, it fails and give this error. Installation failed.

Re: [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2015-10-07 Thread Pushpalanka Jayawardhana
Hi, Optionally, can you try with below command format and check, curl --user Client_Id:Client_Secret -k -d "grant_type=password=admin=admin" -H "Content-Type:application/x-www-form-urlencoded" https://localhost:9443/oauth2/token Thanks, Pushpalanka. -- Pushpalanka Jayawardhana,

[Dev] [AF] Maven war plugin packs undeclared jars into the artifact

2015-10-07 Thread Kasun De Silva
I'm currently working on [1], and the issue can be describe as below. AF/AppCloud provides maven webapp archetype with preconfigured maven war plugin, and we'll get following archetype structure, ├── pom.xml ├── src │ └── main │ ├── resources │ └── webapp │ ├── index.jsp

[Dev] [IS] [Carbon-jira] [jira] (IDENTITY-3767) OAuthClientException when retrieving an OAuth Token

2015-10-07 Thread Sachith Punchihewa
Hi IS Team, The issue in the given Jira [1] is fixed and the pull request[2] in mention in a comment. Please review and merge. [1]. https://wso2.org/jira/browse/IDENTITY-3767 [2]. https://github.com/wso2/carbon-identity/pull/1122 Thanks and Regards. Kamidu Sachith Punchihewa *Software Engineer*

Re: [Dev] [jaggery] product-jaggery build fail due to version mismatch

2015-10-07 Thread Madhawa Gunasekara
Hi Lalanke, Can you update carbon registry version to a newer version and try. hope this will solve your issue. Thanks, Madhawa On Wed, Oct 7, 2015 at 6:58 PM, Lalanke Athauda wrote: > Hi, > I changed the the pom.xml file in product-jaggeryjs as follows, > > *4.4.1* > 4.3.4

Re: [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2015-10-07 Thread Malithi Edirisinghe
Hi Sachith, Here EndpointUtil.extractCredentialsFromAuthzHeader() method expects the value of the 'Authorization' header. Please refer [1]. Here the value of the 'Authorization' header is passed to the method which is directly taken from the servlet request. And when decoding the header it

[Dev] [AppFactory] How to maintain Docker images used in App Factory

2015-10-07 Thread Punnadi Gunarathna
Hi All, Shall we have our own space for AppFactory in DockerHub and upload the WSO2AS image and the other images we have created so far with custom changes? I think we will can use the existing Dockerfile [1] in WSO2AS (and for other image types also) and we just have to change the values passed

Re: [Dev] [AppFactory] How to maintain Docker images used in App Factory

2015-10-07 Thread Amalka Subasinghe
+1 On Wed, Oct 7, 2015 at 7:49 PM, Punnadi Gunarathna wrote: > Hi All, > > Shall we have our own space for AppFactory in DockerHub and upload the > WSO2AS image and the other images we have created so far with custom > changes? > I think we will can use the existing Dockerfile

Re: [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2015-10-07 Thread Malithi Edirisinghe
Hi Hasintha, I don't see any usecase for using multiple authorization header values here. This is used for OAuth Client Authentication [1]. There we don't have multiple client credentials right. [1] https://tools.ietf.org/html/rfc6749#section-2.3 On Wed, Oct 7, 2015 at 10:21 PM, Hasintha

Re: [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2015-10-07 Thread Hasintha Indrajee
We have the same logic in few places to extract authorization header (Not only in Oauth). On Wed, Oct 7, 2015 at 10:59 PM, Malithi Edirisinghe wrote: > Hi Hasintha, > > I don't see any usecase for using multiple authorization header values > here. This is used for OAuth

Re: [Dev] Please review and merge

2015-10-07 Thread Udara Rathnayake
On Wed, Oct 7, 2015 at 11:14 AM, Ayesha Dissanayaka wrote: > Hi Sajith, > > I am referring to user not logged in sate. In that case if we directly > access > https://10.100.7.19:9443/portal/dashboards/ano-db01/landing?isAnonView=false > URL then we will see the default view. > >

Re: [Dev] Table 'is510reg.REG_LOG' doesn't exist" error was thrown when starting the server

2015-10-07 Thread Isura Karunaratne
Adding Aparna On Tue, Oct 6, 2015 at 10:41 PM, Isuruwan Herath wrote: > Hi Isura, > > Is it possible to verify that in QA DB, REG_LOG table has been created in > *is510reg* database and access granted to the DB user which is configured > in IS node, to the same database? >

Re: [Dev] Is there any method which can checks the resource exists or not in registry

2015-10-07 Thread Denuwanthi De Silva
Hi Rajeenthini, You need to pass an 'AutomationContext' object to 'getWSRegistry' method. Can you verify the method 'getUesContext' returns a proper AutomationContext? Ex of defining an automation context fro greg product AutomationContext context = new AutomationContext("GREG",

Re: [Dev] [Kernel 4.4.2 Release] CARBON-15450 Updating OpenSAML version to 2.6.4

2015-10-07 Thread Hasintha Indrajee
Hi, We found some issues with integrating new version of opensaml. Therefore we downgraded opensaml version back to 2.4.1. Therefore we don't need this to be fixed in 4.4.2 release. On Tue, Oct 6, 2015 at 11:01 AM, Maduranga Siriwardena wrote: > Hi Amaya, > > We have meant

[Dev] [VOTE] Release WSO2 Developer Studio 3.8.0 RC 2

2015-10-07 Thread Kavith Lokuhewage
Hi Devs, Please vote for the second release candidate of WSO2 Developer Studio 3.8.0. This release fixes following issues. https://wso2.org/jira/issues/?filter=12436 Please download, test and vote. Vote will be open for 72 hours or as needed. *Sources, binary distribution and pre-installed

Re: [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2015-10-07 Thread Sachith Punchihewa
@Malithi, Thank you very much for the detailed explanation.Yes when i was debugging the method extract* "Authorization:Basic xx" -H "Content-Type: application/x-www-form-urlencoded"* and then split it.thanks again for the explanation. Cheers. Kamidu Sachith Punchihewa *Software

Re: [Dev] [AppFactory] How to maintain Docker images used in App Factory

2015-10-07 Thread Danushka Fernando
I guess in some meeting we discussed to do it right? So +1. We can release the image to dockerhub when we release AF. Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Oct 7, 2015 at 8:43 PM, Amalka Subasinghe

Re: [Dev] [Kernel 4.4.2 Release] CARBON-15450 Updating OpenSAML version to 2.6.4

2015-10-07 Thread Manuri Amaya Perera
Hi Hasintha, Noted. Thank you. On Wed, Oct 7, 2015 at 11:22 PM, Hasintha Indrajee wrote: > Hi, > > We found some issues with integrating new version of opensaml. Therefore > we downgraded opensaml version back to 2.4.1. Therefore we don't need this > to be fixed in 4.4.2

Re: [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server.

2015-10-07 Thread Hasintha Indrajee
Hi Malithi, What happens if we include multiple authorization header values in the same header ? As [1] says we can use comma separated values for the same header values. Is there a valid use case where we can use two authorization header values ?. If so we need to handle this within the logic

Re: [Dev] [AppFactory] How to maintain Docker images used in App Factory

2015-10-07 Thread Gayan Gunarathne
Hi Punnadi, Can't we use existing WSO2 docker images that we already have? As for your docker file , it is same as PPaaS. What are the customization we have done for AppFactory? My concern is we already have set of docker images in WSO2 docker hub for WSO2 products[1].So if we have another set

Re: [Dev] [AppFactory] How to maintain Docker images used in App Factory

2015-10-07 Thread Danushka Fernando
Hi Gayan For AF deployment we need to add some dropins to AS and also we need to mount some registries as well. We cannot use AS fresh pack as it is so as for my understanding we cannot use the fresh docker images. So for AF we need a separate set of docker images and they shouldn't conflict with

Re: [Dev] [PPaaS] PPaaS 4.1.0 installer

2015-10-07 Thread Gayan Gunarathne
Yeah. We need to consider external CEP/DAS. Installer will ask whether user need to setup CEP/DAS as a separate service? If user input as it needs to be external service, installer will configure the CEP/DAS as external services. Thanks, Gayan On Wed, Oct 7, 2015 at 2:26 AM, Lasindu Charith

Re: [Dev] [IS] [Carbon-jira] [jira] (IDENTITY-3767) OAuthClientException when retrieving an OAuth Token

2015-10-07 Thread Hasintha Indrajee
Hi Sachith, We previously had this issue which you have raised in mail thread [1]. We had a discussion on this previously. Please refer the comment thread on pull request [1]. [1] [Dev] [DEV][IS] Getting an error when try to rtriw a Oauth token from IS server [2]