Re: [Dev] OSGi bundle in `RESOLVED` state until manually activated

2019-02-13 Thread KasunG Gajasinghe
Can you check the bundles.info to see what's the start level of this bundle is? On Wed, Feb 13, 2019 at 3:46 PM Kaveen Rodrigo wrote: > Hey all, > > I'm having a bit of mind-bending issue, we have a common OSGi module that > is running on both WSO2 IS and WSO2 APIM, the module consumes common >

Re: [Dev] WSO2 product with MYSQL 8

2018-11-15 Thread KasunG Gajasinghe
I don't think we did. What's the adoption of MySQL 8? Has it come by default in any Linux distros? On Thu, Nov 15, 2018 at 4:41 PM Ishara Cooray wrote: > Hi, > > Have we tested the $Subject? > > *Mysql 8* has major changes such as [1], [2] and that leads to some > errors running wso2 products

Re: [Dev] Communication Error between Active and Passive nodes.

2018-10-01 Thread KasunG Gajasinghe
Hi Vasanth, Do you know whether this is a product bug, or an issue in the test case level? On Mon, Oct 1, 2018 at 6:20 PM Vasanthan Sivalingam wrote: > Hi All, > > Thanks for the information. Now the communication between Active and > passive nodes are successfully made. > Currently i am

Re: [Dev] [Architecture] [VOTE] Release WSO2 Identity Server 5.7.0 RC3

2018-09-14 Thread KasunG Gajasinghe
Hi Pasindu, Sentha, On Fri, Sep 14, 2018 at 11:10 AM Pasindu Jayaweera wrote: > Hi all, > TestGrid team has executed integration-tests with the RC and please find > the effort in [1]. > We have observed bunch of test cases failing in our automated runs. > However when re-executing the failed

Re: [Dev] Upgrading C4 OSGi to support Java 10

2018-09-03 Thread KasunG Gajasinghe
Components.xml >> >> I have tried this with multiple scr plugin versions and with and without >> upgrading the equinox version. >> >> No information is available on this issue in the community. Nobody seems >> to be using java 10 for OSGI stuff. >> I have asked ab

Re: [Dev] Upgrading C4 OSGi to support Java 10

2018-08-27 Thread KasunG Gajasinghe
Why a java.* package classes are added to our source tree? carbon-kernel/core/org.wso2.carbon.registry.xboot/src/main/java/java/sql/SQLXML.java On Mon, Aug 27, 2018 at 1:13 PM Tharindu Wijewardane wrote: > > Thanks Praminda. > I used sisu_ artifacts to build carbon p2 plugin. > > As for the

Re: [Dev] [APIM 2.x.y] Can I plug a Custom File System Provider ?

