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

2017-03-23 Thread SajithAR Ariyarathna
@Manu, Is there a way to accomplish this through automated test? On Fri, Mar 24, 2017 at 8:06 AM, Nuwandi Wickramasinghe wrote: > AFAIK we need to manually check them. Also there are situations UI > messages and UI itself is created in JS files (front end or back end). Need >

Re: [Dev] [IS] Post Authentication Redirection

2017-03-23 Thread Danushka Fernando
Hi Nuwandi Its not saml. I am using Oauth auth code flow grant type here. Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, Mar 24, 2017 at 10:56 AM, Nuwandi Wickramasinghe wrote: > Hi, > > Can you provide a

Re: [Dev] [IS 6.0.0] Making native claim dialect configurable

2017-03-23 Thread Prabath Siriwardena
On Thu, Mar 23, 2017 at 10:21 PM, Pushpalanka Jayawardhana wrote: > > > On Fri, Mar 24, 2017 at 10:14 AM, Prabath Siriwardena > wrote: > >> Well... I doubt we should make it configurable... Its the claim dialect >> for the WSO2 products (or IS)... In any

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

2017-03-23 Thread Isuru Perera
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 rarely use that script to debug issues. Thanks! On Fri, Mar 24, 2017 at 10:51 AM, Niranjan Karunanandham wrote: > Hi isuru, > > On Fri, Mar 24,

Re: [Dev] [IS] Post Authentication Redirection

2017-03-23 Thread Nuwandi Wickramasinghe
Hi, Can you provide a SSO trace for the flow? Thanks Nuwandi On Fri, Mar 24, 2017 at 10:44 AM, Danushka Fernando wrote: > Hi All > I wrote a postAuthenticationHandler to handle custom password expiry > requirement. It redirects to following endpoint when handling request.

Re: [Dev] [IS 6.0.0] Making native claim dialect configurable

2017-03-23 Thread Pushpalanka Jayawardhana
On Fri, Mar 24, 2017 at 10:14 AM, Prabath Siriwardena wrote: > Well... I doubt we should make it configurable... Its the claim dialect > for the WSO2 products (or IS)... In any federation scenario - we do support > claim mappings for custom dialects... > One advantage Omindu

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

2017-03-23 Thread Niranjan Karunanandham
Hi isuru, On Fri, Mar 24, 2017 at 10:38 AM, Isuru Perera wrote: > Hi, > > It'll be useful to have those details. I think we can just update the > command to work in Java 8 for now. Connecting to the JVM to get these kinds > of stats will have an impact on the server, but it

[Dev] [IS] Post Authentication Redirection

2017-03-23 Thread Danushka Fernando
Hi All I wrote a postAuthenticationHandler to handle custom password expiry requirement. It redirects to following endpoint when handling request. But this redirect go back to authorize endpoint in the middle and getting crashed. But if I redirect to the endpoint manually it will work as expected.

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

2017-03-23 Thread Isuru Perera
Hi, It'll be useful to have those details. I think we can just update the command to work in Java 8 for now. Connecting to the JVM to get these kinds of stats will have an impact on the server, but it should be okay as we run carbondump to debug the server. I think we must go through all

Re: [Dev] [IS 6.0.0] Making native claim dialect configurable

2017-03-23 Thread Prabath Siriwardena
Well... I doubt we should make it configurable... Its the claim dialect for the WSO2 products (or IS)... In any federation scenario - we do support claim mappings for custom dialects... Thanks & regards, -Prabath On Thu, Mar 23, 2017 at 9:14 PM, Pushpalanka Jayawardhana wrote:

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

2017-03-23 Thread Prasanna Dangalla
On Fri, Mar 24, 2017 at 12:53 AM, Nipuna Chandradasa wrote: > I don't think there is a feasible solution rather than loading i18n config > file as a json object to the client side in the beginning of the app... i > think from uuf side we can provide a api for that... WDYT? >

Re: [Dev] [IS 6.0.0] Making native claim dialect configurable

2017-03-23 Thread Pushpalanka Jayawardhana
On Fri, Mar 24, 2017 at 9:18 AM, Sagara Gunathunga wrote: > > > On Thu, Mar 23, 2017 at 12:27 PM, Pushpalanka Jayawardhana > wrote: > >> >> >> On Tue, Mar 21, 2017 at 10:56 AM, Godwin Shrimal wrote: >> >>> If we make native claim dialect

Re: [Dev] [IS 6.0.0] Making native claim dialect configurable

2017-03-23 Thread Sagara Gunathunga
On Thu, Mar 23, 2017 at 12:27 PM, Pushpalanka Jayawardhana wrote: > > > On Tue, Mar 21, 2017 at 10:56 AM, Godwin Shrimal wrote: > >> If we make native claim dialect configurable, will product work by >> changing to different claim dialect ? >> > That should be

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

