Re: [Dev] [C5] [APIM] [UUF] Dynamic URLs to static resources

2017-04-05 Thread Manuranga Perera
m> >> wrote: >> >>> Hi Manu, >>> >>> We used this URL pattern as a convention so that one can easily identify >>> the front end js file which is included in each page (Page: /apis/{apiID}/ >>> and corresponding frontend js URL : public/js/apis/{apiID}/in

[Dev] [C5] [APIM] [UUF] Dynamic URLs to static resources

2017-04-04 Thread Manuranga Perera
I was wondering why dynamic URL's are used to server static content [1]. It will prevent the browser caching them effectively and I don't see any advantage since it's static file. Can someone please explain [1]

[Dev] [C5] APIM URL styling

2017-04-04 Thread Manuranga Perera
I see camlCasing in some URL [1]. I think should stick to dash patten for consistency. [1] https://github.com/wso2/carbon-apimgt/tree/C5/components/web/apps/org.wso2.carbon.apimgt.store/src/main/pages/statistic -- With regards, *Manu*ranga Perera. phone : 071 7 70 20 50 mail : m...@wso2.com

Re: [Dev] [IS 6.0.0][M5] Ensuring Proper Internationalization of UIs in Portal Apps

2017-03-24 Thread Manuranga Perera
We can, to a certain degree, but the mvn tool dose not parse content yet, so this has be implemented. Considering of cost of implementation, I think it's better to hand check, at least for now. ___ Dev mailing list Dev@wso2.org

Re: [Dev] How can we add multi language support in javascript files

2017-03-24 Thread Manuranga Perera
> > Bringing the whole thing will be an expensive operation in the fist time > before caching them, IMO we should load page wise and then cache them. WDYT > ? > Bringing it one time is always faster, and much simpler to debug ect.

Re: [Dev] How can we add multi language support in javascript files

2017-03-24 Thread Manuranga Perera
We need to bring whole i18n (combined all lang files) to the UI and cache it. On Fri, Mar 24, 2017 at 8:40 AM, Nuwandi Wickramasinghe wrote: > > > On Fri, Mar 24, 2017 at 1:49 PM, Nuwan Dias wrote: > >> >> >> On Fri, Mar 24, 2017 at 1:23 PM, Ruwan Abeykoon

Re: [Dev] How can we add multi language support in javascript files

2017-03-24 Thread Manuranga Perera
Ya that is needed but, that is too much work for the app dev, for the template usecase. So we need a convenient way. Ideally if you have {{i18n "key"}} hbs, it should automatically work same as in backbend UUF. This means we have to write a js helper, and inside that we can use the above API you

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

2017-03-20 Thread Manuranga Perera
lay in the > UI. Something like follwing. > > var msg = {title: "Cannot change the security question", body: "You don't > have enough permissions to change the security question of 'admin' user."}; > return {success: false, message: msg}; > > } > > >

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

2017-03-20 Thread Manuranga Perera
UUF team, So what is the best practice we need to document ? Currently I see people just wrapping in Java and re-throwing some kind of UI error. I don't think wiring UI specific logic in Java is the best way to do this. And it's annoying to pass a "isSuccess" all over the code. Maybe we should

Re: [Dev] [UUF]Handling events of fragments

2017-03-20 Thread Manuranga Perera
> >>>> >>>> On Sat, Mar 18, 2017 at 4:06 PM, Rajith Roshan <raji...@wso2.com> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> I have used button register event on document ready[1] of the front >>>

Re: [Dev] [UUF] i18n properties file can not have keys with spaces

2017-03-20 Thread Manuranga Perera
Adding to what Sajith said, Earlier we put the *same string* as the key, now we use *a description of where it's getting used* as the key, which align with our java practice. see:

Re: [Dev] [UUF]Handling events of fragments

2017-03-18 Thread Manuranga Perera
that javascript. You can verify it by modifying the sample I have mentioned in my previous mail. BTW, could you please elaborate more on what you meant by "special" fragments? Regards, Chandana On Thu, Mar 16, 2017 at 5:12 PM, Manuranga Perera <m...@wso2.com> wrote: >

Re: [Dev] [UUF]Handling events of fragments

2017-03-16 Thread Manuranga Perera
refore, as Rajith mentioned used the onCLick() in the button html >>> tag. >>> But it would be more easier if we can do the front-end js logic of the >>> fragment inside the fragment public js itself when using >>> UUFclient.renderFragment() method to load the

Re: [Dev] [UUF]Handling events of fragments

2017-03-14 Thread Manuranga Perera
> > Fragment is a self contained re usable component. I think its better to > have the all the front end logic related to the fragment inside that > fragment. > +1 On Tue, Mar 14, 2017 at 4:36 PM, Rajith Roshan wrote: > Hi > > On Tue, Mar 14, 2017 at 7:32 PM, Denuwanthi De