2018-08-24 Thread KasunG Gajasinghe
Hi Youcef, On Fri, Aug 24, 2018 at 5:11 PM Youcef HILEM wrote: > Thank you very much. > We will therfore implement two solutions: > - One based on S3 with a Cassandra back-end > (https://github.com/exoscale/pithos) > Interesting. I'm curious why not use AWS S3 for storage as well? Data

Re: [Dev] [APIM 2.x.y] Can I plug a Custom File System Provider ?

2018-08-24 Thread KasunG Gajasinghe
Here it is - https://github.com/wso2/carbon-commons/blob/master/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer/src/main/java/org/wso2/carbon/deployment/synchronizer/ArtifactRepository.java A reference impl can be found here -

[Dev] WSO2 Committers += Asma Jabir

2018-05-17 Thread KasunG Gajasinghe
Hi all, It's my pleasure to announce Asma Jabir as a WSO2 Committer. She has been a valuable contributor to WSO2 Testgrid and Carbon platform. Congratulations Asma and keep up the good work!!. Thanks, KasunG -- *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc. email: kasung AT spamfree

Re: [Dev] WSO2 DAS Analytics

2018-03-14 Thread KasunG Gajasinghe
/IS541/Configuring+the+Primary+User+Store On Wed, Mar 14, 2018 at 3:12 PM, Pendekal Sanketh < pendekal.sank...@bridgesgi.com> wrote: > Thank you, > > If there's any tutorial for that please do share. > ------ > *From:* KasunG Gajasinghe <kas...@wso2.

Re: [Dev] WSO2 DAS Analytics

2018-03-14 Thread KasunG Gajasinghe
if we can share the user store between > DAS and EI? > > > > -- > *From:* KasunG Gajasinghe <kas...@wso2.com> > *Sent:* Thursday, March 8, 2018 3:09 PM > *To:* Gihan Anuruddha > *Cc:* Yohanna Fernando; Pendekal Sanketh; WSO2 Developers' List > *Subject:* Re: [Dev] WSO2 DAS Analyt

Re: [Dev] WSO2 DAS Analytics

2018-03-08 Thread KasunG Gajasinghe
Hi Pendekal, Usage Plan Information only taken into consideration if you do a on-premise Stratos Cloud deployment. This is not the case for you. Therefore, you can disregard that part of the configuration. I think the usage plan should have been called something like 'default'. On Thu, Mar 8,

Re: [Dev] [OAuth2.0] [Token Binding] Need delimiter for security tokens

2017-11-20 Thread KasunG Gajasinghe
+dev On Tue, Nov 21, 2017 at 9:14 AM, Inthirakumaaran Tharmakulasingham < inthirakumaa...@wso2.com> wrote: > ya with bas64 it will look like > > Access-Token = BASE64ENCODE(SHA256-Hash(TokenBindingID) +

Re: [Dev] [OAuth2.0] [Token Binding] Need delimiter for security tokens

2017-11-20 Thread KasunG Gajasinghe
OK... So, following is the syntax right? I take it you base64 encode this as well? Access-Token = SHA256-Hash(TokenBindingID) +

[Dev] WSO2 Committers += Dinali Dabarera

2017-11-15 Thread KasunG Gajasinghe
Hi All, It's my pleasure to announce Dinali Dabarera as a WSO2 Committer. She has made a great contribution to IS by developing multiple features, and in recognition of her contribution, dedication and commitment she has been voted as a WSO2 committer. Congratulations Dinali and keep up the

Re: [Dev] Extending BCJSSE for Token binding

2017-11-13 Thread KasunG Gajasinghe
t; [3]https://github.com/bcgit/bc-java/issues/250 > > > > On Fri, Nov 10, 2017 at 8:34 AM, KasunG Gajasinghe <kas...@wso2.com> > wrote: > >> Hi Indra, >> >> Can you find out exactly what issues we faced before? I'm assuming it has >> some

Re: [Dev] Extending BCJSSE for Token binding

2017-11-09 Thread KasunG Gajasinghe
Hi Indra, Can you find out exactly what issues we faced before? I'm assuming it has something to do with jar signing. The work we are doing is not specific to wso2 but applies to entire Java community and bouncycastle users. So, our end goal should be get this merged into bouncycastle project.

Re: [Dev] How to mock the CarbonContext?

2017-10-10 Thread KasunG Gajasinghe
Please note that you need to set the carbon.home system property before initializing privilegedcarboncontext. System.setProperty("carbon.home", ); On Thu, Oct 5, 2017 at 12:18 AM, KasunG Gajasinghe <kas...@wso2.com> wrote: > > CarbonContext is a thread-local variable.

Re: [Dev] How to mock the CarbonContext?

2017-10-04 Thread KasunG Gajasinghe
CarbonContext is a thread-local variable. That means the carbon context can be accessible from anywhere within a given thread. So, you may not need to mock it! Since the test class and the testing class runs in the same thread, we can try to populate the CarbonContext in the @Test method before

Re: [Dev] Hazelcast jar update

2017-09-11 Thread KasunG Gajasinghe
We are currently on 3.5.x range - 3.5.4 to be exact. As long as you can address possible API changes in the new versions, an upgrade should be fine. Except for the EI's message broker profile, all the Hazelcast usage is within the package Thusitha mentioned AFAIR. So, you can compile

Re: [Dev] Missing Attributes in Token Introspection Response

2017-08-21 Thread KasunG Gajasinghe
Hi, On Mon, Aug 21, 2017 at 3:23 PM, Gayan Gunawardana wrote: > > > On Mon, Aug 21, 2017 at 1:54 PM, Farasath Ahamed > wrote: > >> >> >> >> On Mon, Aug 21, 2017 at 1:23 PM, Gayan Gunawardana >> wrote: >> >>> >>> >>> On Mon, Aug 21, 2017 at

Re: [Dev] Disabling hostname verification on Kernel 4.4.17-SNAPSHOT

2017-08-18 Thread KasunG Gajasinghe
Not all components are using the commons http client. Some are using java.net.HttpURLConnection. So, if a component uses that, then those need to be modified. But, we could have handled that by registering a custom SSLSocketFactory to HttpURLConnection by looking at the parameter value of

Re: [Dev] (IDENTITY-6167) Need to honor modifications to email-admin-config.xml file

2017-07-27 Thread KasunG Gajasinghe
On Thu, Jul 27, 2017 at 10:20 AM, Harsha Thirimanna <hars...@wso2.com> wrote: > > > On Thu, Jul 27, 2017 at 9:41 AM, KasunG Gajasinghe <kas...@wso2.com> > wrote: > >> >> >> On Wed, Jul 26, 2017 at 10:39 PM, Harsha Thirimanna <hars...@wso2.com> &

Re: [Dev] (IDENTITY-6167) Need to honor modifications to email-admin-config.xml file

2017-07-26 Thread KasunG Gajasinghe
On Wed, Jul 26, 2017 at 10:39 PM, Harsha Thirimanna <hars...@wso2.com> wrote: > > On Wed, Jul 26, 2017 at 9:31 PM, KasunG Gajasinghe <kas...@wso2.com> > wrote: > >> >> >> On Wed, Jul 26, 2017 at 9:07 PM, Johann Nallathamby <joh...@wso2.com> >>

Re: [Dev] Problems with EventStreamAdminService

2017-07-26 Thread KasunG Gajasinghe
carbon.user.mgt.UserAdminPortType port = service. > getUserAdminHttpsSoap11Endpoint(); > return port.listAllUsers(filter, limit); > } > > > On Thu, Jul 27, 2017 at 12:00 AM, KasunG Gajasinghe <kas...@wso2.com> > wrote: > >> >> You can check this class [1] on

Re: [Dev] Problems with EventStreamAdminService

2017-07-26 Thread KasunG Gajasinghe
com> > wrote: > >> Hi, >> Thanks a lot , KasunG Gajasinghe. You made my day. :D. It worked. >> Sagar >> >> >> On Wed, Jul 26, 2017 at 11:40 PM, KasunG Gajasinghe <kas...@wso2.com> >> wrote: >> >>> >>> >>> On Wed

Re: [Dev] Issues in the Admin API WSDL Files

2017-07-26 Thread KasunG Gajasinghe
wsimport is used to generate the JAX-WS service clients. But the generated client stubs are already available for all the admin services of WSO2. I suggest you use them. These work over Axis2 SOAP engine. On Wed, Jul 26, 2017 at 11:49 PM, KasunG Gajasinghe <kas...@wso2.com> wrote: >

Re: [Dev] Issues in the Admin API WSDL Files

2017-07-26 Thread KasunG Gajasinghe
If you are trying to invoke via Java, then you can check the existing usage of UserAdminStub class here [1]. These admin services are already used by the mgt console UI to invoke the back-end services. A trick I used to capture the soap envelope is the following. This does not work all the time.

Re: [Dev] Problems with EventStreamAdminService

2017-07-26 Thread KasunG Gajasinghe
On Wed, Jul 26, 2017 at 11:34 PM, Sagar Kapadia wrote: > I am trying to call a method in the EventStreamAdminService. However, I > get the following exception. I tried to fix the wsdl and recreate the jar, > but because of the compiled classes containing a reference to

[Dev] (IDENTITY-6168) Ambiguous code segment

2017-07-26 Thread KasunG Gajasinghe
Hi, The #replace operations pointed in this jira are actually a no-ops since the original string and the replacement string are the same! @Indunil, it seems above code segment was introduced by the following commit. Can you enlighten the reason for this?

Re: [Dev] (IDENTITY-6167) Need to honor modifications to email-admin-config.xml file

2017-07-26 Thread KasunG Gajasinghe
hirimanna.blogspot.com/ >> Twitter: http://twitter.com/harshathirimann >> Linked-In: linked-in: http://www.linkedin.com/pub/ha >> rsha-thirimanna/10/ab8/122 >> <http://wso2.com/signature> >> >> On Wed, Jul 26, 2017 at 5:21 PM, KasunG Gajasinghe <kas.

Re: [Dev] (IDENTITY-6167) Need to honor modifications to email-admin-config.xml file

2017-07-26 Thread KasunG Gajasinghe
Hi Johann, On Wed, Jul 26, 2017 at 3:22 PM, Farasath Ahamed wrote: > Hi, > > email-admin-config.xml has the default email templates that are used for > Email notifications. > Since we have a UI to add/update new Email templates I don't think the > user has to go to the

Re: [Dev] [MSF4J][IS-M2] Error while trying to deploy component

2017-07-15 Thread KasunG Gajasinghe
Hi Isuranga, Can you point to the source of your micro service? It seems like you may have missed to include the @Path annotation. [1] [1] https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/internal/MicroservicesRegistryImpl.java#L76 On Sun, Jul 16, 2017 at 12:50 AM,

Re: [Dev] Handling required claims in ID Token

2017-07-06 Thread KasunG Gajasinghe
Hi Gayan, As I see, Denuwanthi is talking about the scenario where the grant type does generate an ID token. In that case, we need to validate that generated id token where we need to make sure the mandatory fields are there. On Thu, Jul 6, 2017 at 9:55 AM, Gayan Gunawardana

Re: [Dev] [Carbon] Build fail in cerbon4-kernel source code.

2017-06-23 Thread KasunG Gajasinghe
Yep. Please raise a doc jira. On Fri, Jun 23, 2017 at 3:21 PM, Maduranga Siriwardena <madura...@wso2.com> wrote: > Might be better to add this to documentation also. > > On Fri, Jun 23, 2017 at 2:30 PM, KasunG Gajasinghe <kas...@wso2.com> > wrote: > >> Thanks

Re: [Dev] [Carbon] Build fail in cerbon4-kernel source code.

2017-06-23 Thread KasunG Gajasinghe
Thanks a lot. On Fri, Jun 23, 2017 at 1:05 PM Maheshika Goonetilleke <mahesh...@wso2.com> wrote: > Hi Kasun > > As requested made the change on Wednesday. Apologies for delayed response. > > On Wed, Jun 21, 2017 at 12:05 PM, KasunG Gajasinghe <kas...@wso2.com> >

Re: [Dev] [Carbon] Build fail in cerbon4-kernel source code.

2017-06-21 Thread KasunG Gajasinghe
We can use add this property into Jenkins. Adding @Maheshika. It's better if we can do this in global-level instead of per job. Thanks, KasunG On Wed, Jun 21, 2017 at 11:41 AM, Maduranga Siriwardena wrote: > Using the java.util.Arrays.useLegacyMergeSort jvm parameter with

Re: [Dev] Is API Manager UI free and open source?

2017-06-07 Thread KasunG Gajasinghe
e, publisher etc? > > Yes. > Thanking you, > Gihan > > > > On Wed, Jun 7, 2017 at 4:31 PM, KasunG Gajasinghe <kas...@wso2.com> wrote: > >> Hi Gihan, >> >> ASL 2.0 is a very permissive license. That means, apart from the >> requirem

Re: [Dev] Is API Manager UI free and open source?

2017-06-07 Thread KasunG Gajasinghe
Hi Gihan, ASL 2.0 is a very permissive license. That means, apart from the requirement of attribution to WSO2 for the original work, you have a greater freedom on what you are allowed to do. This includes licensing derivate work under a compatible license (say GPLv2, BSD), modifying the code as

Re: [Dev] Apache CXF Bundle Deployment In C4

2017-05-09 Thread KasunG Gajasinghe
Hi John, Which Carbon product are you using? We do have support to deploy CXF based web applications [1] [1] https://docs.wso2.com/dosearchsite.action?searchQuery.queryString=ancestorIds%3A45968759+AND+cxf=AS530 On Tue, May 9, 2017 at 2:28 PM, John David wrote: > Hi All

Re: [Dev] JPA in a custom connector

2017-05-09 Thread KasunG Gajasinghe
> org.apache.openjpa.*, javax.persistence > > * > > > > > > > > my.group > openjpa > 2.4.2 > bundle > > > > Do you think I missed something to declare the persistence.xml in my JPA > project? > > > > 2017-05-05 14:36 GMT+0

Re: [Dev] JPA in a custom connector

2017-05-05 Thread KasunG Gajasinghe
ave: > > javax.persistence.PersistenceException: Failed to load provider from > META-INF/services > > I think that it is because the services/ directory in the META-INF in the > openjpa bundle is not parsed and I don't know what to do because this is > not me who generate the OSGi

Re: [Dev] JPA in a custom connector

2017-05-04 Thread KasunG Gajasinghe
othing :( > > osgi> services (objectclass=org.apache.openjpa.*) > "No registered services." > > Am I missing something? > > Regards, > > Thomas > > 2017-05-04 10:49 GMT+02:00 KasunG Gajasinghe <kas...@wso2.com>: > >> Hi Thomas, >> >> Well, t

Re: [Dev] JPA in a custom connector

2017-05-04 Thread KasunG Gajasinghe
ption. > > I made a topic on StackOverflow one or two weeks ago: > https://stackoverflow.com/questions/43538743/wso2-is- > there-a-way-to-use-jpa-in-a-custom-connector > > I you know a documentation to generate an OSGi bundle for a connector, I > am very interested. :) > > R

Re: [Dev] JPA in a custom connector

2017-05-03 Thread KasunG Gajasinghe
You are working in an OSGi environment, so you need to be thinking from the osgi classloading perspective. Each osgi bundle under repository/components/{plugins,dropins} has its own classloader and a classpath. Hence, the place you put your persistence.xml is important. I'm not sure how you call

Re: [Dev] WSO2 Enterprise Integrator 6.1.0 Released

2017-04-18 Thread KasunG Gajasinghe
+announce On Tue, Apr 18, 2017 at 10:49 AM, Eranda Rajapakshe wrote: > *WSO2 Enterprise Integrator 6.1.0 Released* > > WSO2 Enterprise Integrator team is pleased to announce the release of WSO2 > Enterprise Integrator 6.1.0. > > *Release Note* > > April 2017 > > WSO2 EI is a

Re: [Dev] API Calls fail while UserStoreConfigurationDeployer is running

2017-04-03 Thread KasunG Gajasinghe
In that case, you can pass the tenant idle time via the system property, -Dtenant.idle.time=30. Eager loading is not available in olddr versions. Thanks anyway > regAW > *Gesendet:* Montag, 03. April 2017 um 10:35 Uhr > *Von:* "KasunG Gajasinghe" <kas...@wso2.com> > *An:* re...

Re: [Dev] API Calls fail while UserStoreConfigurationDeployer is running

2017-04-03 Thread KasunG Gajasinghe
ading and can it be configured? > It's kind of hard to test cause the redeployment takes less than a second. > > Regards, > regAW > *Gesendet:* Dienstag, 28. März 2017 um 21:13 Uhr > *Von:* "Omindu Rathnaweera" <omi...@wso2.com> > *An:* "KasunG Gajasinghe"

Re: [Dev] API Calls fail while UserStoreConfigurationDeployer is running

2017-03-28 Thread KasunG Gajasinghe
You can reduce the deployment update interval via carbon.xml. By default, it is 15mins. Search for DeploymentUpdateInterval. You can increase this. That being said, the deployers won't be called unless you modify userstore. On Mon, Mar 27, 2017 at 2:32 PM, wrote: > Hi, >

Re: [Dev] [carbondump] Updating carbondump.sh for Java 8

2017-03-24 Thread KasunG Gajasinghe
+1. For Java7, we can collect permgen, and for Java8, we can collect metaspace dumps. On Fri, Mar 24, 2017 at 10:59 AM, Isuru Perera wrote: > Hi Nira, > > I also thought that. I think may be we can do the version check also. I'm > hoping to do a review on the script. Since we

Re: [Dev] Checkstyle rule "checkFirstSentence" check only happens on windows build

2017-03-11 Thread KasunG Gajasinghe
sentence. I tested this on OSX > and it's working. > > > > [1] - http://checkstyle.sourceforge.net/config_ > javadoc.html#SummaryJavadoc > > Regards, > Omindu. > > On Mon, Mar 6, 2017 at 3:29 PM, KasunG Gajasinghe <kas...@wso2.com> wrote: > >> >>

Re: [Dev] User profile functionality in admin portal and user portal

2017-03-07 Thread KasunG Gajasinghe
To reduce complexity, I think we can keep an account settings within the admin portal as well. Otherwise, we have to know where the user-portal app is located in a distributed environment etc. We can create a UUF component [1] for account-settings and re-use it across both portals. [1]

Re: [Dev] Checkstyle rule "checkFirstSentence" check only happens on windows build

2017-03-06 Thread KasunG Gajasinghe
On Mon, Mar 6, 2017 at 3:22 PM, Omindu Rathnaweera wrote: > Hi Devs, > > Noticed that the builds (with wso2 parent v5) done on windows fails with > the error "First sentence should end with a period.". Seems like this > check can be configured with *checkFirstSentence* rule [1].

Re: [Dev] uuf maven plugin version of carbon-uuf and uuf-commons

2017-03-06 Thread KasunG Gajasinghe
Hi Denuwanthi, Will this affect the IS admin portal development? If so, on what degree? Thanks. On Mon, Mar 6, 2017 at 10:42 AM, Denuwanthi De Silva wrote: > Hi, > > IS 6.0.0 M5 development will be moving from carbon-uuf version m12 to m13. > In compliance with that we

Re: [Dev] Error while initiating response builder

2017-02-25 Thread KasunG Gajasinghe
I think this is caused by this dependency: javax/ws/rs/javax. ws.rs-api/2.0/javax.ws.rs-api-2.0.jar You might want to exclude it. On Sat, Feb 25, 2017 at 5:10 PM, Hasintha Indrajee wrote: > > Hi all, > > I am getting the following class cast exception while initiating a >

Re: [Dev] Automation Testing Plan for SCIM Provider

2017-02-02 Thread KasunG Gajasinghe
Hi Gayan, In Kernel 5.2.0, starting the servers by providing the distribution pack is coming. But this support is not sufficient in 5.1.0 that we are using. Until, then we can write our typical way of starting the servers via pax-exam for testing. Please note that even though we are exposing

Re: [Dev] WSO2 Enterprise Integrator 6.0.0 Milestone 2 Released !

2017-02-01 Thread KasunG Gajasinghe
AM, Malith Munasinghe <mali...@wso2.com> > wrote: > >> Hi Kasun, >> >> On Wed, Feb 1, 2017 at 1:39 AM, KasunG Gajasinghe <kas...@wso2.com> >> wrote: >> >>> Hi Malith, >>> >>> Have we prepared the vision docs for EI?

Re: [Dev] Fwd: Why re-write User class? Why re-wrap RealmService?

2017-02-01 Thread KasunG Gajasinghe
Hi Shariq, On Wed, Feb 1, 2017 at 4:45 PM, Muhammed Shariq <sha...@wso2.com> wrote: > > On Wed, Feb 1, 2017 at 1:10 AM, KasunG Gajasinghe <kas...@wso2.com> wrote: > >> Hi Manu, >> >> #1. Because UUF's #createSession function expects an instance

Re: [Dev] Fwd: Why re-write User class? Why re-wrap RealmService?

2017-02-01 Thread KasunG Gajasinghe
;> Hi Kasun >> I think logic is related to #1. If we are eliminating that then it will >> be a middle man. >> >> Thanks & Regards >> Danushka Fernando >> Senior Software Engineer >> WSO2 inc. http://wso2.com/ >> Mobile : +94716332729 <

Re: [Dev] [IAM] JdbcSQLException while building the IS 6.0.0 with Lifecycle feature.

2017-01-31 Thread KasunG Gajasinghe
Hi Isura, Can you check whether the H2 driver version is up-to-date? MV_STORE is H2's new storage system. - http://www.h2database.com/html/mvstore.html On Wed, Feb 1, 2017 at 12:29 PM, Isura Karunaratne wrote: > Hi, > > I am getting following error while building the product-is

Re: [Dev] [UUF] Exception Handling in UUF app

2017-01-31 Thread KasunG Gajasinghe
To not disclose the back-end server details to the user, we should always catch the exceptions in the UUF app. If it is a UIException, then we can show the error message to the user. Otherwise, we should show a generic error message - something like "An error has occurred while processing your

Re: [Dev] Run mvn javadoc:javadoc before sending PRs wso2 repos

2017-01-31 Thread KasunG Gajasinghe
es, +1. @Maduranga, can you send a PR to carbon-parent? Then we can release it and use across all the repos. > > On Wed, Feb 1, 2017 at 10:54 AM, KasunG Gajasinghe <kas...@wso2.com> > wrote: > >> >> +1. >> >> >> On Wed, Feb 1, 2017 at 10:50 AM Sagara

Re: [Dev] Fwd: Why re-write User class? Why re-wrap RealmService?

2017-01-31 Thread KasunG Gajasinghe
we are following 90/10 rule where 90% of the code is executed in the back-end. So, there's a lot of logic involved in the backend. >- > > > On Tue, Jan 31, 2017 at 7:40 PM, KasunG Gajasinghe <kas...@wso2.com> > wrote: > > Hi Manu, > > #1. Because UUF's #createSess

Re: [Dev] WSO2 Enterprise Integrator 6.0.0 Milestone 2 Released !

2017-01-31 Thread KasunG Gajasinghe
Hi Malith, Have we prepared the vision docs for EI? Since this is a new product created by merging multiple products together, I'd like to know how we are positioning this. Also, please provide the link to the documentation. Thanks, KasunG On Tue, Jan 31, 2017 at 10:34 PM, Malith Munasinghe

Re: [Dev] Fwd: Why re-write User class? Why re-wrap RealmService?

2017-01-31 Thread KasunG Gajasinghe
Hi Manu, #1. Because UUF's #createSession function expects an instance of org.wso2.carbon.uuf.spi.auth.User not org.wso2.carbon.identity.mgt.User. But, this is actually an improvement that we need to do. UUF should either use org.wso2.carbon.identity.mgt.User or an extended class. We should not

Re: [Dev] carbon-business-process build failure (was: [Builder] Build failed in Jenkins: carbon-business-process #2420)

2017-01-31 Thread KasunG Gajasinghe
nod Kavinda <vi...@wso2.com> wrote: > >> [Adding hasitha,Nandika] >> >> On Tue, Jan 31, 2017 at 12:43 PM, KasunG Gajasinghe <kas...@wso2.com> >> wrote: >> >>> Hi all, >>> >>> The maven-release-plugin which is part of the

[Dev] carbon-business-process build failure (was: [Builder] Build failed in Jenkins: carbon-business-process #2420)

2017-01-30 Thread KasunG Gajasinghe
Hi all, The maven-release-plugin which is part of the Jenkins wso2 maven release plugin has failed to find the credentials. These credentials are read from maven settings.xml. There should be a entry for the project.scm.id you guys are using. What is the project.scm.id you are using? On Tue,

Re: [Dev] [UUF] User Portal's Localization properties are not working in Safari browser

2017-01-19 Thread KasunG Gajasinghe
Using the Accept-Language header is fine. But if the header is missing, there should be a fallback mechanism. You should not simply display the key. For our purposes, we can treat en-US as the fallback language. On Thu, Jan 19, 2017 at 8:08 PM, Denuwanthi De Silva wrote: >

Re: [Dev] [IS 6.0.0] [User Portal] Challenge Questions in Self sign-up page of user portal

2017-01-18 Thread KasunG Gajasinghe
Security questions are a thing of the past. Google, Facebook they all have removed the security questions based password recovery mechanisms. [1] [2] So, +1 to drop this support in IS 6. [1] http://googlesystem.blogspot.com/2014/12/google-drops-support-for-security.html [2]

Re: [Dev] Merging multiple Jacoco coverages together

2017-01-16 Thread KasunG Gajasinghe
ham <niran...@wso2.com > > wrote: > >> Hi KasunG / Dharshana, >> >> On Mon, Jan 16, 2017 at 9:34 PM, KasunG Gajasinghe <kas...@wso2.com> >> wrote: >> >>> Hi Dharshana, >>> >>> To get a proper understanding of the actual coverage, m

[Dev] Merging multiple Jacoco coverages together

2017-01-16 Thread KasunG Gajasinghe
Hi Dharshana, To get a proper understanding of the actual coverage, merging of all the jacoco coverages is a must. It may be to merge the coverage of unit tests and osgi tests together. It could also be extended to generate coverage of tests across repos as well. For example, we have a repo

Re: [Dev] Show images persisted in a database or in a non-public folder from a uuf app

2017-01-16 Thread KasunG Gajasinghe
Hi Nisala, How can we secure this API? Do we have to write a MSF4J Interceptor for that? We can certainly write on, but we are not sure how to access the UUF session to validate the user. So, how can we verify whether the current session is authorized or not. Thanks, KasunG On Fri, Jan 13,

Re: [Dev] [IS6 M1] LDAP Userstore implementation and documentation

2017-01-14 Thread KasunG Gajasinghe
On Sat, Jan 14, 2017 at 9:29 PM, Ishara Karunarathna <isha...@wso2.com> wrote: > Hi Kasun, > > On Sat, Jan 14, 2017 at 6:58 PM, KasunG Gajasinghe <kas...@wso2.com> > wrote: > >> Hi, >> >> Opening this thread to keep track of the LDAP userstore feature

[Dev] [devicemgt-plugins] Nexus: Promotion Completed

2017-01-14 Thread KasunG Gajasinghe
Hi Rasika, Why don't we setup Continuous Delivery for this repo? :-) Thanks. On Sat, Jan 14, 2017 at 7:08 PM, Nexus Repository Manager wrote: > Message from: https://maven.wso2.org/nexus/ > > *Description:* > > releasing cdm plugins 1020 > > > > *Deployer properties:* > >-

[Dev] [IS6 M1] LDAP Userstore implementation and documentation

2017-01-14 Thread KasunG Gajasinghe
Hi, Opening this thread to keep track of the LDAP userstore feature that goes into the M1. We are on the final stage of this implementation which is maintained at [1]. @Ishara is working on this. We need to get the PR for carbon-jndi merged [2] since the current JNDI impl does not load JNDI

[Dev] Random scrolling when clicking on Profile -> Default/Employee links

2017-01-12 Thread KasunG Gajasinghe
Hi Minoli, The HTML pages scrolls randomly when clicking on sub-items in the tab-view in IS 6 User Portal. As you mentioned, there are some changes required from styling side to fix this. Can we get a rough date on when this will be available? Please note that we a week away from the M1.

Re: [Dev] Print UUF Application URLs in server startup logs

2017-01-12 Thread KasunG Gajasinghe
On Fri, Jan 13, 2017 at 10:14 AM, Kishanthan Thangarajah < kishant...@wso2.com> wrote: > https://github.com/wso2/carbon-uuf/issues/136 :) > > +1. :) > On Fri, Jan 13, 2017 at 10:12 AM, KasunG Gajasinghe <kas...@wso2.com> > wrote: > >> >> Tha

Re: [Dev] Print UUF Application URLs in server startup logs

2017-01-12 Thread KasunG Gajasinghe
starting up. > > On Fri, Jan 13, 2017 at 1:01 AM, KasunG Gajasinghe <kas...@wso2.com> > wrote: > >> Hi Kishanthan/Sajith, >> >> Since the applications are lazily deployed, there is no sign of UUF >> applications available in the system in the server startup logs

[Dev] Print UUF Application URLs in server startup logs

2017-01-12 Thread KasunG Gajasinghe
Hi Kishanthan/Sajith, Since the applications are lazily deployed, there is no sign of UUF applications available in the system in the server startup logs. But, I believe the UUF deployer receives the apps during startup. Therefore, can we do $subject? Thanks, KasunG -- *Kasun

Re: [Dev] [UUF] Document onRequest() method in the UUF developer's guide

2017-01-12 Thread KasunG Gajasinghe
, this is how we are handling it -- $ cat sample.js function onRequest(env) { if (env.request.method == "POST" && env.request.formParams["formId"]="myform") { // do stuff related to myform } if (env.request.method == "GET") {

Re: [Dev] [UUF] Document onRequest() method in the UUF developer's guide

2017-01-11 Thread KasunG Gajasinghe
Hi Sajith, +1. Having one single method like #onRequest to handle both GET and POST is considered a bad practice as per HTTP specification since these HTTP methods serve different purposes entirely. In Servlets, we have #doGet and #doPost to handle GET and POST requests separately. Something to

Re: [Dev] Clarification on invoking particular fragment in UUF

2017-01-11 Thread KasunG Gajasinghe
f one page has two forms as well. Thanks, KasunG > Thanks, > Shan. > > On Wed, Jan 11, 2017 at 11:44 AM, KasunG Gajasinghe <kas...@wso2.com> > wrote: > >> +Dev >> >> On Wed, Jan 11, 2017 at 12:49 AM, Denuwanthi De Silva < >> denuwan...@wso2.co

Re: [Dev] Clarification on invoking particular fragment in UUF

2017-01-10 Thread KasunG Gajasinghe
+Dev On Wed, Jan 11, 2017 at 12:49 AM, Denuwanthi De Silva wrote: > Hi, > > During user-portal implementations for IS, I can see that the POST methods > of all fragments get invoked if you do a POST only in one fragment. > > Ex: > we have base account-settings page. > It

[Dev] Issue in carbon-uuf-common feature

2017-01-05 Thread KasunG Gajasinghe
Hi Sajith, With the latest changes to carbon-uuf repo, we cannot seem to build product-is. We fixed most of the issues, but we are now getting the following error. It seems carbon-uuf-common [1] is not up-to-date with the changes to carbon-uuf, but I may be wrong. It still has config.yaml but no

Re: [Dev] Any way to know the life-cycle of a tenant on AS?

2016-12-05 Thread KasunG Gajasinghe
org.wso2.carbon.stratos.common.listeners.TenantMgtListener is for tenant creation/activation/deactivation events. org.wso2.carbon.utils.AbstractAxis2ConfigurationContextObserver is for tenant loading/unloading events. I think you are looking for this. See a sample impl here -

Re: [Dev] javax.naming.NameNotFoundException Name [jdbc/WSO2CarbonDB] is not bound in this Context

2016-12-02 Thread KasunG Gajasinghe
Looking up jdbc/WSO2CarbonDB as it is does not work. All the datasources are registered under the JNDI context java:comp/env. So, if your jndi key is jdbc/WSO2CarbonDB, then it can be found at java:comp/env /jdbc/WSO2Ca rbonDB. This ambiguity is coming from JNDI itself. See [1] for a detailed

Re: [Dev] How to clear up the Registry Cache?

2016-11-06 Thread KasunG Gajasinghe
This sounds like a bug. When a tenant is deleted, the cache should be cleared automatically. You shouldn't have to wait for the periodic cache cleanup. My suggestion is to write a TenantMgtListener extension, and add it to the product. In there, you can add a cache clearing operation for the

[Dev] [Nexus] Drop unwanted proxy repositories from WSO2 Nexus

2016-10-19 Thread KasunG Gajasinghe
Hi, The WSO2 Nexus maven repository has run out of space, so we need to remove any cruft that does not need to be there. While having a quick look, it seems we proxy who bunch of external repositories within our nexus. This just puts unnecessary burden on it. Initially, following repo [1] which

Re: [Dev] Latency in Deployment Synchronizer

2016-10-12 Thread KasunG Gajasinghe
On Wed, Oct 12, 2016 at 10:51 AM, Fathima Dilhasha wrote: > Hi All, > > I had a chat with KasunG and following are the facts I got to know which > explains the latency I was experiencing. > > 1. There is a scheduled task which is running in the DepSync enabled > manager nodes

Re: [Dev] About the runtime architecture of WSO2 Application Server

2016-09-13 Thread KasunG Gajasinghe
ervice which is mentioned in the same link I sent before. [3] https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.authenticator.proxy/src/main/resources/AuthenticationAdmin.wsdl#L192 > > Thanks, Wenxing > > > > *From:* KasunG Gajasinghe [mailto:kas...@wso2.

Re: [Dev] About the runtime architecture of WSO2 Application Server

2016-09-13 Thread KasunG Gajasinghe
Hi wenxzhen, User management is one of the strong suites of the WSO2 platform. For web applications, a Tomcat realm called CarbonTomcatRealm [1] is provided that can authenticate web applications. This transparently works with web.xml security-constraints for "container managed security" of

Re: [Dev] Why some of the features aren't shown in the Available Feature UI

2016-08-16 Thread KasunG Gajasinghe
This is derived through the "adviceFile" properties of your features. On Tue, Aug 16, 2016 at 5:35 PM, Abimaran Kugathasan wrote: > Hi Dev, > > When I tried to install features on latest Identity Server 5.2.0 SNAPHOT, > I could observe that, the features listed under a

Re: [Dev] Merge changes done for https://wso2.org/jira/browse/CPARENT-6

2016-08-10 Thread KasunG Gajasinghe
ses/ > org/wso2/carbon/org.wso2.carbon.core/5.1.0/ > > On Wed, Aug 10, 2016 at 11:28 AM, Isuru Perera <isu...@wso2.com> wrote: > >> Hi Kasun, >> >> On Wed, Aug 10, 2016 at 9:54 AM, KasunG Gajasinghe <kas...@wso2.com> >> wrote: >> >>&

Re: [Dev] Merge changes done for https://wso2.org/jira/browse/CPARENT-6

2016-08-09 Thread KasunG Gajasinghe
Hi Isuru, Javadoc and source generation happens when you use the maven release plugin. We are already doing it. [1] That is the only place we need these two plugins as I understand. When doing a build locally, you don't really need sources/javadoc jars because you already have the source code.

Re: [Dev] Integration tests are failing due to NoClassDefFoundError

2016-08-04 Thread KasunG Gajasinghe
We have seen this happening when there are multiple different versions of the same bundle. When webapps uses classes from both these bundles, class-space violations occur. The error is shown as a java.lang. NoClassDefFoundError. On Wed, Aug 3, 2016 at 5:23 PM, Lakshani Gamage

Re: [Dev] Is it possible to define a global response header in a MSF4J service

2016-08-01 Thread KasunG Gajasinghe
Hi Sumedha, As I see, this is not provided by the JAX-RS 2.0 specification. If this is set at the class-level, then the header names and values will need to be hard-coded. Can you explain the usecase here? On Mon, Aug 1, 2016 at 2:32 PM, Sumedha Kodithuwakku wrote: > Hi all,

Re: [Dev] Improve startup time in AS 6.0.0

2016-07-24 Thread KasunG Gajasinghe
On Sun, Jul 24, 2016 at 10:39 AM, Lakshman Udayakantha wrote: > [+dev] > > On Sat, Jul 23, 2016 at 8:17 PM, Lakshman Udayakantha > wrote: > >> I copied all the jars in lib in AS 6.0.0 to a pure tomcat and I could see >> 40(s) startup time there also.

Re: [Dev] Update - Provide runtime environment for jaggery apps in AS6

2016-07-18 Thread KasunG Gajasinghe
Nisala > > On Mon, Jul 18, 2016 at 2:05 PM, KasunG Gajasinghe <kas...@wso2.com> > wrote: > >> Hi Nisala, >> >> On Thu, Jun 30, 2016 at 7:17 AM, Nisala Nanayakkara <nis...@wso2.com> >> wrote: >> >>> Hi all, >>> >>> Pl

Re: [Dev] Update - Provide runtime environment for jaggery apps in AS6

2016-07-18 Thread KasunG Gajasinghe
Hi Nisala, On Thu, Jun 30, 2016 at 7:17 AM, Nisala Nanayakkara wrote: > Hi all, > > Please find the branch here. > > [1] - https://github.com/wso2/jaggery/tree/tomcat-8.0.x-jaggery > >From what I understood, this is a feature branch, is it not? Then, this does not really need

Re: [Dev] WSO2 AS integration with TomEE

2016-07-14 Thread KasunG Gajasinghe
On Thu, Jul 14, 2016 at 4:27 PM, Lakshman Udayakantha wrote: > Hi KasunG, > > This was almost done except jaxrs_basic web app not deploying properly. > Got exception [1]. Anyway I checked for the class which says CNF and it was > there in classpath. This jaxrs_basic web app

  1   2   3   4   >