2017-03-23 Thread Nuwandi Wickramasinghe
AFAIK we need to manually check them. Also there are situations UI messages and UI itself is created in JS files (front end or back end). Need to validate them as well. As discussed in [1] uuf doesn't have a direct mechanism to do this in front end JS. Therefore better to avoid creating UI

[Dev] [GSoC 2017][IoTS]User Managed Access based Device Sharing

2017-03-23 Thread Jude Niroshan
Hi, My name is Jude Niroshan. I'm an undergraduate from Sri Lanka Institute of Information Technology. I have worked with Java and build systems for quite few years. I eagerly wanted to participate on GSoC 2017. I have went through the WSO2 IoT Server framework and understood the basics of how it

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

2017-03-23 Thread Nipuna Chandradasa
I don't think there is a feasible solution rather than loading i18n config file as a json object to the client side in the beginning of the app... i think from uuf side we can provide a api for that... WDYT? On Thu, Mar 23, 2017 at 5:29 PM, SajithAR Ariyarathna wrote: >

Re: [Dev] [GSoC 2017][IoTS]User Managed Access based Device Sharing

2017-03-23 Thread Jude Niroshan
Hi All, Few more additional information about my background would be able to find on LinkedIn and StackOverflow . I have completed OCA and OCP for Java-8 and I'm confident with

Re: [Dev] Custom password grant type

2017-03-23 Thread Gottfried Szing
Hi Farasath, Thanks for the response. I was further playing around and it looks that there is a tight coupling between the OAuth2TokenEndpoint, PasswordGrantHandler and the definition in the identity.xml as grant type = "password". although I have just tried the PasswordGrantHandler, not the

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

2017-03-23 Thread Rajith Roshan
Hi 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

[Dev] WSO2 EI: Message sample processor throwing NPE when reading messages

2017-03-23 Thread Sharath Bhaskara
Hi Team, When doing a POC using the message store message forward pattern I have observed the message store throwing an NPE when over a 100 messages are stored in a few seconds. Although this issue is not consistently reproducible, I have observed it a couple of time yesterday. I was just

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

2017-03-23 Thread Harsha Kumara
Yes I too think we shouldn't return the full representation of the resource in the list mode. Partial representation would be enough. Document in[1] explain this. [1] http://51elliot.blogspot.com/2014/06/rest-api-best-practices-4-collections.html On Fri, Mar 24, 2017 at 12:03 AM, Rajith Roshan

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

2017-03-23 Thread Rajith Roshan
On Thu, Mar 23, 2017 at 11:50 PM, Malintha Amarasinghe wrote: > Hi Rajith, > > I think what we need to include here is not the full API object, but an > object that has minimal information of an API or an Application such as > name and version (E.g like the list of minimal

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

2017-03-23 Thread Malintha Amarasinghe
Hi Rajith, I think what we need to include here is not the full API object, but an object that has minimal information of an API or an Application such as name and version (E.g like the list of minimal API info objects we are returning from GET /apis ). So I guess it will not do harm although we

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

2017-03-23 Thread Milinda Perera
Hi, In carbondump.sh [1] we retrieve permgen stats in Java Heap (jmap -permstat $PID) . Since Java 8 onwards, it is replaced by Metaspace and permstat option is no longer exists in jmap tool. Metaspace can be retrieved by: jmap -clstats Shall we remove permstat and replace with clstats or

Re: [Dev] Environments Support for WSO2 API Manager

2017-03-23 Thread Ravindu Perera
Hi This was about the the problem which was mentioned about the authentication should be done after switching from one environment to another as i did a small research and found out a solution , For example if we need to move from Dev environment to production environment an authentication should

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

2017-03-23 Thread Pushpalanka Jayawardhana
Hi All, Do we have any automated mechanism to check the UIs for proper internationalization support ? Or do we have to make sure of this manually and validate at code reviews? Thanks, -- Pushpalanka Jayawardhana, B.Sc.Eng.(Hons). Senior Software Engineer, WSO2 Lanka (pvt) Ltd; wso2.com/

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

2017-03-23 Thread Ayoma Wijethunga
Hi Jude, I think you got me wrong. StringBuilder internally uses char[] to store values (mutable sequence of characters [1] [2]). Therefore, we will not be creating (and leaving behind) immutable String objects as long as we use the StringBuilder properly. However, if you accidentally call a

Re: [Dev] [GSoC 2017][ESB]Native inbound and connector for IBM MQ 8.0

2017-03-23 Thread Chanaka Balasooriya
Hi Dushan, Thank you for your question because it made me to study more about the project. Using native IBM classes to communicate with IBM MQ, increases the performance and gives more ibm mq specific features such as SSL authentication, connection caching and more message handling options.

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

2017-03-23 Thread Jude Niroshan
> > We just need to avoid using any method that accepts or returns a String in > StringBuilder, > to avoid intermediate level Strings. ​I believe you are well aware about why the Strings and other sort of objects being discouraged to be used for passwords and other valuable information. It

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

2017-03-23 Thread Ayoma Wijethunga
Yes. That seems to address the requirement. We can accept InputStream as a parameter and then use the input stream to read characters into a StringBuilder. I hope this was what you were suggesting and this is supported with MSF4J. We just need to avoid using any method that accepts or returns a

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

2017-03-23 Thread SajithAR Ariyarathna
Currently UUF doesn't support i18n in client-side. @UUF Team, We need to come up with a solution for client-side i18n. Shall we start a discussion on this? Thanks. On Thu, Mar 23, 2017 at 4:36 PM, Prasanna Dangalla wrote: > Hi Sajith, > > This is for Client-side JS > >

[Dev] PR of Client Connector for WebSocket

2017-03-23 Thread Irunika Weeraratne
Hi all, Please review and comment on the $subject. https://github.com/wso2/carbon-transports/pull/260 Thanks and best regards, Irunika *Irunika Weeraratne* *Software Engineer | WSO2, Inc. * *Email : irun...@wso2.com * *LinkedIn :

Re: [Dev] [Carbon] Error in retrieving thread and heap dumps using carbondump.sh

2017-03-23 Thread Milinda Perera
FTR: This is caused due to new security policy in Ubuntu. Refer [1] for solution [1] http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7050524 Thanks, Milinda On Tue, Oct 25, 2016 at 11:08 AM, Thilini Cooray wrote: > Hi, > > I am trying to retrieve thread and heap dumps

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

2017-03-23 Thread Thusitha Thilina Dayaratne
Hi All, AFAIU char[] is not compliant with neither QueryParam nor FormParam according to [1]. Therefore from MSF4J (as a JAXRS engine) IMHO we couldn't support char[]. What if we use StringBuilder instead of String. Then we can delete the StringBuilder as we want. WDYT? [1] -

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

2017-03-23 Thread Prasanna Dangalla
Hi Sajith, This is for Client-side JS *Prasanna Dangalla* Senior Software Engineer, WSO2, Inc.; http://wso2.com/ lean.enterprise.middleware *cell: +94 718 11 27 51* *twitter: @prasa77* On Thu, Mar 23, 2017 at 2:54 PM, SajithAR Ariyarathna wrote: > Hi Prasanna, > > Is

[Dev] Use char array as micro service parameter

2017-03-23 Thread Denuwanthi De Silva
Hi, I have a micro service which calls a password validation back end. For that, it passes the password as microservice parameter. Due to security concerns we need to pass password as a char array instead of a String[1]. The password value is retrieved using jquery input field call and passed

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

2017-03-23 Thread SajithAR Ariyarathna
Hi Prasanna, Is there a mechanism defined to use something like i18n in javascript ? Server-side JS or Client-side JS? On Thu, Mar 23, 2017 at 11:02 AM, Ayesha Dissanayaka wrote: > Hi Prasanna, > > Similar discussion was started sometime back in [1]. > Issues in [2], [3] have

[Dev] GSoC Proposal 4

2017-03-23 Thread Thuvarakan Tharmarajasingam
Sir, I am interested in in the project " Idea Plugin for Siddhi

Re: [Dev] [GSoC 2017][ESB]Native inbound and connector for FTP/SFTP operations

2017-03-23 Thread Hasitha Jayasundara
Hi Malaka, Jsch is actually a SSH client and there are some tutorials available for use it with commons net in order to perform FTP and FTPS operations.I've checked those implementations and all of them are erroneous and not very reliable.In that case we can use commons net for FTP/FTPS and Jsch

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

2017-03-23 Thread Udara Rathnayake
Thanks Tharik! Updated my wso2-widget WC to use VizGrammer, but it seems we have a bunch of document.getElementById()s which is not going to search inside shadow roots. So this is not going to work :( . Let me look into other alternatives. On Thu, Mar 23, 2017 at 12:11 PM, Tharik Kanaka

Re: [Dev] [IS 6.0.0] Making native claim dialect configurable

2017-03-23 Thread Pushpalanka Jayawardhana
On Tue, Mar 21, 2017 at 10:56 AM, Godwin Shrimal wrote: > If we make native claim dialect configurable, will product work by > changing to different claim dialect ? > That should be the expectation if we make the native claim dialect configurable. As of now, we have the native

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

2017-03-23 Thread Tharik Kanaka
Hi Udara, Igviz library is no longer used and we have replaced that with VizGrammar. In VizGrammar you can use draw() function to draw the chart in a div. If you want to insert records to update the chart you can use insert(). You can try samples [1] and all the library content along with samples

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

2017-03-23 Thread Udara Rathnayake
Hi all, I'm trying to create a web component (wso2-widget) to try-out capabilities which we can incorporate in to our widget rendering framework. ​Within my renderWidget function[1] I'm using the usual igviz.plot but unable to draw the chart inside container element which exists inside a

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

2017-03-23 Thread Anuruddha Liyanarachchi
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 objects associated with it (applicationId, apiId). @JsonProperty("subscriptionId") private String