Re: [Dev] [UUF]Handling events of fragments

2017-03-14 Thread Manuranga Perera
Hi Denuwanthi, This is not a UUF related issue, this is how DOM works. To fix register listener to a higher node [1]. In the given sample they are using 'document', but as a best practice you should use the closest know parent, eg: parent div of the zone you are rendering the fragment into. For

Re: [Dev] [UUF] How to handle multiple form submits within one page

2017-03-10 Thread Manuranga Perera
1) Technically it can be done [1] , but i don't think it's very good idea. Generating a password is not really a submit, is it? I would prefer if you generate password in frontend eg [2] OR write a password generation service and call it using ajax 2) Fragment is just way to organize code,

Re: [Dev] about UUF

2017-03-07 Thread Manuranga Perera
1) Build UUF repo, run the product and goto /features-app/ .Unfortunately this is not as compleat as we like it to be. 2) Play around with /pets-store/ app and read the source. 3) Also please read and follow https://docs.google.com/document/d/12sjjEKdNmElO7TJLZ1mkbKCDnDCfiaQvVv1ssNdfOLg/edit

Re: [Dev] [UUF] Handling Tab view

2017-03-06 Thread Manuranga Perera
Hi Denuwanthi, Are you planing to use menu helper ? On Mon, Mar 6, 2017 at 4:14 PM, SajithAR Ariyarathna <sajit...@wso2.com> wrote: > Hi Manu, > > On Mon, Mar 6, 2017 at 9:11 PM, Manuranga Perera <m...@wso2.com> wrote: > >> @Sajith >> * Can we use the menu

Re: [Dev] [UUF] Handling Tab view

2017-03-06 Thread Manuranga Perera
@Sajith * Can we use the menu helper ? * AFAIK menu helper doesn't support a @selected attribute, to highlight current tab, don't we need to implement it? On Mon, Mar 6, 2017 at 2:52 PM, SajithAR Ariyarathna wrote: > > > On Mon, Mar 6, 2017 at 8:17 PM, Denuwanthi De Silva

Re: [Dev] [UUF] Handling logged out session in index.hbs

2017-03-06 Thread Manuranga Perera
You can do this by just putting {{*secured*}} at the top of the HBS file. Please try it and let us know if that matches your requirement. On Mon, Mar 6, 2017 at 3:18 PM, Nuwandi Wickramasinghe wrote: > Hi, > > In the User Portal uuf application found in [1], I see an

Re: [Dev] Fwd: Security questions are encoded

2017-02-28 Thread Manuranga Perera
ed if the value *question *contains a single quote. > > > > > On Tue, Jan 31, 2017 at 11:04 PM, Manuranga Perera <m...@wso2.com> wrote: > >> UUF automatically escaping sensitive characters [1]. Please don't use >> 'encoding' for 'escaping'. >> >> [

[Dev] [UUF] Validate your hbs file

2017-02-14 Thread Manuranga Perera
Hi IS team, I see lot of missing quotes and minor syntax issues. Please do following to fix. 1) go to your checkout. make sure you have no local changes 2) run find -iname "*.hbs" | xargs sed -i -e "s/{{.*}}//g" . warning: this will change files 3) run find -iname "*.hbs" | xargs xmllint

Re: [Dev] [UUF] Common "OnGet" method for all requests for a particular app

2017-02-06 Thread Manuranga Perera
For others information, We had a off-thread chat, and Rajith will try something like below and see if that works if(!(document.cookie...)){ window.location.href = ... + "/login"; } On Mon, Feb 6, 2017 at 1:25 PM, Manuranga Perera <m...@wso2.com> wrote: > Hmm ok. >

Re: [Dev] [UUF] Common "OnGet" method for all requests for a particular app

2017-02-06 Thread Manuranga Perera
login flow and give an access token to > the client (JS) so that the client can simply keep using it from there > onwards to fetch the data and render. > > Thanks, > NuwanD. > > > > On Mon, Feb 6, 2017 at 6:31 PM, Manuranga Perera <m...@wso2.com> wrote: > >> micro

Re: [Dev] [UUF] Common "OnGet" method for all requests for a particular app

2017-02-06 Thread Manuranga Perera
rying to do > the login prompt using the uuf app. So if token is missing micro service > layer will not be invoked and login will be prompted through the uuf app. > AFAIU what you are suggesting is to move this logic to micro service layer > and prompt login from there. > > On Mo

Re: [Dev] [APIM][C5] Enforcing connections over HTTPS for pubisher and store apps

2017-02-06 Thread Manuranga Perera
Need to use permanent redirects and do https://www.owasp.org/index.php/HTTP_Strict_Transport_Security I have created https://github.com/wso2/carbon-uuf/issues/190 On Mon, Feb 6, 2017 at 12:25 PM, Kasun Thennakoon wrote: > Hi all, > > We are thought of doing the $subject since

Re: [Dev] [UUF] Common "OnGet" method for all requests for a particular app

2017-02-06 Thread Manuranga Perera
I assume you guys have a /auth API, this can set a cookie [1] just has easily as UUF. And all your other APIs can read the cookie. [1] http://stackoverflow.com/questions/3340797/can-an-ajax-response-set-a-cookie On Mon, Feb 6, 2017 at 12:06 PM, Manuranga Perera <m...@wso2.com> wrote: &g

Re: [Dev] [UUF] Common "OnGet" method for all requests for a particular app

2017-02-06 Thread Manuranga Perera
So you guys don't want to use UUF for its backend rending, just as a static server and want to do a frontend app, that's cool. But then properly write a frontend app. Seems like you guys don't know how to write a SPA and running back to bankend app logic. If your UUF UI don't have any data (just

Re: [Dev] [UUF] Common "OnGet" method for all requests for a particular app

2017-02-06 Thread Manuranga Perera
@Rajith Is that true, are you doing auth in frontend (btw what app is this?) Then why do you need cookies? You just have to send auth header [1] ? [1] https://docs.google.com/drawings/d/1wtiF_UK2e4sZVorvfBUZh2UCaZq9sTCGoaDojSdwp7I/edit -- With regards, *Manu*ranga Perera. phone : 071 7 70 20

Re: [Dev] [UUF] Common "OnGet" method for all requests for a particular app

2017-02-06 Thread Manuranga Perera
See, even I don't knew it  On Mon, Feb 6, 2017 at 10:02 AM, Chandana Napagoda <chand...@wso2.com> wrote: > HI Manu, > > I think correct helper is {{secured}} > > Regards, > Chandana > > On Mon, Feb 6, 2017 at 3:22 PM, Manuranga Perera <m...@wso2.com> w

Re: [Dev] [UUF] Common "OnGet" method for all requests for a particular app

2017-02-06 Thread Manuranga Perera
@Rajith You can use {{secure}} tag at the top of the page to indicate that it's a login required page. Unfortunately this is not documented yet, AFAIK. @UUF team Agree with Sajith, this need to be addressed by UUF auth But, 1. We already have a {{secure}} helper but nobody seems to

Re: [Dev] Security Considerations in Carbon UUF Framework

2017-02-01 Thread Manuranga Perera
We need to check (and fix if not) following form UUF side - Preventing Improper Neutralization of CRLF Sequences in HTTP Headers - Preventing Improper Output Neutralization for Logs On Wed, Feb 1, 2017 at 2:18 PM, Indunil Upeksha Rathnayake wrote: > Hi, > > In the

Re: [Dev] [UUF] Cannot use sendRedirect within try

2017-02-01 Thread Manuranga Perera
@UUF team, Maybe if extend PageRedirectException from Throwable instead Exception it'll work. If not we will have to do what J2EE does, that is, even after sendRedirect the code runs, but no output. On Wed, Feb 1, 2017 at 12:43 PM, Ayesha Dissanayaka wrote: > Hi, > > Observing

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

2017-02-01 Thread Manuranga Perera
o <danush...@wso2.com> >>>> wrote: >>>> >>>>> I guess the idea was to write an api layer for web app which will call >>>>> backend services and get all the data and do all the processing and return >>>>> data sets that c

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

2017-02-01 Thread Manuranga Perera
then it will be > a middle man. > > Thanks & Regards > Danushka Fernando > Senior Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 <+94%2071%20633%202729> > > On Wed, Feb 1, 2017 at 10:50 AM, KasunG Gajasinghe <kas...@wso2.com> > wrote:

Re: [Dev] Fwd: Security questions are encoded

2017-01-31 Thread Manuranga Perera
On Tue, Jan 31, 2017 at 5:34 PM, Manuranga Perera <m...@wso2.com> wrote: > UUF automatically escaping sensitive characters [1]. Please don't use > 'encoding' for 'escaping'. > > [1] https://github.com/jknack/handlebars.java/blob/ > 1f6c48e606dc1303d1e92a0a0eaa94120eba64fd/h

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

2017-01-31 Thread Manuranga Perera
>> [1] https://sourcemaking.com/refactoring/smells/middle-man >> >> Thanks & Regards >> Danushka Fernando >> Senior Software Engineer >> WSO2 inc. http://wso2.com/ >> Mobile : +94716332729 <071%20633%202729> >> >> On Tue, Jan 31, 2

Re: [Dev] Fwd: Security questions are encoded

2017-01-31 Thread Manuranga Perera
ga Kaushalya* > Software Engineer > Mobile: +94777860160 <+94%2077%20786%200160> > WSO2 Inc. | http://wso2.com > lean.enterprise.middleware > > On Tue, Jan 31, 2017 at 10:42 PM, Manuranga Perera <m...@wso2.com> wrote: > >> >> -- Forwarded message -

[Dev] Fwd: Security questions are encoded

2017-01-31 Thread Manuranga Perera
-- Forwarded message -- From: Manuranga Perera <m...@wso2.com> Date: Tue, Jan 31, 2017 at 5:11 PM Subject: Security questions are encoded To: Johann Nallathamby <joh...@wso2.com>, Jayanga Kaushalya < jayan...@wso2.com>, Isura Karunaratne <is...@wso2.com&

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

2017-01-31 Thread Manuranga Perera
-- Forwarded message -- From: Manuranga Perera <m...@wso2.com> Date: Tue, Jan 31, 2017 at 2:44 PM Subject: Why re-write User class? Why re-wrap RealmService? To: Kasun Gajasinghe <kas...@wso2.com>, Indunil Upeksha Rathnayake < indu...@wso2.com>, Danushka Fernan

Re: [Dev] [Jaggery] - Is setting headers and type mandatory in jaggery post ?

2017-01-25 Thread Manuranga Perera
I think it's fixed in latest. Old one doesn't have a null check [1] but the new one [2] does. Can you please back port the fixed line, build, patch and try? [1]

Re: [Dev] [UUF] Localization of Page titles

2017-01-23 Thread Manuranga Perera
In that case why do we need a config.appName at all? We can just do following {{title (t "user-portal.title.home") " | " (t "app-name")}} (on a side note, why does everything has to be prepended by user-portal. I know I am in that app) -- With regards, *Manu*ranga Perera. phone : 071 7 70 20

Re: [Dev] [UUF] Define page layout for default error pages

2017-01-23 Thread Manuranga Perera
> When you import another component in your app as a dependency, your app > and that dependency agree to use the same theme as your app Dependency shouldn't have to agree to anything, that's the whole meaning of dependency. eg: if you are using apache HTTP client as a dependency, apache HTTP

Re: [Dev] [UUF] Define page layout for default error pages

2017-01-23 Thread Manuranga Perera
(When I say "default theme" I mean "foundation" component obviously.) When you put make the default theme understand to errorPageLayout you are changing the *contract* of the theme, that means users (like Danushka) has to know that, ether by reading the code/doc. I think this is a much bigger

Re: [Dev] [UUF] Define page layout for default error pages

2017-01-23 Thread Manuranga Perera
: > > ... > config: > errorPageLayout: "main" > ... > > > > On Mon, Jan 23, 2017 at 5:52 PM, Manuranga Perera <m...@wso2.com> wrote: > >> https://github.com/wso2/carbon-uuf/issues/156 >> >> On Sat, Jan 21, 2017 at 5:54 AM, Danu

Re: [Dev] [UUF] Define page layout for default error pages

2017-01-23 Thread Manuranga Perera
https://github.com/wso2/carbon-uuf/issues/156 On Sat, Jan 21, 2017 at 5:54 AM, Danushka Fernando wrote: > Not sure which components its coming from. For example 404 error page is a > default error page coming from UUF. > > Thanks & Regards > Danushka Fernando > Senior

Re: [Dev] [UUF] Feature request - Print a custom message in console on startup.

2017-01-22 Thread Manuranga Perera
Actually Shariq, it is not a clickable link from Terminator. It is possible to make it like "https://localhost:7632/features-app; ? On Tue, Jan 17, 2017 at 10:13 AM, Manuranga Perera <m...@wso2.com> wrote: > Cool, I didn't notice. > > On Tue, Jan 17, 2017 at 5:59 AM, Muhammed

Re: [Dev] [UUF] Boolean values are not get stored properly in injected js variable from sendToClient()

2017-01-20 Thread Manuranga Perera
. Every field >> labels/validations(required fields/regex patterns/read only fields etc) in >> the UI, will be populated from those claims. So that all the claims should >> be sent to the front-end JS. >> >> Thanks and Regards >> >> On Fri, Jan 20, 2017 at 3

Re: [Dev] [UUF] Boolean values are not get stored properly in injected js variable from sendToClient()

2017-01-20 Thread Manuranga Perera
gt; claimForProfile[i].getDefaultValue(); >>>> } >>>> claimProfileMap["claimLabel"] = >>>> claimForProfile[i].getClaimURI().replace("http://wso2.org/claims/;, ""); >>>> claimProfileMap["required"] = &

Re: [Dev] [UUF] [IS] Support for refresh fragments in a page

2017-01-19 Thread Manuranga Perera
Hi All, I think this is soming we need to take a close a look at. I assume we are loading all the fragments and using front end js hiding some? Is it Indunil? If so it can we use the menu feature in UUF to implement it? On Thu, Jan 19, 2017 at 2:12 PM, Thusitha Kalugamage

Re: [Dev] [UUF] Boolean values are not get stored properly in injected js variable from sendToClient()

2017-01-19 Thread Manuranga Perera
at 7:08 PM, Kishanthan Thangarajah < >> kishant...@wso2.com> wrote: >> >>> We are using gson to serialize the json sent to client [1]. But we need >>> the sample data used here to test what could be the issue. >>> >>> [1] https://gith

Re: [Dev] [UUF] Boolean values are not get stored properly in injected js variable from sendToClient()

2017-01-19 Thread Manuranga Perera
I think it's a java object. I think we need to use something like gson here On Thu, Jan 19, 2017 at 1:30 PM, Kishanthan Thangarajah wrote: > Can we have the json object to investigate this? > > On Thu, Jan 19, 2017 at 6:22 PM, SajithAR Ariyarathna >

Re: [Dev] [UUF] Feature request - Get the default favicon from the app.yaml

2017-01-18 Thread Manuranga Perera
doesn't look nice. So let's stick with above solution. > > On Wed, Jan 18, 2017 at 9:56 PM, Manuranga Perera <m...@wso2.com> wrote: > >> BTW, until then can we move that line to the the layout (not as a default >> value)? will that work? >> >> On Wed, Jan 18, 201

Re: [Dev] [UUF] Feature request - Get the default favicon from the app.yaml

2017-01-18 Thread Manuranga Perera
BTW, until then can we move that line to the the layout (not as a default value)? will that work? On Wed, Jan 18, 2017 at 4:23 PM, Manuranga Perera <m...@wso2.com> wrote: > +1 > > On Wed, Jan 18, 2017 at 4:21 PM, SajithAR Ariyarathna <sajit...@wso2.com> > wrote: > >

Re: [Dev] [UUF] Feature request - Get the default favicon from the app.yaml

2017-01-18 Thread Manuranga Perera
ents/org.wso2.carbon.uuf.sample.foundation. > ui/src/main/layouts/main.hbs#L7-L9 > > Thanks. > > > On Wed, Jan 18, 2017 at 9:17 PM, Manuranga Perera <m...@wso2.com> wrote: > >> How about $subject ? In IS portal I see this every page. >> Has i

[Dev] [UUF] Feature request - Get the default favicon from the app.yaml

2017-01-18 Thread Manuranga Perera
How about $subject ? In IS portal I see this every page. Has it been already done? -- With regards, *Manu*ranga Perera. phone : 071 7 70 20 50 mail : m...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

Re: [Dev] [UUF] Feature request - Print a custom message in console on startup.

2017-01-17 Thread Manuranga Perera
tps://github.com/wso2/carbon-uuf/issues/136 > > On Tue, Jan 17, 2017 at 12:11 AM, Manuranga Perera <m...@wso2.com> wrote: > >> $subject >> >> app.yaml >> welcomeMessage: "{{config.appName}} started at {{appUrl}} >> >> >&g

[Dev] [UUF] Feature request - Print a custom message in console on startup.

2017-01-16 Thread Manuranga Perera
$subject app.yaml welcomeMessage: "{{config.appName}} started at {{appUrl}} -- With regards, *Manu*ranga Perera. phone : 071 7 70 20 50 mail : m...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

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

2017-01-12 Thread Manuranga Perera
@UUF team It's OK to provide a POST in theory, but we have to see what they are going to do with it. I think they are trying to do a self accepting page. In Jaggery is was very hard to unsaturated the code when same code is responsible for showing and adding (let say a new user). Let's not repeat

[Dev] Let's stop using inline script tags

2017-01-06 Thread Manuranga Perera
With UUF we have a proper place to put script tags for each fragment/page. So let's stop using

Re: [Dev] [UUF] Empty fragment dir

2016-11-11 Thread Manuranga Perera
Hi Nipuna, Please remove .gitkeep files, we don't need to commit these dirs. On Fri, Nov 11, 2016 at 2:53 PM, SajithAR Ariyarathna <sajit...@wso2.com> wrote: > Does UUF framework alow components with no fragment dir? > > Yes. > > On Fri, Nov 11, 2016 at 6:36 PM, Manuranga

[Dev] [UUF] Empty fragment dir

2016-11-11 Thread Manuranga Perera
Does UUF framework alow components with no fragment dir? I think it should be possible, asking people to create empty dir doesn't make sense [1]. [1] https://github.com/wso2/carbon-dashboards/tree/uuf-portal/components/org.wso2.carbon.dashboard.designer/src/main/fragments -- With regards,

Re: [Dev] UUF based Gadget hot deployment

2016-11-02 Thread Manuranga Perera
> > Ideally these custom gadgets should not go inside the portal component +1 > rather placed as different UUF components. I think the correct place is the deployment dir. and we should treat it as an external artifact, just like a MSS service. UUF based Gadget hot deployment UUF is anyway

Re: [Dev] UUF based Gadget hot deployment

2016-11-02 Thread Manuranga Perera
Are we sure we want to dynamically add gadgets via UI ? 1) Have we verified that this is a real use-case from product team, because I don't believe it. Let's get the user-stories form the team. 2) Who are going to upload gadgets? Is it developers, then it has to be done though developer tool,

Re: [Dev] Consuming Rest Services with UUF

2016-11-01 Thread Manuranga Perera
Hi, The requirement is valid but, I don't think calling HTTP REST API from the backend is good. (auth issues, SSL issues, timeout issues, hostname issues, port issues). We have following options. 1) We leave first view blank for now. 2) Call the Java class instead of the REST, you will get the

[Dev] Using rsync for manager-manger cluster

2016-10-24 Thread Manuranga Perera
Is it possible to setup manager-manger cluster (api gateway) using rsync as deployment mechanism. The samples I find on internet [1] are for worker-manger and that doesn't work for HA with 2 nodes. [1] https://docs.wso2.com/display/CLUSTER44x/Configuring+rsync+for+Deployment+Synchronization --

Re: [Dev] Connectivity from ESB to other Apps using SSO

2016-09-21 Thread Manuranga Perera
. On Wed, Sep 21, 2016 at 10:38 AM, Manuranga Perera <m...@wso2.com> wrote: > Following mail was send to me by Srikanth, forwarding since dev list has > rejected, due to him not being resisted. > > Hi, >> >> I am having issue configuring ESB to talk to SalesForce.

[Dev] Fwd: Connectivity from ESB to other Apps using SSO

2016-09-20 Thread Manuranga Perera
Following mail was send to me by Srikanth, forwarding since dev list has rejected, due to him not being resisted. Hi, > > I am having issue configuring ESB to talk to SalesForce. Tried following > Approaches: > > > *Approach-1* > > I started connecting to SalesForce using WSO2 SalesForce

