Re: [Dev] [Architecture] [RRT] Calculate Age value of cached response
Hi Harsha, This is part of the specification. You can see the "Age header" https://tools.ietf.org/html/rfc2616#page-124 thanks, Dimuthu On Wed, Jan 24, 2018 at 9:19 PM, Harsha Kumara <hars...@wso2.com> wrote: > > > On Wed, Jan 24, 2018 at 3:34 PM, Keerthika Mahendralingam < > keerth...@wso2.com> wrote: > >> Hi All, >> >> I need to get the cached response fetched time from origin server which >> is returned in the BE response with Date header. When I debugged the >> cache-mediator code, I found that when caching the response Date header is >> added to the cache. But when I retrieve the cached response for the >> subsequent request, Date header is removed from the cached response. >> >> This is due to we are removing the Date header from the response [1] and >> send a new Date header with the response to the user. If we set the >> preserveHeaders(in passthru-http.properties), I was able to get the Date >> header from the cached response as well. >> >> So, as I need the response fetched time to calculate the TTL value of the >> cached response, I am planning to add a property to the cached response to >> store the fetched time and use it to calculate the TTL. Or do we need to >> suggest the user to set the preserve header? >> > I think adding a property is better rather adding header to the response. > >> >> >> [1]. https://github.com/wso2/wso2-synapse/blob/master/module >> s/transports/core/nhttp/src/main/java/org/apache/synapse/ >> transport/passthru/util/PassThroughTransportUtils.java#L160 >> >> Thanks, >> Keerthika. >> >> On Tue, Jan 23, 2018 at 8:26 PM, Keerthika Mahendralingam < >> keerth...@wso2.com> wrote: >> >>> Hi All, >>> >>> I am trying to add an Age header when returning the cached response(as >>> discussed in [1]). I am following the steps as follows: >>> >>>- If the response doesn't have the Date header, add Date header >>>(with current time) when caching the response[2]. >>>- For the subsequent request, get the Date header value of the >>>cached response, timeout and current requested time and find the TTL >>> value >>>as: >>> >>> TTL = difference ((DateHeaderValue + timeout), CurrentTime) >>> >>> >>>- Set the TTL value as Age header. >>> >>> Please let me know if you have any concerns on this. >>> >>> [1]. [Architecture][RRT] Improving caching based on cache-control and >>> ETag headers >>> [2]. https://tools.ietf.org/html/rfc2616#page-124 >>> >>> Thanks, >>> Keerthika. >>> -- >>> <dev-requ...@wso2.org> >>> Keerthika Mahendralingam >>> Software Engineer >>> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144> >>> keerth...@wso2.com >>> WSO2, Inc. >>> lean . enterprise . middleware >>> >> >> >> >> -- >> <dev-requ...@wso2.org> >> Keerthika Mahendralingam >> Software Engineer >> Mobile :+94 (0) 776 121144 <+94%2077%20612%201144> >> keerth...@wso2.com >> WSO2, Inc. >> lean . enterprise . middleware >> > > > > -- > Harsha Kumara > Software Engineer, WSO2 Inc. > Mobile: +94775505618 <077%20550%205618> > Blog:harshcreationz.blogspot.com > -- Dimuthu Leelarathne Director, Solutions Architecture WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile: +94773661935 Blog: http://muthulee.blogspot.com Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] IDP initiated single logout Vs Federated Initiated single logout
Hi Kanapriya, On Tue, Jan 23, 2018 at 11:58 AM, Kanapriya Kuleswararajan < kanapr...@wso2.com> wrote: > Hi All, > > As I'm working on [1], I need to get some clarifications regarding > $Subject, > AFAIU, Federated IDP initiated logout means other third party identity > provider such as Salesforce, Google IDP, Shibboleth and etc initiated > logout request where as IDP initiated logout request means WSO2 IS > initiated logout request. > > Please correct me If I'm wrong? > > If FIDP and IDP initiated logout request are two different thing, then can > anyone point me out the official WSO2 document link [2], [3] to setup the > Federated IDP initiated logout in WSO2 IS. > Have you configureed IdP initiated logout in WSO2IS? thanks, Dimuthu > > I'm able to find the following references but it is highlighted as IDP > initiated logout. > > [1] Federated IdP Initiated Logout > > [2] http://daytodayjava.blogspot.com/2015/08/saml2-idp- > initiated-single-logout-with.html > > [3] https://docs.wso2.com/display/IS530/Configuring+Single+Sign- > On#ConfiguringSingleSign-On-ConfiguringtheSSOwebapplication > > Thanks, > Kanapriya Kuleswararajan > Software Engineer > Mobile : - 0774894438 <077%20489%204438> > Mail : - kanapr...@wso2.com > LinkedIn : - https://www.linkedin.com/in/kanapriya-kules-94712685/ > WSO2, Inc. > lean . enterprise . middleware > > -- Dimuthu Leelarathne Director, Solutions Architecture WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile: +94773661935 Blog: http://muthulee.blogspot.com Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Configuring Yahoo as a IDP with Federated Authenticator Yahoo Configuration
Hi Shanika, Who is the customer behind this requirement? thanks, Dimuthu On Mon, Dec 18, 2017 at 10:00 AM, Shanika Wickramasinghe <shani...@wso2.com> wrote: > Hi All, > > Thank you all for the clarifications. Reported a JIRA related to this > issue [1]. Hope IAM team will look into the necessary fixes. > > [1]. https://github.com/wso2/product-is/issues/1526 > > Thanks, > Shanika. > > > > On Sun, Dec 17, 2017 at 11:08 PM, Dimuthu Leelarathne <dimut...@wso2.com> > wrote: > >> Hi Tharindu, >> >> We will have a look. >> >> thanks, >> Dimuthu >> >> On Sat, Dec 16, 2017 at 1:34 AM, Tharindu Edirisinghe <tharin...@wso2.com >> > wrote: >> >>> @Shanika, >>> >>> The sample request I had given previously was for id_token. For >>> authorization code, the request is below which worked for me when invoking >>> manually. >>> >>> https://api.login.yahoo.com/oauth2/request_auth?client_id=dj >>> 0yJmk9OFZNWktjalhFSjlsJmQ9WVdrOWVISmhZamxqTjJVbWNHbzlNQS0tJn >>> M9Y29uc3VtZXJzZWNyZXQmeD02OA--_type=code_u >>> ri=https%3A%2F%2Fis.wso2.com=openid=YihsFwGKgt3KJUh6tPs2 >>> >>> Thanks, >>> TharinduE >>> >>> On Fri, Dec 15, 2017 at 8:50 AM, Tharindu Edirisinghe < >>> tharin...@wso2.com> wrote: >>> >>>> +Dimuthu as it seems there's a bug in Yahoo federated authenticator. >>>> >>>> On Fri, Dec 15, 2017 at 8:46 AM, Tharindu Edirisinghe < >>>> tharin...@wso2.com> wrote: >>>> >>>>> Hi Shanika, >>>>> >>>>> I manually invoked the authorize endpoint of Yahoo and following >>>>> request worked for me. >>>>> >>>>> https://api.login.yahoo.com/oauth2/request_auth?client_id=dj >>>>> 0yJmk9OFZNWktjalhFSjlsJmQ9WVdrOWVISmhZamxqTjJVbWNHbzlNQS0tJn >>>>> M9Y29uc3VtZXJzZWNyZXQmeD02OA--_type=id_token >>>>> ct_uri=https%3A%2F%2Fis.wso2.com=openid=YihsFwGK >>>>> gt3KJUh6tPs2 >>>>> >>>>> As per my observations, Yahoo is validating the redirect_uri value and >>>>> if we define the callback domain as "is.wso2.com", then the >>>>> redirect_uri value must be either "http://is.wso2.com; or " >>>>> https://is.wso2.com;, but nothing else. >>>>> >>>>> When saving the callback domain as localhost, it didn't allow me, so I >>>>> used is.wso2.com as above. >>>>> >>>>> When comes to the Yahoo connector, in the authorize request, the >>>>> *scope* parameter is not being sent. That should be a bug. Also, we >>>>> need to send *nonce* parameter too, which is required as per [1]. >>>>> Without nonce, even the above request I've given won't work. >>>>> >>>>> It seems we have to check more on the validations done on redirect_uri >>>>> / callback domain parameter from yahoo end. Because, in the yahoo app UI, >>>>> callback domain is listed as an optional parameter. However, if we create >>>>> an app without giving the callback domain value, that also doesn't work. >>>>> >>>>> [1] https://developer.yahoo.com/oauth2/guide/openid_connect/gett >>>>> ing_started.html#getting-started-auth-code >>>>> >>>>> Thanks, >>>>> TharinduE >>>>> >>>>> On Fri, Dec 15, 2017 at 1:04 AM, Shanika Wickramasinghe < >>>>> shani...@wso2.com> wrote: >>>>> >>>>>> Hi TharinduE, >>>>>> >>>>>> In Yahoo side configuration I didnt observe a place to give the >>>>>> callback URL( https://localhost:9443/commonauth). It asks only for a >>>>>> callback Domain where we can input localhost or another domain. [1] >>>>>> >>>>>> [1]. claimapp-yahoo.png >>>>>> >>>>>> >>>>>> Thanks, >>>>>> >>>>>> Shanika >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Thu, Dec 14, 2017 at 8:51 PM, Tharindu Edirisinghe < >>>>>> tharin...@wso2.com> wrote: >>>>>> >>>>>>> Hi Shanika, >>>>>>> >>>>>>> Can you show the Yahoo side configuration too. It seems Identity >>>>>>> Server is invoking the a
Re: [Dev] Configuring Yahoo as a IDP with Federated Authenticator Yahoo Configuration
ssage will be shown as in [4] >>>>>> >>>>>> Appreciate any clarification related to this issue >>>>>> >>>>>> >>>>>> [1]. https://docs.wso2.com/display/IS540/Configuring+Yahoo >>>>>> >>>>>> [2]. yahoo-config1.png >>>>>> >>>>>> [3]. yahoo-config2.png >>>>>> >>>>>> [4]. yahoo.png >>>>>> >>>>>> Thank You, >>>>>> Shanika. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *Shanika Wickramasinghe* >>>>>> Software Engineer - QA Team >>>>>> >>>>>> Email: shani...@wso2.com >>>>>> Mobile : +94713503563 <+94%2071%20350%203563> >>>>>> Web : http://wso2.com >>>>>> >>>>>> <http://wso2.com/signature> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Tharindu Edirisinghe >>>>> Senior Software Engineer | WSO2 Inc >>>>> Platform Security Team >>>>> Blog : http://tharindue.blogspot.com >>>>> mobile : +94 775181586 <+94%2077%20518%201586> >>>>> >>>> >>>> >>>> >>>> -- >>>> *Shanika Wickramasinghe* >>>> Software Engineer - QA Team >>>> >>>> Email: shani...@wso2.com >>>> Mobile : +94713503563 <+94%2071%20350%203563> >>>> Web : http://wso2.com >>>> >>>> <http://wso2.com/signature> >>>> >>> >>> >>> >>> -- >>> >>> Tharindu Edirisinghe >>> Senior Software Engineer | WSO2 Inc >>> Platform Security Team >>> Blog : http://tharindue.blogspot.com >>> mobile : +94 775181586 <+94%2077%20518%201586> >>> >> >> >> >> -- >> >> Tharindu Edirisinghe >> Senior Software Engineer | WSO2 Inc >> Platform Security Team >> Blog : http://tharindue.blogspot.com >> mobile : +94 775181586 <+94%2077%20518%201586> >> > > > > -- > > Tharindu Edirisinghe > Senior Software Engineer | WSO2 Inc > Platform Security Team > Blog : http://tharindue.blogspot.com > mobile : +94 775181586 <077%20518%201586> > -- Dimuthu Leelarathne Director, Solutions Architecture WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile: +94773661935 Blog: http://muthulee.blogspot.com Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] ballerina-samples 0.89 is missing in nexus
Hi Sajith, Forwarding to the correct list. thanks, Dimuthu On Mon, Jul 17, 2017 at 5:47 PM, Sajith Kariyawasam <saj...@wso2.com> wrote: > Hi, > > I couldn't find 0.89 in http://maven.wso2.org/nexus/ > content/repositories/releases/org/ballerinalang/ballerina-samples/ > > There is a build failure in https://github.com/wso2/product-apim because > due to this reason > > Thanks, > Sajith > > -- > Sajith Kariyawasam > *Associate Tech Lead* > *WSO2 Inc.; http://wso2.com <http://wso2.com/>* > *Committer and PMC member, Apache Stratos * > *AMIE (SL)* > *Mobile: 0772269575 <077%20226%209575>* > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Dimuthu Leelarathne Director, Solutions Architecture WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile: +94773661935 Blog: http://muthulee.blogspot.com Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] [IS] [C5] Self sign-up in C5 User Portal
On Tue, Jan 3, 2017 at 1:00 PM, Ishara Karunarathna <isha...@wso2.com> wrote: > > > On Tue, Jan 3, 2017 at 12:52 PM, Johann Nallathamby <joh...@wso2.com> > wrote: > >> What are the new user stories we are trying to implement that are not >> already there in IS 5.3.0? Can we come up with a list of new requirements? >> Isn't most of the above user stories already there in IS 5.3.0? >> > Yes in 5.3.0 we have almost complete user store. But when it comes to C5 > implementation we can't cover it with a single milestone release,So we need > to start with a simple user story and use different version of that adding > other use cases associated with that. > > First we need to envision what we are going to achieve in the long run. Then we need to start with the simplest case. For C5 are we trying to achieve something different to what we already have? thanks, Dimuthu -Ishara > > >> On Tue, Jan 3, 2017 at 10:30 AM, Ishara Karunarathna <isha...@wso2.com> >> wrote: >> >>> Hi Indunil, >>> >>> When we think about self sign up. >>> basic use case is User comes to self sign up page and add his user >>> informations, system will create a account and let user to login. >>> >>> But there are lot of associated use cases with this. For example. >>> 1. Once user self signed up need to send a verification mail. >>> 2. self sign up should go through a approval process. >>> 3. User should be assign to a particular roles. >>> >>> To cater those requirements we need additional features. And we may >>> need several version of this user story to complete this feature. >>> For the 1st implementation better to implement the simple case. where >>> use self sign up and login (with login permission only ) >>> >>> Thanks, >>> -Ishara >>> >>> >>> >>> On Tue, Jan 3, 2017 at 9:54 AM, Indunil Upeksha Rathnayake < >>> indu...@wso2.com> wrote: >>> >>>> Hi, >>>> >>>> In IS C5, we are currently implementing self sign-up in the User Portal >>>> and having following considerations regarding the self sign-up >>>> functionality. >>>> >>>> what would be the correct way of achieving self sign-up and would like >>>> to know how it has been implemented in other C5 based products. >>>> If self sign up is enabled, *users should be create their own user >>>> accounts and will be able to logged in immediately?* or there should >>>> be an *account confirmation through the email* which helps to confirm >>>> an actual user? or there should be configurations to enable/disable both >>>> registration and account confirmation? >>>> >>>> And when it comes to self sign-up, specially if there are no account >>>> confirmation, in C5, I think it's better to include improvements such as a >>>> way to *allow anyone to sign up (no restrictions) or restrict users to >>>> specific domains* and also a way to choose whether *administrators >>>> should receive an email when a new account is created*. >>>> >>>> I would appreciate your ideas/suggestions on this. >>>> >>>> Thanks and Regards >>>> -- >>>> Indunil Upeksha Rathnayake >>>> Software Engineer | WSO2 Inc >>>> Emailindu...@wso2.com >>>> Mobile 0772182255 <077%20218%202255> >>>> >>> >>> >>> >>> -- >>> Ishara Karunarathna >>> Associate Technical Lead >>> WSO2 Inc. - lean . enterprise . middleware | wso2.com >>> >>> email: isha...@wso2.com, blog: isharaaruna.blogspot.com, mobile: >>> +94717996791 <+94%2071%20799%206791> >>> >>> >>> >> >> >> -- >> Thanks & Regards, >> >> *Johann Dilantha Nallathamby* >> Technical Lead & Product Lead of WSO2 Identity Server >> Governance Technologies Team >> WSO2, Inc. >> lean.enterprise.middleware >> >> Mobile - *+9476950* >> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>* >> > > > > -- > Ishara Karunarathna > Associate Technical Lead > WSO2 Inc. - lean . enterprise . middleware | wso2.com > > email: isha...@wso2.com, blog: isharaaruna.blogspot.com, mobile: > +94717996791 <071%20799%206791> > > > > ___ > Architecture mailing list > architect...@wso2.org > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Dimuthu Leelarathne Director, Solutions Architecture WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile: +94773661935 Blog: http://muthulee.blogspot.com Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] OSGI Service to provision users and roles based on the SAML response.
Hi Ishara, On Fri, Sep 2, 2016 at 11:19 AM, Ishara Cooray <isha...@wso2.com> wrote: > Hi All, > > I thought of introducing a new Authenticator config to > repository/conf/security/authenticators.xml > And it will use only below properties to do the $Subject. > > > 9 > > http > ://wso2.org/claims/role > , > true > PRIMARY > > > > Any objections? > I think the existing SAMLSSOAuthenticator should allow JIT provisioning when we switch on a configuration. If we keep adding more and more Authenticators for small functionalities it will be cluttered collection in the end. The same happened to Carbon components. We have so many components and can't make the head or tail out of it. thanks, Dimuthu > Thanks & Regards, > Ishara Cooray > Senior Software Engineer > Mobile : +9477 262 9512 > WSO2, Inc. | http://wso2.com/ > Lean . Enterprise . Middleware > > On Wed, Aug 31, 2016 at 1:43 PM, Ishara Cooray <isha...@wso2.com> wrote: > >> + Prabath, Johann >> >> Thanks & Regards, >> Ishara Cooray >> Senior Software Engineer >> Mobile : +9477 262 9512 >> WSO2, Inc. | http://wso2.com/ >> Lean . Enterprise . Middleware >> >> On Wed, Aug 31, 2016 at 1:27 PM, Pamod Sylvester <pa...@wso2.com> wrote: >> >>> Would it make sense to have it under "user-mgt.xml" ? >>> >>> On Wed, Aug 31, 2016 at 1:00 PM, Ishara Cooray <isha...@wso2.com> wrote: >>> >>>> Hi, >>>> I am working on the $Subject. >>>> >>>> *Motivation:* >>>> I have a use case where i want to authorize users who are logged into >>>> API publisher/ store but APIM does not have the access to underline user >>>> store. >>>> >>>> *Plan:* >>>> The plan is to write an osgi service that should do the Just In Time >>>> provisioning before the permission check to authorize the user. And it will >>>> get the roles from the SAML response and do the provisioning. >>>> >>>> But we will have to do the same role/permission mapping manually for >>>> now. >>>> >>>> If we write a generic service we can plug it into any wso2 product >>>> that need JIT provision initiated by the Service provider. >>>> However we need to maintain few configurations here. >>>> >>>>1. isServiceProvierInitiatedJITProvisioningEnabled >>>>2. User store to be provisioned >>>>3. Implementation class (extension point) >>>> >>>> What could be the best place to maintain this configuration if the >>>> component is written as a generic component to any wso2 product? >>>> >>>> >>>> Thanks & Regards, >>>> Ishara Cooray >>>> Senior Software Engineer >>>> Mobile : +9477 262 9512 >>>> WSO2, Inc. | http://wso2.com/ >>>> Lean . Enterprise . Middleware >>>> >>>> _______ >>>> Architecture mailing list >>>> architect...@wso2.org >>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>> >>>> >>> >>> >>> -- >>> *Pamod Sylvester * >>> >>> *WSO2 Inc.; http://wso2.com <http://wso2.com>* >>> cell: +94 77 7779495 >>> >>> ___ >>> Architecture mailing list >>> architect...@wso2.org >>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>> >>> >> > > ___ > Architecture mailing list > architect...@wso2.org > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Dimuthu Leelarathne Director, Solutions Architecture WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile: +94773661935 Blog: http://muthulee.blogspot.com Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [GSOC 2016] Contribute Developer Tooling for Microservice Framework for Java
Hi all, You will have to wait till 29th of February, after that only we should start discussions. thanks, Dimuthu On Tue, Feb 23, 2016 at 1:53 PM, Dimuthu Leelarathne <dimut...@wso2.com> wrote: > Hi, > > Lets all of us have a Google Hangout session to talk about this. > > thanks, > Dimuthu > > > On Mon, Feb 22, 2016 at 12:38 AM, Heshan Jayasinghe <shanu...@gmail.com> > wrote: > >> >> >> I am Heshan Jayasinghe undergraduate of university of moratuwa.i am >> interested on web services,Apache projects and cloud based projects.I work >> with apache jclouds,docker,kubernates and more other applications as well.i >> used google cloud platform,AWS to configure above applications. >> >> I participate Wso2Con Asia 2016 and gain big knowledge.i participate most >> of sessions done by wso2.I participate wso2 hackathon 2014. >> >> I like to contribute project *Developer Tooling for Microservice >> Framework for Java.* >> >> I work with JAX-RS,Eclipse and IntelliJ IDEA so hope i can complete this >> task.I'd like to know more details about this project. >> >> Thank you! >> regards >> Heshan jayasinghe >> >> >> >> > > > -- > Dimuthu Leelarathne > Director > > WSO2, Inc. (http://wso2.com) > email: dimut...@wso2.com > Mobile : 0773661935 > > Lean . Enterprise . Middleware > -- Dimuthu Leelarathne Director WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [GSOC 2016] Contribute Developer Tooling for Microservice Framework for Java
Hi, Lets all of us have a Google Hangout session to talk about this. thanks, Dimuthu On Mon, Feb 22, 2016 at 12:38 AM, Heshan Jayasinghe <shanu...@gmail.com> wrote: > > > I am Heshan Jayasinghe undergraduate of university of moratuwa.i am > interested on web services,Apache projects and cloud based projects.I work > with apache jclouds,docker,kubernates and more other applications as well.i > used google cloud platform,AWS to configure above applications. > > I participate Wso2Con Asia 2016 and gain big knowledge.i participate most > of sessions done by wso2.I participate wso2 hackathon 2014. > > I like to contribute project *Developer Tooling for Microservice > Framework for Java.* > > I work with JAX-RS,Eclipse and IntelliJ IDEA so hope i can complete this > task.I'd like to know more details about this project. > > Thank you! > regards > Heshan jayasinghe > > > > -- Dimuthu Leelarathne Director WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] Dev, QA, Production
Hi John, You can start by packaging your local entries into a separate CAR file, lets call it x. And the have three x car files per environment, as dev-x.car, test-x.car and prod-x.car. Governance registry provide you an additional layer for you to govern it. thanks, Dimuthu On Sat, Feb 20, 2016 at 10:05 AM, Sanjiva Weerawarana <sanj...@wso2.com> wrote: > > http://wso2.com/library/articles/2015/07/article-multi-environment-artifact-management-for-wso2-products-using-wso2-governance-registry/ > > On Sat, Feb 20, 2016 at 2:31 AM, John Q <johnq3...@gmail.com> wrote: > >> Hello, >> Which is the better approach to externalize parameters in esb artifacts, >> for example, a username and password pair used within a sequence. I'm using >> local-entries for this purpose. but the values of these local entries are >> not the same in dev and production environments. >> >> Once these local entries are deployed into the server, I need to make >> future deployments of sequences, proxies, etc, and prevent these local >> entries to be overwritten with the local entries. >> >> Can any body give me some advice or guide in order to face these >> deployment relative issues? >> >> Thanks in advice, >> John >> >> ___ >> Architecture mailing list >> architect...@wso2.org >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > > -- > Sanjiva Weerawarana, Ph.D. > Founder, CEO & Chief Architect; WSO2, Inc.; http://wso2.com/ > email: sanj...@wso2.com; office: (+1 650 745 4499 | +94 11 214 5345) > x5700; cell: +94 77 787 6880 | +1 408 466 5099; voip: +1 650 265 8311 > blog: http://sanjiva.weerawarana.org/; twitter: @sanjiva > Lean . Enterprise . Middleware > > ___ > Architecture mailing list > architect...@wso2.org > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Dimuthu Leelarathne Director WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] DevOps Tooling for Microservice Framework for Java
Hi Nanduni, Please stop calling me Madam. I am Dimuthu. thanks, Dimuthu On Fri, Feb 19, 2016 at 2:12 PM, Nanduni Nimalsiri <nanduni...@cse.mrt.ac.lk > wrote: > Dear Madam, > > Since Project 15 is no longer available in the list, I would like to > proceed with Proposal 2: Developer Tooling for Microservice Framework for > Java > <https://docs.wso2.com/display/GSoC/Project+Proposals+for+2016#ProjectProposalsfor2016-Proposal2:DeveloperToolingforMicroserviceFrameworkforJava>. > Actually I like to do a project with MSF4J since I am quite familiar with > it. > > I would be glad if you can tell me how I should proceed with this project. > Please let me know if I should create a new mail thread for this > discussion. Thank you. > > Best Regards, > Nanduni. > > > > On 19 February 2016 at 13:28, Nanduni Nimalsiri <nanduni...@cse.mrt.ac.lk> > wrote: > >> Dear Madam, >> >> Thank you for letting me know it. >> >> Best regards, >> Nanduni. >> >> >> On 19 February 2016 at 10:56, Dimuthu Leelarathne <dimut...@wso2.com> >> wrote: >> >>> Hi, >>> >>> Sorry, I have removed the project from he list. >>> >>> thanks, >>> Dimuthu >>> >>> On Thu, Feb 18, 2016 at 11:30 AM, Nanduni Nimalsiri < >>> nanduni...@cse.mrt.ac.lk> wrote: >>> >>>> Dear Madam, >>>> >>>> I am Nanduni Nimalsiri, a third year undergraduate at Department of >>>> Computer Science and Engineering, University of Moratuwa. I would like to >>>> take part in GSOC Programme 2016 with a WSO2 project. >>>> >>>> I have went through the WSO2 GSoC Project Proposals for 2016. I am very >>>> interested on Proposal 15: DevOps Tooling for Microservice Framework >>>> for Java >>>> <https://docs.wso2.com/display/GSoC/Project+Proposals+for+2016#ProjectProposalsfor2016-Proposal15:DevOpsToolingforMicroserviceFrameworkforJava> >>>> and >>>> I suppose that I would be able to contribute to this project. I have been >>>> always looking for a similar project as I had done some research stuff >>>> related to Kubernetes Open Source Project during my internship at WSO2. I >>>> have some understanding on Docker and Kubernetes stuff. I have created >>>> several blog posts on my findings. [1] >>>> >>>> I suppose that my prior experience of working with WSO2 Microservice >>>> Framework for Java (MSF4J) and Kubernetes projects would be helpful for me >>>> to proceed with this project. During my internship, I worked with the >>>> sample '*Petstore*' in MSF4J. During that project, my job was to make >>>> that sample work in Linux environment, because it had been only tested in >>>> MacOS X by that time. I used two approaches for that: Running Kubernetes >>>> via Vagrant and Running Kubernetes locally via Docker. I have created a >>>> blog post on that task. [2] >>>> >>>> I am quite familiar with MSF4J and I have some kind of understanding on >>>> how microservices are developed using WSO2 MSF4J. I have not used AWS or >>>> Openstack, but I will try experiencing those technologies as well. I have >>>> good experience in coding in Java which I have also used for most of my >>>> projects at university. >>>> >>>> I am not very clear on what deliverables that this project expects. >>>> Regarding that, I have the following problems. >>>> - What kind of a '*tool'* that this project expects >>>> - What does this tool should actually do >>>> - How should this tool connect with MSF4J and Kubernetes/Openstack/AWS >>>> >>>> It would be a great help if you can clarify the above doubts. >>>> >>>> After going through the references and documentations which have been >>>> mentioned, I am planning to further expand my knowledge on the subject >>>> areas. Can you please tell me how should I proceed with this project. >>>> What tasks should I need to do to get started. Any suggestions are >>>> highly appreciated. >>>> >>>> >>>> [1] http://nanduni.blogspot.com/ >>>> [2] http://nanduni.blogspot.com/2015/10/wso2-mss-pet-store-sample.html >>>> >>>> Best regards, >>>> Nanduni. >>>> >>>> >>>> -- >>>> *Nanduni Nimalsiri* >>>> Undergraduate, Department of Computer Science and Engineering,
Re: [Dev] [VOTE] Release WSO2 Microservices Server 1.0.0 RC2
Hi, Additionally I don't think the MSS samples are very developer friendly. I think we have gone too far to minimize pom.xmls. 1 - In deployble-jar sample I was trying to figure out which plugin is copying the property "Microservices" to the MANIFEST.MF file. The following very important plugin is missing in the immediate pom file and hence the sample is not very useful. org.apache.maven.plugins maven-jar-plugin $ {microservice.resourceClasses} 2 - Bunle sample is worse. I had to trace back to following pom to take the bundle plugin (with Samiyuru's help). org.wso2 wso2 2 thanks, Dimuthu On Wed, Jan 6, 2016 at 11:18 PM, Afkham Azeez <az...@wso2.com> wrote: > DimuthuL reported that in the case of deployable jar mode, the classes > coming from OSGi bundles in the enviroment are not visible to the classes > inside the deployable jar. I think this is a blocker for the release. > > On Wed, Jan 6, 2016 at 3:29 PM, Samiyuru Senarathne <samiy...@wso2.com> > wrote: > >> Hi Devs, >> >> This is the 2nd Release Candidate of WSO2 Microservices Server 1.0.0. >> >> Please download, test the product and vote. >> >> *Source and binary distribution files:* >> https://github.com/wso2/product-mss/releases/tag/v1.0.0-RC2 >> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2%2Fproduct-mss%2Freleases%2Ftag%2Fv1.0.0-RC2=D=1=AFQjCNEPlH9995oXWdOhW8f6_PUmLlt0cw> >> >> *Maven staging repository:* >> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonmss-274 >> >> *The tag to be voted upon:* >> *https://github.com/wso2/product-mss/tree/v1.0.0-RC2 >> <https://github.com/wso2/product-mss/tree/v1.0.0-RC2>* >> >> >> [ ] Broken - do not release (explain why) >> [ ] Stable - go ahead and release >> >> Note: Since the artifacts that have to be uploaded to the maven central >> are not yet uploaded please make sure to first build the project from the >> source in order to make all artifacts available in the maven local >> repository. >> >> Thank you, >> Carbon Team >> >> -- >> Samiyuru Senarathne >> *Software Engineer* >> Mobile : +94 (0) 71 134 6087 >> samiy...@wso2.com >> > > > > -- > *Afkham Azeez* > Director of Architecture; WSO2, Inc.; http://wso2.com > Member; Apache Software Foundation; http://www.apache.org/ > * <http://www.apache.org/>* > *email: **az...@wso2.com* <az...@wso2.com> > * cell: +94 77 3320919 <%2B94%2077%203320919>blog: * > *http://blog.afkham.org* <http://blog.afkham.org> > *twitter: **http://twitter.com/afkham_azeez* > <http://twitter.com/afkham_azeez> > *linked-in: **http://lk.linkedin.com/in/afkhamazeez > <http://lk.linkedin.com/in/afkhamazeez>* > > *Lean . Enterprise . Middleware* > -- Dimuthu Leelarathne Director WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [VOTE] Release WSO2 Microservices Server 1.0.0 RC2
On Thu, Jan 7, 2016 at 11:51 AM, Dimuthu Leelarathne <dimut...@wso2.com> wrote: > > > On Thu, Jan 7, 2016 at 11:18 AM, Afkham Azeez <az...@wso2.com> wrote: > >> No I totally disagree with you. We have made our POMs less verbose so >> that the developers can focus on what is necessary. We put in a lot of >> thought before going for this minimized POMs. Instead of copying & pasting >> a lot of XML, you focus on only the bits that are relevant to your >> microservice bundle or jar. With some basic Maven knowledge, you can figure >> out from where the relevant plugins are inherited. >> > > > Yes. One can figure out. But, not developer friendly. IMO, we need to > include the jar-plugin configuration. That is not making it verbose, but > rather user friendly. > Why do I have to browse the internet looking for a pom file (if I haven't built the MSS myself)? I believe we need to minimally include the jar-plugin configuration. > > > >> >> On Thu, Jan 7, 2016 at 10:50 AM, Dimuthu Leelarathne <dimut...@wso2.com> >> wrote: >> >>> Hi, >>> >>> Additionally I don't think the MSS samples are very developer friendly. >>> I think we have gone too far to minimize pom.xmls. >>> >>> 1 - In deployble-jar sample I was trying to figure out which plugin is >>> copying the property "Microservices" to the MANIFEST.MF file. The following >>> very important plugin is missing in the immediate pom file and hence the >>> sample is not very useful. >>> >>> >>> org.apache.maven.plugins >>> maven-jar-plugin >>> >>> >>> >>> $ >>> {microservice.resourceClasses} >>> >>> >>> >>> >>> >>> >>> >>> 2 - Bunle sample is worse. I had to trace back to following pom to take >>> the bundle plugin (with Samiyuru's help). >>> >>> org.wso2 >>> wso2 >>> 2 >>> >>> >>> thanks, >>> >>> Dimuthu >>> >>> >>> >>> On Wed, Jan 6, 2016 at 11:18 PM, Afkham Azeez <az...@wso2.com> wrote: >>> >>>> DimuthuL reported that in the case of deployable jar mode, the classes >>>> coming from OSGi bundles in the enviroment are not visible to the classes >>>> inside the deployable jar. I think this is a blocker for the release. >>>> >>>> On Wed, Jan 6, 2016 at 3:29 PM, Samiyuru Senarathne <samiy...@wso2.com> >>>> wrote: >>>> >>>>> Hi Devs, >>>>> >>>>> This is the 2nd Release Candidate of WSO2 Microservices Server 1.0.0. >>>>> >>>>> Please download, test the product and vote. >>>>> >>>>> *Source and binary distribution files:* >>>>> https://github.com/wso2/product-mss/releases/tag/v1.0.0-RC2 >>>>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2%2Fproduct-mss%2Freleases%2Ftag%2Fv1.0.0-RC2=D=1=AFQjCNEPlH9995oXWdOhW8f6_PUmLlt0cw> >>>>> >>>>> *Maven staging repository:* >>>>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonmss-274 >>>>> >>>>> *The tag to be voted upon:* >>>>> *https://github.com/wso2/product-mss/tree/v1.0.0-RC2 >>>>> <https://github.com/wso2/product-mss/tree/v1.0.0-RC2>* >>>>> >>>>> >>>>> [ ] Broken - do not release (explain why) >>>>> [ ] Stable - go ahead and release >>>>> >>>>> Note: Since the artifacts that have to be uploaded to the maven >>>>> central are not yet uploaded please make sure to first build the project >>>>> from the source in order to make all artifacts available in the maven >>>>> local repository. >>>>> >>>>> Thank you, >>>>> Carbon Team >>>>> >>>>> -- >>>>> Samiyuru Senarathne >>>>> *Software Engineer* >>>>> Mobile : +94 (0) 71 134 6087 >>>>> samiy...@wso2.com >>>>> >>>> >>>> >>>> >>>> -- >>>> *Afkham Azeez* >>>> Director of Architecture; WSO2, Inc.; http://wso2.com >>>> Member; Apache Software Foundation; http://www.apache.org/ >>>> * <http://www.apache.org/>* >>>> *email: **az...@wso2.com* <az...@wso2.com> >>>> * cell: +94 77 3320919 <%2B94%2077%20332091
Re: [Dev] Get Absolute Path Of File In App Cloud
Hi, Use getResourceAsStream method. thanks, dimuthu On Wed, Sep 30, 2015 at 3:11 PM, Lasantha Dharmakeerthi <lasant...@wso2.com> wrote: > Hi > Devs > > I have created jaggery app and deployed it in wso2 app cloud. I have > method to read a certificate file and certificate is in the jaggery app. > > In local Aplication Server I used file path like wise “ > repository/deployment/server/jaggeryapps/Parkingapp > /resources/wso2defaultpub.cer” > > So how can I get path to my certificate file in WSO2 App Cloud? Is it same > structure? > > Thanks > Lasantha. > > -- > Dharmakeerthi Lasantha > Software Engineer Trainee, WSO2 > Mobile 0774928852 > -- Dimuthu Leelarathne Director WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Setup AF development environment without 3 Greg instances
Hi Amalka, Is the first one happening automatically? thanks, dimuthu On Wed, Sep 23, 2015 at 3:49 PM, Amalka Subasinghe <ama...@wso2.com> wrote: > Hi, > > With 2.2.0-M3 we introduced 3 Greg servers to manage registry resources > for dev, test and prod environments. But still we can manage the resources > without 3 Greg instances, giving the resource management responsibility to > App servers. > > *What we need to do:* > > 1. Copy following jars to 3 appservers > org.wso2.carbon.appfactory.resource.mgt-2.2.0-SNAPSHOT.jar > org.wso2.carbon.registry.ws.client_4.2.0.jar > org.wso2.carbon.registry.ws.stub_4.2.0.jar > > 2. Update the appfactory.xml in appfactory node. > Change the port of GregServerURL under each deployment stage to 9443 > > https://gregserver.dev.appfactory.private.wso2.com:9443/services/ > > > 3. Update the Greg host entries in /etc/hosts file as follows > gregserver.dev.appfactory.private.wso2.com > gregserver.test.appfactory.private.wso2.com > gregserver.prod.appfactory.private.wso2.com > > > I have updated puppet modules [1] to setup App servers with all the above > jars every time. So, when a developer wants to setup the AF without 3 > Gregs: remove the the dev_greg, test_greg, prod_greg strings from [2] file > and setup the app factory, then do the 2nd and 3rd setps mentioned above. > > [1] > https://github.com/wso2/product-af/blob/master/modules/puppet-manifests/ > [2] > https://github.com/wso2/product-af/blob/master/modules/puppet-manifests/setup-script/config.properties > > Thanks > Amalka > -- Dimuthu Leelarathne Director WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Repository Versioning & Forks
Hi Danushka, Please see my comments inline. On Thu, Sep 10, 2015 at 2:38 PM, Danushka Fernando <danush...@wso2.com> wrote: > Hi All > > In AF with previous UIs we had a functionality of adding a version/branch > to the fork. With this button in UI we create the branch in fork and also > we are creating a build job for the version/branch in the fork as well. But > with new UX/UI changes we don’t have such functionality given in AF UIs. So > we don’t have a way to create a build job for version of a fork. > > If we are staying with new UX changes as it is, then one way to solve this > is create a build job for the version in all the forks when the version get > creates. But if we create a build job for all versions of a fork, some may > not be using the given version and still we keeping a build job for the > version which will never be used. > The user story is a person consciously need to add a build job to a branch. So I think it is correct to have such a functionality - maybe in the Build UI. thanks, dimuthu > > > So can we add this functionality for AF new UIs? WDYT? > > Thanks & Regards > Danushka Fernando > Senior Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 > -- Dimuthu Leelarathne Director WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFactory][Discuss] URL construction for snigle tenant applications
Hi Anuruddha, We need to check how domain mapping works on top of this as well. thanks, dimuthu On Mon, Aug 24, 2015 at 8:42 PM, Imesh Gunaratne im...@wso2.com wrote: Hi Anuruddha, Yes, the only way to avoid exposing the generated Kubernetes service ports is to use a load balancer in front. +1 for the proposal. In the cartridge definition we can define required proxy ports for each port mapping to be exposed by the load balancer. On Mon, Aug 24, 2015 at 6:15 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi All, I have attached a possible solution diagram for single tenant URL flow. For dev-setups we can make use nginx for load balancing and BIND9 for DNS mapping. WDYT? AppFactory single tenant URL flow https://docs.google.com/a/wso2.com/drawings/d/1kbXH9gudC4pdvM86TqPX5C0NmM0T5ghKvf7nvTCVOdM/edit?usp=drive_web Regards, Anuruddha. On Mon, Aug 24, 2015 at 4:39 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi All, With the new Stratos and kubernetes Appfactory has the single tenant application support. With this feature users will be able to spin a new instance for single tenant supported apps and it's versions. This thread is to discuss how we should expose the deployed application URL to the user. There single tenant instances are spawned as containers in docker. Access to the container is differ by the port, IP is a fixed factor depending on the number of kubernetes nodes. One option is to expose the URL with port, however for production instances we have to provide a URL without port. Appreciate your input. Regards, -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- *Imesh Gunaratne* Senior Technical Lead WSO2 Inc: http://wso2.com T: +94 11 214 5345 M: +94 77 374 2057 W: http://imesh.gunaratne.org Lean . Enterprise . Middleware -- Dimuthu Leelarathne Director WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Status update] Adding single tenant cartridge support to appfactory
] asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988 with [last time-stamp] 1438580270973 [time-out] 6 milliseconds* *TID: [0] [SCC] [2015-08-03 11:26:38,956] INFO {org.apache.stratos.cep.extension.FaultHandlingWindowProcessor} - Publishing member fault event for [member-id] asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988* *TID: [0] [SCC] [2015-08-03 11:26:38,969] DEBUG {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver} - Member fault event received: [member] asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988 * *TID: [0] [SCC] [2015-08-03 11:26:38,969] DEBUG {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver} - A cluster monitor is not found in autoscaler context [cluster] asdevelopment.anuasdevelopment.anuasdevelopment.domain* Thanks Regards, -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Rajkumar Rajaratnam Committer PMC Member, Apache Stratos Software Engineer, WSO2 Mobile : +94777568639 Blog : rajkumarr.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Rajkumar Rajaratnam Committer PMC Member, Apache Stratos Software Engineer, WSO2 Mobile : +94777568639 Blog : rajkumarr.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Rajkumar Rajaratnam Committer PMC Member, Apache Stratos Software Engineer, WSO2 Mobile : +94777568639 Blog : rajkumarr.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Error messages delivered via MB in AF setup
Hi all, Considering the functionality it provides (error messages) and since the wall already provides error messages lets remove it from AF. Because it only adds more complexity. thanks, dimuthu -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFac] Access AppFactory REST API
-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777 %2B94%2071%208279777* -- ~Regards *Manisha Eleperuma* Senior Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777 %2B94%2071%208279777* -- ~Regards *Manisha Eleperuma* Senior Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777 %2B94%2071%208279777* -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Improvement of AF Wall using Web Sockets and Nginx
Hi Sabra, Yes. This looks good. Please proceed. thanks, dimuthu On Tue, Jun 30, 2015 at 10:01 AM, Sabra Ossen sabra...@gmail.com wrote: Hi All, During implementation an issue was raised on using the curl client to send messages to the echo server. Therefore in order for the Java echo server to be able to accept messages from the curl client I have included a JAX- RS web service in between. I have attached a diagram showing the updated design for the POC. Regards. Sabra. On Fri, Jun 19, 2015 at 2:13 PM, Sabra Ossen sabra...@gmail.com wrote: Hi Manjula, Okay, then I will focus on step 1 and 2. And I will also check if the latest AS release supports web sockets, failing which I will proceed with AS 5.1.0. Thanks for the help. Regards. On Fri, Jun 19, 2015 at 11:26 AM, Manjula Rathnayake manju...@wso2.com wrote: Hi Sabra, These notes cover most of the items of we discussed. IMO, we do not need to consider step 3 at this point of POC. It is more related to AF Wall functionality. After completing POC, we will have a demo and discuss next steps. I was checking if latest application server supports web sockets but for AS 5.1.0, I could find some samples at [1]. [1]. https://svn.wso2.org/repos/wso2/carbon/platform/tags/4.1.0/products/as/5.1.0/modules/samples/common/webapp/src/main/java/websocket/ thank you. On Fri, Jun 19, 2015 at 11:18 AM, Sabra Ossen sabra...@gmail.com wrote: Hi All, Currently in AF the FE (AF Wall) polls the BE (Social Component) to identify and display notifications. The method proposed below is for $subject. The PoC for $subject is as follows. *1) The curl client pushes data to the Java Echo Server (Hosted in WSO2 AS) which then writes to the client browser through the web socket.* I have attached a screen shot of a diagram showing the design. Nginx is used to emphasize on load balancing and as a proxy. 2) With the completion of the above step then we move on to the next step of *creating a listener for the Social API replacing the Java Echo Server* and then port the code to AF. 3) One issue raised during discussion of $subject was the *rendering of relevant content in a switch happening between two pages.* For example, the curl client pushes msg1 to page1 and msg2 to page2. During this switch the same web socket connection should be used rather than restarting a new connection. @Dimuthu and Manjula, Please let me know if I have missed anything and any further opinions you have on $subject. One clarification I require is that should the point mentioned in step 3 be completed, after step 1 or after completion of steps 1 and 2. Thanks in advance. -- Sabra Ossen http://lk.linkedin.com/in/sabraossen Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka -- Manjula Rathnayaka Software Engineer WSO2, Inc. Mobile:+94 77 743 1987 -- Sabra Ossen http://lk.linkedin.com/in/sabraossen Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka -- Sabra Ossen http://lk.linkedin.com/in/sabraossen Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFac] Error occurred while loading user application list
Hi Dilhasha, Is this a one time occurring or repeated? thanks, dimuthu On Wed, Jul 1, 2015 at 9:14 PM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I'm getting an error Error occurred while loading user application list in the Application Manager page of App cloud. I have attached a screen shot of the error I'm getting. Please let me know the reason for this and any way to correct it. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] WSO2 Governance Registry 5.0.0 Alpha Released
Nazeer Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com ___ Architecture mailing list architect...@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFac] Error occurred while loading user application list
Hi Fathima, Please send me your tenant details. thanks, dimuthu On Thu, Jul 2, 2015 at 7:27 AM, danush...@wso2.com wrote: This could be due to corrupted appinfo rxt. Thanks Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 *From:* Fathima Dilhasha dilhasha@gmail.com *Sent:* Thursday, July 2, 2015 5:32 AM *To:* Punnadi Gunarathna punn...@wso2.com *Cc:* WSO2 Developers' List dev@wso2.org Hi Punnadi, I started getting this error since last night. I didn't do any activity except for few REST API commands. For example login, app details, triggering a build, etc. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Thu, Jul 2, 2015 at 5:18 AM, Punnadi Gunarathna punn...@wso2.com wrote: Hi Fathima, In that case we will have to dig down what the exact reason of causing this failure. When did you start getting this error? What was the last activity you did prior getting this behavior? We can ask someone from cloud team to check the AF logs. On Thu, Jul 2, 2015 at 5:16 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Dimuthu, It seems the problem is with that particular account. I created another account and it works well without any errors. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Thu, Jul 2, 2015 at 5:10 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Dimuthu, No it is not. I'm still getting that error. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Wed, Jul 1, 2015 at 10:46 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Dilhasha, Is this a one time occurring or repeated? thanks, dimuthu On Wed, Jul 1, 2015 at 9:14 PM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I'm getting an error Error occurred while loading user application list in the Application Manager page of App cloud. I have attached a screen shot of the error I'm getting. Please let me know the reason for this and any way to correct it. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Thanks and Regards, Punnadi Gunarathna Senior Software Engineer, WSO2, Inc.; http://wso2.com http://wso2 Blog: http://hi-my-world.blogspot.com/ Tel : 94 11 214 5345 Fax :94 11 2145300 http://lalajisureshika.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [GSoC-2015] Proposal 6- AppFactory Command Line Tool
Hi Fathima, Makes sense! Thanks for the explanation. thanks, dimuthu On Wed, Jun 17, 2015 at 7:28 PM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Dimuthu, I suggested a rule based engine over a switch case based approach taking following things into consideration. - reduction in the time taken to evaluate a command over a switch case based approach - allows for maximum reuse of the code - easier to extend for any new commands - have been used by similar CLI tools Please find the attached class diagram for the basic design of rule based engine. The basic idea is to have several implementations for the Command, so that all the available commands can be maintained in the command Factory. Your feedback and suggestions on this are highly appreciated. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Wed, Jun 17, 2015 at 10:58 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Fathima, Why do you think of having a rule based engine? Could you attach the design to the mail please? thanks, dimuthu On Wed, Jun 17, 2015 at 10:40 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, I have started a Google doc [1] https://docs.google.com/document/d/1bD9ouBR2HeDWQ-bmx7OxKQ9q8Km4u6S6UyqlFx0ASfQ/edit?usp=sharingfor the documentation of the project. I will update implementation details as well. Please provide any suggestions on any other details to be included. [1] https://docs.google.com/document/d/1bD9ouBR2HeDWQ-bmx7OxKQ9q8Km4u6S6UyqlFx0ASfQ/edit?usp=sharing Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Mon, Jun 15, 2015 at 9:48 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, *Notes from Progress Discussion* - Try using [1] https://github.com/golang-basic/go-curl for REST API access instead of go-curl [2] http://golang.org/pkg/net/http/ - Figure out requirements for a command based on [1] https://github.com/golang-basic/go-curl - Finish at least one API access functionality before mid review [1] https://github.com/golang-basic/go-curl [2] http://golang.org/pkg/net/http/ Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Fri, Jun 12, 2015 at 8:29 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi, *Progress Update* I have started the implementation of the CLI tool for WSO2 App Factory and I have been able to build an initial CLI tool (Showing help commands) compatible with Linux, windows and mac OS. As the next step I came up with a design for a rule based engine to evaluate and execute commands within the tool. The implementation of the rule engine is in progress. Currently, I am trying to use go-curl [1 https://github.com/golang-basic/go-curl] for the execution of the commands. The next progress discussion for $subject is to be held on Monday, 15th. [1] https://github.com/golang-basic/go-curl Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Mon, Mar 30, 2015 at 2:56 PM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Anuruddha, I have commented the details of the updated project proposal in the GSoC site. Please let me know if any further changes are required. Thanks. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Mon, Mar 23, 2015 at 3:11 PM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Anuruddha, Okay thank you. I will incorporate those basic features. Regards, Dilhasha Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka On Mon, Mar 23, 2015 at 12:45 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi Fathima, As we discussed in the hangout you can prepare the proposal with few basic operations as application creation/deletion, app life-cycle management, trigger builds, app deployment etc.. Once the CLI basics are in place adding an operation would be as easy as parsing arguments and calling the correct api end-points with parameters. Regards, Anuruddha. On Sun, Mar 22, 2015 at 10:39 AM, Fathima Dilhasha dilhasha@gmail.com wrote: Hi Anuruddha, I need the set of operations that need to be supported
Re: [Dev] Cross Origin Request Blocked when using socket.io
Hi Sabra, Please find my answers inline. On Thu, Jun 18, 2015 at 7:27 AM, Sabra Ossen sabra...@gmail.com wrote: Hi Dimuthu, I understand the requirements, but have a few questions regarding the polling and the server. The appmgt jaggery app is hosted in the AS in cloud right? The NodeJS exercise was suggested for you to learn and get familiar with socket io. But the real requirement is for appmgt jaggery app. It is hosted in a AS-like server, which is AF server. If you can disable the login in AF, you can do the test in AF server as well. But if you make it work in AS then we can reuse it in AF too. Why does the FE poll the BE? Is it to inform the user the progress of the application creation ( during this time the user does not perform any action)? Is this app creation time the only time the FE polls the BE? Not just for app creation. If you login to App Cloud it updates with all events, build, deploy, user addition, resource addition and etc ... Therefore we need to poll it. thanks, dimuthu Thanks in advance for the clarifications. Regards. Sabra. On Thursday, June 18, 2015, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Sabra, Here is how socket.io can help in App Factory case. I have logged into Cloud and gone into this page - https://apps.cloud.wso2.com/appmgt/site/pages/index.jag. I am attaching a screenshot. Here the FE polls the BE every second to update the wall. But actually I am not doing any action. Since we don't have socket.io we are using the only other option we have - polling. We want to use socket.io instead of polling. Please let me know if you don't understand the requirement. thanks, dimuthu On Wed, Jun 17, 2015 at 10:07 PM, Sabra Ossen sabra...@gmail.com wrote: Hi Dimuthu, Yes. I will research on integrating the socket.io code to App Server, if it becomes successful integrating the socket.io code to jaggery would be the next step. I will update you on the progress. Thanks. Sabra. On Wednesday, June 17, 2015, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Sabra, We definitely can use this if we can check whether same principals can be applied to a Jaggery app in App server. Then we can use it for the wall improvements. thanks, dimuthu On Wed, Jun 17, 2015 at 6:46 PM, Sabra Ossen sabra...@gmail.com wrote: Hi Dimuthu, I believe so. By following the blog I was able to use Nginx and socket.io in load balancing a real time chat app which was hosted using node js, whereas the same principle is applicable if the jaggery files ( content we serve from the server ) as well as the server contains socket.io code integrated. Thanks. Sabra On Wednesday, June 17, 2015, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Sabra, Could we setup Jaggery in the same way? thanks, dimuthu On Tue, Jun 16, 2015 at 1:03 PM, Sabra Ossen sabra...@gmail.com wrote: Hi All, I was able to resolve the issue. The problem was that I was accessing the socket.io chat app that I created, from the file system. The correct way to access the chat app was by going to localhost:3000/ ( host and port, where the server can be accessed indicated by the code in index.js) in the web browser and there was no need to download the socket.io and jquery js files. Thanks Tharik for helping me get a clear understanding on CORS. Regards. On Sun, Jun 14, 2015 at 10:33 PM, Sabra Ossen sabra...@gmail.com wrote: Hi Tharik, I searched up on CORS (Cross Origin Resource Sharing) and based on my understanding the problem is that I am trying to access a resource on another domain from my domain. Therefore a simple solution would be to download both the *socket.io-1.2.0.js and jquery-1.11.1.js*. I included them in the directory containing the html file and changed the script as follows. *.* *script src=socket.io-1.2.0.js/scriptscript src=jquery-1.11.1.js/script* *.* But the error still persists. Regards. On Sun, Jun 14, 2015 at 8:14 AM, Tharik Kanaka tha...@wso2.com wrote: Hi Sabra, This happens because of same origin policy where that specific resource hosted at some other domain and javascript is running on local machine. To resolve that usually CORS headers needs to be added to the response from the server side. In your case did you try by moving *socket.io-1.2.0.js* file (where you refer CDN hosted file in the code) to your local machine and refer it? Regards, On Sat, Jun 13, 2015 at 9:36 PM, Sabra Ossen sabra...@gmail.com wrote: Hi All, I am following the tutorial mentioned in [1] and trying to create a chat application using socket.io and node js. I have installed express and socket.io on my machine. The versions are specified in the package.json below. *{ name: socket-chat-example, version: 0.0.1, description: my first socket.io http://socket.io app, dependencies: {express: ~4.10.2,socket.io http://socket.io: ~1.2.0 }}* The node server code
Re: [Dev] Cross Origin Request Blocked when using socket.io
, Sri Lanka Email: tha...@wso2.com | Web: www.wso2.com -- Sabra Ossen http://lk.linkedin.com/in/sabraossen Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka -- Sabra Ossen http://lk.linkedin.com/in/sabraossen Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Cross Origin Request Blocked when using socket.io
Hi Sabra, We definitely can use this if we can check whether same principals can be applied to a Jaggery app in App server. Then we can use it for the wall improvements. thanks, dimuthu On Wed, Jun 17, 2015 at 6:46 PM, Sabra Ossen sabra...@gmail.com wrote: Hi Dimuthu, I believe so. By following the blog I was able to use Nginx and socket.io in load balancing a real time chat app which was hosted using node js, whereas the same principle is applicable if the jaggery files ( content we serve from the server ) as well as the server contains socket.io code integrated. Thanks. Sabra On Wednesday, June 17, 2015, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Sabra, Could we setup Jaggery in the same way? thanks, dimuthu On Tue, Jun 16, 2015 at 1:03 PM, Sabra Ossen sabra...@gmail.com wrote: Hi All, I was able to resolve the issue. The problem was that I was accessing the socket.io chat app that I created, from the file system. The correct way to access the chat app was by going to localhost:3000/ ( host and port, where the server can be accessed indicated by the code in index.js) in the web browser and there was no need to download the socket.io and jquery js files. Thanks Tharik for helping me get a clear understanding on CORS. Regards. On Sun, Jun 14, 2015 at 10:33 PM, Sabra Ossen sabra...@gmail.com wrote: Hi Tharik, I searched up on CORS (Cross Origin Resource Sharing) and based on my understanding the problem is that I am trying to access a resource on another domain from my domain. Therefore a simple solution would be to download both the *socket.io-1.2.0.js and jquery-1.11.1.js*. I included them in the directory containing the html file and changed the script as follows. *.* *script src=socket.io-1.2.0.js/scriptscript src=jquery-1.11.1.js/script* *.* But the error still persists. Regards. On Sun, Jun 14, 2015 at 8:14 AM, Tharik Kanaka tha...@wso2.com wrote: Hi Sabra, This happens because of same origin policy where that specific resource hosted at some other domain and javascript is running on local machine. To resolve that usually CORS headers needs to be added to the response from the server side. In your case did you try by moving *socket.io-1.2.0.js* file (where you refer CDN hosted file in the code) to your local machine and refer it? Regards, On Sat, Jun 13, 2015 at 9:36 PM, Sabra Ossen sabra...@gmail.com wrote: Hi All, I am following the tutorial mentioned in [1] and trying to create a chat application using socket.io and node js. I have installed express and socket.io on my machine. The versions are specified in the package.json below. *{ name: socket-chat-example, version: 0.0.1, description: my first socket.io http://socket.io app, dependencies: {express: ~4.10.2,socket.io http://socket.io: ~1.2.0 }}* The node server code is specified below. *var app = require('express')();var http = require('http').Server(app);var io = require('socket.io http://socket.io')(http);app.get('/', function(req, res){ res.sendFile(__dirname + '/index.html');});io.on('connection', function(socket){ socket.on('chat message', function(msg){ io.emit('chat message', msg); });});http.listen(3000, function(){ console.log('listening on *:3000');});* The content of the html file being accessed is specified below. *!doctype htmlhtml headtitleSocket.IO chat/title style * { margin: 0; padding: 0; box-sizing: border-box; } body { font: 13px Helvetica, Arial; } form { background: #000; padding: 3px; position: fixed; bottom: 0; width: 100%; } form input { border: 0; padding: 10px; width: 90%; margin-right: .5%; } form button { width: 9%; background: rgb(130, 224, 255); border: none; padding: 10px; } #messages { list-style-type: none; margin: 0; padding: 0; } #messages li { padding: 5px 10px; } #messages li:nth-child(odd) { background: #eee; }/style /head bodyul id=messages/ulform action= input id=m autocomplete=off /buttonSend/button/formscript src=https://cdn.socket.io/socket.io-1.2.0.js https://cdn.socket.io/socket.io-1.2.0.js/scriptscript src=http://code.jquery.com/jquery-1.11.1.js http://code.jquery.com/jquery-1.11.1.js/scriptscript var socket = io(); $('form').submit(function(){socket.emit('chat message', $('#m').val());$('#m').val('');return false; }); socket.on('chat message', function(msg){ $('#messages').append($('li').text(msg)); });/script /body/html* The code can also be found in [2]. I am getting the following error in the firefox console with the app failing. *Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://file/socket.io/?EIO=3transport=pollingt=1434211017174-2 http://file/socket.io/?EIO=3transport=pollingt=1434211017174-2
Re: [Dev] [GSoC-2015] Proposal 6- AppFactory Command Line Tool
: Hi, I'm a Computer Science and Engineering undergraduate from University of Moratuwa and I'm interested in contributing for proposal [6] https://docs.wso2.com/display/GSoC/Project+Proposals+for+2015#ProjectProposalsfor2015-Proposal6:AppFactory-CommandLineTool . I am planning to address the following in my project proposal. 1. Deciding on a language or framework to implement the CLI Tool and backing up the choice with a research on pros and cons of that method 2. A milestone break down on how I will achieve the tasks for the project using the above mentioned method. Can you point out anything I am missing and assist me on what else I can add ? [6] https://docs.wso2.com/display/GSoC/Project+Proposals+for+2015#ProjectProposalsfor2015-Proposal6:AppFactory-CommandLineTool Fathima Dilhasha Nazeer http://lk.linkedin.com/in/dilhasha/ (M.N.F.Dilhasha) Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFactory] Allow users to create branches and tags using git CLI
Hi Samith, That is why we need to use this for real world development - for example appmgt. Then we'll find lot of loop holes. WDYT? thanks, dimuthu On Thu, Jun 11, 2015 at 7:19 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: On Thu, Jun 11, 2015 at 4:55 PM, Samith Dassanayake sam...@wso2.com wrote: Hi all, Currently App Factory does not allow users to manually create branches or tags(Using git CLI). If we try to create a branch or tag, the requested is rejected by the pre commit hook[1],[2], which has been added to the gitblit server. IMHO since developers are more tend to use git CLI, AF should allow to create branches and tags without going through the AF UI. WDYT? +1. Lets create a Redmine and bring it up in the next product council. thanks, dimuthu [1] https://github.com/wso2/product-af/blob/750962edc389f8eb7ce7bce968799dcf4cdb9a3c/modules/puppet-manifests/appfactory/modules/gitblit/templates/data/groovy/pre-commit-validator.groovy.erb#L157 [2] https://github.com/wso2/product-af/blob/750962edc389f8eb7ce7bce968799dcf4cdb9a3c/modules/components/org.wso2.carbon.appfactory.repository/src/main/java/org/wso2/carbon/appfactory/repository/mgt/service/RepositoryAuthenticationService.java#L51 Thanks, Samith -- Best Regards Samith Dassanayake Software Engineer | Cloud TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +947 76207351 -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AppFactory] Allow users to create branches and tags using git CLI
On Thu, Jun 11, 2015 at 4:55 PM, Samith Dassanayake sam...@wso2.com wrote: Hi all, Currently App Factory does not allow users to manually create branches or tags(Using git CLI). If we try to create a branch or tag, the requested is rejected by the pre commit hook[1],[2], which has been added to the gitblit server. IMHO since developers are more tend to use git CLI, AF should allow to create branches and tags without going through the AF UI. WDYT? +1. Lets create a Redmine and bring it up in the next product council. thanks, dimuthu [1] https://github.com/wso2/product-af/blob/750962edc389f8eb7ce7bce968799dcf4cdb9a3c/modules/puppet-manifests/appfactory/modules/gitblit/templates/data/groovy/pre-commit-validator.groovy.erb#L157 [2] https://github.com/wso2/product-af/blob/750962edc389f8eb7ce7bce968799dcf4cdb9a3c/modules/components/org.wso2.carbon.appfactory.repository/src/main/java/org/wso2/carbon/appfactory/repository/mgt/service/RepositoryAuthenticationService.java#L51 Thanks, Samith -- Best Regards Samith Dassanayake Software Engineer | Cloud TG WSO2, Inc. | http://wso2.com lean. enterprise. middleware Mobile : +947 76207351 -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Why are we having JDBCApplicationDAOTest and JDBCAppVersionDAOTest
Hi Mahesh, These are unit tests. These are very important aspect of testing as well. thanks, dimuthu On Tue, Jun 2, 2015 at 7:11 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, In addition to integration tests we are having JDBCApplicationDAOTest.java and JDBCAppVersionDAOTest.java in org.wso2.carbon.appfactory.core (under src/test). Other org.wso2.carbon.appfactory bundles dont have such test classes. If this is a test case why dont we have it as a integration test case , why is it inside the same bundle ? Or is this some another test thing ? What is the purpose of having it theres ? Can somebody explain to me ? -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- Dimuthu Leelarathne Director Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Clarification on where to find a plain AF pack
Hi, You can find nightly packs from the nightly builds running in Jenkins. https://wso2.org/jenkins/job/product-af/ And latest successful is here - wso2appfactory-2.2.0-SNAPSHOT.zip https://wso2.org/jenkins/job/product-af/196/org.wso2.appfactory$wso2appfactory/artifact/org.wso2.appfactory/wso2appfactory/2.2.0-SNAPSHOT/wso2appfactory-2.2.0-SNAPSHOT.zip thanks, dimuthu On Mon, Jun 1, 2015 at 3:21 PM, Manisha Gayathri mani...@wso2.com wrote: Hi Sabra, Latest released packs can be found from [1] [1]. https://github.com/wso2/product-af/releases Thanks Manisha On Mon, Jun 1, 2015 at 3:16 PM, Sabra Ossen sabra...@gmail.com wrote: Hi, I want to download a plain AF pack. Can it be downloaded from [1]. Any guidance on where it can be found is highly appreciated. Thanks in advance. [1] http://wso2.com/cloud/app-factory/ Regards. Sabra. -- Sabra Ossen http://lk.linkedin.com/in/sabraossen Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- ~Regards *Manisha Eleperuma* Senior Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777 %2B94%2071%208279777* -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Clarification on where to find a plain AF pack
Hi Sabra, I think you better use the releases. They are tested and works. thanks, dimuthu On Mon, Jun 1, 2015 at 5:07 PM, Sabra Ossen sabra...@gmail.com wrote: Hi, Thanks for your prompt responses. In particular where can I find the 2.2.1 beta release pack, I checked the releases in [1] and couldn't find it. And I am unable to access the resource mentioned in wso2appfactory-2.2.0-SNAPSHOT.zip https://wso2.org/jenkins/job/product-af/196/org.wso2.appfactory$wso2appfactory/artifact/org.wso2.appfactory/wso2appfactory/2.2.0-SNAPSHOT/wso2appfactory-2.2.0-SNAPSHOT.zip [1] https://github.com/wso2/product-af/releases Thanks. Sabra. On Mon, Jun 1, 2015 at 3:32 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi, You can find nightly packs from the nightly builds running in Jenkins. https://wso2.org/jenkins/job/product-af/ And latest successful is here - wso2appfactory-2.2.0-SNAPSHOT.zip https://wso2.org/jenkins/job/product-af/196/org.wso2.appfactory$wso2appfactory/artifact/org.wso2.appfactory/wso2appfactory/2.2.0-SNAPSHOT/wso2appfactory-2.2.0-SNAPSHOT.zip thanks, dimuthu On Mon, Jun 1, 2015 at 3:21 PM, Manisha Gayathri mani...@wso2.com wrote: Hi Sabra, Latest released packs can be found from [1] [1]. https://github.com/wso2/product-af/releases Thanks Manisha On Mon, Jun 1, 2015 at 3:16 PM, Sabra Ossen sabra...@gmail.com wrote: Hi, I want to download a plain AF pack. Can it be downloaded from [1]. Any guidance on where it can be found is highly appreciated. Thanks in advance. [1] http://wso2.com/cloud/app-factory/ Regards. Sabra. -- Sabra Ossen http://lk.linkedin.com/in/sabraossen Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- ~Regards *Manisha Eleperuma* Senior Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777 %2B94%2071%208279777* -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Sabra Ossen http://lk.linkedin.com/in/sabraossen Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Cannot identify EPR of data service deployed in cloud
Hi Sabra, Is this secured? thanks, dimuthu On Mon, May 18, 2015 at 5:26 PM, Sabra Ossen sabra...@gmail.com wrote: Hi All, I have deployed a data service in cloud and I am trying to push data to a database in cloud through the data service. I am having a hard time figuring out the end point where I have to push data to. I tested the data service using soap ui and it successfully pushes data. The wsdl for the data service can be seen in [1]. The code to push data is as follows(I have created the client stub using the wsdl mentioned above). *String epr = https://appserver.dev.cloud.wso2.com/services/t/sabra8339/Dataservice1DefaultSNAPSHOT https://appserver.dev.cloud.wso2.com/services/t/sabra8339/Dataservice1DefaultSNAPSHOT;* System.setProperty(javax.net.ssl.trustStore, (new File(TRUST_STORE_PATH)).getAbsolutePath()); System.setProperty(javax.net.ssl.trustStorePassword, TRUST_STORE_PASSWORD); ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(/home/sabra/repository, null); Dataservice1DefaultSNAPSHOTStub stub = new Dataservice1DefaultSNAPSHOTStub(ctx,epr); ServiceClient client = stub._getServiceClient(); Options options = client.getOptions(); client.engageModule(rampart); options.setUserName(admin); options.setPassword(admin); options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, loadPolicy(POLICY_FILE_PATH)); Dataservice1DefaultSNAPSHOTStub.InsertRawLeadsPerWeek request = new Dataservice1DefaultSNAPSHOTStub.InsertRawLeadsPerWeek(); request.setStart_date(2092-04-09); request.setEnd_date(2092-04-8); request.setTotal_users(); request.setEu_users(); request.setNa_users(); request.setRow_users(); request.setUnclassified_users(); stub.insertRawLeadsPerWeek(request); I have no clue as to what is missing. Any help on this issue is highly appreciated. If any further clarification is needed please let me know. [1] https://appserver.dev.cloud.wso2.com/services/t/sabra8339/dataservice1-default-SNAPSHOT?wsdl Regards. -- Sabra Ossen http://lk.linkedin.com/in/sabraossen Undergraduate | Department of Computer Science and Engineering University of Moratuwa Sri Lanka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Rest API used by Dev Studio
Hi all, Could we have a list of methods used by the dev studio? Please note the following methods are proposed to be removed from the code. checkSystemStatus newKey getUniqueAppVersions initAppVersion containsApplication getAppCountInStage getApplicationsOfUser getAllAppVersionsInStage getAppVersionsInStage getAllAppVersionsInStages getAppVersionsInStagesWithMetaData getMetaDataForAppVersion getRetiredVersions getLatestBuildSuccessInfo getBuildableStages thanks, dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WSO2 Committers += Mahesh Chinthaka
Hi all, It is with great pleasure that WSO2 welcomes Mahesh Chinthaka as WSO2 committer! Thank you for your hard work. Congratulation! thanks, dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Goals for the Test hackathon next week
Hi, We are using Carbon integration framework. Here is the first sample. https://github.com/wso2/product-af/blob/master/modules/integration/integration-test-utils/src/main/java/org/wso2/appfactory/integration/test/utils/rest/AppMgtRestClient.java We need to write RestClients for the whole block layer as above. Right now we have one. In a week we'll have 10! Ideally we should NOT wipe out but rather keep creating on top of it. Then when we do a milestone (migration required change) run migration scripts to verify them. thanks, dimuthu On Thu, Apr 23, 2015 at 11:21 AM, Manisha Gayathri mani...@wso2.com wrote: So here, from what I understood, what we are supposed deliver are below - a set of curl commands (since the block layer calls can be executed as REST calls) with validations whether they generate correct results - a shell script to execute all the above curl commands With the CI/CD effort, we will be running integration tests daily. Generally, when the integration tests finishes, we wipe out the system. In this case, we will not flush any tenant data soon after integration tests end, and let this script run against this setup. Then, once these block layer tests are executed, we can wipe out the system. WDYT? Thanks Manisha On Wed, Apr 22, 2015 at 5:47 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi all, Here are some high level goals that comes to my mind. Please keep adding to the list. 1 - Complete block layer covered. We are not looking at end-to-end user story coverage. But complete block layer coverage. End to end user story testing will be done by Selenium later 2 - Tests must run in Staging, Public Cloud, Dev 3 - All app types must be tested WDYT? What else should we cover? thanks, dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- ~Regards *Manisha Eleperuma* Software Engineer WSO2, Inc.: http://wso2.com lean.enterprise.middleware *blog: http://manisha-eleperuma.blogspot.com/ http://manisha-eleperuma.blogspot.com/* *mobile: +94 71 8279777 %2B94%2071%208279777* -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Goals for the Test hackathon next week
Hi all, Here are some high level goals that comes to my mind. Please keep adding to the list. 1 - Complete block layer covered. We are not looking at end-to-end user story coverage. But complete block layer coverage. End to end user story testing will be done by Selenium later 2 - Tests must run in Staging, Public Cloud, Dev 3 - All app types must be tested WDYT? What else should we cover? thanks, dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Fwd: Unable to create apps in the cloud
What apps? Pls be specific. On Apr 15, 2015 2:49 PM, Sabra Ossen sa...@wso2.com wrote: Hi Dimuthu, Yeah, I tried and I am able to create jaggery apps, but no data service apps. I have been unable to create apps since 3 or 4 days ago. And forwarding the mail to dev. Thanks. -- Forwarded message -- From: Dimuthu Leelarathne dimut...@wso2.com Date: Tue, Apr 14, 2015 at 11:12 PM Subject: Re: Unable to create apps in the cloud To: Sabra Ossen sa...@wso2.com Cc: Sumedha Kodithuwakku sumed...@wso2.com Hi Sabra, DSS failed. Jaggery app creation is successful. Please try. thanks, dimuthu On Tue, Apr 14, 2015 at 11:08 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Sabra, This is a private mail... why is it? thanks, dimuthu On Tue, Apr 14, 2015 at 10:40 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Sabra, For how long have you been unable to create applications? thanks, dimuthu On Sun, Apr 12, 2015 at 4:24 PM, Sabra Ossen sa...@wso2.com wrote: Hi Sumedha, I was able to create apps in the cloud until I created an app having the same name/key. Now I am facing the same issue I faced earlier. I tried creating a new tenant but even then I can't create any apps. It would be a great help if you could please look into it. Thanks. -- Sabra Ossen *Software Engineering Intern* Mobile : +94 (0) 775 837 356 sa...@wso2.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Sabra Ossen *Software Engineering Intern* Mobile : +94 (0) 775 837 356 sa...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] java.security.InvalidKeyException in OAuth Access
(CarbonTomcatValve.java:47)* * at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)* * at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)* * at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)* * at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)* * at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)* * at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)* * at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)* * at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)* * at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)* * at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)* * at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)* * at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)* * at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)* * at java.lang.Thread.run(Thread.java:744)* *Caused by: java.lang.RuntimeException: Failed to obtain request token* * at org.wso2.carbon.appfactory.issuetracking.AtlassianOAuthClient.getRequestToken(AtlassianOAuthClient.java:75)* * at org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService.getOAuthAuthorizationUrl(IssueTrackerService.java:77)* * at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)* * at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)* * at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)* * at java.lang.reflect.Method.invoke(Method.java:606)* * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)* * ... 56 more* *Caused by: net.oauth.OAuthException: java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException: Detect premature EOF* * at net.oauth.signature.RSA_SHA1.initialize(RSA_SHA1.java:118)* * at net.oauth.signature.OAuthSignatureMethod.newMethod(OAuthSignatureMethod.java:218)* * at net.oauth.signature.OAuthSignatureMethod.newSigner(OAuthSignatureMethod.java:204)* * at net.oauth.OAuthMessage.sign(OAuthMessage.java:297)* * at net.oauth.OAuthMessage.addRequiredParameters(OAuthMessage.java:287)* * at net.oauth.OAuthAccessor.newRequestMessage(OAuthAccessor.java:91)* * at net.oauth.OAuthAccessor.newRequestMessage(OAuthAccessor.java:97)* * at net.oauth.client.OAuthClient.invoke(OAuthClient.java:252)* * at net.oauth.client.OAuthClient.getRequestTokenResponse(OAuthClient.java:190)* * at org.wso2.carbon.appfactory.issuetracking.AtlassianOAuthClient.getRequestToken(AtlassianOAuthClient.java:64)* * ... 62 more* *Caused by: java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException: Detect premature EOF* * at sun.security.rsa.RSAKeyFactory.engineGeneratePublic(RSAKeyFactory.java:205)* * at java.security.KeyFactory.generatePublic(KeyFactory.java:334)* * at net.oauth.signature.RSA_SHA1.getPublicKeyFromDer(RSA_SHA1.java:136)* * at net.oauth.signature.RSA_SHA1.loadPublicKey(RSA_SHA1.java:315)* * at net.oauth.signature.RSA_SHA1.initialize(RSA_SHA1.java:110)* * ... 71 more* *Caused by: java.security.InvalidKeyException: IOException: Detect premature EOF* * at sun.security.x509.X509Key.decode(X509Key.java:397)* * at sun.security.x509.X509Key.decode(X509Key.java:403)* * at sun.security.rsa.RSAPublicKeyImpl.init(RSAPublicKeyImpl.java:83)* * at sun.security.rsa.RSAKeyFactory.generatePublic(RSAKeyFactory.java:298)* * at sun.security.rsa.RSAKeyFactory.engineGeneratePublic(RSAKeyFactory.java:201)* * ... 75 more* * {module/issuetracker/getIssueSummaries.jag}* Any thoughts on why I'm getting exceptions while decoding RSA keys in carbon environment? Thanks. Regards, Dilhasha *M.N.F. Dilhasha* Software Engineering Intern | *WSO2 Inc.* email : *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321 On Sat, Apr 11, 2015 at 7:41 AM, Fathima Dilhasha dilha...@wso2.com wrote: Hi Dimuthu, Thank you. I have an assumption that it is due to SSL keys. As I'm calling to an https website from App Factory deployment. Shall I install JIRA locally and try it and schedule a call? Will a time around 9-10 a.m. be convenient for u? Thanks. Regards, Dilhasha *M.N.F. Dilhasha* Software Engineering Intern | *WSO2 Inc.* email : *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321 On Sat, Apr 11, 2015 at 7:33 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Fathima, If you want schedule a call at convienient time and send me SMS. I will join and help you debug the code. thanks, dimuthu On Sat, Apr 11, 2015 at 7:26 AM, Dimuthu
Re: [Dev] java.security.InvalidKeyException in OAuth Access
.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)* * at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)* * at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)* * at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)* * at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)* * at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)* * at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)* * at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)* * at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)* * at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)* * at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)* * at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)* * at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)* * at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)* * at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)* * at java.lang.Thread.run(Thread.java:744)* *Caused by: java.lang.RuntimeException: Failed to obtain request token* * at org.wso2.carbon.appfactory.issuetracking.AtlassianOAuthClient.getRequestToken(AtlassianOAuthClient.java:71)* * at org.wso2.carbon.appfactory.issuetracking.service.IssueTrackerService.getOAuthAuthorizationUrl(IssueTrackerService.java:63)* * at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)* * at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)* * at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)* * at java.lang.reflect.Method.invoke(Method.java:606)* * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)* * ... 56 more* *Caused by: net.oauth.OAuthException: java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException: DerInputStream.getLength(): lengthTag=42, too big.* * at net.oauth.signature.RSA_SHA1.initialize(RSA_SHA1.java:118)* * at net.oauth.signature.OAuthSignatureMethod.newMethod(OAuthSignatureMethod.java:218)* * at net.oauth.signature.OAuthSignatureMethod.newSigner(OAuthSignatureMethod.java:204)* * at net.oauth.OAuthMessage.sign(OAuthMessage.java:297)* * at net.oauth.OAuthMessage.addRequiredParameters(OAuthMessage.java:287)* * at net.oauth.OAuthAccessor.newRequestMessage(OAuthAccessor.java:91)* * at net.oauth.OAuthAccessor.newRequestMessage(OAuthAccessor.java:97)* * at net.oauth.client.OAuthClient.invoke(OAuthClient.java:252)* * at net.oauth.client.OAuthClient.getRequestTokenResponse(OAuthClient.java:190)* * at org.wso2.carbon.appfactory.issuetracking.AtlassianOAuthClient.getRequestToken(AtlassianOAuthClient.java:62)* * ... 62 more* *Caused by: java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: IOException: DerInputStream.getLength(): lengthTag=42, too big.* * at sun.security.rsa.RSAKeyFactory.engineGeneratePublic(RSAKeyFactory.java:205)* * at java.security.KeyFactory.generatePublic(KeyFactory.java:334)* * at net.oauth.signature.RSA_SHA1.getPublicKeyFromDer(RSA_SHA1.java:136)* * at net.oauth.signature.RSA_SHA1.loadPublicKey(RSA_SHA1.java:315)* * at net.oauth.signature.RSA_SHA1.initialize(RSA_SHA1.java:110)* * ... 71 more* *Caused by: java.security.InvalidKeyException: IOException: DerInputStream.getLength(): lengthTag=42, too big.* * at sun.security.x509.X509Key.decode(X509Key.java:397)* * at sun.security.x509.X509Key.decode(X509Key.java:403)* * at sun.security.rsa.RSAPublicKeyImpl.init(RSAPublicKeyImpl.java:83)* * at sun.security.rsa.RSAKeyFactory.generatePublic(RSAKeyFactory.java:298)* * at sun.security.rsa.RSAKeyFactory.engineGeneratePublic(RSAKeyFactory.java:201)* * ... 75 more* To figure out the problem, I changed the java version in my machine to tally with the jdk version used in App Factory. Still my Java client works fine. (Not a problem due to jdk version) It would be really helpful if someone can point what's the reason for this error. Thanks. Regards, Dilhasha *M.N.F. Dilhasha* Software Engineering Intern | *WSO2 Inc.* email : *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321 -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] java.security.InvalidKeyException in OAuth Access
Hi Fathima, If you want schedule a call at convienient time and send me SMS. I will join and help you debug the code. thanks, dimuthu On Sat, Apr 11, 2015 at 7:26 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Fathima, There seems to be an issue with the keys. How did you set the keys to the OAuth library? If you set them explicitly? Can you give the code sample? thanks, diuthu On Fri, Apr 10, 2015 at 2:20 PM, Fathima Dilhasha dilha...@wso2.com wrote: Hi, I'm trying to retrieve issue Summaries from a Jira Instance via an OAuth client. I am using the Atlassian OAuth Client which uses net.oauth library. I have a client written in Java which does the task. I get the following error when I try to do the same steps within a carbon component in App Factory. Following is the error I get. *TID: [0] [AF] [2015-04-10 08:33:56,184] ERROR {module/issuetracker/getIssueSummaries.jag} - org.mozilla.javascript.WrappedException: Wrapped java.lang.RuntimeException: Failed to obtain request token (/appmgt/modules/issuetracker/get/getIssueSummaries.jag#54)* * at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)* * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)* * at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)* * at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c1._c_anonymous_1(/appmgt/modules/issuetracker/get/getIssueSummaries.jag:54)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.get.c1.call(/appmgt/modules/issuetracker/get/getIssueSummaries.jag)* * at org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)* * at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)* * at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)* * at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.c0._c_anonymous_4(/appmgt/modules/issuetracker/module.jag:32)* * at org.jaggeryjs.rhino.appmgt.modules.issuetracker.c0.call(/appmgt/modules/issuetracker/module.jag)* * at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)* * at org.jaggeryjs.rhino.appmgt.site.blocks.issuetracker.list.ajax.c1._c_anonymous_1(/appmgt/site/blocks/issuetracker/list/ajax/getSummary.jag:15)* * at org.jaggeryjs.rhino.appmgt.site.blocks.issuetracker.list.ajax.c1.call(/appmgt/site/blocks/issuetracker/list/ajax/getSummary.jag)* * at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)* * at org.jaggeryjs.rhino.appmgt.site.blocks.issuetracker.list.ajax.c1._c_script_0(/appmgt/site/blocks/issuetracker/list/ajax/getSummary.jag:9)* * at org.jaggeryjs.rhino.appmgt.site.blocks.issuetracker.list.ajax.c1.call(/appmgt/site/blocks/issuetracker/list/ajax/getSummary.jag)* * at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)* * at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)* * at org.jaggeryjs.rhino.appmgt.site.blocks.issuetracker.list.ajax.c1.call(/appmgt/site/blocks/issuetracker/list/ajax/getSummary.jag)* * at org.jaggeryjs.rhino.appmgt.site.blocks.issuetracker.list.ajax.c1.exec(/appmgt/site/blocks/issuetracker/list/ajax/getSummary.jag)* * at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)* * at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)* * at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)* * at org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)* * at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)* * at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)* * at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)* * at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)* * at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)* * at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)* * at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)* * at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)* * at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)* * at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)* * at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)* * at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)* * at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)* * at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472
Re: [Dev] [AF] Status Update - Nodejs Apptype
Hi Hasitha, On Tue, Mar 17, 2015 at 1:59 PM, Hasitha Weerasinghe hasit...@wso2.com wrote: Hi creating branches of a nodejs applications is completed now. this will create a new repository in S2gitblit for each application each version. Now it will spawn a new cartridge for per application per version as well . The git URL will construct as follows trunk :- https://ad...@git.appfactory.private.wso2.com:8444/r/Development/nodejs/20/nb5app-trunkhasithadotcom.git version :- https://ad...@git.appfactory.private.wso2.com:8444/r/Development/nodejs/20/nb5app-1-0-0hasithadotcom.git *This scenario will apply to all the single tenant cartridges Great news! Send us a pull request! thanks, dimuthu On Thu, Feb 19, 2015 at 1:14 AM, Hasitha Weerasinghe hasit...@wso2.com wrote: Hi, As of now, I have completed upto Deploying Artifact in the cartridge and also I added a puppet agent script to unzip the artifact and made the Nodejs server run. while completing Deploying Artifact in the cartridge I had an issue with puppet agent certificates creation due to mismatched timezones. by changing the puppet master and puppet agent time zone to UTC the certificate creation issue got solved. So the remaining tasks as of now is, - creation of the Launch Pattern URL Thank you, Hasitha Weerasinghe On Thu, Feb 5, 2015 at 10:10 AM, Hasitha Weerasinghe hasit...@wso2.com wrote: Hi All, I have completed the following tasks in Nodejs apptype. * Create runtime.xml * Deployment to S2gitblit * Cartridge subscription. I have tested the above task by creating , building and deploying a Nodejs application. The cartridge was successfully subscribed and Nodejs cartridge instance was successfully launched in openstack. Now I'm facing some issues in deploying to cartridge and application launch pattern URL. So the remaining tasks as of now are, * Deploying artifact to cartridge. * Creating launch pattern URL. Thank you, Hasitha Weerasinghe On Mon, Dec 29, 2014 at 12:16 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: On Tue, Dec 23, 2014 at 11:56 AM, Hasitha Weerasinghe hasit...@wso2.com wrote: Hi All, I'm working on adding Node.js apptype to Appfactory. I have completed the following tasks * Creating Node.js cartridge in openstack * Adding Node.js modules to puppet master * Maven archetype for Node.js * Creating apptype xml Also I've tested the above tasks by deploying the apptype and creating it. Application creation and build was successful and the generated project structure was correctly added to gitblit. Now mainly I have to work on the application subscription and deployment. Good work! So the remaining task as of now are, * Cartridge subscription This should automatically work. * Writing application processor type class We also need to test promotion. thanks, dimuthu *Hasitha Weerasinghe* *Software Engineer Intern - WSO2 http://wso2.com/ * Mobile : +94 776 33 6626 Email : hasit...@wso2.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- *Hasitha Weerasinghe* *Software Engineer Intern - WSO2 http://wso2.com/ * Mobile : +94 776 33 6626 Email : hasit...@wso2.com -- *Hasitha Weerasinghe* *Software Engineer Intern - WSO2 http://wso2.com/ * Mobile : +94 776 33 6626 Email : hasit...@wso2.com -- *Hasitha Weerasinghe* *Software Engineer Intern - WSO2 http://wso2.com/ * Mobile : +94 776 33 6626 Email : hasit...@wso2.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Factory] User's invited to an application does not see the application until re login
Hi Guys, Don't over engineer. Please look at famous websites. Look how GitHub handle stuff. thanks, dimuthu On Thu, Mar 12, 2015 at 2:54 PM, Manjula Rathnayake manju...@wso2.com wrote: Hi Gayan, It is JMS pub/sub model we have implemented for showing error messages to the users with guaranteed delivery. thank you. On Thu, Mar 12, 2015 at 2:50 PM, Gayan Dhanushka gay...@wso2.com wrote: Hi Manjula, Since we don't send mails when the users are invited to an application as of yet we would be needing some other way of doing this if it is essential. IMO, a messaging mechanism won't work since this is the logged in user's session that we are talking about. Another thing that we can do is to notify the user via the user notification wall. WDYT ? Regards On Thu, Mar 12, 2015 at 2:31 PM, Manjula Rathnayake manju...@wso2.com wrote: Hi all, IMO, the current behavior is ok because inviting to an application is followed by an email and we can mention to login in and check. But if above is really an issue we need to attend, we should be able to use guaranteed delivery messages to send the new event about new application and update the applications in session. thank you. On Thu, Mar 12, 2015 at 2:13 PM, Gayan Dhanushka gay...@wso2.com wrote: Hi all, Let's look at a simple scenario. User A and User B logs into AF. User A creates an application and invite user B into that application. Currently until user B logs out and login, he does not see the application. This is due to keeping user's application information in the session. The application information in the session is updated only when the user logs in. One thing that can be done is we can have a back end cache to track the users who are invited to an application and during the user home page load, a back end check can be done to check the cache and update the user home by reloading the application list. But this may introduce a overhead to the user home page. WDYT ? Regards Gayan -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd -- Manjula Rathnayaka Software Engineer WSO2, Inc. Mobile:+94 77 743 1987 -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd -- Manjula Rathnayaka Software Engineer WSO2, Inc. Mobile:+94 77 743 1987 -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Factory] User home data is read from the backend after if last access time is over 1 minute
Hi all, The idea is to check the flag when the block layer is called and clear the session when it is called. That is until we have web sockets. Lets not over engineer stuff. thanks, dimuthu On Thu, Mar 12, 2015 at 2:51 PM, Anuruddha Premalal anurud...@wso2.com wrote: On Thu, Mar 12, 2015 at 12:58 PM, Gayan Dhanushka gay...@wso2.com wrote: Hi Anuruddha/ Danushka, FYI, I checked the code again and noticed that calling getAllAppsOfUser from the user home page is not needed anymore. It is used in the eventing page template. So updating the application_list in session IMO we shouldn't keep the application_list in the *session*. Otherwise this will cause the issue that Danushka explained earlier. Shall we move it to *application* cache and do proper invalidation on update/delete? from the notification wall template is enough. Further more application_list is not the attribtue in the session which is used to draw the user home page. Are we using this application_list somewhere else?. It's not correct to have the application_list in the *session* cache. It is USER_HOME_CACHE attribute the one which is used. So I think it is safe to remove the recurring getAllAppsOfUser from the user home page. Check whether the USER_HOME_CACHE have the application creation status; it shouldn't be cached since it's a dynamic parameter; in that case you'll have to getapplication info from the back-end. WDYT ? Regards Gayan On Thu, Mar 12, 2015 at 12:59 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi Gayan, IMO we should cache user data in the session cache and the application data should go to the application level cache. This way we can get rid of unwanted back-end calls and do proper cache invalidation. So IMO the proper way to do this is to have a clear data separation in caching layers rather than increasing callbacktime. WDYT? Regards, Anuruddha. On Wed, Mar 11, 2015 at 12:33 PM, Gayan Dhanushka gay...@wso2.com wrote: Hi Danushka, Thanks for the useful information. Yes. The cache is in the session. Me too believe that the 1 minute time difference is too soon. +1 for increasing it. Regards Gayan On Wed, Mar 11, 2015 at 1:38 PM, Danushka Fernando danush...@wso2.com wrote: I didn't check the code. However I guess cache is in session. Is that right? So say A logs in to AF and do whatever stuff. And B logs in to AF and create an application foo and add A to that foo application. Then there is no way to update the cache unless we read it from data layer time to time. If this is not the case picture in my head is wrong so please correct it. However 1 minute seems too soon. 1. Make it configurable 2. Increase it to somewhere like 10 - 15 minutes. WDYT? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Mar 11, 2015 at 1:13 PM, Gayan Dhanushka gay...@wso2.com wrote: Hi all, I noticed $subject in the index page. Any particular reason for having this ? Since we have a cache for user home data, IMO we do not need this anymore. Data from the back end can only be read initially. Regards Gayan -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WSO2 Committers += Aiyadurai Rajeevn
Hi all, It is with great pleasure that WSO2 welcomes Aiyadurai Rajeevn as WSO2 committer! Congratulations! thanks, Dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF]Datasource, Apptype and Code snippets
Hi, Consider properties(name-value pair) support. Question whether it is related to runtimes? Or related to language? All languages have name-value pair concept and the question is whether AF is supporting the methodology in the underlying PaaS/runtime. That was the reason for putting it in runtime.xml Consider datasource support. Question whether it is related to runtimes? Or related to language? thanks, dimuthu On Tue, Feb 24, 2015 at 1:21 PM, Danushka Fernando danush...@wso2.com wrote: For the mentioned issues, I think runtime configs are meaningful for jaggery applications and there are ways to access them from jaggery AFAIR. We can use some code similar to java code. However there are application types these things are not meaningful so we can have a property like runtimeConfigSupport in apptype and it should be in apptype.xml only. Eg :- datasource applicaiton type. And may be we can have a different configuration for databaseSupport as well. Runtime is about the runtime that application is going to deploy on. These runtime config support should be there for the needed application types independent from the runtime IMO. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Tue, Feb 24, 2015 at 12:56 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi all, I am looking at JIRA issues. APPFAC-2900 and APPFAC-2960. I believe the most correct way to fix it, is by adding the following to the apptype.xml and runtime.xml. - datasourceSupport - apptype.xml because it is something that comes with the app type. For example java has datasources - propertySupport - runtime.xml because it is something we have thanks, dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [AF]Datasource, Apptype and Code snippets
Hi all, I am looking at JIRA issues. APPFAC-2900 and APPFAC-2960. I believe the most correct way to fix it, is by adding the following to the apptype.xml and runtime.xml. - datasourceSupport - apptype.xml because it is something that comes with the app type. For example java has datasources - propertySupport - runtime.xml because it is something we have thanks, dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] User permission update for Runtime Configs
Hi, The permission model is mostly related to properties section of AF. If I list down the functionality in their order of significance, - write code - build and deploy - view error logs - create/delete applications - ALM - properties - team And the changed permission model is subsection of properties section. thanks, dimuthu On Wed, Feb 11, 2015 at 6:34 PM, Chathurika De Silva chathuri...@wso2.com wrote: Hi Yes let's go ahead as planned. Thank You Erandi On Wed, Feb 11, 2015 at 6:25 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi, Could we still go ahead release beta on the 18th while you do the documentation? thanks, dimuthu On Wed, Feb 11, 2015 at 6:09 PM, Chathurika De Silva chathuri...@wso2.com wrote: Hi All Since the permission model has changed we have to update our test cases while testing. Since we are giving priority to testing we need additional two days of testing time to get our test cases updated. Thank You Erandi On Tue, Feb 10, 2015 at 4:43 PM, Amalka Subasinghe ama...@wso2.com wrote: the users who have create permissions, can delete resources On Tue, Feb 10, 2015 at 4:38 PM, Sewmini Jayaweera sewm...@wso2.com wrote: Hi Amalka, How about delete permission? As I understand it should be only admin, application owner, developer can delete from development environment is it ? Thank You, Sewmini Sewmini Jayaweera *Software Engineer - QA Team* Mobile: +94 (0) 773 381 250 sewm...@wso2.com On Tue, Feb 10, 2015 at 12:05 PM, Chathurika De Silva chathuri...@wso2.com wrote: Hi One QA resource will be unavailable on 12th and 13th. So there will be a deviation around one day to the original estimate of one week because only one resource will be working on the above mentioned two days. Thank You Erandi On Tue, Feb 10, 2015 at 11:39 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi, We'll give a new setup tomorrow morning. Meanwhile please cover the breath in other areas that have not changed. thanks, dimuthu On Tue, Feb 10, 2015 at 11:20 AM, Chathurika De Silva chathuri...@wso2.com wrote: Hi All Considering the above changes and the bug fixes that will be incorporated in the latest pack, there should be a new qa cycle on the latest pack. While considering the amount of test cases we have as well as the available qa resources (#2) it will take around one week to complete the test cycle after the pack release date. Thank You Erandi On Tue, Feb 10, 2015 at 11:18 AM, Manjula Rathnayake manju...@wso2.com wrote: Hi all, Please note that only change with respect to existing permission model is that, appOwner is not allowed to create runtime configs in Testing and Production stages. Configs will be copied at the time of promotion/deployment of application in Testing and Production stages. However, the permissions related to databases will not be changed from existing model where each stake holders of runtime environments are allowed to create databases in their environments. eg. QA can create databases on Testing but not in Production. thank you. On Tue, Feb 10, 2015 at 11:04 AM, Amalka Subasinghe ama...@wso2.com wrote: Hi All, I'm going to do the following changes to the runtime configs (datasources, properties, external apis) - Create/update/read permissions will be as shown in the table after this fix. - The tenant admin also have similar permissions as appowner; he can only create in development stage and then resources will be propagated to the testing and production environments via promoting. So, create resources in all environments checkbox, is not valid anymore, I'm removing it. development testing production appowner create x update x x x read x x x dev create x update x read x x qa create update x read x x devops create update x read x x admin create x update x x x read x x x Thanks Amalka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Manjula Rathnayaka Software Engineer WSO2, Inc. Mobile:+94 77 743 1987 -- *Chathurika Erandi* Software Engineer, WSO2 Inc. *E-mail:* chathuri...@wso2.com *Mobile: *+94714 328 612 *Blog*: chathurikaerandi.blogspot.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- *Chathurika Erandi* Software Engineer, WSO2 Inc. *E-mail:* chathuri...@wso2.com *Mobile: *+94714 328 612 *Blog*: chathurikaerandi.blogspot.com -- Amalka Subasinghe WSO2 Inc. Mobile: +94 77 9401267 -- *Chathurika Erandi* Software Engineer, WSO2 Inc. *E-mail:* chathuri...@wso2.com *Mobile: *+94714 328 612 *Blog*: chathurikaerandi.blogspot.com -- Dimuthu Leelarathne Architect
Re: [Dev] [AF] User permission update for Runtime Configs
Hi, Could we still go ahead release beta on the 18th while you do the documentation? thanks, dimuthu On Wed, Feb 11, 2015 at 6:09 PM, Chathurika De Silva chathuri...@wso2.com wrote: Hi All Since the permission model has changed we have to update our test cases while testing. Since we are giving priority to testing we need additional two days of testing time to get our test cases updated. Thank You Erandi On Tue, Feb 10, 2015 at 4:43 PM, Amalka Subasinghe ama...@wso2.com wrote: the users who have create permissions, can delete resources On Tue, Feb 10, 2015 at 4:38 PM, Sewmini Jayaweera sewm...@wso2.com wrote: Hi Amalka, How about delete permission? As I understand it should be only admin, application owner, developer can delete from development environment is it ? Thank You, Sewmini Sewmini Jayaweera *Software Engineer - QA Team* Mobile: +94 (0) 773 381 250 sewm...@wso2.com On Tue, Feb 10, 2015 at 12:05 PM, Chathurika De Silva chathuri...@wso2.com wrote: Hi One QA resource will be unavailable on 12th and 13th. So there will be a deviation around one day to the original estimate of one week because only one resource will be working on the above mentioned two days. Thank You Erandi On Tue, Feb 10, 2015 at 11:39 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi, We'll give a new setup tomorrow morning. Meanwhile please cover the breath in other areas that have not changed. thanks, dimuthu On Tue, Feb 10, 2015 at 11:20 AM, Chathurika De Silva chathuri...@wso2.com wrote: Hi All Considering the above changes and the bug fixes that will be incorporated in the latest pack, there should be a new qa cycle on the latest pack. While considering the amount of test cases we have as well as the available qa resources (#2) it will take around one week to complete the test cycle after the pack release date. Thank You Erandi On Tue, Feb 10, 2015 at 11:18 AM, Manjula Rathnayake manju...@wso2.com wrote: Hi all, Please note that only change with respect to existing permission model is that, appOwner is not allowed to create runtime configs in Testing and Production stages. Configs will be copied at the time of promotion/deployment of application in Testing and Production stages. However, the permissions related to databases will not be changed from existing model where each stake holders of runtime environments are allowed to create databases in their environments. eg. QA can create databases on Testing but not in Production. thank you. On Tue, Feb 10, 2015 at 11:04 AM, Amalka Subasinghe ama...@wso2.com wrote: Hi All, I'm going to do the following changes to the runtime configs (datasources, properties, external apis) - Create/update/read permissions will be as shown in the table after this fix. - The tenant admin also have similar permissions as appowner; he can only create in development stage and then resources will be propagated to the testing and production environments via promoting. So, create resources in all environments checkbox, is not valid anymore, I'm removing it. development testing production appowner create x update x x x read x x x dev create x update x read x x qa create update x read x x devops create update x read x x admin create x update x x x read x x x Thanks Amalka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Manjula Rathnayaka Software Engineer WSO2, Inc. Mobile:+94 77 743 1987 -- *Chathurika Erandi* Software Engineer, WSO2 Inc. *E-mail:* chathuri...@wso2.com *Mobile: *+94714 328 612 *Blog*: chathurikaerandi.blogspot.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- *Chathurika Erandi* Software Engineer, WSO2 Inc. *E-mail:* chathuri...@wso2.com *Mobile: *+94714 328 612 *Blog*: chathurikaerandi.blogspot.com -- Amalka Subasinghe WSO2 Inc. Mobile: +94 77 9401267 -- *Chathurika Erandi* Software Engineer, WSO2 Inc. *E-mail:* chathuri...@wso2.com *Mobile: *+94714 328 612 *Blog*: chathurikaerandi.blogspot.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] User permission update for Runtime Configs
Hi, We'll give a new setup tomorrow morning. Meanwhile please cover the breath in other areas that have not changed. thanks, dimuthu On Tue, Feb 10, 2015 at 11:20 AM, Chathurika De Silva chathuri...@wso2.com wrote: Hi All Considering the above changes and the bug fixes that will be incorporated in the latest pack, there should be a new qa cycle on the latest pack. While considering the amount of test cases we have as well as the available qa resources (#2) it will take around one week to complete the test cycle after the pack release date. Thank You Erandi On Tue, Feb 10, 2015 at 11:18 AM, Manjula Rathnayake manju...@wso2.com wrote: Hi all, Please note that only change with respect to existing permission model is that, appOwner is not allowed to create runtime configs in Testing and Production stages. Configs will be copied at the time of promotion/deployment of application in Testing and Production stages. However, the permissions related to databases will not be changed from existing model where each stake holders of runtime environments are allowed to create databases in their environments. eg. QA can create databases on Testing but not in Production. thank you. On Tue, Feb 10, 2015 at 11:04 AM, Amalka Subasinghe ama...@wso2.com wrote: Hi All, I'm going to do the following changes to the runtime configs (datasources, properties, external apis) - Create/update/read permissions will be as shown in the table after this fix. - The tenant admin also have similar permissions as appowner; he can only create in development stage and then resources will be propagated to the testing and production environments via promoting. So, create resources in all environments checkbox, is not valid anymore, I'm removing it. development testing production appowner create x update x x x read x x x dev create x update x read x x qa create update x read x x devops create update x read x x admin create x update x x x read x x x Thanks Amalka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Manjula Rathnayaka Software Engineer WSO2, Inc. Mobile:+94 77 743 1987 -- *Chathurika Erandi* Software Engineer, WSO2 Inc. *E-mail:* chathuri...@wso2.com *Mobile: *+94714 328 612 *Blog*: chathurikaerandi.blogspot.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] The signedjwt 4.3.3 authenticator is missing
On Mon, Feb 9, 2015 at 5:48 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: [INFO] Final Memory: 533M/1322M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on project org.wso2.carbon.appfactory.server.feature: Failed to resolve dependencies for one or more projects in the reactor. Reason: Missing: [ERROR] -- [ERROR] 1) org.wso2.carbon.identity:org.wso2.carbon.identity.authenticator.signedjwt:jar:4.3.3 [ERROR] [ERROR] Try downloading the file manually from the project website. [ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=org.wso2.carbon.identity -DartifactId=org.wso2.carbon.identity.authenticator.signedjwt -Dversion=4.3.3 -Dpackaging=jar -Dfile=/path/to/file [ERROR] [ERROR] Alternatively, if you host your own repository you can deploy the file there: [ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon.identity -DartifactId=org.wso2.carbon.identity.authenticator.signedjwt -Dversion=4.3.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] Path to dependency: [ERROR] 1) org.wso2.appfactory:org.wso2.carbon.appfactory.server.feature:pom:2.1.0-SNAPSHOT [ERROR] 2) org.wso2.carbon.identity:org.wso2.carbon.identity.authenticator.signedjwt:jar:4.3.3 thanks, dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WSO2 Committers += Amalka Subasinghe
Hi all, It is with great pleasure that WSO2 welcomes Amalka Subasinghe as a committer! Congratulations! thanks, Dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Kernel commits required to patch0010
Hi Manoj, The Mount bean is not an API. Mount bean is meant be used within registry itself. Nowhere else. thanks, dimuthu On Wed, Jan 21, 2015 at 3:08 PM, Chandana Napagoda chand...@wso2.com wrote: Hi Manoj, Yes, We have introduced a public getter method and a setter for Mount beans. It was not possible to use protected or private variables/methods to perform this operation, since RegistryConfigurationProcessor and RegistryUtils classes are in two different packages. Therefore we introduced these methods since newly added getter and setter methods are referred inside the same bundle only. So there will not be any impact on the existing code base. Regards, Chandana On Wed, Jan 21, 2015 at 12:59 PM, Manoj Kumara ma...@wso2.com wrote: Hi Chandana, Attached diff contain some public getter and setter additions. We don't allow API changes during kernel patches. Thanks, Manoj *Manoj Kumara* Software Engineer WSO2 Inc. http://wso2.com/ *lean.enterprise.middleware* Mobile: +94713448188 On Wed, Jan 21, 2015 at 10:25 AM, Chandana Napagoda chand...@wso2.com wrote: Hi Manoj, Please apply the patch attached to below JIRA [1]. [1] https://wso2.org/jira/browse/REGISTRY-2391 Regards, Chandana -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299 %2B94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* -- *Chandana Napagoda* Senior Software Engineer WSO2 Inc. - http://wso2.org *Email : chand...@wso2.com chand...@wso2.com**Mobile : +94718169299 %2B94718169299* *Blog :http://cnapagoda.blogspot.com http://cnapagoda.blogspot.com* -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Demote action is visible for Uploadable apps - APPFAC-2702
Hi all, The lifecycle page is the weakest page in AF and not fully dynamic. It needs to be rewritten at some point. thanks, dimuthu On Fri, Jan 16, 2015 at 7:16 AM, Janaka Ranabahu jan...@wso2.com wrote: Hi Danushka, On Wed, Jan 14, 2015 at 11:57 PM, Danushka Fernando danush...@wso2.com wrote: Hi all [1] is fixed by having a check in ui to check whether its an uploadable application. But currently we have a different lifecycle for uploadable applications. So shouldn't we fix this by changing something in lifecycle. Since we are moving towards lifecycle per app type, I prefer fixing this by looking at the lifecycle. WDYT? True. The UI should be generated by reading all the transition elements(where the event attribute is the action that is showed in the UI) of each stage. That way, the per app type lifecycle model will work without any issue. Please note that a lifecycle stage can have 0 or more transitions. Thanks, Janaka [1] https://wso2.org/jira/browse/APPFAC-2702 Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 -- *Janaka Ranabahu* Senior Software Engineer; WSO2 Inc.; http://wso2.com *E-mail: jan...@wso2.com http://wso2.com**M: **+94 718370861 %2B94%20718370861* Lean . Enterprise . Middleware -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Demote action is visible for Uploadable apps - APPFAC-2702
On Wed, Jan 14, 2015 at 11:57 PM, Danushka Fernando danush...@wso2.com wrote: Hi all [1] is fixed by having a check in ui to check whether its an uploadable application. But currently we have a different lifecycle for uploadable applications. So shouldn't we fix this by changing something in lifecycle. Since we are moving towards lifecycle per app type, I prefer fixing this by looking at the lifecycle. WDYT? Exactly correct! [1] https://wso2.org/jira/browse/APPFAC-2702 Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Fixing uploadable jaggery applications issue
Hi Anuruddha, Version upgrades are not things we do everyday for Jaggery. So lets go ahead with the OSGI fragment upgrade. It is not something we expect to change from this version to next either. thanks, dimuthu On Wed, Jan 14, 2015 at 1:12 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi Manjula, Thing is root context (/) for appmgt is appmgt folder itself. So if we give a relative path like */mnt/10.100.100.5/appfactory/wso2appfactory/tmp http://10.100.100.5/appfactory/wso2appfactory/tmp*, it'll try to create the folder inside *appmgt/mnt/10.100.100.5/appfactory/wso2appfactory/tmp http://10.100.100.5/appfactory/wso2appfactory/tmp* On Wed, Jan 14, 2015 at 11:47 AM, Manjula Rathnayake manju...@wso2.com wrote: Hi Anuruddha, On Wed, Jan 14, 2015 at 11:28 AM, Anuruddha Premalal anurud...@wso2.com wrote: Hi, Due to security reasons it's not possible to perform file operations outside the web root context, so we can't store uploaded applications to CARBON_HOME/tmp. What are security issues we face? is it because end user upload the file directly to the CARBON_HOME/tmp? If this is done by a signed code, java security manager will validate and will not throw exceptions. Can you share the exceptions. thank you. Hence I'm trying the first option as the solution. OSGI fragment will have a required bundle and it'll have the compenent.xml which needs to be overridden. However there's an additional overhead of maintaining this fragment and the fragment-dependency along with jaggery releases (cause of the version changes). Regards, Anuruddha. On Tue, Jan 13, 2015 at 1:30 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: On Tue, Jan 13, 2015 at 12:49 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi, Once we upload an application to appfactory it get stored temporally inside* wso2appfctory-2.1.0/repository/deployment/server/jaggeryapps/appmgt/tmp/tmpUploadedApps . * Notice that this location is inside jaggeryapps folder. Issue is if we upload a zip file it gets automatically deployed inside the uploaded location by the jaggerydeployer and it deletes the original uploaded zip. Initially following are the fixes that are going to try. * Try to override the jaggerydeployer component.xml file by writing an osgi fragment. - here component.xml file contains the information about the deployer. So we can try overriding this xml and remove the zip file deploery. * Turn off hot deployment in axis2.xml - but this will cause issue in apptype and runtime hot deployment? * Upload the applicatoins to carbon_home/tmp location - This location is not visible to appmgt webapp home. Is there a way to pass the uploaded file to osgi back-end via jaggery? The fix is to copy the file into the temp location. And then reading the file from that location. Pass the file name is straight forward coding. thanks, dimuthu Appreciate your inputs in solving this issue [1]. [1] https://wso2.org/jira/browse/APPFAC-2740 Regards, -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Manjula Rathnayaka Software Engineer WSO2, Inc. Mobile:+94 77 743 1987 -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Fixing uploadable jaggery applications issue
On Tue, Jan 13, 2015 at 12:49 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi, Once we upload an application to appfactory it get stored temporally inside* wso2appfctory-2.1.0/repository/deployment/server/jaggeryapps/appmgt/tmp/tmpUploadedApps . * Notice that this location is inside jaggeryapps folder. Issue is if we upload a zip file it gets automatically deployed inside the uploaded location by the jaggerydeployer and it deletes the original uploaded zip. Initially following are the fixes that are going to try. * Try to override the jaggerydeployer component.xml file by writing an osgi fragment. - here component.xml file contains the information about the deployer. So we can try overriding this xml and remove the zip file deploery. * Turn off hot deployment in axis2.xml - but this will cause issue in apptype and runtime hot deployment? * Upload the applicatoins to carbon_home/tmp location - This location is not visible to appmgt webapp home. Is there a way to pass the uploaded file to osgi back-end via jaggery? The fix is to copy the file into the temp location. And then reading the file from that location. Pass the file name is straight forward coding. thanks, dimuthu Appreciate your inputs in solving this issue [1]. [1] https://wso2.org/jira/browse/APPFAC-2740 Regards, -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WSO2 Committers += Pirinthapan Mahendran
Hi all, It is with great pleasure that WSO2 welcomes Pirinthapan Mahendran as WSO2 committer! Congratulations! thanks, Dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF][SS] RSSAdminService method 'isDatabaseUserExist' requires the full database username with
Hi all, For the appending string lets take the code from SS and then use runtime DB to verify existence of the name. If we use code from the util method we can just limit the changes to one method. thanks, dimuthu On Fri, Jan 9, 2015 at 8:19 AM, Danushka Fernando danush...@wso2.com wrote: @Bhathiya : Yes, That what we expect to do. @Asanka : I am not sure how anuruddha planned the implementation. But yes that should be the way to do it since that how we have done it in other places. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Jan 9, 2015 at 8:12 AM, Asanka Dissanayake asan...@wso2.com wrote: Hi Danushka, Please find my comments inline. On Thu, Jan 8, 2015 at 3:56 PM, Danushka Fernando danush...@wso2.com wrote: Hi All @Bhathiya : This is about usability. We cannot let user do something and let it fail and then let know the user that you cannot do this. We need to inform that to user when he try to do it. That's what we are trying to achieve here. How are you going to verify this. After user clicks Submit ? you gonna pass the user name to back end and check whether it is valid. In that case trying to add the user and handle the exception has same weight I think. Or else if you want to improve the usability what you can do is, get the database user names from backned without hashed tenant domain prefix during the page loading and verify it within there . You can write validate logic in the onblur event of the input field. Just my two cents . @Anuruddha : However there are few notes. In [1] what Dimuthu mentioned is to use af runtime database data for this. When we use that you need to have full name. One way is to use same logic used by SS in our code to generate the code in our side as well. Downside of this is if SS change this we need to change it in our code as well. Or else we can search using some pattern like this in db. given_db_user_name_%. However in the latter case the regular expression should be carefully selected. @Dimuthu : WDYT? [1] https://wso2.org/jira/browse/APPFAC-2723 Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Jan 8, 2015 at 11:55 PM, Bhathiya Jayasekara bhath...@wso2.com wrote: Hi Anurudhdha, In this use case, why are you trying to check the user existence? Are you trying to do it before user creation? In that case, you don't have to check it yourself because create user service will do it internally, and throw an exception if the user exists. So your try-catch approach is fine. Thanks, Bhathiya On Tue, Jan 6, 2015 at 7:19 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi, I'm working on APPFAC-2723 and there is a requirement to check whether a user is already created in storage server. In RssAdminService there is a method to check whether a database user exists. Issue with this method is, there has a hashed tenant domain value appended to the username once we create a databaseuser, and it requires the full name (with the appended value) to check the user existence. Isn't it the RSSAdmin service responsibility to append the hashed value and perform the search?. For now I can use a try catch block in the jaggery layer and handle the duplicate user creation exception. AppFactory_Resource_DB has this full user name and perform isDataBaseuserExist operation. However this method always resurns false because we haven't passed the appended hashed value with the username. Shall we remove this isDataBaseUserExist method from the ResourceManger and use try catch approach to check the user existence? Regards, -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Bhathiya Jayasekara* *Software Engineer,* *WSO2 inc., http://wso2.com http://wso2.com* *Phone: +94715478185 %2B94715478185* *LinkedIn: http://www.linkedin.com/in/bhathiyaj http://www.linkedin.com/in/bhathiyaj* *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax* *Blog: http://movingaheadblog.blogspot.com http://movingaheadblog.blogspot.com/* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Asanka DissanayakeSoftware Engineer* *WSO2 Inc. - lean . enterprise . middleware | wso2.com http://wso2.com/* *email: asan...@wso2.com ruch...@wso2.com, blog: cyberwaadiya.blogspot.com http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com http://asankastechtalks.wordpress.com mobile: +94 71 8373821* -- Dimuthu Leelarathne Architect Product Lead
Re: [Dev] [AF][SS] RSSAdminService method 'isDatabaseUserExist' requires the full database username with
Hi, On Fri, Jan 9, 2015 at 9:32 AM, Danushka Fernando danush...@wso2.com wrote: What about the possibility of second option I mentioned? It is just one util method we have to change if SS changes the appending String. How many methods do we change during an SS upgrade? :) I think we are thinking too much! thanks, dimuthu Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Jan 9, 2015 at 9:29 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi all, For the appending string lets take the code from SS and then use runtime DB to verify existence of the name. If we use code from the util method we can just limit the changes to one method. thanks, dimuthu On Fri, Jan 9, 2015 at 8:19 AM, Danushka Fernando danush...@wso2.com wrote: @Bhathiya : Yes, That what we expect to do. @Asanka : I am not sure how anuruddha planned the implementation. But yes that should be the way to do it since that how we have done it in other places. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Jan 9, 2015 at 8:12 AM, Asanka Dissanayake asan...@wso2.com wrote: Hi Danushka, Please find my comments inline. On Thu, Jan 8, 2015 at 3:56 PM, Danushka Fernando danush...@wso2.com wrote: Hi All @Bhathiya : This is about usability. We cannot let user do something and let it fail and then let know the user that you cannot do this. We need to inform that to user when he try to do it. That's what we are trying to achieve here. How are you going to verify this. After user clicks Submit ? you gonna pass the user name to back end and check whether it is valid. In that case trying to add the user and handle the exception has same weight I think. Or else if you want to improve the usability what you can do is, get the database user names from backned without hashed tenant domain prefix during the page loading and verify it within there . You can write validate logic in the onblur event of the input field. Just my two cents . @Anuruddha : However there are few notes. In [1] what Dimuthu mentioned is to use af runtime database data for this. When we use that you need to have full name. One way is to use same logic used by SS in our code to generate the code in our side as well. Downside of this is if SS change this we need to change it in our code as well. Or else we can search using some pattern like this in db. given_db_user_name_%. However in the latter case the regular expression should be carefully selected. @Dimuthu : WDYT? [1] https://wso2.org/jira/browse/APPFAC-2723 Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Jan 8, 2015 at 11:55 PM, Bhathiya Jayasekara bhath...@wso2.com wrote: Hi Anurudhdha, In this use case, why are you trying to check the user existence? Are you trying to do it before user creation? In that case, you don't have to check it yourself because create user service will do it internally, and throw an exception if the user exists. So your try-catch approach is fine. Thanks, Bhathiya On Tue, Jan 6, 2015 at 7:19 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi, I'm working on APPFAC-2723 and there is a requirement to check whether a user is already created in storage server. In RssAdminService there is a method to check whether a database user exists. Issue with this method is, there has a hashed tenant domain value appended to the username once we create a databaseuser, and it requires the full name (with the appended value) to check the user existence. Isn't it the RSSAdmin service responsibility to append the hashed value and perform the search?. For now I can use a try catch block in the jaggery layer and handle the duplicate user creation exception. AppFactory_Resource_DB has this full user name and perform isDataBaseuserExist operation. However this method always resurns false because we haven't passed the appended hashed value with the username. Shall we remove this isDataBaseUserExist method from the ResourceManger and use try catch approach to check the user existence? Regards, -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Bhathiya Jayasekara* *Software Engineer,* *WSO2 inc., http://wso2.com http://wso2.com* *Phone: +94715478185 %2B94715478185* *LinkedIn: http://www.linkedin.com/in/bhathiyaj http://www.linkedin.com/in/bhathiyaj* *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax* *Blog: http://movingaheadblog.blogspot.com http://movingaheadblog.blogspot.com/* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin
Re: [Dev] Making AF_RESOURECE.RESOURCE_NMAE a unique value
Hi Anuruddha, Understood the problem. Database is a special case and should be handled at the code level. Retrieve all databases for a tenant and check wether the name exists. You have to check the uniqueness for a tenant, rather than changing the uniqueness constraint. So I would introduce a new method isResourceExistForTenant that would check whether the resource exist for tenant. I would not change the uniqueness constraint of the database. thanks, dimuthu On Thu, Jan 8, 2015 at 9:21 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi All, If the RESOURCE_TYPE is DATABASE, we cannot have the same name for different applicaions given that we are pointing to a single DB for a given environment. In all the other cases we can use (APPLICATION_ID, RESOURCE_TYPE, RESOURCE_NAME, ENVIRONMENT) as the unique. So in DATABSE resource type, it should be RESOURCE_NAME, ENVIRONMENT On Thu, Jan 8, 2015 at 8:18 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi all, I ran through the complete script. Adding to what Danushka said the uniqueness should be (APPLICATION_ID, RESOURCE_TYPE, RESOURCE_NAME, ENVIRONMENT) thanks, dimuthu On Thu, Jan 8, 2015 at 5:36 PM, Danushka Fernando danush...@wso2.com wrote: Moved to dev@ since this is a dev matter. I think what unique should be is (APPLICATION_ID, RESOURCE_NAME, ENVIRONMENT). No point in making RESOURCE_NAME field alone unique. Because an user should be able to create a resource with same name in a different environement/stage or different application. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Jan 8, 2015 at 4:35 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi, In creating a datadabse/datasource/databse_user/databse_template we update the AF_RESOURCE table(in afdb) with the following parameters. APPLICATION_ID RESOURCE_TYPE RESOURCE_NAME ENVIRONMENT DESCRIPTION Since duplication should not be allowed in any of the appfactory resources, shall we make the RESOURCE_NAME field unique?. This will require a data migration for cloud as well. Regards, -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Making AF_RESOURECE.RESOURCE_NMAE a unique value
Hi all, I ran through the complete script. Adding to what Danushka said the uniqueness should be (APPLICATION_ID, RESOURCE_TYPE, RESOURCE_NAME, ENVIRONMENT) thanks, dimuthu On Thu, Jan 8, 2015 at 5:36 PM, Danushka Fernando danush...@wso2.com wrote: Moved to dev@ since this is a dev matter. I think what unique should be is (APPLICATION_ID, RESOURCE_NAME, ENVIRONMENT). No point in making RESOURCE_NAME field alone unique. Because an user should be able to create a resource with same name in a different environement/stage or different application. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Jan 8, 2015 at 4:35 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi, In creating a datadabse/datasource/databse_user/databse_template we update the AF_RESOURCE table(in afdb) with the following parameters. APPLICATION_ID RESOURCE_TYPE RESOURCE_NAME ENVIRONMENT DESCRIPTION Since duplication should not be allowed in any of the appfactory resources, shall we make the RESOURCE_NAME field unique?. This will require a data migration for cloud as well. Regards, -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Update repos and build page launch deploy buttons to reflect main page logic
Hi, In build and repo page you need all 3 buttons, IMO - build, deploy and launch. This is would allow developers to force actions such as build, deploy. thanks, dimuthu On Tue, Jan 6, 2015 at 11:27 AM, Harsha Thirimanna hars...@wso2.com wrote: It is not clear what you are saying here. Are going to change the logic in Repo build page as showing only deploy button or ? *Harsha Thirimanna* Senior Software Engineer; WSO2, Inc.; http://wso2.com * http://www.apache.org/* *email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770 , +94 * *774617784twitter: **http://twitter.com/ http://twitter.com/afkham_azeez* *harshathirimannlinked-in: **http: http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122* *Lean . Enterprise . Middleware* On Tue, Jan 6, 2015 at 11:17 AM, Danushka Fernando danush...@wso2.com wrote: Hi I am working on [1]. In application home we are only showing either deploy or accept and deploy or launch buttons. So in the build and repo we show both deploy and launch buttons. So should I change the logic for the deploy button only or should I remove the launch button. In the latter case user won't be able to deploy manually once it is deployed. So I prefer the first option. WDYT? [1] https://wso2.org/jira/browse/APPFAC-2324 Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Status Update - Nodejs Apptype
On Tue, Dec 23, 2014 at 11:56 AM, Hasitha Weerasinghe hasit...@wso2.com wrote: Hi All, I'm working on adding Node.js apptype to Appfactory. I have completed the following tasks * Creating Node.js cartridge in openstack * Adding Node.js modules to puppet master * Maven archetype for Node.js * Creating apptype xml Also I've tested the above tasks by deploying the apptype and creating it. Application creation and build was successful and the generated project structure was correctly added to gitblit. Now mainly I have to work on the application subscription and deployment. Good work! So the remaining task as of now are, * Cartridge subscription This should automatically work. * Writing application processor type class We also need to test promotion. thanks, dimuthu *Hasitha Weerasinghe* *Software Engineer Intern - WSO2 http://wso2.com/ * Mobile : +94 776 33 6626 Email : hasit...@wso2.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WSO2 Committers += Kasun De Silva
Hi all, WSO2 welcomes Kasun De Silva as WSO2 committer! Congratulations! thanks, dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Shall we remove the products/appfatory/2.1.0/vmware folder from svn?
+1 thanks, dimuthu On Wed, Dec 3, 2014 at 6:10 PM, Anuruddha Premalal anurud...@wso2.com wrote: Hi Danushka, +1 for removing products/appfatory/2.1.0/vmware folder from svn. @Mahesh appfactory.xml has been moved to puppet templates. (wso2base/templates/appfactory/appfactory.xml). On Wed, Dec 3, 2014 at 6:00 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, It has appfactory.xml file right ? If removed then which location we should refer for appfactory.xml file ? On Wed, Dec 3, 2014 at 5:56 PM, Danushka Fernando danush...@wso2.com wrote: Hi All Shall we consider $subject? AFAIU we shouldn't be using this after we moved to puppet. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Anuruddha Premalal* Software Eng. | WSO2 Inc. Mobile : +94710461070 Web site : www.regilandvalley.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Merging Improvement to Jaggery Log HostObject to AF jaggery branch
Hi, Adding wso2 dev list. thanks, dimuthu On Thu, Nov 13, 2014 at 5:33 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Samith, Please go ahead and ask. thanks, dimuthu On Wed, Nov 12, 2014 at 11:25 PM, Samith Dassanayake sam...@wso2.com wrote: Hi Dimuthu, Jaggery Log hostobject has been improved[1] in master branch to support both a message and the exception object as in log4j API. Shall we ask jaggery team to merge the commit[2] to our branch such that we could easily log as the java layer. [1] http://mail.wso2.org/mailarchive/dev/2014-October/038165.html [2] https://github.com/wso2/jaggery/commit/5e82872dc6a568cac31313a03cf8b50f0b424a34 Thanks, Samith -- Best Regards Samith Dassanayake Software Engineer, WSO2 Inc. -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Fwd: Merging Improvement to Jaggery Log HostObject to AF jaggery branch
-- Forwarded message -- From: Samith Dassanayake sam...@wso2.com Date: Wed, Nov 12, 2014 at 11:25 PM Subject: Merging Improvement to Jaggery Log HostObject to AF jaggery branch To: Dimuthu Leelarathne dimut...@wso2.com Cc: Amalka Subasinghe ama...@wso2.com, Anuruddha Premalal anurud...@wso2.com, Danushka Fernando danush...@wso2.com, Gayan Dhanushka gay...@wso2.com, Harsha Thirimanna hars...@wso2.com, Janaka Ranabahu jan...@wso2.com, Kasun De Silva kas...@wso2.com, Mahesh Chinthaka mahe...@wso2.com, Manisha Gayathri mani...@wso2.com, Manjula Rathnayake manju...@wso2.com, Pirinthapan Mahendran pirintha...@wso2.com, Punnadi Gunarathna punn...@wso2.com, Roshan Deniyage rosh...@wso2.com Hi Dimuthu, Jaggery Log hostobject has been improved[1] in master branch to support both a message and the exception object as in log4j API. Shall we ask jaggery team to merge the commit[2] to our branch such that we could easily log as the java layer. [1] http://mail.wso2.org/mailarchive/dev/2014-October/038165.html [2] https://github.com/wso2/jaggery/commit/5e82872dc6a568cac31313a03cf8b50f0b424a34 Thanks, Samith -- Best Regards Samith Dassanayake Software Engineer, WSO2 Inc. -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Add entry to appfactory.xml to get Undeployer class name
Hi Mahesh, We should do it for alpha, but please do the change both in Puppet manifests and bash scripts. The latter is less important. thanks, dimuthu On Tue, Nov 18, 2014 at 10:14 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Dimuthu, While doing JGit plugin integration I came across a requirement to load the undeployer class name for a given apptype and stage. At the moment we have a method to get deployer class name. Utils.getDeployerClassName(stage, appType); What it does is get the appropriate value from the appfactory.xml file. I need the same implementation for undeployment like following, Utils.getUndeployerClassName(stage, appType); In order to do that I need to add and new xml tag entry to appfactory.xml file. As I got to know , modifying appfactory.xml will effect AF puppetising process. Anuruddha will explain the overhead. Since AF puppetising work is going on and our alpha release is near by ; should we do this change or shall I keep it in hard coded for the time being ? Advise me on this please. -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Getting error in puppet integration to Mac OS X during tools installation using 'brew'
Hi all, If puppet is giving all of these problems on Mac, shall we check whether it is feasible to use Docker instance of Ubuntu with puppet in it and then run our scripts? thanks, dimuthu On Thu, Nov 13, 2014 at 12:40 AM, Pirinthapan Mahendran pirintha...@wso2.com wrote: Hi Mahesh, When I setting up AF, I had to install unzip. Thanks. Mahendran Pirinthapan Software Engineer | WSO2 Inc. Mobile +94772378732. On Wed, Nov 12, 2014 at 10:51 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, why do you want to install unzip via brew ?? AFAIK unzip comes with mac OS by default. On Wed, Nov 12, 2014 at 6:22 PM, Danushka Fernando danush...@wso2.com wrote: I think unzip is coming with zip package. Just install zip and check whether unzip command works. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Wed, Nov 12, 2014 at 6:20 PM, Aiyadurai Rajeevan rajeev...@wso2.com wrote: Hi All, We are in the process of integrating puppet scripts to Mac OS X, Where we have implementation to install list of tools to be installed by puppet script when executed, The puppet code looks like below. *$packages = ['lsof','unzip','sysstat','telnet', 'git', 'less', 'tree', 'zip']* * package { $packages:* *ensure = installed,* *provider = 'brew',* *}* Here, *$Packages* has the tools to be installed using the *brew*. When i execute this, it gives error as below, *Error: Failed to apply catalog: Parameter provider failed on Package[lsof]: Invalid package provider 'brew' at /home/rajeevan/appfactory/modules/wso2base/manifests/packages.pp:9* *Wrapped exception:* *Invalid package provider 'brew'* *Wrapped exception:* *Invalid package provider 'brew'* Then we executed the command - *brew install unzip* - just to ensure the unzip tool is getting installed, but it doesn't. google it and found a solution [1] *$ brew tap homebrew/dupes * *$ brew install unzip* This works nicely, But, As far as puppet concerned, How to do this in my above puppet script? Appreciate your view on this please. [1] http://apple.stackexchange.com/questions/149080/how-can-i-update-my-version-of-unzip-to-version-6-00-or-higher Thanks Regards, S.A.Rajeevan Software Engineer WSO2 Inc Lean . Enterprise . Middleware E-Mail: rajeev...@wso2.com | Mobile : +94776411636 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APPFAC] Move apptype specific jenkins job configurations to apptype processors
Hi, In order to save the repetition, we can have ONE job-configuraitons inbuilt. Idea is, if an app type is added without a job this job configuration is taken as the default. We have to pick the most generic one in this case. I believe the interpreter language building would be the most generic case. thanks, dimuthu On Tue, Nov 4, 2014 at 10:36 AM, Kasun De Silva kas...@wso2.com wrote: Hi Danushka, Yes, that would be more generic, I will proceed with the above approach. Thanks, Kasun *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 On Tue, Nov 4, 2014 at 11:07 AM, Danushka Fernando danush...@wso2.com wrote: IIRC what Dimuthu asked for is to move all build configuration. No point of moving it just for one apptype. On Nov 4, 2014 9:38 AM, Kasun De Silva kas...@wso2.com wrote: Hi Danushka, Are you suggesting to move all the jenkins job configurations currently we have in to apptype processors, what my impression was we are doing that for non maven and buildable apptypes like ASP.NET. Should we refactor that improvement for maven apptype and other apptypes as well ? Dimuthu WDYT ? Thanks, Kasun *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 On Sun, Nov 2, 2014 at 9:59 PM, Danushka Fernando danush...@wso2.com wrote: Since we are just replacing some values of this and we are passing it to jenkins I think we can do that. And with this I think we can get rid of the code we check for freestyle or maven type jobs and we can minimize the changes we do to the configuration from the code as well. So while work on this refactor the code as well. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Sun, Nov 2, 2014 at 8:34 PM, Kasun De Silva kas...@wso2.com wrote: Hi All, I'm working on the $subject. I'm thinking that we can include the jenkins job configuration inside the apptype as buildconfiguration.xml, similar to apptype.xml for non maven and buildable apptypes, and while deploying the apptype we can add the job configuration to application type bean. So that we can access it when it needed from the jenkins job configurator. WDYT of this approach ? Thanks, Kasun *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APPFAC] Re-factoring ProjectUtils
On Wed, Oct 29, 2014 at 8:53 AM, Kasun De Silva kas...@wso2.com wrote: Hi All, Why we are using a separate method *deletePOMFile()* in *org.wso2.carbon.appfactory.utilities.project.ProjectUtils* to delete pom files of generated non-maven archetypes in AF, can't we use *org.codehaus.plexus.util.FileUtils *instead ? In my understanding we are using FIleUtils for our file operations. +1 for FileUtils. Thanks, Kasun *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with registry mounting with multiple mounts
? This is not the normal way of setting this up. Any reason for doing this? Thanks, Senaka. On Tuesday, October 21, 2014, Pulasthi Supun pulas...@wso2.com wrote: Hi Senaka/All, Consider the following mounting scenario A greg has its governance space mounted mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/governance/targetPath /mount And the governance space of a separate AS server is mounted to a different path in the greg. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount When the mounts are done mount does not work properly everything under /_system/as/governance is replaced by resources that are in /_system/governance . So the governance space of the greg is populated into both paths. When we remove the mount of the greg and only mount the governance of AS, it works properly. Is this a known bug?. Regards Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with registry mounting with multiple mounts
Hi all, So what Shazni and Pulasthi suggest would involve minimal data migration. We can look at that option. thanks, dimuthu On Thu, Oct 23, 2014 at 8:47 PM, Pulasthi Supun pulas...@wso2.com wrote: Hi All, On Thu, Oct 23, 2014 at 6:36 PM, Senaka Fernando sen...@wso2.com wrote: Hi all, Alright I see, so what Shazni suggests seems to work fine. But, if we made a mistake and have to migrate data as a result we should do that instead of tweaking the product to support something like this, because as per my understanding this is by far never going to be a requirement and will create all kinds of complications in terms of caching etc. +1, I also think this is the best approach since trying to tweak the handler chain might end up in unforeseen issues. Regards, Pulasthi Thanks, Senaka. On Thu, Oct 23, 2014 at 12:52 PM, Pulasthi Supun pulas...@wso2.com wrote: Hi All, On Thu, Oct 23, 2014 at 4:59 PM, Janaka Ranabahu jan...@wso2.com wrote: Hi Senaka, On Thu, Oct 23, 2014 at 2:58 PM, Senaka Fernando sen...@wso2.com wrote: Hi Danushka, No I mean mount the /_system/governance locations of the three individual registries to the three respective AS nodes. Hi Dimuthu, This is not a bug, AFAIU, there is an issue in the way we are trying to mount things. Are you suggesting that we can not mount 2 locations in 2 different servers that has the same path(ex:- /_system/governance/) into 2 different locations of G-Reg? IMO, that is what we tried to do. We pointed the /_system/governance collection of G-Reg to a mysql instance and tried to add a mount to AS /_system/governance collection to G-Reg's /_system/as/governance location from G-Reg side. IMO, this is a simple mounting scenario. This is where the issue is created in the handler chain since there are two paths with the target path as /_system/governance the handler chain will at one point match the a wrong handler that corresponds /_system/governance of Greg to registry get call that is supposed to go to the /_system/governance of the AS. The workaround would be to mount the registries in the way that Shazni described earlier . Then what we would do is mount the /_system/governance of Greg will be mounted to /_system/governance with the following configuration in the Greg side. mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/as/governance/targetPath /mount And the the /_system/as/governance is mounted to /_system/as/governance in Greg with the following configuration. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount And then in the AS side /_system/as/governance will be mounted to the /_system/governance in AS with the following configuration mount path=/_system/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/as/governance/targetPath /mount But this will require data migration since data is already in the system. The migration would be AFAIU to replace /_system/governance with /_system/as/governance in the database pointed by the instanceid asgov. I am not sure if any kind of data migration is an option in the system. if it is this would be the best way to handle this issue. To fix the issue in the handler chain if we are not going with the above option we would need some time. because even though the cause of the issue has been identified it wont be a simple issue because of the complexity of the handler chain and it might take several days to come up with a proper fix. Regards, Pulasthi Thanks, Janaka Thanks, Janaka Thanks, Senaka. On Thu, Oct 23, 2014 at 9:42 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Senaka, We have to migrate the whole cloud. If mounting can be done and if it is a bug we should fix it. thanks, dimuthu On Thu, Oct 23, 2014 at 2:10 PM, Danushka Fernando danush...@wso2.com wrote: We cannot share same governance space across all environments. That's why we isolated the governance spaces. 1. Security reasons - In Development environment Production data should not be accessible. 2. We cannot mount same location since three environments should have three registry resources by same name. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Oct 23, 2014 at 1:49 PM, Senaka Fernando sen...@wso2.com wrote: Yes, cool, so why not mount the /_system/governance collection of this registry into AS? You don't need a separate governance collection only for AS, which is what creates this situation. Thanks, Senaka. On Thu, Oct 23, 2014 at 2:55 AM, Danushka Fernando danush...@wso2.com wrote: Hi Senaka For an app in AF users can add Resources like datasources, databases, registry properties and apis. We save registry properties
Re: [Dev] [AppFactory] Moving the application name to the AppFactory database
Hi Janaka, +1 but we need caching at Carbon layer in front of the database. Please make sure the cache is updated properly as app names keeps adding. thanks, dimuthu On Mon, Oct 20, 2014 at 5:45 PM, Danushka Fernando danush...@wso2.com wrote: The only concern should be is about data migration we have to do in cloud. But IMO its now or never. So +1 to do it now. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Mon, Oct 20, 2014 at 5:05 PM, Janaka Ranabahu jan...@wso2.com wrote: Hi, As a solution to [1], we have to move the Application Name to the AppFactory database. The current implementation keeps the application name in the registry and to check whether the name exists, we retrieve all the applications and then iterate through them to check whether the name exists. There is a considerable performance hit in this approach and therefore to improve the performance of this method,we will be adding the Application Name to the AppFactory database. Please raise any concerns you have on this. Also please note that we will be creating an migration script to migrate any old data as a part of this JIRA. Thanks, Janaka [1] https://wso2.org/jira/browse/APPFAC-2517 -- *Janaka Ranabahu* Senior Software Engineer; WSO2 Inc.; http://wso2.com *E-mail: jan...@wso2.com http://wso2.com**M: **+94 718370861 %2B94%20718370861* Lean . Enterprise . Middleware -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Problem with registry mounting with multiple mounts
Hi all, Here is the OT JIRA I have reported about a week ago. https://wso2.org/jira/browse/REGISTRY-2320 thanks, dimuthu On Wed, Oct 22, 2014 at 9:58 AM, Pulasthi Supun pulas...@wso2.com wrote: Hi Senka, This came from a use case of app factory, Danushka should be able to provide some more detail of needed. They have AF instance that has its governance spaced mounted. and they want to mount all the governance spaces of other products that are running into AF so all the governance spaces can be used from one place ( Danushka correct me if i am wrong about the usecase ). That is the scenario that i replicated using an AS and a Greg. This is not the normal mounting scenario but this is a valid usecase IMO. Regards, Pulasthi On Wed, Oct 22, 2014 at 1:21 AM, Senaka Fernando sen...@wso2.com wrote: Pulasthi, You have mounted AS on G-Reg but not G-Reg on AS right? This is not the normal way of setting this up. Any reason for doing this? Thanks, Senaka. On Tuesday, October 21, 2014, Pulasthi Supun pulas...@wso2.com wrote: Hi Senaka/All, Consider the following mounting scenario A greg has its governance space mounted mount path=/_system/governance overwrite=true instanceIdreggov/instanceId targetPath/_system/governance/targetPath /mount And the governance space of a separate AS server is mounted to a different path in the greg. mount path=/_system/as/governance overwrite=true instanceIdasgov/instanceId targetPath/_system/governance/targetPath /mount When the mounts are done mount does not work properly everything under /_system/as/governance is replaced by resources that are in /_system/governance . So the governance space of the greg is populated into both paths. When we remove the mount of the greg and only mount the governance of AS, it works properly. Is this a known bug?. Regards Pulasthi -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- *[image: http://wso2.com] http://wso2.comSenaka Fernando* Solutions Architect; WSO2 Inc.; http://wso2.com *Member; Apache Software Foundation; http://apache.org http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1 408 754 7388 %2B1%20408%20754%207388; ext: 51736*; *M: +44 782 741 1966 %2B44%20782%20741%201966Linked-In: http://linkedin.com/in/senakafernando http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware -- -- Pulasthi Supun Software Engineer; WSO2 Inc.; http://wso2.com, Email: pulas...@wso2.com Mobile: +94 (71) 9258281 Blog : http://pulasthisupun.blogspot.com/ Git hub profile: https://github.com/pulasthi -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Cache apphome data to improve performance in AF
Hi, Lets remove the branch count from user home page. Because it doesn't give any useful information to the users involed in the app. The users who are involved in the app knows how active and apps are. thanks, dimuthu On Mon, Oct 20, 2014 at 1:41 PM, Samith Dassanayake sam...@wso2.com wrote: Hi all, Since we are displaying the branch count in the user home we cannot simply use the above solution since if branch count is updated we should update the cache for the completed applications as well. What is the essence of the branch count in user home? Do we really need to show it? If it is not, we can use the above method since only dynamic field is *applicationCreationStatus *and therefore we can cache the completed apps in the user home and only lookup for change in *applicationCreationStatus *of pending applications. If branch count is needed to display, what we can do is,each time we can send a backend call to retrieve branch count of the all the completed applications and show it in the home page. WDYT? Thanks, Samith On Thu, Oct 9, 2014 at 6:33 PM, Samith Dassanayake sam...@wso2.com wrote: What we are going to do is, when we are polling, first we'll get the app keys of the pending application list, from the cache and then we request user home data only for the those keys. For that we will implement a method to retrieve app home data for given array of appkeys: getUserHomeData(String[] appkeys) and update the cache accordingly based on the status of the retrieved user home data. On Thu, Oct 9, 2014 at 6:24 PM, Danushka Fernando danush...@wso2.com wrote: Hi Samith So say we create a new application. It goes to the pending list. So we are polling pending and failed lists. So this application creates successfully. Then it will disappear from pending. On what approach we are updating the UI saying the new application is successfully created? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Oct 9, 2014 at 5:56 PM, Samith Dassanayake sam...@wso2.com wrote: Hi all, I have started to work on $subject[1]. Currently we poll all the user home data based on a timeout to update the user home and in current implementation we are fetching all the application's data each time regardless of the *applicationCreationStatus*.This operation causes huge delay in user home. On the other hand we cannot cache *userHomeInfo* directly since it includes a dynamic data element,*applicationCreationStatus[2] and a*s a solution the approach that we going to take here is, first we'll retrieve the User Home data based on each *applicationCreationStatus* and cache them separately as user_home_apps_completed, user_home_apps_pending, user_home_apps_failed and then we'll only poll for the pending and failed applications based on the cached app info and update the cache accordingly. This we reduce the delay in the home page after the the first login. [1] https://wso2.org/jira/browse/APPFAC-2396 [2] Mail thread: [AppFactory] Updating ApplicationInfoService Thanks, Samith -- Best Regards Samith Dassanayake Software Engineer, WSO2 Inc. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards Samith Dassanayake Software Engineer, WSO2 Inc. -- Best Regards Samith Dassanayake Software Engineer, WSO2 Inc. -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Appfactory] Use GJit plugin for repository management
Hi Mahesh, As per our offline discussion we can use org.wso2.carbon.appfactory. repository.mgt.client.AppfacotryRepositoryClient inside deployers as well. So we'll have one AppFactoryRepositoryClient everywhere. If we copy the RepositoryMgt into the AppServer it should function without an issue because the Carbon env is visible to the Jenkins webapp. thanks, dimuthu On Tue, Oct 21, 2014 at 6:57 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi, ok then , i will proceed with refactoring. Thanks. On Tue, Oct 21, 2014 at 6:36 PM, Janaka Ranabahu jan...@wso2.com wrote: Hi, On Tue, Oct 21, 2014 at 6:19 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi , No i meant a webservice, i understand it's not a good idea. Anyway there are some more findings so far, *Regarding appfactory.core.deploy.AppfactoryRepositoryClient* *appfactory.core.deploy.AppfactoryRepositoryClient* is used only twice for whole code. That is in *deleteFromDepSyncGitRepo* method and *undeployAllArtifactsOfAppFromDepSyncGitRepo *method in *ApplicationDeployer* class within the same package. And above two methods are private. Though all other repository deployment functions happen in *appfactory.deployers *(which jar goes to jenkins) , undeployment happens in *appfactory.core* section (correct me if im wrong). Therefore if we move undeploy functionality to *appfactory.deployers *section , we can get rid of *appfactory.core.deploy.AppfactoryRepositoryClient. * +1. Please proceed with the re-factoring. We need to handle deployment and undeployment related operations from the same place. *Regarding appfactory.deployers.clients.AppfactoryRepositoryClient* Unfortunately we will have to do the same implementation as in *appfactory.repository.mgt *here , since this goes to jenkins and we need to keep minimum dependancies. Because of the minimum dependencies scenario we cannot use *JGitAgent* available in *appfacotry.repository.mgt . *Therefore we have to re-implement it here in *appfactory.deployers.clients* though it's a replication. Let's check whether we could move them to a common component, maybe something like appfactory.common component. Thanks, Janaka Advise please On Tue, Oct 21, 2014 at 3:36 PM, Danushka Fernando danush...@wso2.com wrote: What do you meant by a service ? An OSGI service? +1 Go ahead with the solution #2. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Tue, Oct 21, 2014 at 3:29 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im working on [1] In here we have to consider 3 classes 1. org.wso2.carbon.appfactory.repository.mgt.client .AppfacotryRepositoryClient 2. org.wso2.carbon.appfactory.core.deploy .AppfacotryRepositoryClient 3. org.wso2.carbon.appfactory.deployers.clients .AppfacotryRepositoryClient *org.wso2.carbon.appfactory.repository.mgt.client.AppfacotryRepositoryClient* has already integrated with JGit plugin via *JGitAgent* class. Still *org.wso2.carbon.appfactory.core.deploy.AppfacotryRepositoryClient* and *org.wso2.carbon.appfactory.deployers.clients.AppfacotryRepositoryClient* use *GitSCMClient*. Now we need to remove SCM plugin and integrate JGit plugin to these two classes as well. I see following approaches, 1. Implement same functionality which is in *org.wso2.carbon.appfactory.repository.mgt.client.AppfacotryRepositoryClient* for above both places. But this will cause code redundancy, I guess. 2. Make *org.wso2.carbon.appfactory.repository.mgt.client.AppfacotryRepositoryClient* as a service and make it available to use in other two places. Please advise me in way forward. Suggest me a better approach please. Thanks [1] - https://wso2.org/jira/browse/APPFAC-2328 -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- *Janaka Ranabahu* Senior Software Engineer; WSO2 Inc.; http://wso2.com *E-mail: jan...@wso2.com http://wso2.com**M: **+94 718370861 %2B94%20718370861* Lean . Enterprise . Middleware -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin
Re: [Dev] [App Factory] App Deletion Permissions for different roles
Hi Mahesh, The ideal solution is to have a permission called write permission. Write permission can add/update/delete to user stores and registry. Otherwise we'll be having spurious permissions. So ideally the permission app create should be altered to write, and this means the person who has this permission has global write permission within the tenant. thanks, dimuthu On Fri, Oct 17, 2014 at 11:43 AM, Danushka Fernando danush...@wso2.com wrote: Dimuthu WDYT? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Oct 17, 2014 at 11:41 AM, Kasun De Silva kas...@wso2.com wrote: Hi Mahesh, AFAIU believe we should have a separate permission for app deletion because we cannot allow roles who have app creation permissions to let delete apps this should be a special and a limited use case. Thanks, Kasun *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 On Thu, Oct 16, 2014 at 7:13 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi all, Im working on [1], I need to clarify the following, Are we going to add new permission for *app deletion* or shall we proceed with checking the *app creation* permission for this. If we are to proceed with checking app creation permission, then we will have to assume that roles those who have app creation permissions will have app deletion permissions as well Please advise. [1] - https://wso2.org/jira/browse/APPFAC-2487 Thanks. -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APPFAC] Installing Jenkins plugins
Hi Kasun, What are the licence of these plugins? I can't find it anywhere in the mail. thanks, dimuthu On Fri, Oct 17, 2014 at 12:01 PM, Kasun De Silva kas...@wso2.com wrote: Thanks Danushka, Lets check with Dimuthu too. Ill go ahead with adding to the doc at this point. *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 On Fri, Oct 17, 2014 at 11:38 AM, Danushka Fernando danush...@wso2.com wrote: Either way its fine for me if we have matching licence. But my preference is latter case. Adding Dimuthu if she wants to contribute something. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Oct 17, 2014 at 11:34 AM, Kasun De Silva kas...@wso2.com wrote: Hi Danushka, Gayan, Yes, you are right, but from some other point of view I have a question like this, since we have a jenkins.war that we provide to setup APPFAC which already have some pre-installed plugins that enables to work with AF do we need to pre-install these plugins too ? or just mentioning in the doc is enough because we planing to give this as a pluggable apptype? Thanks, *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 On Fri, Oct 17, 2014 at 11:22 AM, Gayan Dhanushka gay...@wso2.com wrote: Hi Danushka, Just to clarify the things, are we following a model where in the future we just don't ship artifacts for all the apptypes supported by us but provide documentation so that if someone wants to have a particular apptype he can plug it in ? In that case +1 for mentioning in the docs. Thanks Gayan On Fri, Oct 17, 2014 at 11:15 AM, Danushka Fernando danush...@wso2.com wrote: AFAIU we are not shipping any thing related to .NET apptype and we are just providing a doc. Correct me if I am wrong. In that case +1 for mentioning it in docs. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Oct 17, 2014 at 10:32 AM, Kasun De Silva kas...@wso2.com wrote: Hi All, How we ship AppFactory plugin for Jenkins, There are few more plugins that Jenkins should have in order to give .NET app support. 1. Jenkins MSBuild Plugin 2. Windows Slaves Plugin What could be the best way that we can do this ? I'm thinking include plugin installation and configuration instructions in the doc, WDYT ? Thanks *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Gayan Dhanuska Software Engineer http://wso2.com/ Lean Enterprise Middleware Mobile 071 666 2327 Office Tel : 94 11 214 5345 Fax : 94 11 214 5300 Twitter : https://twitter.com/gayanlggd -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [SS] Is there a way to get the value of DbmsType via RSSAdmin?
Hi Amalka, When we move to the latest SS we can get it from backend. For now we only support MySQL so lets put it as MySQL. thanks, dimuthu On Wed, Oct 15, 2014 at 9:52 AM, Harsha Kumara hars...@wso2.com wrote: Hi Amalka, So this would ideally be the database provider configured in the rss-config. Previously there wasn't any service to get the provider. But it's added in the latest code available in the repo. Alternatively did you check getRSSInstance admin service to query the data relates to a instance to achieve this task? Thanks, Harsha On Wed, Oct 15, 2014 at 11:03 AM, Amalka Subasinghe ama...@wso2.com wrote: Hi, Appreciate your help on $subject. Environment NameTesting/Name RSSInstances RSSInstance NameTesting/Name InstanceTypeSYSTEM/InstanceType *DbmsTypeMYSQL/DbmsType* ServerCategoryLOCAL/ServerCategory DataSourceConfiguration Definition Urljdbc:mysql:// mysql.appfactory.private.wso2.com:3306/Url Usernameroot/Username Passwordroot/Password DriverClassNamecom.mysql.jdbc.Driver/DriverClassName /Definition /DataSourceConfiguration /RSSInstance /RSSInstances /Environment Thanks Amalka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Harsha Kumara Software Engineer, WSO2 Inc. Mobile: +94775505618 Blog:harshcreationz.blogspot.com -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APP Factory] What is the best way to load the database information to the DataBases landing page?
On Wed, Oct 15, 2014 at 11:17 AM, Amalka Subasinghe ama...@wso2.com wrote: OR is there a specific requirement to show the Database Type here? if not, we can get rid of this RSSAdmin backend call +1. Lets get rid of the call and make it MySQL always. When we are supporting other types we'll be migrating to new SS. thanks, dimuthu On Wed, Oct 15, 2014 at 12:41 PM, Amalka Subasinghe ama...@wso2.com wrote: Hi, I have developed the new Databases landing page as follows Here, except Database Type I can get all other information from App Factory DB. Is there a way to get the Database Type except getting it via RSSAdmin? Thanks Amalka -- Amalka Subasinghe WSO2 Inc. Mobile: +94 77 9401267 -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Setting a soap header to jaggery ws request object
Hi Danushka, Wherever it is possible, we have to use HTTP headers, it makes more sense. What is the use case you are trying to do? thanks, dimuhu On Wed, Oct 1, 2014 at 6:12 PM, Danushka Fernando danush...@wso2.com wrote: Hi all I was trying to do $subject as mentioned in [1]. According to [1] - SOAPHeaders - Used to specify custom SOAP headers to be send along with the SOAP message. This should be an array of elements. You can specify a header as an XML object or just as an object in the following structure. valueObject could be either a String or an XML object options[HTTPHeaders] = [ MyHeader1 xmlns=http://example.com;headerValue/MyHeader1, ... {qName : new QName(http://example.com;, MyHeader2), value : valueObject}, ... ]; So I wrote following code. var mutualAuthHeader = {qName : new QName(MUTUALSSL_HEADER_USERNAME_URL, UserName, tns), value : username}; httpHeaders.push(mutualAuthHeader); options[HTTPHeaders] = httpHeaders; But when I call the service it fails with following error. TID: [0] [Carbon] [2014-10-01 18:03:39,059] ERROR {org.jaggeryjs.modules.ws.WSRequestHostObject} - Invalid declaration for HTTPHeaders property {org.jaggeryjs.modules.ws.WSRequestHostObject} Any ideas? Am I doing something wrong or don't jaggery support this feature. We are using the version 0.9.0.ALPHA4_wso2v6. [1] http://jaggeryjs.org/documentation.jag?api=ws Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Fixing (APPFAC-2521) Second database gets no user assigned + invalid permission templates
Hi Dmitry, This is because underlying platform isolation is for tenant. App level isolation is something AF impose on top of it. I believe it is not worth the effort to redo the AF layer to special case templates, when we consider other high priority items. thanks, dimuthu On Fri, Oct 3, 2014 at 9:35 AM, Dmitry Sotnikov dmi...@wso2.com wrote: I see. But the template name still needs to be unique across the whole tenant? Or only for the app key? If the uniqueness scope is App, why append the app key to the name? Dmitry On Oct 2, 2014 7:36 PM, Amalka Subasinghe ama...@wso2.com wrote: Hi Dimtry, According to the current implementation we can query the templates based on application key and the environment Thanks Amalka On Thu, Oct 2, 2014 at 10:05 PM, Dmitry Sotnikov dmi...@wso2.com wrote: Thanks Amalka! Question on the templates: what is going to be the difference between appkey1_admin@development and appkey2_admin@development? If no difference, why do we need multiple identical permission templates? Why not just call it admin@development or even simply Admin? Dmitry On Thu, Oct 2, 2014 at 8:02 AM, Amalka Subasinghe ama...@wso2.com wrote: Finally I resolved all the issues as follows 1. create database named 'db001' - create db : db001_wso2_com, dbuser : db001_x, template : appkey_admin@development 2. drop database - remove the database only 3. create the database again naming 'db001' - create the db: db001_wso2_com, dbuser : db00155_x, template : appkey_admin@development Here, new user will be created with the name db001NN_x (NN will be a random number in between 0-100) now a new template will not be created for each database creation. first time when we create the template system will create the admin template as 'appkey_admin@development', and then for the second database same 'appkey_admin@development' template will be attached. Now database and dbuser name allows to enter only 5 characters On Thu, Oct 2, 2014 at 10:47 AM, Amalka Subasinghe ama...@wso2.com wrote: Red error message comes when we try to create the database. since it's already deleted we can use the same name, but the problem here is we can't create the dbuser with the same name. in that case, giving message name has already taken will not be matching On Thu, Oct 2, 2014 at 10:39 AM, Dmitry Sotnikov dmi...@wso2.com wrote: Dimuthu, thanks! Amalka, can we instead of the scary red error message, just instruct user to pick another name because this one has already been taken? Dmitry On Wed, Oct 1, 2014 at 8:46 PM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Dmitry, Please see my comments inline. On Wed, Oct 1, 2014 at 9:49 PM, Dmitry Sotnikov dmi...@wso2.com wrote: Amalka, Thanks! For your #1, what will happen when you get to the limit? Will database creation fail? Or is there code to handle it gracefully? How? For #2, default@Development sounds pretty meaningless. Is that all-powerful all-permission templates? Why not call it admin@Development? Other than that, if this prevents all these multiple identical permission templates from being created with each database - this would be a good thing! Ideally, in the future we also delete the temporary user accounts when databases are deleted or find another way to prevent the current proliferation of the temp accounts... Proliferation of user accounts - This is not possible due to a limitation in SS API. There is no way to identify whether a user is attached to more than one database, hence we cannot delete them upon database deletion. I have already created a JIRA for SS guys. thanks, dimuthu Dmitry On Wed, Oct 1, 2014 at 7:09 AM, Amalka Subasinghe ama...@wso2.com wrote: Hi All, *I fixed the add new database function as follows: (Issue 1)* 1. add new database first time 'db001' System will create database: 'db001_wso2_com', dbuser: 'db001_x'. 2. drop the database 'db001' System will drop only the database; dbuser will be remain in the system 3. add new database with the same name 'db001' System will get the number of users who has the name starting with 'db001'; this time ..it's 1. So system will create the new user as 'db0011_x'. (appending 1 at the end of the database name) like wise every time when we create the new database with the same name (after dropping) it will append the number of users (name staring with 'db001') exist in the system, for the dbuser name. Please note, storage server allows only 7 characters for database and dbuser names. So I had to limit the character length of database and dbuser to 5. Remaining 2 characters are for appending the number. *Planning to fix the Issue 2 as follows* When we create new database each time it creates a new template. My idea is to keep one default template 'default@Development' with all the permission and attach that to the each database. - When user creates a new
Re: [Dev] [APPFAC] .NET support
Hi Kasun, This fails because the restService.isAlreadySubscribed is failed. Check line number 72 of StratosDeployer.java. I would debut the isAlreadySubscribed method and see why is it giving wrong result. thanks, dimuthu On Wed, Oct 1, 2014 at 9:29 PM, Kasun De Silva kas...@wso2.com wrote: Hi All, I'm working .NET App type support in AF. Currently I have setup AF and a seperate build server with MSbuild in EC2. When I create a .NET app it automatically builds and deployable artifact is uploaded to the s2 repo. But when I hit deploy again it gives me following exception, TID: [0] [AS] [2014-10-01 21:17:35,651] INFO {org.wso2.carbon.appfactory.deployers.StratosDeployer} - generated repo URL: Development/dotnet/4/dotnetapp003bbbdotcom {org.wso2.carbon.appfactory.deployers.StratosDeployer} TID: [0] [AS] [2014-10-01 21:17:35,665] ERROR {org.wso2.carbon.appfactory.s4.integration.GITBlitBasedGITRepositoryProvider} - Repository is not created for Development/dotnet/4/dotnetapp003bbbdotcom due to remote server error {org.wso2.carbon.appfactory.s4.integration.GITBlitBasedGITRepositoryProvider} TID: [0] [AS] [2014-10-01 21:17:35,666] ERROR {org.wso2.carbon.appfactory.deployers.AbstractDeployer} - Error when calling deployLatestSuccessArtifact Unable to create repository {org.wso2.carbon.appfactory.deployers.AbstractDeployer} org.wso2.carbon.appfactory.common.AppFactoryException: Unable to create repository at org.wso2.carbon.appfactory.deployers.StratosDeployer.createSubscription(StratosDeployer.java:100) at org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer.addToGitRepo(AbstractStratosDeployer.java:127) at org.wso2.carbon.appfactory.deployers.AbstractStratosDeployer.deploy(AbstractStratosDeployer.java:60) at org.wso2.carbon.appfactory.deployers.AbstractDeployer.deployLatestSuccessArtifact(AbstractDeployer.java:108) at org.wso2.carbon.appfactory.jenkins.deploy.JenkinsArtifactDeployer.deployLatestSuccessArtifact(JenkinsArtifactDeployer.java:101) at org.wso2.carbon.appfactory.jenkins.artifact.storage.AppfactoryArtifactStoragePlugin.doDynamic(AppfactoryArtifactStoragePlugin.java:95) In my understanding this happens because there is already a repo in s2 git. so the generated url getting messed up since org.wso2.carbon.appfactory.deployers.StratosDeployer.createSubscription(StratosDeployer.java:100) does not check whether the repo is already there or not. what could be the solution for this ? Thanks, Kasun *Kasun de Silva* Software Engineer | *WSO2 Inc.*; http://wso2.com lean.enterprise.middleware email : kas...@wso2.com mobile : +94 77 794 4260 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Fixing (APPFAC-2521) Second database gets no user assigned + invalid permission templates
under 'attached user' section, b. 'Attach new user' - 'User name' drop down shows the user which created previously. c. 'Attach new user' - 'Permission template drop down' section shows the 2 templates with the same name 'db001@Development' What should be the expected result here? 1. Are we allowing user to create the database with the same name again? if so shall we attached the already exist dbuser and the template to the database? 2. I think we need to stop creating second template with the same name 'db001@Development'. right? *Issue 2:* In the Jira, it has asked to change the template names as Admin or Read-only instead of 'db001@Development'. Here, my concern is, when we create the database, template will be automatically created with all the permission (So we can call it as 'Admin' template), but if the user change the permissions later, then calling the template as 'Admin' will not be matching. So, current template name is fine for me. WDYT? [1] https://wso2.org/jira/browse/APPFAC-2521 Thanks Amalka -- Dmitry Sotnikov VP of Cloud; WSO2, Inc.; http://wso2.com/ email: dmi...@wso2.com; cell: +1.949.303.9653; Skype: DSotnikov Lean . Enterprise . Middleware http://wso2.com/events/ -- Amalka Subasinghe WSO2 Inc. Mobile: +94 77 9401267 -- Dmitry Sotnikov VP of Cloud; WSO2, Inc.; http://wso2.com/ email: dmi...@wso2.com; cell: +1.949.303.9653; Skype: DSotnikov Lean . Enterprise . Middleware http://wso2.com/events/ -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] WSO2 Committers += Samith Dassanayake
Hi all, Its my pleasure to welcome Samith Dassanayake as a WSO2 Committer. Samith has contributed immensely to WSO2 App Factory and has shown great commitment. In recognition of his contribution, he has been voted as a WSO2 Committer. Samith, welcome aboard! thanks, dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Puppetizing Dev setup progress
Hi Danushka, This is because the default lifecycle is not in the resources. I would check server startup errors and whether governance bundle is activated. thanks, dimuthu On Sun, Sep 28, 2014 at 8:00 AM, Danushka Fernando danush...@wso2.com wrote: Hi Dimuthu Thats what I mentioned in Action Items #1. We dont have elb in the one I setted up. BTW any idea about error above? Befause of that I cannot create apps. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Sun, Sep 28, 2014 at 2:07 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: Hi Danushka, In dev setup, we don't need ELB. Perhaps we can parameterise it, so that in dev setup we can have it, and in anthers setup we can have it. thanks, dimuthu On Sun, Sep 28, 2014 at 12:57 AM, Danushka Fernando danush...@wso2.com wrote: HI all I am getting following error while tenant creation. Currently app creation fails due to mutual ssl cofiguration issue in BPS. Will resolve that and update the status in this thread. TID: [0] [AF] [2014-09-28 00:49:39,378] ERROR {org.wso2.carbon.governance.lcm.listener.LifecycleLoader} - Error in adding the default lifecycles {org.wso2.carbon.governance.lcm.listener.LifecycleLoader} org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException: Resource does not exist at path /_system/config/repository/components/org.wso2.carbon.governance/lifecycles at org.wso2.carbon.registry.core.jdbc.handlers.builtin.MountHandler.get(MountHandler.java:445) at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.get(HandlerManager.java:2444) at org.wso2.carbon.registry.core.jdbc.handlers.UserDefinedHandlerManager.get(UserDefinedHandlerManager.java:200) at org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.get(HandlerLifecycleManager.java:959) at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:512) at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.get(CacheBackedRegistry.java:164) at org.wso2.carbon.registry.core.session.UserRegistry.get(UserRegistry.java:524) at org.wso2.carbon.governance.lcm.util.CommonUtil.addDefaultLifecyclesIfNotAvailable(CommonUtil.java:473) at org.wso2.carbon.governance.lcm.listener.LifecycleLoader.onLogin(LifecycleLoader.java:51) at org.wso2.carbon.core.services.callback.LoginSubscriptionManagerServiceImpl.triggerEvent(LoginSubscriptionManagerServiceImpl.java:42) at org.wso2.carbon.core.services.util.CarbonAuthenticationUtil.onSuccessAdminLogin(CarbonAuthenticationUtil.java:121) at org.wso2.carbon.core.services.authentication.AuthenticationAdmin.login(AuthenticationAdmin.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123
[Dev] WSO2 Committers += Anuruddha Premalal
Hi all, Its my pleasure to welcome Anuruddha Premalal as a WSO2 Committer. Anuruddha has contributed immensely to WSO2 App Factory and has shown great commitment. In recognition of his contribution, he has been voted as a WSO2 Committer. Anuruddha, welcome aboard! Regards, Amila. -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Puppetizing Dev setup progress
(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) at org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:194) at org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:282) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) at org.wso2.carbon.server.admin.internal.ServerAdminServiceComponent.activate(ServerAdminServiceComponent.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620) at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197) at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343) at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222) at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130) at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451) at org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517) at org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290) at org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340) Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Sep 26, 2014 at 10:41 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: On Fri, Sep 26, 2014 at 10:27 AM, Danushka Fernando danush...@wso2.com wrote: Plan is to run puppet for server by server, Get it in to a place where we can create tenant and then do changes to modules. Let me know if there are any concerns. +1 for the approach. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile
Re: [Dev] [AF] Puppetizing Dev setup progress
On Fri, Sep 26, 2014 at 10:27 AM, Danushka Fernando danush...@wso2.com wrote: Plan is to run puppet for server by server, Get it in to a place where we can create tenant and then do changes to modules. Let me know if there are any concerns. +1 for the approach. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Sep 25, 2014 at 11:46 PM, Danushka Fernando danush...@wso2.com wrote: Hi All For M6 we are puppetizing our dev setup. Here we are puppetizing the servers other than stratos servers for M6. Now all the modules in puppet are updated to the current dev setup state. We will test tenant creation tomorrow morning. We need some additional function changes to create all servers in single machine in one call. Currently we are setting up server by server. Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to avoid executing platform mode integration tests in build server
Hi Amalka, Having the parent pom is orthogonal to being able to run the integration test independently. This is because in Maven parents can have unknown children. Only the child pom needs to know about the parent pom. It is good to include the parent pom to eliminate repetitions. thanks, dimuthu On Wed, Sep 24, 2014 at 7:48 PM, Amalka Subasinghe ama...@wso2.com wrote: Hi, I have added test framework to the App Factory, in a way to run the integration module as a separate module. (added all the required dependencies to the pom file, which is under the integration folder, and removed the parent tag from it [knowing this is not the best practice]. So we can separately run the platform tests on the App Factory setup and it will not execute in the build server.) What is the correct way to do this? Thanks Amalka ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Freezing SVN scratch area for commits at 12 noon(IST)
Hi all, It will be frozen for 1 ~ 1.5 days. thanks, dimuthu On Mon, Sep 22, 2014 at 11:04 AM, Dimuthu Leelarathne dimut...@wso2.com wrote: This is for jar renaming. tx, dimuthu -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Introducing integration test framework to the App Factory
On Sun, Sep 21, 2014 at 7:54 AM, Krishantha Samaraweera krishan...@wso2.com wrote: We highly recommend to use latest test framework which is available in GIT. Any plans to move AF to GIT recently ? Immediately after the WSO2Con, if kernel has been released. thanks, dimuthu Thanks, Krishantha On Sat, Sep 20, 2014 at 8:10 PM, Amalka Subasinghe ama...@wso2.com wrote: Hi, Currently I'm working on $subject. My plan is to add the integration test framework to the location [1], in a way we can execute back end tests in platform mode. [1] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.0.1/modules/integration/ https://www.google.com/url?q=https%3A%2F%2Fsvn.wso2.org%2Frepos%2Fwso2%2Fscratch%2Fappfactory_2.0.0%2Fsa=Dsntz=1usg=AFQjCNF6zJMcRuQQqlPkMiGSpcgRqTBd5A https://www.google.com/url?q=https%3A%2F%2Fsvn.wso2.org%2Frepos%2Fwso2%2Fscratch%2Fappfactory_2.0.0%2Fsa=Dsntz=1usg=AFQjCNF6zJMcRuQQqlPkMiGSpcgRqTBd5A Thanks Amalka. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Factory] User store Datasource issue
Hi Godwin, +1 Danushka. Use the following method. public void deleteTenant(int tenantId) in TenantManager interface. There is only one tenant manager in the system, and get it from RealmService. thanks, dimuthu On Thu, Sep 18, 2014 at 8:17 PM, Danushka Fernando danush...@wso2.com wrote: Why do u want to access the database directly? Cant you achieve it using carbon apis? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Sep 18, 2014 at 6:53 PM, Godwin Amila Shrimal god...@wso2.com wrote: Hi I need to access the *afuserstore* database which is configured in *master-datasource.xml *and pointing from *user-mgt.xml *using* datasource *property*.* Can some one point me a existing code which I can reuse to get the above datasource and do db operation. I tried following and didn't work properly. *1.* JDBCDataAccessManager configMgr = (JDBCDataAccessManager)TenantMgtServiceComponent.getRegistryService().getConfigUserRegistry().getRegistryContext().getDataAccessManager(); configMgr.getDataSource() *2.* JDBCDataAccessManager govMgr = (JDBCDataAccessManager) TenantMgtServiceComponent .getRegistryService().getGovernanceUserRegistry() .getRegistryContext().getDataAccessManager(); govMgr.getDataSource(); Thanks Godwin -- *Godwin Amila Shrimal* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772264165* linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D* twitter: https://twitter.com/godwinamila ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] implementing delete all application for tenant
Hi all, Firstly, I think we should not be using Tenant Admin name for deleting, because it is identity theft. :) If we take the use case, I think you are trying to delete Apps in a scenario where you want to delete the tenant. If we are deleting the tenant we don't need to delete the app role in the cloud. I would do a specific app deletion method in the context of tenant deletion, but in reality I wouldn't even do that. Because if you are wiping out the tenant, you don't have to delete apps! That must be the case! Could you list the cases where after the tenant is wiped out, traces of App remain? Secondly of all not all users should be shown the application delete button. Created a JIRA. [1] thanks, dimuthu [1] https://wso2.org/jira/browse/APPFAC-2487 On Thu, Sep 11, 2014 at 2:56 PM, Danushka Fernando danush...@wso2.com wrote: Hi Lakshman You can use the way I explained (using relam service) to get the tenant admin user. Problem to be precise as below. We have implemented the delete application method to delete an application at a time. This can be done only by the application owner. So at this deletion, we delete the app specific roles created in the 3 clouds. So for this service call, we use the given user (logged in user) to mutual ssl to cloud and get it deleted. But in the case of tenant deletion it will be done by an super admin most of the case. So at that point we cannot use logged in user there. So one solution available is to use tenant admin username here. But I am not sure whether this is the best solution. @Dimuthu,Manjula : WDYT? Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Thu, Sep 11, 2014 at 2:40 PM, Lakshman Udayakantha lakshm...@wso2.com wrote: Hi, I’m implementing below method in *ApplicationManagementService.java* in *org.wso2.carbon.appfactory.application.mgt* to delete all the applications related to a tenant in APP Factory public void deleteAllApplicationsOfTenant(String domainName){ } there is a method in same class to delete an application public boolean deleteApplication(Application application, String userName, String domainName) throws AppFactoryException { } we need userName to delete the application here. we need to get the tenant admin as a user. how do we get the tenant admin user? Thanks -- Lakshman Udayakantha Software Engineer, WSO2 Mobile: *0711241005 0711241005* *lakshm...@wso2.com lakshm...@wso2.com* -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Obtaining a registry value for a PHP application through the Registry REST API
Hi Madhawa, I have a super idea!!! :) Since we are doing Cartridge per app, I think it is more natural to have the filesystem. This is more natural to PHP developers. Ideally we can take the properties file from the UI and then the Cartridge agent can pull it from AF/Greg. thanks, dimuthu On Mon, Sep 8, 2014 at 3:24 PM, Udara Rathnayake uda...@wso2.com wrote: To generate access token you can use the token API[1] [1] https://docs.wso2.com/display/AM160/Token+API On Mon, Sep 8, 2014 at 2:45 AM, Madhawa Bandara madh...@wso2.com wrote: Adding to above: Need to get this done without generating the ouath token manually ( without using the API store). On Mon, Sep 8, 2014 at 3:06 PM, Madhawa Bandara madh...@wso2.com wrote: Hi all, In order to perform the $subject following the doc [1]. I am using $curl based invocation from my php application. How can I get my requests the authenticated / how can I obtain the oauth access token? Thanks in advance. [1] - https://docs.wso2.com/display/Governance460/Registry+REST+API -- Regards, *Madhawa Bandara* Software Engineer WSO2, Inc. lean.enterprise.middleware Mobile - *+94777487726 %2B94777487726* Blog* - *classdeffound.blogspot.com -- Regards, *Madhawa Bandara* Software Engineer WSO2, Inc. lean.enterprise.middleware Mobile - *+94777487726 %2B94777487726* Blog* - *classdeffound.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Udara Rathnayake* Software Engineer WSO2 Inc. : http://wso2.com Mobile : +94 772207239 Twitter : http://twitter.com/udarakr Blog: http://udarakr.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [AF] Why RXTManager is neither Singleton nor static.
Hi all, I read through the code. We can make it a singleton. It is thread safe in singleton mode. thanks, dimuthu On Mon, Sep 1, 2014 at 3:01 PM, Danushka Fernando danush...@wso2.com wrote: Hi In AF RXTManager [1] is used for read / write application and version rxts. Why is $subject? Each time we use this we create a new object of it. Is there a specific reason for this? If not shall we make it either singleton or static. WDYT? [1] https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/components/appfac/org.wso2.carbon.appfactory.core/2.0.1/src/main/java/org/wso2/carbon/appfactory/core/governance/RxtManager.java Thanks Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 -- Dimuthu Leelarathne Architect Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev