[Dev] [GSoC- Proposal 22] [Platform Security] Security Testing as a Service with Docker Containerization

2017-03-24 Thread Suthagar Kailayapathy
Hi all, I am K.Suthagar who is studying at Department of Computer Science and Engineering, Faculty of Engineering, University of Moratuwa. An aspiring young entrepreneur with good leadership skills and quick learning abilities. Simultaneously I am doing some non-academic projects at my startup

Re: [Dev] GSOC : OAuth 2.0 Dynamic Client Registration Management Protocol Support

2017-03-24 Thread Abilashini Thiyagarajah
Hi Maduranga, I have already shared the draft of proposal [1] in the GSOC profile. Can I have your feedback on it please? [1] https://docs.google.com/document/d/1Jcye2kidM0KbaDVqXqtzVsEq_RJ_rOrcqpmqMAfpC3U/edit?usp=sharing Thank you *Thiyagarajah Abilashini* Student Department of Computer

[Dev] Swagger data type to represent passwords

2017-03-24 Thread Omindu Rathnaweera
Hi Devs, Is there a data type in swagger (and supported by msf4j) which we can use to represent sensitive data such as password ? Using strings are not an option because when a microservice is generated from the generator, the password will be represented as a string in the service side which in

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

2017-03-24 Thread Ruwan Abeykoon
Hi Nuwan, In SPA, also I assume we have a limited(and finite) set of localized strings. I think no need to pass entire i18n file(which may be huge) to client side so that the localization is done at client side. Further one can argue that transferring the entire i18n file to the client side

[Dev] [VOTE] Release WSO2 MSF4J 2.2.0 RC3

2017-03-24 Thread Danesh Kuruppu
Hi Devs, This is the 3rd Release Candidate of WSO2 MSF4J(Microservices Framework for Java) 2.2.0. Please download, test the framework and vote. The vote will be open for 72 hours or as needed. Refer to GitHub readmes for guides. * Source and binary distribution files:*

Re: [Dev] Use char array as micro service parameter

2017-03-24 Thread Ayoma Wijethunga
%24 is the HTML block representation of $ [1]. Browser / AJAX library should be doing this conversion before sending data to server. It might have been transparent to us before, but since service logic itself is handling the ByteBuffer now, it might be necessary to do the HTML decoding separately.

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

2017-03-24 Thread Nuwan Dias
On Fri, Mar 24, 2017 at 2:32 PM, Ruwan Abeykoon wrote: > Hi Nuwan, > In SPA, also I assume we have a limited(and finite) set of localized > strings. I think no need to pass entire i18n file(which may be huge) to > client side so that the localization is done at client side.

Re: [Dev] GSOC Proposal 19 Account Chooser

2017-03-24 Thread Gayan Kavirathne
Hi, Trying to build identity server version 5.3 with maven; throws an error while installing "carbon.product.id 5.1.0" When execute mvn install with -e switch it shows the error as follows , "Creating carbon database [sql] org.h2.jdbc.JdbcSQLException [sql] Failed to execute " Any hint? On 21

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 Prasanna Dangalla
On Fri, Mar 24, 2017 at 6:34 PM Manuranga Perera wrote: > We need to bring whole i18n (combined all lang files) to the UI and cache > it. > 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

[Dev] Fwd: [GSOC][CEP][DEV] Idea Plugin for Siddhi

2017-03-24 Thread Nipuna Sankalpa
-- Forwarded message -- From: Nipuna Sankalpa Date: 25 March 2017 at 01:14 Subject: Re: [Dev] [GSOC][CEP][DEV] Idea Plugin for Siddhi To: Sriskandarajah Suhothayan Hi, I have managed to generate Parser class and corresponding

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] [IS] Issue while trying to call oauth2 userinfo

2017-03-24 Thread Farasath Ahamed
Hi Hanen, This error usually means that in the initially, you have obtained an access token that does not contain 'openid' scope and used it on the userinfo endpoint. Here, 'openid' is not related to the OpenID protocol. Can you try adding 'openid' as a scope in your initial OAuth2 token request

Re: [Dev] [VOTE] Release WSO2 MSF4J 2.2.0 RC2

2017-03-24 Thread Imesh Gunaratne
Noticed another problem, in the streaming flow the request interceptors have been engaged once the streaming has completed [2]. These might need to be engaged before starting the streaming process. [2]

Re: [Dev] [VOTE] Release WSO2 MSF4J 2.2.0 RC2

2017-03-24 Thread Danesh Kuruppu
Hi Devs, We are canceling this vote due to the above issue. We will do a rc3 and start a new vote again soon. Thanks Danesh On Fri, Mar 24, 2017 at 5:53 PM, Imesh Gunaratne wrote: > Noticed another problem, in the streaming flow the request interceptors > have been engaged

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-24 Thread Udara Rathnayake
It was my mistake. We have used VizGrammer for DS2.X and continuing. On Fri, Mar 24, 2017 at 2:22 PM, Pawan Gunaratne wrote: > Hi, > > I need to clarify that gadget creation in carbon-dashboard, are we still > using that lgviz library or moved to VizGrammer ? > > Thanks. > > On

Re: [Dev] [IS] Issue while trying to call oauth2 userinfo

2017-03-24 Thread Maduranga Siriwardena
Hi Hanen, What are the scopes you specified when getting the access token? Thanks, On Fri, Mar 24, 2017 at 11:35 AM, Hanen Ben Rhouma wrote: > Hi, > > Do I need extra params to invoke the userinfo endpoint ( > https://host:9443/oauth2/userinfo) ? > > I'm getting >

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

2017-03-24 Thread Kasun Thennakoon
Hi all, On Fri, Mar 24, 2017 at 4:13 PM, Chanaka Jayasena wrote: > I think we can do the same we did with jaggery base APIM UI using i18next > library. http://i18next.com/ > +1 to use i18next[1], We could use the *i18next-xhr-backend* with the support from UUF to provide

Re: [Dev] [IS] Issue while trying to call oauth2 userinfo

2017-03-24 Thread Godwin Shrimal
You need to send "openid" as scope while authorizing. Please look at the [1] [1] https://docs.wso2.com/display/IS500/OpenID+Connect+with+the+WSO2+Identity+Server+and+WSO2+OAuth2+Playground Thanks Godwin On Fri, Mar 24, 2017 at 10:05 PM, Hanen Ben Rhouma wrote: > Hi, > >

[Dev] [IS] Issue while trying to call oauth2 userinfo

2017-03-24 Thread Hanen Ben Rhouma
Hi, Do I need extra params to invoke the userinfo endpoint ( https://host:9443/oauth2/userinfo) ? I'm getting "error_description": "Access token does not have the openid scope", "error": "insufficient_scope" Eventhough I'm using Oauth2 without OpenID Regards, Hanen

Re: [Dev] [IS] Post Authentication Redirection

2017-03-24 Thread Danushka Fernando
Moving back to dev@ Finally managed to fixed this by adding following line before the redirection. request.setAttribute(FrameworkConstants.RequestParams.FLOW_STATUS, AuthenticatorFlowStatus.INCOMPLETE); Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/

Re: [Dev] [APIM_REST_API] What are the properties to include in DTO

2017-03-24 Thread Sajith Kariyawasam
On Thu, Mar 23, 2017 at 11:33 AM, Anuruddha Liyanarachchi < anurudd...@wso2.com> wrote: > Hi, > > As per the current publisher REST API [1], there is a resource to get the > subscription for a given API. > > This returns the following subscriptionDTO with subscription details and > IDs of other

Re: [Dev] Use char array as micro service parameter

2017-03-24 Thread Maduranga Siriwardena
Hi Denuwanthi, The value seems to be url encoded. Thanks, On Fri, Mar 24, 2017 at 6:44 AM, Denuwanthi De Silva wrote: > When I do a POST request via, postman the special characters are rendered > fine. > Seems like this is happening with the ajax call > > On Fri, Mar 24,

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] [VOTE] Release WSO2 MSF4J 2.2.0 RC2

2017-03-24 Thread Imesh Gunaratne
It seems like a NPE is raised in the following scenario: java.lang.NullPointerException at org.wso2.msf4j.interceptor.InterceptorExecutor.executeMethodResponseInterceptorsForMethods(InterceptorExecutor.java:188) at org.wso2.msf4j.internal.router.HttpMethodInfo.end(HttpMethodInfo.java:402) at

Re: [Dev] [VOTE] Release WSO2 MSF4J 2.2.0 RC2

2017-03-24 Thread Imesh Gunaratne
The above NPE is fixed in the following PR: https://github.com/wso2/msf4j/pull/383/ On Fri, Mar 24, 2017 at 5:35 PM, Imesh Gunaratne wrote: > It seems like a NPE is raised in the following scenario: > > java.lang.NullPointerException > at

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

2017-03-24 Thread SajithAR Ariyarathna
There are some usecase where web app developers need client-side i18n. IMO, we can give this capability through UUF Client library. UUFClient.i18n("message.key"); // value of the Accept-Language header will be used to compute locale UUFClient.i18n("message.key", parameters[]);

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-03-24 Thread Madhawa Vidanapathirana
Hi, Good news. Requested a release from Pyjnius Developer Team [1] and managed to get a new release [2] to Python Package Index (PIP). Therefore, we no longer have to develop their library from GitHub code. We can simply consider it as a dependency which gets auto installed when our final

Re: [Dev] Use char array as micro service parameter

2017-03-24 Thread Denuwanthi De Silva
When I do a POST request via, postman the special characters are rendered fine. Seems like this is happening with the ajax call On Fri, Mar 24, 2017 at 5:02 PM, Denuwanthi De Silva wrote: > Hi, > > As discussed offline I used the msf4j Reuest object in my microservice > >

Re: [Dev] Use char array as micro service parameter

2017-03-24 Thread Denuwanthi De Silva
Hi, As discussed offline I used the msf4j Reuest object in my microservice @POST @Path("/validatePassword") public Response isValidPassword(@Context Request password) { Then I tried retreving a char[] out of it as following ByteBuffer fullContent =

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

2017-03-24 Thread Chanaka Jayasena
I think we can do the same we did with jaggery base APIM UI using i18next library. http://i18next.com/ thanks, Chanaka On Fri, Mar 24, 2017 at 3:36 AM, Nuwan Dias wrote: > > > On Fri, Mar 24, 2017 at 2:32 PM, Ruwan Abeykoon wrote: > >> Hi Nuwan, >> In SPA,

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-24 Thread Udara Rathnayake
I think you need to re-render the widget periodically, probably with a setInterval(). On Fri, Mar 24, 2017 at 2:46 PM, Pawan Gunaratne wrote: > Hi all, > > Thanks all for providing those information. So with the use of > VizGrammer.js at the moment can we see the real time

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-24 Thread Nisala Nanayakkara
Hi Pawan, AFAIK We are using vizGrammer library in widget generation in carbon-dashboards 2.1.x version. Please find the analytics libraries which is used in carbon-dashboards here[1]. [1] - https://github.com/wso2/carbon-dashboards/tree/2.1.x/apps/portal/libs/analytics-wso2_5.0.12 Thanks,

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-24 Thread Dunith Dhanushka
Hi Pawan, VizGrammer.js is a rewrite of igviz.js, which has been deprecated at the moment. VizGrammar has lot of improvements over igviz.js on - Drill down capabilities - Interactiveness through event listeners - Improved visualization components - Wizard integration etc So we highly recommend

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-24 Thread Pawan Gunaratne
Hi all, Thanks all for providing those information. So with the use of VizGrammer.js at the moment can we see the real time updates of widgets (eg : in a chart ) ? On Fri, Mar 24, 2017 at 2:36 PM, Dunith Dhanushka wrote: > Hi Pawan, > > VizGrammer.js is a rewrite of igviz.js,

Re: [Dev] GSoC Proposal 4

2017-03-24 Thread Tishan Dahanayakage
HI Thuvakaran, I suppose you have gone though the project idea and also other mails regarding this project in dev@wso2.org. As starters you can try implement an idea plugin that can do syntax highlighting with an simpler Antlr grammar. Thanks /Tishan On Thu, Mar 23, 2017 at 1:58 PM, Thuvarakan

Re: [Dev] Idea Plugin for Siddhi

2017-03-24 Thread Tishan Dahanayakage
HI Dulaj, Siddhi is based on Antlr. So it will be better if you can try with that. /Tishan On Fri, Mar 24, 2017 at 12:08 PM, Dulaj Atapattu wrote: > Hi Suho, > > Is it okay to use JFlex instead of ANTLR? IntelliJ Documentation is on > JFlex. > > On 23 Mar 2017

Re: [Dev] Creating a widget web-component using existing charting libraries

2017-03-24 Thread Pawan Gunaratne
Hi, I need to clarify that gadget creation in carbon-dashboard, are we still using that lgviz library or moved to VizGrammer ? Thanks. On Thu, Mar 23, 2017 at 12:37 PM, Udara Rathnayake wrote: > Thanks Tharik! > > Updated my wso2-widget WC to use VizGrammer, but it seems we

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

2017-03-24 Thread Nuwandi Wickramasinghe
On Fri, Mar 24, 2017 at 1:49 PM, Nuwan Dias wrote: > > > On Fri, Mar 24, 2017 at 1:23 PM, Ruwan Abeykoon wrote: > >> Hi All, >> What if, >> i18n is handled on the server side only, and encode the relevant >> localized strings into HTML by the server-side (js or

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

2017-03-24 Thread Nuwan Dias
On Fri, Mar 24, 2017 at 1:23 PM, Ruwan Abeykoon wrote: > Hi All, > What if, > i18n is handled on the server side only, and encode the relevant localized > strings into HTML by the server-side (js or hbs). > Client side libraries only read the string values already in the client

Re: [Dev] [IS 6.0.0] [SCIM 2.0] Extend SCIM2.0 meta data in the SCIM response to include User Life cycle State

2017-03-24 Thread Indunil Upeksha Rathnayake
Hi, I have implemented this by adding "state" attribute from a SCIM extension and adding it to the response separately. I will send a PR and will get it merged. There is a RM issue to track this in [1]. When I'm upgrading the identity.mgt.version in scim2 repository [2] , found several issues in

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

2017-03-24 Thread Ruwan Abeykoon
Hi All, What if, i18n is handled on the server side only, and encode the relevant localized strings into HTML by the server-side (js or hbs). Client side libraries only read the string values already in the client locale within HTML DOM itself and just render the data. No client-side i18n. What

Re: [Dev] [IS 6.0.0] [SCIM 2.0] Extend SCIM2.0 meta data in the SCIM response to include User Life cycle State

2017-03-24 Thread Sagara Gunathunga
On Wed, Mar 1, 2017 at 1:58 PM, Gayan Gunawardana wrote: > > > On Wed, Mar 1, 2017 at 1:38 PM, Indunil Upeksha Rathnayake < > indu...@wso2.com> wrote: > >> Hi, >> >> In IS 6.0.0 with SCIM 2.0 support, we are planning to Extend SCIM2.0 meta >> data in the SCIM response to include

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

2017-03-24 Thread Nipuna Chandradasa
API of somekind(Rest or a http service endpoint), That we have to think about, that exposes a functionality to retrieve i18n as a json object to layout level or any other global level of the application. So on client side we can use the i18n language details anywhere. We can get the language data

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

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

Re: [Dev] Idea Plugin for Siddhi

2017-03-24 Thread Dulaj Atapattu
Hi Suho, Is it okay to use JFlex instead of ANTLR? IntelliJ Documentation is on JFlex. On 23 Mar 2017 7:37 a.m., "Dulaj Atapattu" wrote: > Hi Suho, > > Ok sure. I will send a prototype to you ASAP. > > On 23 Mar 2017 1:44 a.m., "Sriskandarajah Suhothayan"