Re: [Dev] [Jaggery] [WebSocket] [CEP] Closing the Web Socket Connection from server side

2016-08-29 Thread Manuranga Perera
What is the use case for closing it from server side? ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

Re: [Dev] [C5][BPS] Writing integration tests for Rest APIs

2016-08-16 Thread Manuranga Perera
Are all the Java methods in the service class unit tested? What is the unit test code coverage? If so the integration will only be needed to test high level interactions. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

Re: [Dev] [MB][C5] How to write unit tests to mock the user core?

2016-08-15 Thread Manuranga Perera
In UUF tests we are using mockito, its very convenient, please give it a try. On Mon, Aug 15, 2016 at 3:42 PM, Ramith Jayasinghe wrote: > please disregard above noise! > > On Mon, Aug 15, 2016 at 3:36 PM, Ramith Jayasinghe > wrote: > >> this needs to be a

Re: [Dev] Clarification on C5 permission model

2016-08-11 Thread Manuranga Perera
HI Vinod, shouldn't this be asked in a new thread? Hi Rasika, Sajith, You did this recently, right, Can you please help? On Fri, Aug 12, 2016 at 10:26 AM, Vinod Kavinda wrote: > Hi Jayanga, > I'm trying to authorize the current user with a particular action. I have > used the

[Dev] [BPS] Getting meta-data of form elements

2016-07-20 Thread Manuranga Perera
Can you please point me to the REST API, using which, I can get the form element information (such as type="string") of a user task. -- With regards, *Manu*ranga Perera. phone : 071 7 70 20 50 mail : m...@wso2.com ___ Dev mailing list Dev@wso2.org

Re: [Dev] [EMM] Why we are using 404 for "No Content" responses ?

2016-07-12 Thread Manuranga Perera
because according to the spec all the 2xx status codes are successful. > AFAIU We should use 204 for No Content responses. > > Thanks, > Madhawa > > On Wed, Jun 15, 2016 at 7:40 PM, Manuranga Perera <m...@wso2.com> wrote: > >> Seems like the bigger issue here is that re

Re: [Dev] Clarification on Request Host Object commit

2016-07-01 Thread Manuranga Perera
Hi Tanya, As the comment says, it is to make the patch Jo has done earlier compatible with the lazy session creation (which is a memory improvement). The code line [2] is not useless. It has a "side effect" [3]. Some refactoring is good, but I believe we cannot remove the line completely. If you

[Dev] BPS 3.5.1 sends emails with empty bodies

2016-06-30 Thread Manuranga Perera
Hi Amal, 1) The doc [1] asks me to copy commons-email:jar:1.3 but the product already comes with 1.4 2) Even if I copy the jars, I still get emails with empty body, only with title. (emails are send with html bodies using ) [1] https://docs.wso2.com/display/BPS351/Working+with+the+Email+Task

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

2016-06-24 Thread Manuranga Perera
in HTTP 1.1, but 1.0 is very rare now. On Fri, Jun 24, 2016 at 10:10 AM, Isuru Haththotuwa <isu...@wso2.com> wrote: > Hi Manu, > > On Fri, Jun 24, 2016 at 7:33 PM, Manuranga Perera <m...@wso2.com> wrote: > >> Having server IP/Hostname in configuration/kernel is a mistake we

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

2016-06-24 Thread Manuranga Perera
gt; conversions. But if there are helpers that is used platform-wide they >>>> should be implemented/imported by UUF team. >>> >>> ​We did not expose handlebar environment into the >>> controller(serversideJs). Thus, I don't think App developers can register >&

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

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

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

2016-06-23 Thread Manuranga Perera
> > Yeah, there is a way to write custom helpers in HBS and we can use it by > registering the helper in HBS. Really ? Rasika/Sajith, did you guys implement a way to plug-in helpers? I don't believe we should have app specific custom helpers, it makes code hard to understand for someone who is

Re: [Dev] [UUF] [Clarification] Retrieve data without Postback using serverside JS (Fwd: [UUF] Pagination support in UUF)

2016-06-23 Thread Manuranga Perera
On Thu, Jun 23, 2016 at 12:34 PM, Manuranga Perera <m...@wso2.com> wrote: > the success message back to my ajax caller I though you are asking about the item's HTML, then you should get it from the backend since it's dynamic. But if you need a success message, better to just put i

Re: [Dev] [UUF] [Clarification] Retrieve data without Postback using serverside JS (Fwd: [UUF] Pagination support in UUF)

2016-06-23 Thread Manuranga Perera
On Thu, Jun 23, 2016 at 9:06 AM, Hemika Kodikara wrote: > I have a scenario where that I have to add an item to a list in the server > side. To make the UI more friendly, I would like to show a success message > once the queue is created without a post back. > > So is the

Re: [Dev] [UUF] [Clarification] Retrieve data without Postback using serverside JS (Fwd: [UUF] Pagination support in UUF)

2016-06-23 Thread Manuranga Perera
> > if (env.queryParams && (env.queryParams.offset && env.queryParams.limit)) > { env.queryParams && should be removed since we should always have an empty map. Otherwise it's easy for developers to get null pointer errors -- With regards, *Manu*ranga Perera. phone : 071 7 70 20 50 mail :

Re: [Dev] Reading transport header with JMS inbound

2016-06-21 Thread Manuranga Perera
I had an issue with reading numeric > transport headers in JMS Message Store/Processor same artifacts work fine > with InMemory Message Store. > > > Thanks > Godwin > > > On Mon, Jun 20, 2016 at 3:50 PM, Manuranga Perera <m...@wso2.com> wrote: > >&g

[Dev] Reading transport header with JMS inbound

2016-06-20 Thread Manuranga Perera
Have some issues with $subject (jms2). Any know issues? ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

[Dev] Please merge

2016-06-20 Thread Manuranga Perera
$subject https://github.com/wso2/puppet-modules/pull/64 -- With regards, *Manu*ranga Perera. phone : 071 7 70 20 50 mail : m...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

Re: [Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-16 Thread Manuranga Perera
> HBS helper to use with view model? > > On Wed, Jun 15, 2016 at 8:35 PM, Manuranga Perera <m...@wso2.com> wrote: > >> Hi Sudarma, Hemika, >> I have started documenting these practices [1] >> Please point me to any problem arias and your personal finding that you

Re: [Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-15 Thread Manuranga Perera
Hi Sudarma, Hemika, I have started documenting these practices [1] Please point me to any problem arias and your personal finding that you think are import, so I can add them to the doc. [1] https://docs.wso2.com/display/UUF100/Code+Review On Wed, Jun 15, 2016 at 11:01 AM, Manuranga Perera &l

Re: [Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-15 Thread Manuranga Perera
code analysis). >> >> On Fri, Jun 10, 2016 at 8:47 PM, SajithAR Ariyarathna <sajit...@wso2.com> >> wrote: >> >>> +1 for abandoning "{{{" >>> >>> toClent("fromBackend.protocols", protocols); >>> >>> We can implement

Re: [Dev] [EMM] Why we are using 404 for "No Content" responses ?

2016-06-15 Thread Manuranga Perera
Seems like the bigger issue here is that resource collection is not being a path parameter. /devices/type=android -> not ideal, there is no good way to distinguish non-existing types /devices/android -> seems to be more REST like On Wed, Jun 15, 2016 at 5:17 AM, Joseph Fonseka

Re: [Dev] [IS] RESTful Fine Grained Authorization-as-a-Service (AZaaS)

2016-06-10 Thread Manuranga Perera
Hi Manujith, Please have a look at WSO2 REST API guideline [1]. This will help you to improve the URL nameing. [1] http://wso2.com/whitepapers/wso2-rest-apis-design-guidelines/ On Thu, Jun 9, 2016 at 3:49 PM, Manujith Pallewatte wrote: > Hi Pushpalanka, > > Was confused

Re: [Dev] [UUF] Convert an array to a javascript string array in nashorn.

2016-06-10 Thread Manuranga Perera
These are mistakes we have already made in our old systems, let's not repeat them 1) Please DO NOT use "{{{", it introduces SECURITY VULNERABILITIES, Sajith,Rasika we need to introduce a new function. Don't even tell people about "{{{" in backend JS, Hemika should be able to do the following

[Dev] Encrypting VFS URL

2016-06-09 Thread Manuranga Perera
I have a FTP secured by a password/username. I want to secure the password.I can use vfs encrypt utils [1], but it is trivially decodable. Is there a way to use a secure vault for this? I tried following http://ws.apache.org/ns/synapse; name="vfsy" transports="https http vfs" startOnLoad="true"

Re: [Dev] Setting JMS Version gloably

2016-06-08 Thread Manuranga Perera
>>> >>> Within the source (ServiceTaskManager.java) it seem to hard coded. >>> >>> >>> */** Should this service use JMS 1.1 ? (when false, defaults to 1.0.2b) >>> */private boolean jmsSpec11 = true;* >>> >>> @Vijitha - Hope you may explai

[Dev] Setting JMS Version gloably

2016-06-07 Thread Manuranga Perera
Hi Ravindra/Dilshani, Can we set transport.jms.JMSSpecVersion globally (ie: via axis2.xml)? -- With regards, *Manu*ranga Perera. phone : 071 7 70 20 50 mail : m...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

Re: [Dev] [BPS] Getting a list of user roles

2016-06-06 Thread Manuranga Perera
Hi IS team, Will it be possible to install SCIM feature/app into the BPS server? On Mon, Jun 6, 2016 at 12:58 PM, Manuranga Perera <m...@wso2.com> wrote: > Thanks Hasitha/Amal > I'll try the RemoteUserStoreManagerService since it's a non-jaggery app > > On Sun, Jun 5, 2016

Re: [Dev] [BPS] Getting a list of user roles

2016-06-06 Thread Manuranga Perera
om> wrote: > >> >> Hi Manu, >> >> On Wed, Jun 1, 2016 at 11:56 PM, Manuranga Perera <m...@wso2.com> wrote: >> >>> What are the ways to get a list of user roles in BPS to display in UI. >>> What I can think of are : >>> 1. Use the u

Re: [Dev] Jaguery app Deployment

2016-06-01 Thread Manuranga Perera
1) Did you upload to an existing same version of EMM product? Uploading the EMM app to some other WSO2 product will not work. 2) Go to repository\deployment\server\jaggeryapps and verify the app is successfully copied -- With regards, *Manu*ranga Perera. phone : 071 7 70 20 50 mail :

Re: [Dev] Puppet modules are not compatible with puppet 4

2016-06-01 Thread Manuranga Perera
, 2016 at 12:15 AM, Imesh Gunaratne <im...@wso2.com> wrote: > > > On Thu, May 26, 2016 at 9:39 PM, Manuranga Perera <m...@wso2.com> wrote: > >> We are using non-environment puppet mode this is not compatible with >> puppet 4 [1] >> >> If manife

[Dev] [BPS] Getting a list of user roles

2016-06-01 Thread Manuranga Perera
What are the ways to get a list of user roles in BPS to display in UI. What I can think of are : 1. Use the user mgt web service 2. Use embedded LDAP. Do we ship embedded LDAP (like in IS) with BPS ? Is there a better way? eg: a REST API ? -- With regards, *Manu*ranga Perera. phone : 071 7 70

  1   2   3   >