Re: [Dev] Questions about dashboard

2019-12-04 Thread Tanya Madurapperuma
Hi Wiedo,

First, you have to write the custom widget and deploy it in the server.
After that, the deployed widget will appear under the widgets in the left
panel. ( one below the pages button you have clicked )
Follow the below steps to write and deploy the widget.
1. Write your widget as a react component and babel compile it
2. Place it at
/wso2/dashboard/deployment/web-ui-apps/portal/extensions/widgets/

Or else you can generate a basic widget using the widget generation wizard
[1]

[1] https://docs.wso2.com/display/SP440/Generating+Widgets

Thanks,
Tanya

On Wed, Dec 4, 2019 at 4:58 PM W. E.  wrote:

> Hi,
>
> Thank u for your answer. I've one more question. I would be great if u can
> answer these.
>
>
>- After I create a dashboard I see the page below. But where can I set
>the datasource? I want to set the datasource with a HTTP source. How can I
>do this?
>
>
>
>
> Thanks,
> Wiedo
> ------
> *Van:* Tanya Madurapperuma 
> *Verzonden:* woensdag 4 december 2019 10:06
> *Aan:* W. E. ; Lasantha S ;
> Charuka Karunanayake 
> *CC:* WSO2 Developers' List 
> *Onderwerp:* Re: [Dev] Questions about dashboard
>
> Hi Wiedo,
>
> Please find my replies in-line.
>
> On Tue, Dec 3, 2019 at 5:53 PM W. E.  wrote:
>
> Hi,
>
> I'm currently designing a dashboard. I've a couple of questions about the
> possibilities of dashboard tooling. These are:
>
>
>- Is it possible to connect a real time Siddhi application (created in
>WSO2 SP) with a dashboard. So can I use a sink in the Siddhi application to
>connect to a dashboard?
>
> Out of the box support is only available to write a siddhi app [1] and
> fetch data by writing a siddhi query [2] or to write a rdbms query[3] to
> fetch data. But might be possible to write a custom data provider and fetch
> data using a siddhi source. @Lasantha S   Any
> thoughts?
>
> [1]
> https://github.com/wso2/analytics-apim/blob/master/components/org.wso2.analytics.apim.widgets/APIMApiAvailability/src/resources/widgetConf.json#L13
> [2]
> https://github.com/wso2/analytics-apim/blob/master/components/org.wso2.analytics.apim.widgets/APIMApiAvailability/src/resources/widgetConf.json#L15
> [3]
> https://github.com/wso2/analytics-apim/blob/master/components/org.wso2.analytics.apim.widgets/APIMAppCreatedAnalytics/src/resources/widgetConf.json#L15
>
>
>- I want to make line graph in de dashboard that may hightlighs a
>certain part (multiple lines) based on some conditions. Can I create some
>code to implement some condition. For example when the incoming data sends
>5 events after each other a "1" for a attribute I want to highlight those
>events?
>
> Widget in a dashboard is basically a react component. So you can use any
> react libraries of your choice and build any visualization you wish.
>
>
>- Can I create a combination of line and point graph? So both lines
>and points are visible?
>
> Are you searching for a graph like this [4] ? If so refer the code at [5]
>
> [4]
> https://apim.docs.wso2.com/en/latest/Learn/Analytics/AnalyzingAPIMStatisticsWithBatchAnalytics/viewing-api-statistics/#api-latency-time
>
> [5]
> https://github.com/wso2/analytics-apim/tree/master/components/org.wso2.analytics.apim.widgets/APIMApiLatencyTime
>
>
>- Can also add a textual box where I can display some messages in the
>dashboard environment?
>
> Yes. You write a react component with your prefered styling of a text box
> and get that rendered in the dashboard.
>
>
>- Is there some documentation where I can find extensive explenation
>about dashboarding. Because now I can only find a couple basic tutorials on
>this link:
>https://docs.wso2.com/display/SP440/Stream+Processor+Documentation
>
> You can find documentation at [6] or refer our sample widgets written for
> api manager dashboards at [7]
>
> [6] https://docs.wso2.com/display/SP440/Creating+Custom+Widgets
> [7]
> https://github.com/wso2/analytics-apim/tree/master/components/org.wso2.analytics.apim.widgets/
>
> Thanks,
> Tanya
>
> Best regards,
> Wiedo
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
> --
> *Tanya Madurapperuma* | Technical Lead | WSO2 Inc.
> (m) +94718184439 | (e) ta...@wso2.com
>
> <http://wso2.com/signature>
>
>
>

-- 
*Tanya Madurapperuma* | Technical Lead | WSO2 Inc.
(m) +94718184439 | (e) ta...@wso2.com

<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Questions about dashboard

2019-12-04 Thread Tanya Madurapperuma
Hi Wiedo,

Please find my replies in-line.

On Tue, Dec 3, 2019 at 5:53 PM W. E.  wrote:

> Hi,
>
> I'm currently designing a dashboard. I've a couple of questions about the
> possibilities of dashboard tooling. These are:
>
>
>- Is it possible to connect a real time Siddhi application (created in
>WSO2 SP) with a dashboard. So can I use a sink in the Siddhi application to
>connect to a dashboard?
>
> Out of the box support is only available to write a siddhi app [1] and
fetch data by writing a siddhi query [2] or to write a rdbms query[3] to
fetch data. But might be possible to write a custom data provider and fetch
data using a siddhi source. @Lasantha S   Any thoughts?

[1]
https://github.com/wso2/analytics-apim/blob/master/components/org.wso2.analytics.apim.widgets/APIMApiAvailability/src/resources/widgetConf.json#L13
[2]
https://github.com/wso2/analytics-apim/blob/master/components/org.wso2.analytics.apim.widgets/APIMApiAvailability/src/resources/widgetConf.json#L15
[3]
https://github.com/wso2/analytics-apim/blob/master/components/org.wso2.analytics.apim.widgets/APIMAppCreatedAnalytics/src/resources/widgetConf.json#L15

>
>- I want to make line graph in de dashboard that may hightlighs a
>certain part (multiple lines) based on some conditions. Can I create some
>code to implement some condition. For example when the incoming data sends
>5 events after each other a "1" for a attribute I want to highlight those
>events?
>
> Widget in a dashboard is basically a react component. So you can use any
react libraries of your choice and build any visualization you wish.

>
>- Can I create a combination of line and point graph? So both lines
>and points are visible?
>
> Are you searching for a graph like this [4] ? If so refer the code at [5]

[4]
https://apim.docs.wso2.com/en/latest/Learn/Analytics/AnalyzingAPIMStatisticsWithBatchAnalytics/viewing-api-statistics/#api-latency-time

[5]
https://github.com/wso2/analytics-apim/tree/master/components/org.wso2.analytics.apim.widgets/APIMApiLatencyTime

>
>- Can also add a textual box where I can display some messages in the
>dashboard environment?
>
> Yes. You write a react component with your prefered styling of a text box
and get that rendered in the dashboard.

>
>- Is there some documentation where I can find extensive explenation
>about dashboarding. Because now I can only find a couple basic tutorials on
>this link:
>https://docs.wso2.com/display/SP440/Stream+Processor+Documentation
>
> You can find documentation at [6] or refer our sample widgets written for
api manager dashboards at [7]

[6] https://docs.wso2.com/display/SP440/Creating+Custom+Widgets
[7]
https://github.com/wso2/analytics-apim/tree/master/components/org.wso2.analytics.apim.widgets/

Thanks,
Tanya

Best regards,
> Wiedo
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Tanya Madurapperuma* | Technical Lead | WSO2 Inc.
(m) +94718184439 | (e) ta...@wso2.com

<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release of WSO2 API Manager 3.0.0 RC3

2019-10-25 Thread Tanya Madurapperuma
at 11:28 AM Mushthaq Rumy 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi All,
>>>>>>>>>
>>>>>>>>> Hi All,
>>>>>>>>>
>>>>>>>>> Tested the following scenarios in both super tenant and tenant.
>>>>>>>>> - API Creation, Publishing, Subscribing and invocation of APIs
>>>>>>>>> - Tested Publisher Access Control
>>>>>>>>> - Tested Store Visibility
>>>>>>>>> - Identity management features such as self sign up, password
>>>>>>>>> reset, password policy, account locking.
>>>>>>>>>
>>>>>>>>> No blockers found. Hence, [+] Stable - go ahead and release.
>>>>>>>>>
>>>>>>>>> Thanks & Regards,
>>>>>>>>> Mushthaq
>>>>>>>>>
>>>>>>>>> On Fri, Oct 25, 2019 at 3:52 AM Samitha Chathuranga <
>>>>>>>>> sami...@wso2.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi All,
>>>>>>>>>>
>>>>>>>>>> We are pleased to announce the second release candidate of WSO2
>>>>>>>>>> API Manager 3.0.0.
>>>>>>>>>>
>>>>>>>>>> This release fixes the following issues.
>>>>>>>>>>
>>>>>>>>>>- Fixes : product-apim
>>>>>>>>>>
>>>>>>>>>> <https://github.com/wso2/product-apim/issues?utf8=%E2%9C%93=is%3Aissue+is%3Aclosed+closed%3A2018-09-16..2019-10-24>
>>>>>>>>>>- Fixes : carbon-apimgt
>>>>>>>>>>
>>>>>>>>>> <https://github.com/wso2/carbon-apimgt/issues?utf8=%E2%9C%93=is%3Aissue+is%3Aclosed+closed%3A2018-09-16..2019-10-24+>
>>>>>>>>>>- Fixes : analytics-apim
>>>>>>>>>>
>>>>>>>>>> <https://github.com/wso2/analytics-apim/issues?utf8=%E2%9C%93=is%3Aissue+is%3Aclosed+closed%3A2018-09-16..2019-10-24>
>>>>>>>>>>
>>>>>>>>>> Source and distribution,
>>>>>>>>>> Runtime :
>>>>>>>>>> https://github.com/wso2/product-apim/releases/tag/v3.0.0-rc3
>>>>>>>>>> Analytics :
>>>>>>>>>> https://github.com/wso2/analytics-apim/releases/tag/v3.0.0-rc3
>>>>>>>>>> APIM Tooling :
>>>>>>>>>> https://github.com/wso2/product-apim-tooling/releases/tag/v3.0.0-rc
>>>>>>>>>>
>>>>>>>>>> Please download, test the product and vote.
>>>>>>>>>>
>>>>>>>>>> [+] Stable - go ahead and release
>>>>>>>>>> [-] Broken - do not release (explain why)
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> WSO2 API Manager Team
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> *Samitha Chathuranga*
>>>>>>>>>> *Senior Software Engineer*, *WSO2 Inc.*
>>>>>>>>>> lean.enterprise.middleware
>>>>>>>>>> Mobile: +94715123761
>>>>>>>>>>
>>>>>>>>>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Mushthaq Rumy
>>>>>>>>> *Senior Software Engineer*
>>>>>>>>> Mobile : +94 (0) 779 492140
>>>>>>>>> Email : musht...@wso2.com
>>>>>>>>> WSO2, Inc.; http://wso2.com/
>>>>>>>>> lean . enterprise . middleware.
>>>>>>>>>
>>>>>>>>> <http://wso2.com/signature>
>>>>>>>>> ___
>>>>>>>>> Architecture mailing list
>>>>>>>>> architect...@wso2.org
>>>>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Chamin Dias
>>>>>>>> Mobile : 0716097455
>>>>>>>> Email : cham...@wso2.com
>>>>>>>> LinkedIn : https://www.linkedin.com/in/chamindias
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Best Regards
>>>>>>> Dushan Silva
>>>>>>> Software Engineer
>>>>>>>
>>>>>>> *WSO2, Inc. *
>>>>>>>
>>>>>>> lean . enterprise . middleware
>>>>>>> Mob: +94 774 979042
>>>>>>> ___
>>>>>>> Architecture mailing list
>>>>>>> architect...@wso2.org
>>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Hasunie Adikari*
>>>>>> Associate Technical Lead
>>>>>> WSO2 Inc.; http://wso2.com
>>>>>> lean.enterprise.middleware
>>>>>> blog http://hasuniea.blogspot.com | https://medium.com/@Hasunie/
>>>>>> Mobile:+94713095876
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Nalaka Senarathna*
>>>>> *Email : nala...@wso2.com *
>>>>> *Mobile : +94714118474*
>>>>> *web :  https://wso2.com <https://wso2.com>*
>>>>> <https://wso2.com/signature>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>
>>>>
>>>> --
>>>> *Arshardh Ifthikar*
>>>> Software Engineer | WSO2 Inc.
>>>>
>>>> Email: arsha...@wso2.com
>>>> Mobile: +94719806525
>>>> Web: http://wso2.com
>>>>
>>>> <http://wso2.com/signature>
>>>> ___
>>>> Architecture mailing list
>>>> architect...@wso2.org
>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>
>>>
>>>
>>> --
>>> *Lakshitha Gunasekara* | Software Engineer | WSO2 Inc.
>>> <http://wso2.com/>
>>> (M)+94 71 542 4498 | (E) lakshi...@wso2.com
>>> <https://wso2.com/signature>
>>> ___
>>> Architecture mailing list
>>> architect...@wso2.org
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>
>>
>> --
>> Regards,
>> Chamila Adhikarinayake
>> Associate Technical Lead
>> WSO2, Inc.
>> Mobile - +94712346437
>> Email  - chami...@wso2.com
>> Blog  -  http://helpfromadhi.blogspot.com/
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> Shilmy Hasan
> Software Engineer | WSO2
>
> E-mail :si...@wso2.com
> Phone :0779188653
> web : http://www.wso2.com
>
> [image: https://wso2.com/signature] <https://wso2.com/signature>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Tanya Madurapperuma* | Technical Lead | WSO2 Inc.
(m) +94718184439 | (e) ta...@wso2.com

<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Hiranya Abeyrathne

2019-09-30 Thread Tanya Madurapperuma
Hi All,

It's my pleasure to announce Hiranya Abeyrathne as a WSO2 Committer. She
has been a valuable contributor to the APIM team.

In recognition of her contribution, dedication, and commitment she has been
voted as a WSO2 committer.

Congratulations Hiranya and keep up the good work.

Thanks,
Tanya

-- 
*Tanya Madurapperuma* | Technical Lead | WSO2 Inc.
(m) +94718184439 | (e) ta...@wso2.com

<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM React UI input validation

2019-08-26 Thread Tanya Madurapperuma
On Mon, Aug 26, 2019 at 9:44 PM Suranee Gomez  wrote:

> This is fine to use, as long as you replicate the copyright line and the
> text, in the license.txt or any attribution files. You can release under
> any license you choose.
>
Thank you !
+1 for Joi.

Thanks,
Tanya

>
> Thanks,
> Su
>
> Suranee Gomez
> Lead Legal Officer
>
> WSO2
> Phone: +94777119120
> Web: http://wso2.com
>
> Lean . Enterprise . Middleware
> <http://wso2.com/signature>
>
>
> On Mon, Aug 26, 2019 at 4:43 PM Tanya Madurapperuma 
> wrote:
>
>> Isn't the second point in the license [1] of Joi is problematic?
>>
>>
>>- *Redistributions in binary form must reproduce the above copyright
>>notice, this list of conditions and the following disclaimer in the
>>documentation and/or other materials provided with the distribution.*
>>
>>
>> [looping Suranee for her input]
>> [1] https://github.com/hapijs/joi/blob/master/LICENSE.md
>>
>> Thanks.
>> Tanya
>>
>> On Mon, Aug 26, 2019 at 4:27 PM Chanaka Jayasena 
>> wrote:
>>
>>> +1 for using Joi. One of the reasons we couldn't go with most of the
>>> libraries out there is they are wrapping input elements with there own
>>> components. This lib doesn't seem to have that problem.
>>>
>>> thanks,
>>> Chanaka
>>>
>>> On Fri, Aug 23, 2019 at 12:44 PM Kasun Thennakoon 
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> So far we have been doing the validation manually in ad-hoc manner. It
>>>> seems that this approach is not scalable. For example, We had to write URL
>>>> , email , ip address etc validation patterns manually.
>>>> So I think it's better to integrate a third-party library that is
>>>> dedicated to the validation task.
>>>> So we explored the available libraries and found these widely adopted
>>>> libraries.
>>>>
>>>>- Joi[1][2]
>>>>- Validator.js[3]
>>>>- V8n[4]
>>>>
>>>> ... many more <https://github.com/topics/validation?l=javascript>[4]
>>>>
>>>> The above top 3 picks are pure validation libraries, Not related to
>>>> ReactJs.
>>>>
>>>> Out of those, IMO Joi[1] fits with our requirements well.
>>>> Here is a sample implementation
>>>> <https://codesandbox.io/s/stoic-mcnulty-9kcmj>[5] with material UI
>>>> elements.
>>>>
>>>> Please give your feedback.
>>>>
>>>> [1]: https://github.com/hapijs/joi
>>>> [2]: https://github.com/hapijs/joi/blob/master/LICENSE.md
>>>> [3]: https://github.com/validatorjs/validator.js
>>>> [4]: https://github.com/imbrn/v8n
>>>> [5]: https://codesandbox.io/s/stoic-mcnulty-9kcmj
>>>>
>>>> --
>>>> *Kasun Thennakoon* | Senior Software Engineer | WSO2 Inc.
>>>> (m) +94 711661919 | (w) +94 11 214 5345 | (e) kasu...@wso2.com
>>>> GET INTEGRATION AGILE
>>>> Integration Agility for Digitally Driven Business
>>>>
>>>
>>>
>>> --
>>> *Chanaka Jayasena* | Technical Lead | WSO2 Inc.
>>> (m) +94 77 44 64 00 6 | (w) 0112 145 345 | (e) chan...@wso2.com
>>> GET INTEGRATION AGILE
>>> Integration Agility for Digitally Driven Business
>>>
>>
>>
>> --
>> *Tanya Madurapperuma* | Technical Lead | WSO2 Inc.
>> (m) +94718184439 | (e) ta...@wso2.com
>>
>> <http://wso2.com/signature>
>>
>>
>>

-- 
*Tanya Madurapperuma* | Technical Lead | WSO2 Inc.
(m) +94718184439 | (e) ta...@wso2.com

<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM React UI input validation

2019-08-26 Thread Tanya Madurapperuma
Isn't the second point in the license [1] of Joi is problematic?


   - *Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.*


[looping Suranee for her input]
[1] https://github.com/hapijs/joi/blob/master/LICENSE.md

Thanks.
Tanya

On Mon, Aug 26, 2019 at 4:27 PM Chanaka Jayasena  wrote:

> +1 for using Joi. One of the reasons we couldn't go with most of the
> libraries out there is they are wrapping input elements with there own
> components. This lib doesn't seem to have that problem.
>
> thanks,
> Chanaka
>
> On Fri, Aug 23, 2019 at 12:44 PM Kasun Thennakoon 
> wrote:
>
>> Hi All,
>>
>> So far we have been doing the validation manually in ad-hoc manner. It
>> seems that this approach is not scalable. For example, We had to write URL
>> , email , ip address etc validation patterns manually.
>> So I think it's better to integrate a third-party library that is
>> dedicated to the validation task.
>> So we explored the available libraries and found these widely adopted
>> libraries.
>>
>>- Joi[1][2]
>>- Validator.js[3]
>>- V8n[4]
>>
>> ... many more <https://github.com/topics/validation?l=javascript>[4]
>>
>> The above top 3 picks are pure validation libraries, Not related to
>> ReactJs.
>>
>> Out of those, IMO Joi[1] fits with our requirements well.
>> Here is a sample implementation
>> <https://codesandbox.io/s/stoic-mcnulty-9kcmj>[5] with material UI
>> elements.
>>
>> Please give your feedback.
>>
>> [1]: https://github.com/hapijs/joi
>> [2]: https://github.com/hapijs/joi/blob/master/LICENSE.md
>> [3]: https://github.com/validatorjs/validator.js
>> [4]: https://github.com/imbrn/v8n
>> [5]: https://codesandbox.io/s/stoic-mcnulty-9kcmj
>>
>> --
>> *Kasun Thennakoon* | Senior Software Engineer | WSO2 Inc.
>> (m) +94 711661919 | (w) +94 11 214 5345 | (e) kasu...@wso2.com
>> GET INTEGRATION AGILE
>> Integration Agility for Digitally Driven Business
>>
>
>
> --
> *Chanaka Jayasena* | Technical Lead | WSO2 Inc.
> (m) +94 77 44 64 00 6 | (w) 0112 145 345 | (e) chan...@wso2.com
> GET INTEGRATION AGILE
> Integration Agility for Digitally Driven Business
>


-- 
*Tanya Madurapperuma* | Technical Lead | WSO2 Inc.
(m) +94718184439 | (e) ta...@wso2.com

<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] npm executable gives errors in Windows build

2017-10-19 Thread Tanya Madurapperuma
@Eranga : Could you please verify whether the fix provided by Sajith solves
your issue.

Thanks,
Tanya

On Thu, Oct 19, 2017 at 2:55 PM, SajithAR Ariyarathna <sajit...@wso2.com>
wrote:

> Hi Tanya,
>
> Raised issue [1] for this and created PR [2] resolve it. Please review and
> merge.
>
> [1] https://github.com/wso2/carbon-dashboards/issues/614
> [2] https://github.com/wso2/carbon-dashboards/pull/615
>
> Thanks.
>
> On Thu, Oct 19, 2017 at 9:03 AM, Tanya Madurapperuma <ta...@wso2.com>
> wrote:
>
>> Hi,
>>
>> We have encountered an issue in building carbon-dashboards [1] in Windows
>> OS due to incompatibility issues in usage of the npm executable in mvn exec
>> plugin in pom at [2]
>>
>> Error log is as follows.
>>
>> [ERROR] Command execution failed.
>> java.io.IOException: Cannot run program "C:\Program Files\nodejs\npm" (in
>> directory "D:\WSO2_Packs\server\dashboard-web-component"): CreateProcess
>> error=193, %1 is not a valid Win32 application
>>at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
>>at java.lang.Runtime.exec(Runtime.java:620)
>>at org.apache.commons.exec.launcher.Java13CommandLauncher.exec(
>> Java13CommandLauncher.java:61)
>>at org.apache.commons.exec.DefaultExecutor.launch(DefaultExecut
>> or.java:279)
>>at org.apache.commons.exec.DefaultExecutor.executeInternal(Defa
>> ultExecutor.java:336)
>>at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecu
>> tor.java:166)
>>at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.
>> java:764)
>>at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.
>> java:711)
>>at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)
>>at org.apache.maven.plugin.DefaultBuildPluginManager.executeMoj
>> o(DefaultBuildPluginManager.java:134)
>>at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>> oExecutor.java:207)
>>at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>> oExecutor.java:153)
>>at org.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj
>> oExecutor.java:145)
>>at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
>> uildProject(LifecycleModuleBuilder.java:116)
>>at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
>> uildProject(LifecycleModuleBuilder.java:80)
>>at org.apache.maven.lifecycle.internal.builder.singlethreaded.S
>> ingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>>
>> Since npm is a batch file and not an executable, there are issues running
>> a batch file from maven exec plugin.If we are to use maven exec plugin to
>> run the build in Windows we'll have to feed the batch file npm to cmd
>> program.
>> At the same time we have to have a pom which should not require any
>> changes based on the OS.
>>
>> @ SajithAR : Could you please have a look.
>>
>>
>> [1] https://github.com/wso2/carbon-dashboards
>> [2] https://github.com/wso2/carbon-dashboards/blob/master/co
>> mponents/dashboards-web-component/pom.xml#L40
>>
>> Thanks,
>> Tanya
>>
>> --
>> Tanya Madurapperuma
>>
>> Associate Technical Lead,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439 <+94%2071%20818%204439>
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
> <https://wso2.com/signature>
>



-- 
Tanya Madurapperuma

Associate Technical Lead,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] npm executable gives errors in Windows build

2017-10-18 Thread Tanya Madurapperuma
Hi,

We have encountered an issue in building carbon-dashboards [1] in Windows
OS due to incompatibility issues in usage of the npm executable in mvn exec
plugin in pom at [2]

Error log is as follows.

[ERROR] Command execution failed.
java.io.IOException: Cannot run program "C:\Program Files\nodejs\npm" (in
directory "D:\WSO2_Packs\server\dashboard-web-component"): CreateProcess
error=193, %1 is not a valid Win32 application
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
   at java.lang.Runtime.exec(Runtime.java:620)
   at
org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:61)
   at
org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:279)
   at
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336)
   at
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
   at
org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)
   at
org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)
   at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)
   at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
   at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
   at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
   at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
   at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
   at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
   at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)

Since npm is a batch file and not an executable, there are issues running a
batch file from maven exec plugin.If we are to use maven exec plugin to run
the build in Windows we'll have to feed the batch file npm to cmd program.
At the same time we have to have a pom which should not require any changes
based on the OS.

@ SajithAR : Could you please have a look.


[1] https://github.com/wso2/carbon-dashboards
[2]
https://github.com/wso2/carbon-dashboards/blob/master/components/dashboards-web-component/pom.xml#L40

Thanks,
Tanya

-- 
Tanya Madurapperuma

Associate Technical Lead,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dashboard Component - Hierarchical Page Support

2017-08-29 Thread Tanya Madurapperuma
Hi Nisala,

First of all I think this mail should go to architecture@ :)

On Mon, Aug 28, 2017 at 11:26 PM, Nisala Nanayakkara <nis...@wso2.com>
wrote:

> Hi all,
>
> We are in the process of re-writing dashboard component using React.
> Currently we have dashboard view component with following features,
>
>- Dashboard listing (will retrieve the dashboard from the DB and list
>down)
>- Backend API support for dashboard CRUD activities.
>- Dashboard view support (This will retrieve the selected dashboard
>from DB and render using Golden Layout)
>- Multiple pages support for dashboards (This will introduce multiple
>pages at the same level, We need to support hierarchical page support )
>- Internal routing between dashboard listing and dashboard view
>
> Since we are using the golden layout for layouting, we keep the content of
> the each page with respect to page resource url. When we are going to
> implement the hierarchical pages support, we are going to process these
> page urls and display the hierarchical menu according these page urls.
> Please find the sample dashboard json given below,
>
>> {
>> "id": "1",
>> "url": "sampledashboard",
>> "name": "Sample Dashboard",
>> "version": "2.0.0",
>
> As we don't have versioning support for dashboards any reason for
maintaining version info?

>
>> "description": "Lorem ipsum dolor sit amet DAS",
>> "owner": "admin",
>> "lastUpdatedBy": "admin",
>> "createdTime": 150282009,
>> "lastUpdatedTime": 1502820091112,
>
> Could you also explain the usage of lastUpdatedBy, createdTime and
lastUpdateTime fields?

>
>> "isShared": false,
>
> I don't think we need isShared any more since we don't have a tenancy
concept now. We used this attribute earlier to indicate whether a
particular dashboard which is in super tenant is shared between other
tenants.

>
>> "parentId": "1",
>> "content": [
>> {
>> "page0": {
>> *content of page0*
>> },
>> "page1": {
>> *content of page1*
>> }
>> }
>> ]
>> }
>
>
>
> So we do not keep any mapping between pages and its hierarchy as in the
> previous versions of the dashboard component. But we may need to maintain
> some additional attributes such as Page title, isHidden and etc wrt page
> URL. In that case, I think it is better to maintain a separate mapping
> between these attributes and page URLs as in the previous dashboard
> component. Please find the sample dashboard json given below.
>
>> {
>> "id": "1",
>> "url": "sampledashboard",
>> "name": "Sample Dashboard",
>> "version": "2.0.0",
>> "description": "Lorem ipsum dolor sit amet DAS",
>> "owner": "admin",
>> "lastUpdatedBy": "admin",
>> "createdTime": 150282009,
>> "lastUpdatedTime": 1502820091112,
>> "isShared": false,
>> "parentId": "1",
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *"menu": {"page0": {"ishidden": false,
>> "title": "Page 0"},"page1": {"ishidden":
>> false,"title": "Page 1"}}*,
>> "content": [
>> {
>> "page0": {},
>> "page1": {}
>> }
>> ]
>> }
>>
> I am -1 to have separate menu section since it duplicates certain
information and also we don't have lot of meta info to go for a separation.
Can't we have page level meta under the page resource url as below?


   - "content":[
  1. {
 - "page0":{
- "ishidden":false,
- "title":"Page 0",
- "content":[
   ]
 },
 - "page0/page1":{
- "ishidden":false,
- "title":"Page 1",
- "content":[
   ]
 }
  }
   ]


WDYT?

Thanks,
Tanya

>
>> Because It will give a clear separation between dashboard content and the
> pages’ menu attributes. WDYT?
>
> Thanks,
> Nisala
>
> --
> *Nisala Niroshana Nanayakkara,*
> Software Engineer
> Mobile | +94 717600022
> WSO2 Inc | http://wso2.com/
>



-- 
Tanya Madurapperuma

Associate Technical Lead,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Requesting a new jenkins build for jaggery-extensions

2017-06-23 Thread Tanya Madurapperuma
Thanks Chandana !

@ Maheshika : Shall we terminate this build job.

Regards,
Tanya

On Fri, Jun 23, 2017 at 2:27 PM, Chandana Napagoda <chand...@wso2.com>
wrote:

> Hi Tanya,
>
> We have moved to the latest version of jaggery-extensions. So we can
> remove this build job
>
> Regards,
> Chandana
>
>
> On Fri, Jun 23, 2017 at 2:16 PM, Tanya Madurapperuma <ta...@wso2.com>
> wrote:
>
>> Hi Chandana,
>>
>> Do we still need this jenkins job for 1.4.x branch ? There has been no
>> commit from 2 nd March 2016.
>>
>> Thanks,
>> Tanya
>>
>> On Tue, Jan 19, 2016 at 3:46 PM, Ayesha Dissanayaka <aye...@wso2.com>
>> wrote:
>>
>>> Thanks a lot Maheshika :)
>>>
>>> On Tue, Jan 19, 2016 at 1:25 PM, Maheshika Goonetilleke <
>>> mahesh...@wso2.com> wrote:
>>>
>>>> Hi Ayesha
>>>>
>>>> Created [1] as requested. Please check.
>>>>
>>>> [1] https://wso2.org/jenkins/job/jaggery-extensions_1.4.x/
>>>>
>>>> On Tue, Jan 19, 2016 at 12:40 PM, Sagara Gunathunga <sag...@wso2.com>
>>>> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Tue, Jan 19, 2016 at 12:34 PM, Ayesha Dissanayaka <aye...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Maheshika,
>>>>>>
>>>>>> Can we get a new jenkins build job for the "1.4.5-SNAPSHOT-temp"
>>>>>> branch of jaggery-extensions repository [1].
>>>>>>
>>>>>
>>>>> Please don't use "-temp" use something meaningful so that others can
>>>>> understand the purpose of this job.
>>>>>
>>>>> Thanks !
>>>>>
>>>>>>
>>>>>> This is because, as of now we are maintaining two active branches of
>>>>>> jaggery-extensions [2].
>>>>>>
>>>>>>-master
>>>>>>   - depend on 0.12.0
>>>>>>-1.4.5-SNAPSHOT-temp
>>>>>>   - depend on 0.11.2
>>>>>>
>>>>>>
>>>>>> For repositories product-greg[3] and product-es[4], we are pointing
>>>>>> to 1.4.5-SNAPSHOT-temp since these repositories are not yet moved to
>>>>>> jaggery 0.12.0 which depends on identity major version- 5.x.x
>>>>>>
>>>>>> [1] https://github.com/wso2/jaggery-extensions/tree/1.4.5-SNAPSH
>>>>>> OT-temp
>>>>>> [2] https://github.com/wso2/jaggery-extensions/
>>>>>> [3] https://github.com/wso2/product-greg
>>>>>> [4] https://github.com/wso2/product-es
>>>>>>
>>>>>> Thanks!
>>>>>> -Ayesha
>>>>>>
>>>>>> --
>>>>>> *Ayesha Dissanayaka*
>>>>>> Software Engineer,
>>>>>> WSO2, Inc : http://wso2.com
>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com=D=1=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>>>>> 20, Palmgrove Avenue, Colombo 3
>>>>>> E-Mail: aye...@wso2.com <ayshsa...@gmail.com>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Sagara Gunathunga
>>>>>
>>>>> Architect; WSO2, Inc.;  http://wso2.com
>>>>> V.P Apache Web Services;http://ws.apache.org/
>>>>> Linkedin; http://www.linkedin.com/in/ssagara
>>>>> Blog ;  http://ssagara.blogspot.com
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Thanks & Best Regards,
>>>>
>>>> Maheshika Goonetilleke
>>>> Engineering Process Coordinator
>>>>
>>>> *WSO2 Inc*
>>>> *email   : mahesh...@wso2.com <mahesh...@wso2.com>*
>>>> *mobile : +94 773 596707 <%2B94%20773%20596707>*
>>>> *www: :http://wso2.com <http://wso2.com/>*lean . enterprise .
>>>> middleware
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> *Ayesha Dissanayaka*
>>> Software Engineer,
>>> WSO2, Inc : http://wso2.com
>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com=D=1=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>> 20, Palmgrove Avenue, Colombo 3
>>> E-Mail: aye...@wso2.com <ayshsa...@gmail.com>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Associate Technical Lead,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439 <071%20818%204439>
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> *Chandana Napagoda*
> Associate Technical Lead
> WSO2 Inc. - http://wso2.org
>
> *Email  :  chand...@wso2.com <chand...@wso2.com>**Mobile : +94718169299
> <071%20816%209299>*
>
> *Blog  :http://cnapagoda.blogspot.com <http://cnapagoda.blogspot.com>
> | http://chandana.napagoda.com <http://chandana.napagoda.com>*
>
> *Linkedin : http://www.linkedin.com/in/chandananapagoda
> <http://www.linkedin.com/in/chandananapagoda>*
>
>


-- 
Tanya Madurapperuma

Associate Technical Lead,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Requesting a new jenkins build for jaggery-extensions

2017-06-23 Thread Tanya Madurapperuma
Hi Chandana,

Do we still need this jenkins job for 1.4.x branch ? There has been no
commit from 2 nd March 2016.

Thanks,
Tanya

On Tue, Jan 19, 2016 at 3:46 PM, Ayesha Dissanayaka <aye...@wso2.com> wrote:

> Thanks a lot Maheshika :)
>
> On Tue, Jan 19, 2016 at 1:25 PM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Ayesha
>>
>> Created [1] as requested. Please check.
>>
>> [1] https://wso2.org/jenkins/job/jaggery-extensions_1.4.x/
>>
>> On Tue, Jan 19, 2016 at 12:40 PM, Sagara Gunathunga <sag...@wso2.com>
>> wrote:
>>
>>>
>>>
>>> On Tue, Jan 19, 2016 at 12:34 PM, Ayesha Dissanayaka <aye...@wso2.com>
>>> wrote:
>>>
>>>> Hi Maheshika,
>>>>
>>>> Can we get a new jenkins build job for the "1.4.5-SNAPSHOT-temp" branch
>>>> of jaggery-extensions repository [1].
>>>>
>>>
>>> Please don't use "-temp" use something meaningful so that others can
>>> understand the purpose of this job.
>>>
>>> Thanks !
>>>
>>>>
>>>> This is because, as of now we are maintaining two active branches of
>>>> jaggery-extensions [2].
>>>>
>>>>-master
>>>>   - depend on 0.12.0
>>>>-1.4.5-SNAPSHOT-temp
>>>>   - depend on 0.11.2
>>>>
>>>>
>>>> For repositories product-greg[3] and product-es[4], we are pointing to
>>>> 1.4.5-SNAPSHOT-temp since these repositories are not yet moved to jaggery
>>>> 0.12.0 which depends on identity major version- 5.x.x
>>>>
>>>> [1] https://github.com/wso2/jaggery-extensions/tree/1.4.5-SNAPSHOT-temp
>>>> [2] https://github.com/wso2/jaggery-extensions/
>>>> [3] https://github.com/wso2/product-greg
>>>> [4] https://github.com/wso2/product-es
>>>>
>>>> Thanks!
>>>> -Ayesha
>>>>
>>>> --
>>>> *Ayesha Dissanayaka*
>>>> Software Engineer,
>>>> WSO2, Inc : http://wso2.com
>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com=D=1=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>>> 20, Palmgrove Avenue, Colombo 3
>>>> E-Mail: aye...@wso2.com <ayshsa...@gmail.com>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Sagara Gunathunga
>>>
>>> Architect; WSO2, Inc.;  http://wso2.com
>>> V.P Apache Web Services;http://ws.apache.org/
>>> Linkedin; http://www.linkedin.com/in/ssagara
>>> Blog ;  http://ssagara.blogspot.com
>>>
>>>
>>
>>
>> --
>>
>> Thanks & Best Regards,
>>
>> Maheshika Goonetilleke
>> Engineering Process Coordinator
>>
>> *WSO2 Inc*
>> *email   : mahesh...@wso2.com <mahesh...@wso2.com>*
>> *mobile : +94 773 596707 <%2B94%20773%20596707>*
>> *www: :http://wso2.com <http://wso2.com/>*lean . enterprise . middleware
>>
>>
>>
>>
>>
>
>
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com=D=1=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@wso2.com <ayshsa...@gmail.com>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tanya Madurapperuma

Associate Technical Lead,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Distinguish dashboard customize functionalities

2016-10-27 Thread Tanya Madurapperuma
Hi,

On Thu, Oct 27, 2016 at 7:26 AM, Udara Rathnayake <uda...@wso2.com> wrote:

> In current dashboard server, we have two functionalities enabling
> end-users to customize their dashboard view.
>
> 1. Within dashboard view resize gadgets(by dragging the edge), relocate
> gadgets etc.. and persist.
>
IMO this is Personalize

> 2. Go to the dashboard designer and do extensive customization, by
> deleting existing gadgets and add new ones which user do have access to.
>
This is Advanced Personalize

>
> ​Nothing above affects on the original dashboard.​
> ​We need to come-up with better naming to distinguish these two
> functions(in the menu etc..).
>
> Thoughts?​
>
> --
> Regards,
> UdaraR
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Preserving URL parameters across different pages in a dashboard

2016-08-18 Thread Tanya Madurapperuma
Can't you use the gadget state api to achieve your requirement? Please
refer to gadget-state.zip at [1] for reference.

[1]
https://github.com/wso2/product-ds/blob/master/modules/integration/tests-ui-integration/tests-ui/src/test/resources/gadgets

Thanks,
Tanya

On Fri, Aug 19, 2016 at 8:56 AM, Megala Uthayakumar <meg...@wso2.com> wrote:

> Hi Kalpa,
>
> I hope you are using carbon-dashboards  v2.0.0 [1] . In that version, when
> rendering the pages in view mode, we are manually appending all the query
> parameters from landing page[2] to other pages as well, because of that
> only you were able to get the same query parameters in other pages as well
> after reloading. But with the v2.0.1, we have already removed appending all
> the query parameters manually. So even that will not work in future
> versions. Is it possible to achieve this without appending the parameters
> to URL itself?
>
> [1] https://github.com/wso2/analytics-http/blob/master/pom.xml#L486
> [2] https://github.com/wso2/carbon-dashboards/blob/v2.0.0/
> apps/portal/theme/templates/dashboard.jag#L29
>
> On Thu, Aug 18, 2016 at 5:34 PM, Kalpa Welivitigoda <kal...@wso2.com>
> wrote:
>
>> Hi dev,
>>
>> I am working on http analytics dashboard, there we have a date time
>> picker gadget. Once a date time range is selected, the gadget publishes
>> those information to a topic so that other gadgets in the same page can
>> update accordingly.
>>
>> I have several pages, I am trying to preserve the date time selection
>> from one page to another.
>>
>> The approach I am trying is to update the url parameters (start_time and
>> end_time) when a date time selection is made. I am using
>> *window.parent.history.**pushState* for this purpose. This works fine.
>> But when I navigate to another page, these URL parameters are lost. If I
>> set the URL parameters and reload the page, they are preserved in the other
>> pages as well. I am looking for a way to accomplish this without reloading
>> the page.
>>
>> Have we come across a similar requirement before?
>>
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Senior Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Extensive amount of warning logs are printed once the IS520-Analytics server starts up.

2016-08-18 Thread Tanya Madurapperuma
On Thu, Aug 18, 2016 at 9:18 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
>
> On Thu, Aug 18, 2016 at 3:55 PM, Tanya Madurapperuma <ta...@wso2.com>
> wrote:
>
>> This warning is coming from shindig which is the underlying library that
>> we used for gadget rendering and is a 3rd party library. Quick solution for
>> this is to increase maxDepth value as mentioned in [1] by Mohan.
>> If not we will have to analyze EhCache memory for memory consuming
>> objects [2] [3]
>>
>> [1] https://wso2.org/jira/browse/ANLYIS-48
>> [2] https://cwiki.apache.org/confluence/display/SHINDIG/Debuggin
>> g+EhCache's+SizeOfEngine
>> [3] https://cwiki.apache.org/confluence/display/SHINDIG/EhCache+
>> Memory+Analysis
>>
>
> @Tanya, Thanks for the response.. I think, increasing the maxDepth value
> is not helpful all the time.. Whether you guys, explored about this more ?
>
AFAIK it depends on the rendered gadgets in the dashboard. Hence need to be
explored on the particular dashboard itself.

> Since it is observed in various products/cases. If this log does not
> reflect any useful info then can, we disable that at log4j level ?
>
@ Sinthuja and team : WDYT? Shall we invest sometime on this?

Thanks,
Tanya

>
> Thanks,
> Mohan
>
>
>>
>> Thanks,
>> Tanya
>>
>> On Thu, Aug 18, 2016 at 3:40 PM, Mohanadarshan Vivekanandalingam <
>> mo...@wso2.com> wrote:
>>
>>> [Moving to DEV]
>>>
>>> Related UES/DS jira is [1]..
>>>
>>> @Sewmini, above logs are only printed once for a user (When loading a
>>> gadget for first time - once for each gadget)..
>>>
>>> [1] https://wso2.org/jira/browse/UES-658
>>>
>>>
>>> Thanks,
>>> Mohan
>>>
>>>
>>> On Thu, Aug 18, 2016 at 3:34 PM, Sewmini Jayaweera <sewm...@wso2.com>
>>> wrote:
>>>
>>>> Hi DS team,
>>>>
>>>> I observed the same issue reported in [1] in the latest Analytics pack
>>>> given. I reopened the issue since repeatedly printed warning may mislead
>>>> user thinking it's a critical issue eve,n though it is harmless and it
>>>> doesn't give a good impression to the user.
>>>>
>>>> It would be great if we can get this fixed. If it is difficult to fix
>>>> it in this release can we change it to an improvement and fix it later
>>>> without having it as won't fix?
>>>>
>>>> [1]. https://wso2.org/jira/browse/ANLYIS-48
>>>>
>>>> Thank you in advance.
>>>> Kind regards,
>>>>
>>>> Sewmini Jayaweera
>>>> *Software Engineer - QA Team*
>>>> Mobile: +94 (0) 773 381 250
>>>> sewm...@wso2.com
>>>>
>>>
>>>
>>>
>>> --
>>> *V. Mohanadarshan*
>>> *Associate Tech Lead,*
>>> *Data Technologies Team,*
>>> *WSO2, Inc. http://wso2.com <http://wso2.com> *
>>> *lean.enterprise.middleware.*
>>>
>>> email: mo...@wso2.com
>>> phone:(+94) 771117673
>>>
>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> *V. Mohanadarshan*
> *Associate Tech Lead,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com <http://wso2.com> *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Extensive amount of warning logs are printed once the IS520-Analytics server starts up.

2016-08-18 Thread Tanya Madurapperuma
This warning is coming from shindig which is the underlying library that we
used for gadget rendering and is a 3rd party library. Quick solution for
this is to increase maxDepth value as mentioned in [1] by Mohan.
If not we will have to analyze EhCache memory for memory consuming objects
[2] [3]

[1] https://wso2.org/jira/browse/ANLYIS-48
[2]
https://cwiki.apache.org/confluence/display/SHINDIG/Debugging+EhCache's+SizeOfEngine
[3]
https://cwiki.apache.org/confluence/display/SHINDIG/EhCache+Memory+Analysis

Thanks,
Tanya

On Thu, Aug 18, 2016 at 3:40 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> [Moving to DEV]
>
> Related UES/DS jira is [1]..
>
> @Sewmini, above logs are only printed once for a user (When loading a
> gadget for first time - once for each gadget)..
>
> [1] https://wso2.org/jira/browse/UES-658
>
>
> Thanks,
> Mohan
>
>
> On Thu, Aug 18, 2016 at 3:34 PM, Sewmini Jayaweera <sewm...@wso2.com>
> wrote:
>
>> Hi DS team,
>>
>> I observed the same issue reported in [1] in the latest Analytics pack
>> given. I reopened the issue since repeatedly printed warning may mislead
>> user thinking it's a critical issue eve,n though it is harmless and it
>> doesn't give a good impression to the user.
>>
>> It would be great if we can get this fixed. If it is difficult to fix it
>> in this release can we change it to an improvement and fix it later without
>> having it as won't fix?
>>
>> [1]. https://wso2.org/jira/browse/ANLYIS-48
>>
>> Thank you in advance.
>> Kind regards,
>>
>> Sewmini Jayaweera
>> *Software Engineer - QA Team*
>> Mobile: +94 (0) 773 381 250
>> sewm...@wso2.com
>>
>
>
>
> --
> *V. Mohanadarshan*
> *Associate Tech Lead,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com <http://wso2.com> *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] RC1 release WSO2CEP-4.2.0 : Error while creating gadget

2016-08-10 Thread Tanya Madurapperuma
Hi Aneela,

Could you please explain the steps that you tried before hitting this
error. Also did you observe any back-end erorrs?

Thanks,
Tanya

On Wed, Aug 10, 2016 at 7:00 PM, Tishan Dahanayakage <tis...@wso2.com>
wrote:

> +Tharik and Mohan
>
> On Wed, Aug 10, 2016 at 5:54 PM, Aneela Safdar <ansaf_...@yahoo.com>
> wrote:
>
>> I have donwloaded RC1 release of wso2-4.2.0 and during creating gadget, I
>> am encountered with following error:
>>
>> *Something went wrong while initiating Gadget generation wizard. Please
>> see the detailed error message below. *
>>
>>
>> Internal Server Error - Error 500 > content="width=device-width, initial-scale=1.0"> > content="">   h1,h3,h4{text-align:
>> center;font-weight: 200;} a{color: #2578ff} body{border-top:solid 20px
>> #444;padding:0;margin:0;}Error 500 Something went wrong and we're
>> trying to fix it. Please check back later > href="/portal/dashboards">Visit Portal  
>>
>> Any suggestions?
>>
>> Regards, Aneela Safdar
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Tishan Dahanayakage
> Senior Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [DAS] Issues in Generate Gadget Page

2016-07-13 Thread Tanya Madurapperuma
On Wed, Jul 13, 2016 at 11:47 AM, Dunith Dhanushka <dun...@wso2.com> wrote:

> Hi Tanya,
>
>
>
> On Wed, Jul 13, 2016 at 10:35 AM, Tanya Madurapperuma <ta...@wso2.com>
> wrote:
>
>> Hi Chamila,
>>
>> On Sat, Jul 2, 2016 at 12:07 AM, Chamila De Alwis <chami...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> In DAS 3.1.0-SNAPSHOT, in the dashboard portal, there are few issues in
>>> the Generate Gadget wizard UI.
>>>
>>>
>>> *Wizard steps don't get updated*
>>> ==
>>>
>>>1. Select Batch Data Source provider. Click Next.
>>>2. Select a table (Table1). Click Next.
>>>3. Check columns available in X and Y axes.
>>>4.  Click Previous to go to Configure Provider step.
>>>5. Select a different table (Table2). Click Next.
>>>6. Check columns available in X and Y axes. They are still Table 1
>>>columns.
>>>
>>> We could reproduce this error. Gadget generation framework provides the
>> capability for the datasource provider to define the configuration fields
>> that is needed to connect to that particular provider. So these fields will
>> be dynamic and framework is not aware of these fields at the runtime. From
>> the wizard's side, we can catch the on change event for general fields like
>> textbox, drop down etc but cannot predict on advanced UI elements that
>> providers going to introduce. Hence we have to figure out a better
>> mechanism to catch the on-change event of all these fields.
>> Please create a jira for this and we will fix it in a coming DS release.
>>
>>>
>>> *Cannot validate or preview data from a real time data source*
>>> =
>>>
>>>1. Create UI Publisher for a stream.
>>>2. Select Realtime Data Source (Should be Real-Time Data Source).
>>>Click Next.
>>>3. Select a Stream.
>>>4. Click Test Connection. "Error in database configuration".
>>>5. Click  Show Data. Another error appears, but is not helpful.
>>>
>>>
>> @ Dunith, Tharik : Please check this in the real time provider. This has
>> to be handled from the provider api.
>>
>
> This was fixed for realtime provider.
> BTW 'Test Connection' button is not required for both realtime and batch
> providers since they connect with relevant datasources internally.  Can we
> disbale/hide them?
>
+1. We can introduce a new config element in the provider for this case. We
will inco-operate this improvement in a coming release. Could you please
create a jira.

Thanks,
Tanya

>
>> Thanks,
>> Tanya
>>
>>> [image: Inline image 1]
>>>
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> Regards,
>
> Dunith Dhanushka,
> Associate Technical Lead
> WSO2 Inc,
>
> Mobile - +94 71 8615744
> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
> Twitter - @dunithd <http://twitter.com/dunithd>
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [DAS] Issues in Generate Gadget Page

2016-07-12 Thread Tanya Madurapperuma
Hi Chamila,

On Sat, Jul 2, 2016 at 12:07 AM, Chamila De Alwis <chami...@wso2.com> wrote:

> Hi,
>
> In DAS 3.1.0-SNAPSHOT, in the dashboard portal, there are few issues in
> the Generate Gadget wizard UI.
>
>
> *Wizard steps don't get updated*
> ==
>
>1. Select Batch Data Source provider. Click Next.
>2. Select a table (Table1). Click Next.
>3. Check columns available in X and Y axes.
>4.  Click Previous to go to Configure Provider step.
>5. Select a different table (Table2). Click Next.
>6. Check columns available in X and Y axes. They are still Table 1
>columns.
>
> We could reproduce this error. Gadget generation framework provides the
capability for the datasource provider to define the configuration fields
that is needed to connect to that particular provider. So these fields will
be dynamic and framework is not aware of these fields at the runtime. From
the wizard's side, we can catch the on change event for general fields like
textbox, drop down etc but cannot predict on advanced UI elements that
providers going to introduce. Hence we have to figure out a better
mechanism to catch the on-change event of all these fields.
Please create a jira for this and we will fix it in a coming DS release.

>
> *Cannot validate or preview data from a real time data source*
> =
>
>1. Create UI Publisher for a stream.
>2. Select Realtime Data Source (Should be Real-Time Data Source).
>Click Next.
>3. Select a Stream.
>4. Click Test Connection. "Error in database configuration".
>5. Click  Show Data. Another error appears, but is not helpful.
>
>
@ Dunith, Tharik : Please check this in the real time provider. This has to
be handled from the provider api.

Thanks,
Tanya

> [image: Inline image 1]
>
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Moving carbon dashboards version to 2.0.0-SNAPSHOT

2016-07-08 Thread Tanya Madurapperuma
Pushed the changes to master.

Thanks,
Tanya

On Fri, Jul 8, 2016 at 5:40 PM, Dunith Dhanushka <dun...@wso2.com> wrote:

> Hi Tanya,
>
> Thanks for the explanation. We assume any feature that will be added later
> will backward compatible.
>
> Regards,
> Dunith
>
> On Fri, Jul 8, 2016 at 5:18 PM, Tanya Madurapperuma <ta...@wso2.com>
> wrote:
>
>> Hi Dunith,
>>
>> All the new features were there on the 1.0.20-SNAPSHOT version. AFAIK you
>> have already verified your build with 1.0.20-SNAPSHOT. Hence this will just
>> be a version change for you.
>> Let us know if you have any concerns.
>>
>> Thanks,
>> Tanya
>>
>> On Fri, Jul 8, 2016 at 5:13 PM, Dunith Dhanushka <dun...@wso2.com> wrote:
>>
>>> Hi Tanya,
>>>
>>> On second thought, can you be specific on new features?
>>>
>>> Since we are on the verge of DAS 3.1.0 release today, it's better to go
>>> without new features. Can you merge 4.4.7 related security fixes to
>>> 1.0.20-SNAPSHOT ?
>>>
>>> Thanks,
>>> Dunith
>>>
>>>
>>> On Fri, Jul 8, 2016 at 4:59 PM, Dunith Dhanushka <dun...@wso2.com>
>>> wrote:
>>>
>>>> Ack!
>>>>
>>>> On Fri, Jul 8, 2016 at 4:56 PM, Tanya Madurapperuma <ta...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> We will be $ Subject from 1.0.20-SNAPSHOT. Reason is we have new
>>>>> features added and also upgraded the carbon kernel version to 4.4.7.
>>>>>
>>>>> Please note this if you are pointing to carbon dashboards
>>>>> 1.0.20-SNAPSHOT in any of your repos atm.
>>>>>
>>>>> Thanks,
>>>>> Tanya
>>>>>
>>>>> --
>>>>> Tanya Madurapperuma
>>>>>
>>>>> Senior Software Engineer,
>>>>> WSO2 Inc. : wso2.com
>>>>> Mobile : +94718184439
>>>>> Blog : http://tanyamadurapperuma.blogspot.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>>
>>>> Dunith Dhanushka,
>>>> Associate Technical Lead
>>>> WSO2 Inc,
>>>>
>>>> Mobile - +94 71 8615744
>>>> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
>>>> Twitter - @dunithd <http://twitter.com/dunithd>
>>>>
>>>
>>>
>>>
>>> --
>>> Regards,
>>>
>>> Dunith Dhanushka,
>>> Associate Technical Lead
>>> WSO2 Inc,
>>>
>>> Mobile - +94 71 8615744
>>> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
>>> Twitter - @dunithd <http://twitter.com/dunithd>
>>>
>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> Regards,
>
> Dunith Dhanushka,
> Associate Technical Lead
> WSO2 Inc,
>
> Mobile - +94 71 8615744
> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
> Twitter - @dunithd <http://twitter.com/dunithd>
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Moving carbon dashboards version to 2.0.0-SNAPSHOT

2016-07-08 Thread Tanya Madurapperuma
Hi Dunith,

All the new features were there on the 1.0.20-SNAPSHOT version. AFAIK you
have already verified your build with 1.0.20-SNAPSHOT. Hence this will just
be a version change for you.
Let us know if you have any concerns.

Thanks,
Tanya

On Fri, Jul 8, 2016 at 5:13 PM, Dunith Dhanushka <dun...@wso2.com> wrote:

> Hi Tanya,
>
> On second thought, can you be specific on new features?
>
> Since we are on the verge of DAS 3.1.0 release today, it's better to go
> without new features. Can you merge 4.4.7 related security fixes to
> 1.0.20-SNAPSHOT ?
>
> Thanks,
> Dunith
>
>
> On Fri, Jul 8, 2016 at 4:59 PM, Dunith Dhanushka <dun...@wso2.com> wrote:
>
>> Ack!
>>
>> On Fri, Jul 8, 2016 at 4:56 PM, Tanya Madurapperuma <ta...@wso2.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> We will be $ Subject from 1.0.20-SNAPSHOT. Reason is we have new
>>> features added and also upgraded the carbon kernel version to 4.4.7.
>>>
>>> Please note this if you are pointing to carbon dashboards
>>> 1.0.20-SNAPSHOT in any of your repos atm.
>>>
>>> Thanks,
>>> Tanya
>>>
>>> --
>>> Tanya Madurapperuma
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94718184439
>>> Blog : http://tanyamadurapperuma.blogspot.com
>>>
>>
>>
>>
>> --
>> Regards,
>>
>> Dunith Dhanushka,
>> Associate Technical Lead
>> WSO2 Inc,
>>
>> Mobile - +94 71 8615744
>> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
>> Twitter - @dunithd <http://twitter.com/dunithd>
>>
>
>
>
> --
> Regards,
>
> Dunith Dhanushka,
> Associate Technical Lead
> WSO2 Inc,
>
> Mobile - +94 71 8615744
> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
> Twitter - @dunithd <http://twitter.com/dunithd>
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Moving carbon dashboards version to 2.0.0-SNAPSHOT

2016-07-08 Thread Tanya Madurapperuma
Hi all,

We will be $ Subject from 1.0.20-SNAPSHOT. Reason is we have new features
added and also upgraded the carbon kernel version to 4.4.7.

Please note this if you are pointing to carbon dashboards 1.0.20-SNAPSHOT
in any of your repos atm.

Thanks,
Tanya

-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Kernel upgrade of DS fails with jaggery extensions 1.5.3-SNAPHOT

2016-07-08 Thread Tanya Madurapperuma
This is fixed with [1] in jaggery-extensions. Verified in DS build. Thanks
Chanadana !

[1]
https://github.com/wso2/jaggery-extensions/commit/be46b7e8966d83fdac08837c032a10121ad339ec

Thanks,
Tanya

On Fri, Jul 8, 2016 at 9:44 AM, Tanya Madurapperuma <ta...@wso2.com> wrote:

> Hi Greg team,
>
> In DS we are pointing to jaggery extensions version 1.5.3-SNAPSHOT and
> until 5 th build was success. And now the build is failing with the below
> error.
>
> Software being installed: ws Module - Feature 1.5.3.SNAPSHOT
> (org.jaggeryjs.modules.ws.feature.group 1.5.3.SNAPSHOT)
> Missing requirement: org.jaggeryjs.modules.ws 1.5.3.SNAPSHOT (
> org.jaggeryjs.modules.ws 1.5.3.SNAPSHOT) requires 'package
> javax.xml.parsers [1.3.0,2.0.0)' but it could not be found
> Cannot satisfy dependency:
>  From: ws Module - Feature 1.5.3.SNAPSHOT
> (org.jaggeryjs.modules.ws.feature.group 1.5.3.SNAPSHOT)
>  To: org.jaggeryjs.modules.ws [1.5.3.SNAPSHOT]
>
> We noticed that jaggery-extensions kernel version is upgraded to 4.4.6 on
> 6 th which has been the cause for this failure. There seems to be some
> fixes related to ws module missing which needs to be done along with the
> upgrade.
>
> As per offline chat with Dilini, got to know that CEP is also facing the
> same issue.
>
> Appreciate if you could look into this urgently as we need to release
> carbon dashboards repo today for APIM release.
>
> Thanks,
> Tanya
>
> --
> Tanya Madurapperuma
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439
> Blog : http://tanyamadurapperuma.blogspot.com
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Kernel upgrade of DS fails with jaggery extensions 1.5.3-SNAPHOT

2016-07-07 Thread Tanya Madurapperuma
Hi Greg team,

In DS we are pointing to jaggery extensions version 1.5.3-SNAPSHOT and
until 5 th build was success. And now the build is failing with the below
error.

Software being installed: ws Module - Feature 1.5.3.SNAPSHOT
(org.jaggeryjs.modules.ws.feature.group 1.5.3.SNAPSHOT)
Missing requirement: org.jaggeryjs.modules.ws 1.5.3.SNAPSHOT (
org.jaggeryjs.modules.ws 1.5.3.SNAPSHOT) requires 'package
javax.xml.parsers [1.3.0,2.0.0)' but it could not be found
Cannot satisfy dependency:
 From: ws Module - Feature 1.5.3.SNAPSHOT
(org.jaggeryjs.modules.ws.feature.group 1.5.3.SNAPSHOT)
 To: org.jaggeryjs.modules.ws [1.5.3.SNAPSHOT]

We noticed that jaggery-extensions kernel version is upgraded to 4.4.6 on 6
th which has been the cause for this failure. There seems to be some fixes
related to ws module missing which needs to be done along with the upgrade.

As per offline chat with Dilini, got to know that CEP is also facing the
same issue.

Appreciate if you could look into this urgently as we need to release
carbon dashboards repo today for APIM release.

Thanks,
Tanya

-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sharing a dashboard+gadgets across multiple tenants

2016-07-03 Thread Tanya Madurapperuma
Hi Dunith,

PR is merged. Please let us know if you found any issues.

Thanks,
Tanya

On Fri, Jul 1, 2016 at 8:28 PM, Dunith Dhanushka <dun...@wso2.com> wrote:

> Thanks Tanya/Nisala for the quick turnaround!
>
>
>
> On Fri, Jul 1, 2016 at 6:54 PM, Nisala Nanayakkara <nis...@wso2.com>
> wrote:
>
>> Hi all,
>>
>> I made the relevant changes and send a PR.
>>
>> Thanks,
>> Nisala
>>
>> On Fri, Jul 1, 2016 at 4:52 PM, Tanya Madurapperuma <ta...@wso2.com>
>> wrote:
>>
>>> Hi Dunith,
>>>
>>> There seems to be a regression issue introduced with gadget load
>>> ordering feature. We will fix this soon and update you.
>>> Sorry for the inconvenience caused.
>>>
>>> Thanks,
>>> Tanya
>>>
>>> On Fri, Jul 1, 2016 at 3:59 PM, Dunith Dhanushka <dun...@wso2.com>
>>> wrote:
>>>
>>>> Hi Tanya,
>>>>
>>>> Thanks for the quick response. My observations are below
>>>>
>>>> 1. Gadgets were not on the listing page.
>>>> 2. Gadgets did not render in view mode (Please see the attached
>>>> screenshot)
>>>>
>>>> I'll try with setting shareStore to true.
>>>>
>>>> Thanks,
>>>> Dunith
>>>>
>>>>
>>>> On Fri, Jul 1, 2016 at 3:52 PM, Tanya Madurapperuma <ta...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Dunith,
>>>>>
>>>>> On Fri, Jul 1, 2016 at 3:42 PM, Dunith Dhanushka <dun...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi DS team,
>>>>>>
>>>>>> I have a dashboard and few gadgets deployed for super tenant. Now I
>>>>>> need to share this dashboard+gadgets across multiple tenants.
>>>>>>
>>>>>> So I changed the dashboard settings and made the dashboard shareable.
>>>>>>
>>>>>> When I logged in as a tenant, I could only see the dashboard being
>>>>>> shared. But gadgets were not there.
>>>>>>
>>>>> What do you mean by gadgets were not there ? Is it in the gadget
>>>>> listing? or gadgets don't render in the view mode?
>>>>> In the shared dashboard feature, we only provide the viewing
>>>>> capability. Gadgets won't be available in the listing. Because it refers 
>>>>> to
>>>>> the gadget in the super tenant store.
>>>>> I'm cc'ing Megala who implemented this feature for further
>>>>> clarifications.
>>>>>
>>>>> We have a config in designer.json as "shareStore" . IIRC if you set
>>>>> this to true it will share the super tenant store with other tenants.
>>>>> @ Megala : Could you please verify and update the thread.
>>>>>
>>>>> Thanks,
>>>>> Tanya
>>>>>
>>>>>>
>>>>>> My question is how can I make super tenant gadgets available in the
>>>>>> tenant's dashboard as well?
>>>>>> Is there a setting to share the store as well?
>>>>>>
>>>>>>
>>>>>> Note: Tested above scenario with carbon-dashboards 1.0.20-SNAPSHOT
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>>
>>>>>> Dunith Dhanushka,
>>>>>> Associate Technical Lead
>>>>>> WSO2 Inc,
>>>>>>
>>>>>> Mobile - +94 71 8615744
>>>>>> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
>>>>>> Twitter - @dunithd <http://twitter.com/dunithd>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Tanya Madurapperuma
>>>>>
>>>>> Senior Software Engineer,
>>>>> WSO2 Inc. : wso2.com
>>>>> Mobile : +94718184439
>>>>> Blog : http://tanyamadurapperuma.blogspot.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>>
>>>> Dunith Dhanushka,
>>>> Associate Technical Lead
>>>> WSO2 Inc,
>>>>
>>>> Mobile - +94 71 8615744
>>>> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
>>>> Twitter - @dunithd <http://twitter.com/dunithd>
>>>>
>>>
>>>
>>>
>>> --
>>> Tanya Madurapperuma
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94718184439
>>> Blog : http://tanyamadurapperuma.blogspot.com
>>>
>>
>>
>>
>> --
>> *Nisala Niroshana Nanayakkara,*
>> Software Engineer
>> Mobile:(+94)717600022
>> WSO2 Inc., http://wso2.com/
>>
>
>
>
> --
> Regards,
>
> Dunith Dhanushka,
> Associate Technical Lead
> WSO2 Inc,
>
> Mobile - +94 71 8615744
> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
> Twitter - @dunithd <http://twitter.com/dunithd>
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sharing a dashboard+gadgets across multiple tenants

2016-07-01 Thread Tanya Madurapperuma
Hi Dunith,

There seems to be a regression issue introduced with gadget load ordering
feature. We will fix this soon and update you.
Sorry for the inconvenience caused.

Thanks,
Tanya

On Fri, Jul 1, 2016 at 3:59 PM, Dunith Dhanushka <dun...@wso2.com> wrote:

> Hi Tanya,
>
> Thanks for the quick response. My observations are below
>
> 1. Gadgets were not on the listing page.
> 2. Gadgets did not render in view mode (Please see the attached screenshot)
>
> I'll try with setting shareStore to true.
>
> Thanks,
> Dunith
>
>
> On Fri, Jul 1, 2016 at 3:52 PM, Tanya Madurapperuma <ta...@wso2.com>
> wrote:
>
>> Hi Dunith,
>>
>> On Fri, Jul 1, 2016 at 3:42 PM, Dunith Dhanushka <dun...@wso2.com> wrote:
>>
>>> Hi DS team,
>>>
>>> I have a dashboard and few gadgets deployed for super tenant. Now I need
>>> to share this dashboard+gadgets across multiple tenants.
>>>
>>> So I changed the dashboard settings and made the dashboard shareable.
>>>
>>> When I logged in as a tenant, I could only see the dashboard being
>>> shared. But gadgets were not there.
>>>
>> What do you mean by gadgets were not there ? Is it in the gadget listing?
>> or gadgets don't render in the view mode?
>> In the shared dashboard feature, we only provide the viewing capability.
>> Gadgets won't be available in the listing. Because it refers to the gadget
>> in the super tenant store.
>> I'm cc'ing Megala who implemented this feature for further clarifications.
>>
>> We have a config in designer.json as "shareStore" . IIRC if you set this
>> to true it will share the super tenant store with other tenants.
>> @ Megala : Could you please verify and update the thread.
>>
>> Thanks,
>> Tanya
>>
>>>
>>> My question is how can I make super tenant gadgets available in the
>>> tenant's dashboard as well?
>>> Is there a setting to share the store as well?
>>>
>>>
>>> Note: Tested above scenario with carbon-dashboards 1.0.20-SNAPSHOT
>>>
>>> --
>>> Regards,
>>>
>>> Dunith Dhanushka,
>>> Associate Technical Lead
>>> WSO2 Inc,
>>>
>>> Mobile - +94 71 8615744
>>> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
>>> Twitter - @dunithd <http://twitter.com/dunithd>
>>>
>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> Regards,
>
> Dunith Dhanushka,
> Associate Technical Lead
> WSO2 Inc,
>
> Mobile - +94 71 8615744
> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
> Twitter - @dunithd <http://twitter.com/dunithd>
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sharing a dashboard+gadgets across multiple tenants

2016-07-01 Thread Tanya Madurapperuma
Hi Dunith,

On Fri, Jul 1, 2016 at 3:42 PM, Dunith Dhanushka <dun...@wso2.com> wrote:

> Hi DS team,
>
> I have a dashboard and few gadgets deployed for super tenant. Now I need
> to share this dashboard+gadgets across multiple tenants.
>
> So I changed the dashboard settings and made the dashboard shareable.
>
> When I logged in as a tenant, I could only see the dashboard being shared.
> But gadgets were not there.
>
What do you mean by gadgets were not there ? Is it in the gadget listing?
or gadgets don't render in the view mode?
In the shared dashboard feature, we only provide the viewing capability.
Gadgets won't be available in the listing. Because it refers to the gadget
in the super tenant store.
I'm cc'ing Megala who implemented this feature for further clarifications.

We have a config in designer.json as "shareStore" . IIRC if you set this to
true it will share the super tenant store with other tenants.
@ Megala : Could you please verify and update the thread.

Thanks,
Tanya

>
> My question is how can I make super tenant gadgets available in the
> tenant's dashboard as well?
> Is there a setting to share the store as well?
>
>
> Note: Tested above scenario with carbon-dashboards 1.0.20-SNAPSHOT
>
> --
> Regards,
>
> Dunith Dhanushka,
> Associate Technical Lead
> WSO2 Inc,
>
> Mobile - +94 71 8615744
> Blog - *https://medium.com/@dunithd <https://medium.com/@dunithd>*
> Twitter - @dunithd <http://twitter.com/dunithd>
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Launching the BPMN Explorer does not work after updating to Kernel 4.4.6

2016-07-01 Thread Tanya Madurapperuma
Hi Ayoma,

Your PR is merged to the jaggery master (0.12.6-SNAPSHOT) and we are still
working on releasing jaggery on top of kernel 4.4.6.
So for the testing purpose please point to the SNAPSHOT version.

Thanks,
Tanya

On Fri, Jul 1, 2016 at 1:45 PM, Ayoma Wijethunga <ay...@wso2.com> wrote:

> Sorry :
> s/Tanya/Sudhama/g
>
> On Fri, Jul 1, 2016 at 1:41 PM, Ayoma Wijethunga <ay...@wso2.com> wrote:
>
>> Hi Tanya,
>>
>> This "csrf.js" file is not an actual JavaScript file. If you check
>> section 4 of the document "Securing Jaggery Applications", you will notice
>> that there is a new "servletMappings" which binds "JavaScriptServlet" with
>> URL pattern "csrf.js". This Servlet is exposing a JavaScript which is
>> then used by the template. I hope it is clear.
>>
>> However, noticed that a relevant PR [1] is not in a Jaggery release yet.
>> We will check this with Jaggery team and update relevant version details in
>> the document itself and in this email thread for your reference, as quick
>> as possible.
>>
>> [1] https://github.com/wso2/jaggery/pull/155
>>
>> Thank you,
>> Ayoma.
>>
>> On Fri, Jul 1, 2016 at 11:39 AM, Sudharma Subasinghe <sudhar...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> Error 405 - Method Not Allowed occurred for BPMN Explorer UI launching
>>> request after adding configurations for jaggery apps.
>>>
>>> Are "/csrf.js" which is added in the header of HTML template in the app
>>> and "/csrfPrevention.js" for management console same?
>>>
>>> Appreciate idea on this.
>>>
>>> Thanks
>>> Sudhama
>>>
>>> --
>>> Sudharma Subasinghe,
>>> Software Engineer,
>>> WSO2 Inc.
>>> Email: sudhar...@wso2.com <hasi...@wso2.com>
>>> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>>>
>>
>>
>>
>> --
>> Ayoma Wijethunga
>> Software Engineer
>> Platform Security Team
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> Mobile : +94 (0) 719428123 <+94+(0)+719428123>
>> Blog : http://www.ayomaonline.com
>> LinkedIn: https://www.linkedin.com/in/ayoma
>>
>
>
>
> --
> Ayoma Wijethunga
> Software Engineer
> Platform Security Team
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile : +94 (0) 719428123 <+94+(0)+719428123>
> Blog : http://www.ayomaonline.com
> LinkedIn: https://www.linkedin.com/in/ayoma
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS] Support primitive edit operations (moving and delete gadgets) operations in the view mode

2016-06-27 Thread Tanya Madurapperuma
Hi Udara,


On Mon, Jun 27, 2016 at 12:41 PM, Udara Rathnayake <uda...@wso2.com> wrote:

> Hi UX team,
>
> Requirement is to provide simple dashboard viewer level customization
> within the dashboard view rather redirecting to the designer.
>
If a user in the designer role logs into the dashboard, do we redirect
him/her to designer view or do we allow them also to do minor changes being
on the view mode ? Or is this just for personalization.

Thanks,
Tanya

>
> Simple customization includes(as per the RM),
> 1. Deleting a gadget
> 2. Moving a gadget
> 3. Resize a gadget
>
> Still, viewer should be able to go to the designer for extensive
> customizations.
>
> How should we distinguish these two operations in the dashboard view?
> Right now we have following menu item,
>
>
> ​
>
> Shall we get an input from the user once he/she press the Customize
> Dashboard menu and continue?
>
> Eg:-
>
>
> ​
>
> Even with this kind of an interaction(simple vs extensive) it's hard to
> convey what is the difference between these two types.
>
> Appreciate your feedback.
>
> --
> Regards,
> UdaraR
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] How to read files while locates outside of jaggery app?

2016-06-12 Thread Tanya Madurapperuma
Hi Thilini,

Try appending file:/// to your file path. I tried the below code and it
works fine for me.
Note : I'm trying to read test.txt file which resides in my CARBON_HOME
directory.

<%

var file = new File
('file:///data/packs/ds/wso2ds-2.1.0-SNAPSHOT/test.txt');
file.open("r");
var message = "";
message = file.readAll();
print(message);
file.close()

%>

Thanks,
Tanya

On Mon, Jun 13, 2016 at 9:31 AM, Thilini Cooray <thili...@wso2.com> wrote:

> Hi all,
>
> I want to read a file from API Manager publisher jaggery app which is
> located outside of that jaggery app.
> The reason for the requirement is that this particular file is a sample
> documentation which we plan to distribute with API Manager and should be
> stored in a location which users can easily access instead of inside
> jaggery apps.
>
> When jaggery FileHostObject gets created, it seems to be appending
> absolute path of the calling jaggery app to whenever path we are provided.
> I provided the absolute Path of the file. Therefore the real path provided
> by jaggery FileHostObject = absolute path of Jaggery app + absolute path of
> the file to be read.
>
> Since that path is wrong, when this file is accessed using
>  APIProviderHostObject.java it throws a file not found exception.
>
> I tried following approaches without any luck [1].
>
> Appreciate your feedback on any possible approach or would like to know
> whether it is not possible via jaggery.
>
> Thanks.
>
> [1]
>
>1. Provided the path of the reading file relative to the jaggery app.
>HostObject is not capable of understanding relative paths. - throws
>FileNotFound Exception
>2. Provided original file path using ~ (Home) - throws FileNotFound
>Exception
>3. Read the file on jaggery side using Packages.java.io.File - throws
>ClassCastException: org.mozilla.javascript.NativeJavaObject cannot be cast
>to org.jaggeryjs.hostobjects.file.FileHostObject
>
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
> E-mail : thili...@wso2.com
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Adding feature to copy and import CSS files in Gadget wizard

2016-06-06 Thread Tanya Madurapperuma
Hi,

@ Ramindu : ATM it is not possible to import css files to the generated
gadget. We will add this improvement to next carbon dashboard release which
will be released along with DS 2.1.0-M3 which is due on 23 rd June.

@ Jerad : As I understand Ramindu's expectation is to bundle the styling
(which comes from the chart template ) at the time of generating the
gadget. Please correct me If I am wrong.

Thanks,
Tanya

On Tue, Jun 7, 2016 at 9:45 AM, Jerad Rutnam <je...@wso2.com> wrote:

> Hi Ramindu,
>
> Isn't that something related to that specific gadget styling?
>
> Regards,
> Jerad
>
>
> On Tue, Jun 7, 2016 at 9:40 AM, Ramindu De Silva <ramin...@wso2.com>
> wrote:
>
>> Hi Tanya,
>>
>> I need the css files for the generated gadget. Is there a way to bundle
>> custom css files which are required by the gadget?
>>
>> Best Regards,
>>
>> On Tue, Jun 7, 2016 at 9:08 AM, Tanya Madurapperuma <ta...@wso2.com>
>> wrote:
>>
>>> Hi Ramindu,
>>>
>>> Do you want to apply css classes for the wizard (either for the provider
>>> configuration or chart configuration) or import css files for the generated
>>> gadget?
>>> If it is for the generated gadget, then I assume it is bundled with the
>>> chart template because provider template doesn't have any front end UI.
>>> Please clarify.
>>>
>>> Thanks,
>>> Tanya
>>>
>>> On Tue, Jun 7, 2016 at 9:03 AM, Ramindu De Silva <ramin...@wso2.com>
>>> wrote:
>>>
>>>> Hi Tania,
>>>>
>>>> As per the offline discussion we had yesterday, I can import the css
>>>> dynamically if theres a way of copying the css file to the gadget folder at
>>>> the creation of the gadget. But if not, I think we might have to add the
>>>> particular feature to the wizard.
>>>>
>>>> Best Regards,
>>>>
>>>> --
>>>> *Ramindu De Silva*
>>>> Software Engineer
>>>> WSO2 Inc.: http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> email: ramin...@wso2.com <sanj...@wso2.com>
>>>> mob: +94 772339350
>>>> mob: +94 719678895
>>>>
>>>
>>>
>>>
>>> --
>>> Tanya Madurapperuma
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94718184439
>>> Blog : http://tanyamadurapperuma.blogspot.com
>>>
>>
>>
>>
>> --
>> *Ramindu De Silva*
>> Software Engineer
>> WSO2 Inc.: http://wso2.com
>> lean.enterprise.middleware
>>
>> email: ramin...@wso2.com <sanj...@wso2.com>
>> mob: +94 772339350
>> mob: +94 719678895
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Adding feature to copy and import CSS files in Gadget wizard

2016-06-06 Thread Tanya Madurapperuma
Hi Ramindu,

Do you want to apply css classes for the wizard (either for the provider
configuration or chart configuration) or import css files for the generated
gadget?
If it is for the generated gadget, then I assume it is bundled with the
chart template because provider template doesn't have any front end UI.
Please clarify.

Thanks,
Tanya

On Tue, Jun 7, 2016 at 9:03 AM, Ramindu De Silva <ramin...@wso2.com> wrote:

> Hi Tania,
>
> As per the offline discussion we had yesterday, I can import the css
> dynamically if theres a way of copying the css file to the gadget folder at
> the creation of the gadget. But if not, I think we might have to add the
> particular feature to the wizard.
>
> Best Regards,
>
> --
> *Ramindu De Silva*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com <sanj...@wso2.com>
> mob: +94 772339350
> mob: +94 719678895
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS] UI Design - Multiple views support for page based on roles (Designer View)

2016-06-01 Thread Tanya Madurapperuma
Hi,

On Wed, Jun 1, 2016 at 11:09 AM, Udara Rathnayake <uda...@wso2.com> wrote:

> Hi Tanya,
>
> On Wed, Jun 1, 2016 at 10:56 AM, Tanya Madurapperuma <ta...@wso2.com>
> wrote:
>
>> Hi Udara,
>>
>> From where can we select the layout for the view? Or do we enforce using
>> the same layout for all the views of a single page?
>>
> ​We should open the layout selection panel and move to the newly created
> tab (role based view) once user select the role(s) and create the view​
> ​.​
>
> ​I think we should not restrict and enforce the same layout.
>
My question was because I assume a user has to click on (+) to create a new
view. If so I believe we have to have the UI design for getting layout
selection pane as well, because it is not same as getting it for creating a
new page.

>
>> On Tue, May 31, 2016 at 9:09 PM, Udara Rathnayake <uda...@wso2.com>
>> wrote:
>>
>>> Thanks Dakshika & Sinthuja.
>>>
>>> On Tue, May 31, 2016 at 7:10 PM, Sinthuja Ragendran <sinth...@wso2.com>
>>> wrote:
>>>
>>>> Hi Udara,
>>>>
>>>> As discussed offline we need to have following as well.
>>>>
>>>> - A name for each view so that if a user could see both views he/she
>>>> should be able switch.
>>>> - A default view should not be existing, and that should be associated
>>>> with roles selection option when the 'role based view' option is selected
>>>> in the left pane.
>>>>
>>> ​We have to revisit this a bit. Assume a scenario, where dashboard
>>> designer already have a default view.​
>>>
>>> ​At that point we should not just disable the default view and provide
>>> role selection option.
>>>
>> Even if they have a default view, they should have set a viewers role in
>> the dashboard settings page. So can't we use that role as the roles for
>> that page and get rid of default view.
>>
> Since we are bringing gadget level roles now, we might have to remove some
> gadgets from the default view in that case. This might confuse the
> designer. ​
>
>
We need to have a verdict on this. Say based on the gadget level roles
dashboard designer can see gadget A, B and C. And he is going to design a
dashboard for a viewer and that viewer is authorized to see gadget A, B and
D. But the gadget D will not be in the gadget listing for designer as he is
not authorized to see that gadget. But gadget C will be in the designers
listing even though viewer is not authorized to see the gadget C. How does
having a default view solve this problem?

> Thanks,
>> Tanya
>>
>>>
>>> - As Dakshika mentioned, the view tab settings will be required to
>>>> edit/update as well.
>>>> - During the personalization of dashboard mode, we shouldn't show the
>>>> options of editing the roles, etc for a view table, and only show the view
>>>> names in the tabs. Hence the user can't actually do any changes to the view
>>>> or anything, but he/she can add or delete gadgets, change layout, etc
>>>> according to their personal interest.
>>>>
>>>> Thanks,
>>>> Sinthuja.
>>>>
>>>>
>>>> On Tue, May 31, 2016 at 2:33 PM, Udara Rathnayake <uda...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Came up with following modifications to the existing dashboard
>>>>> designer UI to cater the $Subject.
>>>>>
>>>>> Designer can select and enable page view based on role(s) from the
>>>>> settings.
>>>>>
>>>>>
>>>>> ​
>>>>> ​Once this is enabled, we can update the dashboard designer with a
>>>>> drop down where dashboard designer can select a role and create the
>>>>> particular view. When the dashboard designer browse gadgets/widgets 
>>>>> section
>>>>> from this particular view(role based), we should only list down gadgets
>>>>> enabled for the selected role(have to come up with a gadget level config
>>>>> for this).
>>>>>
>>>>>
>>>>>
>>>>> ​ ​
>>>>> This role list can be a simple drop down (if we support one role per
>>>>> page) or can be a list with check-boxes, so we can support multiple roles
>>>>> per page view. (gadget listing for particular view should be the union of
>>>>> selected roles)
>>>>>
>>>>>
>>>>> ​
>>>>>  Designer UI after adding a role based page view,
>>>>>
>>>>>
>>>>> ​
>>>>>
>>>>> ​Appreciate your feedback on this.
>>>>> ​
>>>>>
>>>>> --
>>>>> Regards,
>>>>> UdaraR
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Sinthuja Rajendran*
>>>> Associate Technical Lead
>>>> WSO2, Inc.:http://wso2.com
>>>>
>>>> Blog: http://sinthu-rajan.blogspot.com/
>>>> Mobile: +94774273955
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Regards,
>>> UdaraR
>>>
>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> Regards,
> UdaraR
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS] UI Design - Multiple views support for page based on roles (Designer View)

2016-05-31 Thread Tanya Madurapperuma
Hi Udara,

>From where can we select the layout for the view? Or do we enforce using
the same layout for all the views of a single page?

On Tue, May 31, 2016 at 9:09 PM, Udara Rathnayake <uda...@wso2.com> wrote:

> Thanks Dakshika & Sinthuja.
>
> On Tue, May 31, 2016 at 7:10 PM, Sinthuja Ragendran <sinth...@wso2.com>
> wrote:
>
>> Hi Udara,
>>
>> As discussed offline we need to have following as well.
>>
>> - A name for each view so that if a user could see both views he/she
>> should be able switch.
>> - A default view should not be existing, and that should be associated
>> with roles selection option when the 'role based view' option is selected
>> in the left pane.
>>
> ​We have to revisit this a bit. Assume a scenario, where dashboard
> designer already have a default view.​
>
> ​At that point we should not just disable the default view and provide
> role selection option.
>
Even if they have a default view, they should have set a viewers role in
the dashboard settings page. So can't we use that role as the roles for
that page and get rid of default view.

Thanks,
Tanya

>
> - As Dakshika mentioned, the view tab settings will be required to
>> edit/update as well.
>> - During the personalization of dashboard mode, we shouldn't show the
>> options of editing the roles, etc for a view table, and only show the view
>> names in the tabs. Hence the user can't actually do any changes to the view
>> or anything, but he/she can add or delete gadgets, change layout, etc
>> according to their personal interest.
>>
>> Thanks,
>> Sinthuja.
>>
>>
>> On Tue, May 31, 2016 at 2:33 PM, Udara Rathnayake <uda...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> Came up with following modifications to the existing dashboard designer
>>> UI to cater the $Subject.
>>>
>>> Designer can select and enable page view based on role(s) from the
>>> settings.
>>>
>>>
>>> ​
>>> ​Once this is enabled, we can update the dashboard designer with a drop
>>> down where dashboard designer can select a role and create the particular
>>> view. When the dashboard designer browse gadgets/widgets section from this
>>> particular view(role based), we should only list down gadgets enabled for
>>> the selected role(have to come up with a gadget level config for this).
>>>
>>>
>>>
>>> ​ ​
>>> This role list can be a simple drop down (if we support one role per
>>> page) or can be a list with check-boxes, so we can support multiple roles
>>> per page view. (gadget listing for particular view should be the union of
>>> selected roles)
>>>
>>>
>>> ​
>>>  Designer UI after adding a role based page view,
>>>
>>>
>>> ​
>>>
>>> ​Appreciate your feedback on this.
>>> ​
>>>
>>> --
>>> Regards,
>>> UdaraR
>>>
>>
>>
>>
>> --
>> *Sinthuja Rajendran*
>> Associate Technical Lead
>> WSO2, Inc.:http://wso2.com
>>
>> Blog: http://sinthu-rajan.blogspot.com/
>> Mobile: +94774273955
>>
>>
>>
>
>
> --
> Regards,
> UdaraR
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shindig Error

2016-05-29 Thread Tanya Madurapperuma
Yes. The same is discussed in [1] and fixed in carbon-dashboards 1.0.17

[1] [Dev] Shindig error on DS portal startup, due to connectivity errors to
google

Thanks,
Tanya

On Mon, May 30, 2016 at 11:23 AM, Damith Wickramasinghe <dami...@wso2.com>
wrote:

> Hi all,
>
> I received following error when I try in my home network and it took some
> time to load the dashboard.
>
> [2016-05-29 23:53:42,488]  INFO
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
> 'admin@carbon.super [-1234]' logged in at [2016-05-29 23:53:42,487+0530]
> [2016-05-29 23:53:42,509]  INFO {JAGGERY.modules.api:js} -  Session cookie
> JSESSIONID=66265F732E6F943180885F0306828C56; Path=/; Secure=null;
> HttpOnly=null
> [2016-05-29 23:53:49,866]  INFO
> {org.apache.shindig.gadgets.http.BasicHttpFetcher} -
> https://localhost:9443/shindig/rpc?method=system.listMethods=-1:-1:0:*:0:0:default:1464546234
> has timed out because of the following exception:
> org.apache.shindig.gadgets.http.BasicHttpFetcher - Read timed out - 5,093
> ms.
> [2016-05-29 23:53:49,869] ERROR
> {org.apache.shindig.gadgets.render.DefaultServiceFetcher} -  An HTTP 504
> error occurred when fetching service methods from the
> https://localhost:9443/shindig/rpc endpoint.
> [2016-05-29 23:54:05,118]  INFO
> {org.apache.shindig.gadgets.http.BasicHttpFetcher} -
> http://www.google-analytics.com/urchin.js has timed out because of the
> following exception: org.apache.shindig.gadgets.http.BasicHttpFetcher -
> www.google-analytics.com: unknown error - 20,014 ms.
> [2016-05-29 23:54:05,121]  WARN
> {org.apache.shindig.gadgets.features.FeatureResourceLoader} -  The remote
> library from http://www.google-analytics.com/urchin.js cannot be
> retrieved.
>
>
> Is this a known issue ?
>
> Regards,
> Damith.
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com=D=1=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Shindig error on DS portal startup, due to connectivity errors to google

2016-05-18 Thread Tanya Madurapperuma
eServiceComponent.activate(CarbonCoreServiceComponent.java:94)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:483)
>
> 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:345)
>
> 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.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81)
>
> at
> org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40)
>
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init(DelegationServlet.java:38)
>
> at
> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1282)
>
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1195)
>
> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1085)
>
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5318)
>
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5610)
>
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
>
> at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
>
> at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
>
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>
> at java.lang.Thread.run(Thread.java:745)
>
> [2016-05-17 17:36:19,533]  WARN - FeatureResourceLoader The remote library
> from http://www.google-analytics.com/urchin.js cannot be retrieved.
>
>
> 
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com <http://wso2.com/> *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Product-jaggery build failure

2016-04-15 Thread Tanya Madurapperuma
Fixed.

Thanks,
Tanya

On Thu, Apr 14, 2016 at 5:43 PM, Manuranga Perera <m...@wso2.com> wrote:

> Looping Tanya and Sinthuja
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS]Dashboard warnings for Object graph

2016-03-20 Thread Tanya Madurapperuma
Hi Fazlan,

You have to increasing maxDepth value of ehcacheConfig.xml located at
org/apache/shindig/common/cache/ehcache/ in the
PRODUCT_HOME/repository/deployment/server/webapps/shindig/WEB-INF/lib/shindig-common-2.5.2.jar
to a higher number to get rid of the error message.



Save and restart the server.

Thanks,
Tanya

On Mon, Mar 21, 2016 at 9:29 AM, Fazlan Nazeem <fazl...@wso2.com> wrote:

> Hi Nipuna,
>
> Thanks for the reply. I believe the solution you suggested has to come
> from the code base, but Is there a configuration change available from the
> user's side to remove this warning?
>
> On Fri, Mar 18, 2016 at 10:51 AM, Nipuna Chandradasa <nipu...@wso2.com>
> wrote:
>
>> Hi Fazlan,
>>
>> This normally getting printed when try to avoid memory overflow. As
>> mentioned in this error message, using @IgnoreSizeOf where we implement the
>> cache will remove this warning but there is a possibility that Out Of
>> Memory Exception will occur. I think this because of we use cache to keep
>> most details and it causes local heap to exceed. There also a public
>> jira reported for this[1].
>>
>> [1]. https://wso2.org/jira/browse/UES-658
>>
>> Thank you.
>>
>> On Thu, Mar 17, 2016 at 10:43 AM, Fazlan Nazeem <fazl...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I get a warning in the server console when viewing the dashboard created
>>> for APIM-Analytics. Following is the message.
>>>
>>>  WARN {net.sf.ehcache.pool.sizeof.SizeOf} -  The configured limit of
>>> 1,000 object references was reached while attempting to calculate the size
>>> of the object graph. This can be avoided by adding stop points with
>>> @IgnoreSizeOf annotations. Since the CacheManger or Cache 
>>> elements maxDepthExceededBehavior is set to "abort", the sizing operation
>>> has stopped and the reported cache size is not accurate. If performance
>>> degradation is NOT an issue at the configured limit, raise the limit value
>>> using the CacheManager or Cache  elements maxDepth attribute.
>>> For more information, see the Ehcache configuration documentation.
>>>
>>>
>>> This warning gets printed multiple times in the console. What is the
>>> cause of this warning. Is this due to having more gadgets than  the default
>>> limit for a single dashboard page? How can I get rid of this warning?
>>>
>>> Also I can't find the documentation mentioned in the warning message.
>>> --
>>> Thanks & Regards,
>>>
>>> Fazlan Nazeem
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc*
>>> Mobile : +94772338839
>>> <%2B94%20%280%29%20773%20451194>
>>> fazl...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Nipuna Marcus
>> *Software Engineer*
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
>> Mobile : +94 (0) 713 667906
>> nipu...@wso2.com
>>
>
>
>
> --
> Thanks & Regards,
>
> Fazlan Nazeem
>
> *Software Engineer*
>
> *WSO2 Inc*
> Mobile : +94772338839
> <%2B94%20%280%29%20773%20451194>
> fazl...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DS server cannot publish data on gadget loads using PubSub functionality

2016-03-08 Thread Tanya Madurapperuma
A similar issue is discussed in the mail thread [1] at dev@
The reason seems to be the pub-sub model doesn't wait till the iframe is
loaded. In the above thread it is suggested to register an onload event for
gadget iframes. Have you tried that?
@ Kavith : Were you able to find a solution? Did iframe onload event solved
your issue?

[1] [Dev] WSO2 UES - How to forward request parameters to micro-sites
(gadgets)

Thanks,
Tanya

On Wed, Mar 9, 2016 at 9:34 AM, Udara Rathnayake <uda...@wso2.com> wrote:

>
>
> On Tue, Mar 8, 2016 at 7:33 PM, Dilan Udara Ariyaratne <dil...@wso2.com>
> wrote:
>
>> Hi Damith,
>>
>> How about using the jquery ready() function, so that you can make sure
>> the function runs
>> just after DOM (document object model) has been fully loaded?
>>
>> For ex: see the following code snippet.
>>
>> var TOPIC = "publisher";
>> var count = 1;
>>
>> function cb(start, end) {
>> if (count != 0) {
>> var message = {
>> timeFrom: new Date(start).getTime(),
>> timeTo: new Date(end).getTime()
>> };
>> console.log(message);
>> gadgets.Hub.publish(TOPIC, message);
>> }
>> count++;
>> }
>>
>>
>> ​​
>> ​​
>> $(document).ready(function () {
>> cb(moment().subtract(29, 'days'), moment());
>> });
>>
> ​*$(function() { })* this is the shorthand version of​
>
> ​​
> *$(document).ready*, So I don't see any difference here.
>
>>
>>
>> Cheers,
>> Dilan.
>>
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. <http://wso2.com/>
>> Mobile: +94725197942
>> lean . enterprise . middleware
>>
>> On Tue, Mar 8, 2016 at 10:03 PM, Damith Wickramasinghe <dami...@wso2.com>
>> wrote:
>>
>>> HI Udara,
>>>
>>> Thanks for the response. Set time out works but is it a good approach
>>> since the time can be vary.
>>>
>>> Regards,
>>> Damith.
>>>
>>> On Tue, Mar 8, 2016 at 8:12 PM, Udara Rathnayake <uda...@wso2.com>
>>> wrote:
>>>
>>>> cay you try,
>>>>
>>>> setTimeout(function (){
>>>> cb(moment().subtract(29, 'days'), moment());
>>>>  }, 3000);
>>>>
>>>>
>>>> On Tue, Mar 8, 2016 at 9:32 AM, Damith Wickramasinghe <dami...@wso2.com
>>>> > wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have a requirement of  publishing data on load of publisher gadget.
>>>>> I have following script
>>>>>
>>>>> $(function () {
>>>>>
>>>>> var TOPIC = "publisher";
>>>>>
>>>>> var count = 1;
>>>>>
>>>>> cb(moment().subtract(29, 'days'), moment());
>>>>>
>>>>> function cb(start, end) {
>>>>> if (count != 0) {
>>>>> var message = {
>>>>> timeFrom: new Date(start).getTime(),
>>>>> timeTo: new Date(end).getTime()
>>>>> };
>>>>> console.log(message);
>>>>> gadgets.Hub.publish(TOPIC, message);
>>>>> }
>>>>> count++;
>>>>> }
>>>>>
>>>>> });
>>>>>
>>>>>
>>>>> As you can see I'm calling cb(moment().subtract(29, 'days'),
>>>>> moment()); which will publish that data. If I comment above line and call
>>>>> the function when a button click then publisher works. It seems publisher
>>>>> functionality is not available or gadget is not properly loaded if we call
>>>>> as above. Am I missing something here ? or is there a better way to 
>>>>> achieve
>>>>> this ?
>>>>>
>>>>> Thanks,
>>>>> Damith.
>>>>>
>>>>>
>>>>> --
>>>>> Software Engineer
>>>>> WSO2 Inc.; http://wso2.com
>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com=D=1=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>>>> lean.enterprise.middleware
>>>>>
>>>>> mobile: *+94728671315 <%2B94728671315>*
>>>>>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> UdaraR
>>>>
>>>
>>>
>>>
>>> --
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com=D=1=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94728671315 <%2B94728671315>*
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Regards,
> UdaraR
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Dashboard Server 2.0.0 Released !!!

2016-02-29 Thread Tanya Madurapperuma
The WSO2 DS team is pleased to announce the release of version 2.0.0 of
Open Source WSO2 Dashboard Server.

WSO2 Dashboard Server (DS) provides a tool set to create dashboards and
visualizations for enterprise requirements. Unlike traditional solutions,
DS exposes the power of the server to the dashboard or app developers.

The configuration of the created dashboard is stored in JSON files, and
developers have full flexibility to work with Jaggery APIs to retrieve,
manipulate, and compose data. The dashboards can be created from the
default layouts, which are shipped with the default distribution, or the
developer can create a blank layout and include gadget placeholders
wherever he/she likes, to create his/her own layout to visualize. Users can
add any amount of pages per dashboard, and determine which pages need to
have the anonymous user view and secured user view.

For more information on WSO2 Dashboard Server, please visit our product page
. You can also look at our online
product documentation
.

WSO2 Dashboard Server 2.0.0 includes following new features, improvements
and bug fixes.
New Features

   -

   [UES-901 ] - Supporting multiple
   dashboard pages within a dashboard app
   -

   [UES-902 ] - Enable SSO in
   Dashboard Server
   -

   [UES-903 ] - Fixed mobile view on
   Android devices
   -

   [UES-904 ] - Visually link pub-sub
   gadgets
   -

   [UES-905 ] - Fixed mobile view on
   iDevices
   -

   [UES-906 ] - Implement anonymous
   view of dashboard
   -

   [UES-907 ] - Themes for DS
   dashboard view mode
   -

   [UES-908 ] - Role based dashboard
   access
   -

   [UES-909 ] - Add banners to theme
   the dashboard per user
   -

   [UES-910 ] - Ship samples with
   dashboard server product
   -

   [UES-911 ] - Create a sample
   dashboard for drill down gadgets
   -

   [UES-912 ] - Per-user dashboard
   customization
   -

   [UES-913 ] - Add OAuth support for
   gadgets and pub/sub communication in DS
   -

   [UES-914 ] - Dynamic layout
   customization for dashboard editor
   -

   [UES-915 ] - Restructure the
   designer to enhance the UX
   -

   [UES-916 ] - Create JMeter scripts
   for performance tests
   -

   [UES-917 ] - Gadget Maximization
   -

   [UES-918 ] - User Profile can be
   accessed by the gadget
   -

   [UES-919 ] - Show gadget/widget
   userPref settings in view mode


Improvements

   - [UES-726 ] - Direct the user to
   anonymous page when "Make Anonymous" option is selected
   - [UES-874 ] - [Mobile] Remove the
   option to go to the edit mode from a mobile view
   - [UES-324 ] - Remove or update
   gadget without removing the layout block
   - [UES-663 ] - Filter the
   available widgets when searching
   - [UES-668 ] - Disable the
   "Personalizable" check box in USA Map when editing a anon view
   - [UES-671 ] - Option to upload
   widgets/gadgets directly to the portal
   - [UES-719 ] - Add a log message
   in the startup to print the portal URL
   - [UES-720 ] - Shall we remove the
   option to edit the banner in anon mode?
   - [UES-759 ] - Replace anon view
   toggle button with tabs in dashboard designer
   - [UES-764 ] - Add new dashboard
   layout - blank layout
   - [UES-828 ] - Look and feel of
   dashboard list not proper
   - [UES-834 ] - Look and feel
   issues with Sample 0
   - [UES-840 ] - The color theme of
   the add gadgets description does not match with the overall color theme
   - [UES-861 ] - [IE] Can add more
   than the recommended grid size in IE 11
   - [UES-739 ] - Add a horizontal
   scroll bar in all the pages of the dashboard
   - 

Re: [Dev] [VOTE] Release WSO2 Dashboard Server 2.0.0 RC2

2016-02-28 Thread Tanya Madurapperuma
Hi all,

Thank you for testing and verifying the WSO2 Dashboard Server 2.0.0 RC2. We
are closing this vote now. This vote has passed with 6 +1s and 0 -1s.
Therefore we are proceeding with the WSO2 Dashboard Server 2.0.0 release.

Thanks,
Tanya

On Sun, Feb 28, 2016 at 10:02 PM, Nipuna Chandradasa <nipu...@wso2.com>
wrote:

> Please Find the Performance Test Documentations for Dashboard Server 2.0.0
> attached below.
>
> [1] Performance Stats:
> https://docs.google.com/a/wso2.com/spreadsheets/d/199WzBnphu6VFKBqTeVpOqGlkFA2QpLftlJq9wkkBazM/edit?usp=sharing
>
> [2] Performance Test Plan:
> https://docs.google.com/a/wso2.com/document/d/18WJhmP-457Ws3Kfhy6s6LDKoy2OhTJqEMFLYOaqpYeI/edit?usp=sharing
>
> If above links are not accessible please find the PDF version of the both
> documents attached with this mail.
>
> Thank you.
>
> On Fri, Feb 26, 2016 at 7:08 AM, Udara Rathnayake <uda...@wso2.com> wrote:
>
>> tested dashboard creation/view flow in IE11 on win7 and Firefox/Chromium
>> on Linux (super tenant/tenant).
>> ran zap tool pointing portal app.
>>
>> [+] Stable - go ahead and release.
>>
>> On Wed, Feb 24, 2016 at 11:31 AM, Tanya Madurapperuma <ta...@wso2.com>
>> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the RC2 release candidate of WSO2 Dashboard Server 2.0.0
>>>
>>> Please download DS 2.0.0 RC2 and test the functionality and vote. Vote
>>> will be open for 72 hours or as needed.
>>>
>>> Source & binary distribution files:
>>> https://github.com/wso2/product-ds/releases/tag/v2.0.0-RC2
>>>
>>> Maven staging repo:
>>> http://maven.wso2.org/nexus/content/repositories/orgwso2ds-374/
>>>
>>> The tag to be voted upon:
>>> https://github.com/wso2/product-ds/tree/v2.0.0-RC2
>>>
>>>
>>> [+] Stable - go ahead and release
>>> [-]  Broken - do not release (explain why)
>>>
>>> Thanks and Regards,
>>> ~ WSO2 DS Team ~
>>>
>>> --
>>> Tanya Madurapperuma
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94718184439
>>> Blog : http://tanyamadurapperuma.blogspot.com
>>>
>>>
>>>
>>> --
>>> Tanya Madurapperuma
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94718184439
>>> Blog : http://tanyamadurapperuma.blogspot.com
>>>
>>
>>
>>
>> --
>> Regards,
>> UdaraR
>>
>
>
>
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906
> nipu...@wso2.com
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dashboard Server 2.0.0 RC2

2016-02-25 Thread Tanya Madurapperuma
Hi,

I have tested features related to anonymous view of dashboard and gadget
maximization in different modes.
Also did a smoke test on Samsung.

[+] Stable - Go ahead and release

Thanks,
Tanya


On Thu, Feb 25, 2016 at 4:54 PM, Lasantha Samarakoon <lasant...@wso2.com>
wrote:

> HI,
>
> I have tested the following scenarios.
>
>- Supporting multiple dashboard pages within the dashboard app.
>- Tested with Nokia Lumia
>
>
> [+] Stable - Go ahead and release
>
>
> Thanks,
>
> *Lasantha Samarakoon* | Software Engineer
> WSO2, Inc.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 (71) 214 1576
> Email:  lasant...@wso2.com
> Web:www.wso2.com
>
> lean . enterprise . middleware
>
> On Wed, Feb 24, 2016 at 10:01 PM, Tanya Madurapperuma <ta...@wso2.com>
> wrote:
>
>> Hi Devs,
>>
>> This is the RC2 release candidate of WSO2 Dashboard Server 2.0.0
>>
>> Please download DS 2.0.0 RC2 and test the functionality and vote. Vote
>> will be open for 72 hours or as needed.
>>
>> Source & binary distribution files:
>> https://github.com/wso2/product-ds/releases/tag/v2.0.0-RC2
>>
>> Maven staging repo:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2ds-374/
>>
>> The tag to be voted upon:
>> https://github.com/wso2/product-ds/tree/v2.0.0-RC2
>>
>>
>> [+] Stable - go ahead and release
>> [-]  Broken - do not release (explain why)
>>
>> Thanks and Regards,
>> ~ WSO2 DS Team ~
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Dashboard Server 2.0.0 RC2

2016-02-24 Thread Tanya Madurapperuma
Hi Devs,

This is the RC2 release candidate of WSO2 Dashboard Server 2.0.0

Please download DS 2.0.0 RC2 and test the functionality and vote. Vote will
be open for 72 hours or as needed.

Source & binary distribution files:
https://github.com/wso2/product-ds/releases/tag/v2.0.0-RC2

Maven staging repo:
http://maven.wso2.org/nexus/content/repositories/orgwso2ds-374/

The tag to be voted upon:
https://github.com/wso2/product-ds/tree/v2.0.0-RC2


[+] Stable - go ahead and release
[-]  Broken - do not release (explain why)

Thanks and Regards,
~ WSO2 DS Team ~

-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Dashboard Server 2.0.0 RC1

2016-02-22 Thread Tanya Madurapperuma
Hi,

I tested the following features releated to "Anonymous View of Dashboard"


   - Verify an anonymous view can be created by editors
   - Verify correct pages are displayed when toggle between the anonymous
   and default views
   - Verify correct pages are displayed when view the anonymous and default
   views
   - Verify anonymous views cannot be created when personalizing a dashboard
   - Verify an anonymous view can be viewed by outsiders
   - Verify an anonymous view can be viewed by a tenant user with edit
   permission
   - Verify an anonymous view can be viewed by a tenant user with view
   permission
   - Verify the anon view of a dashboard is not displayed to a user with
   view permissions
   - Verify the user is asked to make the landing page anon when trying to
   make another page anon
   - Verify the correct landing page is identified when trying to make a
   page within a dashboard anon
   - Verify other pages within a dashboard can be made anon when the
   landing is made anon
   - Verify only pages that are made anon is displayed to viewers when
   there are multiple pages
   - Verify a message is displayed when removing anon view from landing
   page when there are other anon pages
   - Verify anon pages which are removed from anon mode are no longer
   displayed to the users
   - Verify an anon dashboard is not displayed to the users when it is
   removed

Hence,
[+] Stable go ahead and release.

Thanks,
Tanya

On Mon, Feb 22, 2016 at 1:07 PM, Sinthuja Ragendran <sinth...@wso2.com>
wrote:

> Hi,
>
> I have tested below.
>
>
>- Verify user is directed to the dashboard creation page when there
>are no dashboards (super tenant, tenant)
>- Verify user is directed to the dashboard when there are is exactly
>one dashboard (super tenant, tenant)
>- Verify user is directed to the dashboard list page when there are
>more than one dashboard
>- Verify the dashboard name is not case sensitive
>- Verify the length of the dashboard name is validated
>- Verify special characters cannot be included in the dashboard name
>- Verify numerical characters can be included in the dashboard name
>- Verify the length of the dashboard description is validated
>- Test with mobile devices - ipad, iphone, samsung with browsers
>chrome, firefox, safari
>- Tested in Windows - create dashboard, add gadgets, anonymous mode,
>banner, add pages, blocks
>- Tested in Mac - create dashboard, add gadgets, anonymous mode,
>banner, add pages, blocks
>- Tested in Mac with chrome and safari
>
> [+] Stable go ahead and release.
>
> Thanks,
> Sinthuja.
>
>
> On Sat, Feb 20, 2016 at 6:21 PM, Tanya Madurapperuma <ta...@wso2.com>
> wrote:
>
>> Hi Devs,
>>
>> This is the RC release candidate of WSO2 Dashboard Server 2.0.0
>>
>> Please download DS 2.0.0 RC1 and test the functionality and vote. Vote
>> will be open for 72 hours or as needed.
>>
>> Source & binary distribution files:
>> https://github.com/wso2/product-ds/releases/tag/v2.0.0-RC1
>>
>> Maven staging repo:
>> http://maven.wso2.org/nexus/content/repositories/orgwso2ds-358/
>>
>> The tag to be voted upon:
>> https://github.com/wso2/product-ds/tree/v2.0.0-RC1
>>
>>
>> [+] Stable - go ahead and release
>> [-]  Broken - do not release (explain why)
>>
>> Thanks and Regards,
>> ~ WSO2 DS Team ~
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> *Sinthuja Rajendran*
> Associate Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Dashboard Server 2.0.0 RC1

2016-02-20 Thread Tanya Madurapperuma
Hi Devs,

This is the RC release candidate of WSO2 Dashboard Server 2.0.0

Please download DS 2.0.0 RC1 and test the functionality and vote. Vote will
be open for 72 hours or as needed.

Source & binary distribution files:
https://github.com/wso2/product-ds/releases/tag/v2.0.0-RC1

Maven staging repo:
http://maven.wso2.org/nexus/content/repositories/orgwso2ds-358/

The tag to be voted upon:
https://github.com/wso2/product-ds/tree/v2.0.0-RC1


[+] Stable - go ahead and release
[-]  Broken - do not release (explain why)

Thanks and Regards,
~ WSO2 DS Team ~

-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error wile building carbon-feature-repository (branch: release-4.2.x)

2016-01-31 Thread Tanya Madurapperuma
On Mon, Feb 1, 2016 at 10:10 AM, Ruwan Abeykoon <ruw...@wso2.com> wrote:

> Hi Tanya,
> AppM v1.1.0 supposed to use carbon kernel 4.4.x, not 4.2.0, as it is just
> carbon 4.4.x port of the v1.0.0 without any functionality changes.
> Please let me know how you came up with this information,
>

Found out from the root pom of the product repo [1] carbon.kernel.version.
[1] https://github.com/wso2/product-app-manager/blob/release-1.1.0/pom.xml

Thanks,
Tanya

>>APPM 1.1.0 --> carbon kernel version 4.2.0 --> Jaggery version 0.10.1
>
> Cheers,
> Ruwan
>
> Cheers,
> Ruwan
>
> On Sun, Jan 31, 2016 at 9:15 PM, Tanya Madurapperuma <ta...@wso2.com>
> wrote:
>
>> Hi Dinusha / Lahiru,
>>
>> When I checked the APPM releases found out the following according to the
>> git.
>>
>> APPM 1.1.0 --> carbon kernel version 4.2.0 --> Jaggery version 0.10.1
>> APPM 2.0.0 --> carbon kernel version 4.4.1 --> Jaggery version 0.10.1
>>
>> There seems to be a mismatch here. Because jaggery 0.10.1 version is
>> released with carbon 4.4.0 but not with 4.2.x
>> So there can be compatibility issues in APPM 1.1.0.
>>
>> I tried adding 0.10.1 version of jaggery in 4.2.x and when I was trying
>> to install features pointing to the local p2-repo it threw a version
>> mismatch issue in org.apache.commons.logging [1]
>>
>> Appreciate your insight. Do you require jaggery 0.10.1 to be included in
>> 4.4.x p2-repo?
>>
>> [1] Cannot complete the install because one or more required items could
>> not be found. Software being installed: Jaggery Server Feature 0.10.1
>> (org.jaggeryjs.server.feature.group 0.10.1) Missing requirement:
>> org.jaggeryjs.hostobjects.feed 0.10.1 (org.jaggeryjs.hostobjects.feed
>> 0.10.1) requires 'package org.apache.commons.logging [1.2.0,2.0.0)' but it
>> could not be found Cannot satisfy dependency: From: Jaggery Server Feature
>> 0.10.1 (org.jaggeryjs.server.feature.group 0.10.1) To:
>> org.jaggeryjs.hostobjects.feed [0.10.1]
>>
>> Thanks,
>> Tanya
>>
>> On Fri, Jan 29, 2016 at 10:52 AM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Tanya,
>>>
>>> I have update the repo. Please find the 4.2.x branch for
>>> carbon-feature-repository here [1].
>>>
>>> [1] - https://github.com/wso2/carbon-feature-repository/tree/4.2.x
>>>
>>> Regards,
>>> Nira
>>>
>>> On Fri, Jan 29, 2016 at 10:17 AM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
>>>> Hi Tanya,
>>>>
>>>> Sorry for the delay. Will reply in this thread once the branch is ready.
>>>>
>>>> Regards,
>>>> Nira
>>>>
>>>> On Fri, Jan 29, 2016 at 10:05 AM, Tanya Madurapperuma <ta...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Carbon team,
>>>>>
>>>>> If there are no objections, could you please create the above branch.
>>>>>
>>>>> Thanks,
>>>>> Tanya
>>>>>
>>>>>
>>>>> On Tue, Jan 26, 2016 at 4:53 PM, KasunG Gajasinghe <kas...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Jan 26, 2016 at 2:37 PM, Niranjan Karunanandham <
>>>>>> niran...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Tanya,
>>>>>>>
>>>>>>> There was only a p2-repo release in the GIthub and there exists a
>>>>>>> branch called release-4.2.x[1]. This is the release branch and this was
>>>>>>> done by AmilaD for APIM. IMO if we are to do a new p2-repo release for
>>>>>>> kernel 4.2.0, then we need to rename this branch to 4.2.x and change the
>>>>>>> version to 4.2.14-SNAPSHOT and new PRs for 4.2.x p2-repo need to be 
>>>>>>> sent to
>>>>>>> this branch.
>>>>>>>
>>>>>>>
>>>>>> +1
>>>>>>
>>>>>>
>>>>>>> @Sameera / Kicha: WDYT?
>>>>>>>
>>>>>>> [1] -
>>>>>>> https://github.com/wso2/carbon-feature-repository/tree/release-4.2.x
>>>>>>>
>>>>>>> Regards,
>>>>>>> Nira
>>>>>>>
>>>>>>> On Tue, Jan 26, 2016 at 2:15 PM, Tanya Madurapperuma <ta...@w

Re: [Dev] Error wile building carbon-feature-repository (branch: release-4.2.x)

2016-01-31 Thread Tanya Madurapperuma
Hi Dinusha / Lahiru,

When I checked the APPM releases found out the following according to the
git.

APPM 1.1.0 --> carbon kernel version 4.2.0 --> Jaggery version 0.10.1
APPM 2.0.0 --> carbon kernel version 4.4.1 --> Jaggery version 0.10.1

There seems to be a mismatch here. Because jaggery 0.10.1 version is
released with carbon 4.4.0 but not with 4.2.x
So there can be compatibility issues in APPM 1.1.0.

I tried adding 0.10.1 version of jaggery in 4.2.x and when I was trying to
install features pointing to the local p2-repo it threw a version mismatch
issue in org.apache.commons.logging [1]

Appreciate your insight. Do you require jaggery 0.10.1 to be included in
4.4.x p2-repo?

[1] Cannot complete the install because one or more required items could
not be found. Software being installed: Jaggery Server Feature 0.10.1
(org.jaggeryjs.server.feature.group 0.10.1) Missing requirement:
org.jaggeryjs.hostobjects.feed 0.10.1 (org.jaggeryjs.hostobjects.feed
0.10.1) requires 'package org.apache.commons.logging [1.2.0,2.0.0)' but it
could not be found Cannot satisfy dependency: From: Jaggery Server Feature
0.10.1 (org.jaggeryjs.server.feature.group 0.10.1) To:
org.jaggeryjs.hostobjects.feed [0.10.1]

Thanks,
Tanya

On Fri, Jan 29, 2016 at 10:52 AM, Niranjan Karunanandham <niran...@wso2.com>
wrote:

> Hi Tanya,
>
> I have update the repo. Please find the 4.2.x branch for
> carbon-feature-repository here [1].
>
> [1] - https://github.com/wso2/carbon-feature-repository/tree/4.2.x
>
> Regards,
> Nira
>
> On Fri, Jan 29, 2016 at 10:17 AM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Tanya,
>>
>> Sorry for the delay. Will reply in this thread once the branch is ready.
>>
>> Regards,
>> Nira
>>
>> On Fri, Jan 29, 2016 at 10:05 AM, Tanya Madurapperuma <ta...@wso2.com>
>> wrote:
>>
>>> Hi Carbon team,
>>>
>>> If there are no objections, could you please create the above branch.
>>>
>>> Thanks,
>>> Tanya
>>>
>>>
>>> On Tue, Jan 26, 2016 at 4:53 PM, KasunG Gajasinghe <kas...@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Tue, Jan 26, 2016 at 2:37 PM, Niranjan Karunanandham <
>>>> niran...@wso2.com> wrote:
>>>>
>>>>> Hi Tanya,
>>>>>
>>>>> There was only a p2-repo release in the GIthub and there exists a
>>>>> branch called release-4.2.x[1]. This is the release branch and this was
>>>>> done by AmilaD for APIM. IMO if we are to do a new p2-repo release for
>>>>> kernel 4.2.0, then we need to rename this branch to 4.2.x and change the
>>>>> version to 4.2.14-SNAPSHOT and new PRs for 4.2.x p2-repo need to be sent 
>>>>> to
>>>>> this branch.
>>>>>
>>>>>
>>>> +1
>>>>
>>>>
>>>>> @Sameera / Kicha: WDYT?
>>>>>
>>>>> [1] -
>>>>> https://github.com/wso2/carbon-feature-repository/tree/release-4.2.x
>>>>>
>>>>> Regards,
>>>>> Nira
>>>>>
>>>>> On Tue, Jan 26, 2016 at 2:15 PM, Tanya Madurapperuma <ta...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Sameera,
>>>>>>
>>>>>> As per the offline chat I had with Niranjan and Nipuni, in order to
>>>>>> fulfil the above request from the app manager team, we need to have  a
>>>>>> development on-going branch for 4.2.x to send the PR with the missing
>>>>>> features.
>>>>>> But we couldn't locate such branch but the released branch
>>>>>> (release-4.2.x) which has the version as 4.2.13
>>>>>>
>>>>>> Where should we send the PR to? Could you please advise.
>>>>>>
>>>>>> Thanks,
>>>>>> Tanya
>>>>>>
>>>>>> On Mon, Jan 25, 2016 at 11:26 AM, Sinthuja Ragendran <
>>>>>> sinth...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Tanya,
>>>>>>>
>>>>>>> Please check on this.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Sinthuja.
>>>>>>>
>>>>>>> On Mon, Jan 18, 2016 at 5:09 PM, Lahiru Cooray <lahi...@wso2.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> adding Manu and Sinthuja
>>>>>>>>
>>>>>>>

Re: [Dev] Error wile building carbon-feature-repository (branch: release-4.2.x)

2016-01-28 Thread Tanya Madurapperuma
Hi Carbon team,

If there are no objections, could you please create the above branch.

Thanks,
Tanya


On Tue, Jan 26, 2016 at 4:53 PM, KasunG Gajasinghe <kas...@wso2.com> wrote:

>
>
> On Tue, Jan 26, 2016 at 2:37 PM, Niranjan Karunanandham <niran...@wso2.com
> > wrote:
>
>> Hi Tanya,
>>
>> There was only a p2-repo release in the GIthub and there exists a branch
>> called release-4.2.x[1]. This is the release branch and this was done by
>> AmilaD for APIM. IMO if we are to do a new p2-repo release for kernel
>> 4.2.0, then we need to rename this branch to 4.2.x and change the version
>> to 4.2.14-SNAPSHOT and new PRs for 4.2.x p2-repo need to be sent to this
>> branch.
>>
>>
> +1
>
>
>> @Sameera / Kicha: WDYT?
>>
>> [1] -
>> https://github.com/wso2/carbon-feature-repository/tree/release-4.2.x
>>
>> Regards,
>> Nira
>>
>> On Tue, Jan 26, 2016 at 2:15 PM, Tanya Madurapperuma <ta...@wso2.com>
>> wrote:
>>
>>> Hi Sameera,
>>>
>>> As per the offline chat I had with Niranjan and Nipuni, in order to
>>> fulfil the above request from the app manager team, we need to have  a
>>> development on-going branch for 4.2.x to send the PR with the missing
>>> features.
>>> But we couldn't locate such branch but the released branch
>>> (release-4.2.x) which has the version as 4.2.13
>>>
>>> Where should we send the PR to? Could you please advise.
>>>
>>> Thanks,
>>> Tanya
>>>
>>> On Mon, Jan 25, 2016 at 11:26 AM, Sinthuja Ragendran <sinth...@wso2.com>
>>> wrote:
>>>
>>>> Hi Tanya,
>>>>
>>>> Please check on this.
>>>>
>>>> Thanks,
>>>> Sinthuja.
>>>>
>>>> On Mon, Jan 18, 2016 at 5:09 PM, Lahiru Cooray <lahi...@wso2.com>
>>>> wrote:
>>>>
>>>>> adding Manu and Sinthuja
>>>>>
>>>>> On Mon, Jan 18, 2016 at 5:07 PM, Lahiru Cooray <lahi...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Dakshika,
>>>>>> Currently we are using Jaggery Server Feature 0.10.1 and this
>>>>>> particular dependency is not included in released P2 repo.
>>>>>> (https://github.com/wso2/carbon-feature-repository > release-4.2.x
>>>>>> branch)
>>>>>>
>>>>>> Could you please update the repo with relevant dependencies so we can
>>>>>> proceed further.
>>>>>>
>>>>>> Thank you.
>>>>>>
>>>>>>
>>>>>> On Sat, Jan 9, 2016 at 4:02 PM, Lahiru Cooray <lahi...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Chamila,
>>>>>>> Thank you. Now its working.
>>>>>>>
>>>>>>> On Fri, Jan 8, 2016 at 6:09 PM, Chamila Adhikarinayake <
>>>>>>> chami...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi Lahiru,
>>>>>>>> Released the missing repos. You can try building it now.
>>>>>>>>
>>>>>>>> Chamila
>>>>>>>>
>>>>>>>> On Wed, Jan 6, 2016 at 12:32 PM, Lahiru Cooray <lahi...@wso2.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi APIM team,
>>>>>>>>> Could you please update the repo with missing versions.
>>>>>>>>>
>>>>>>>>> Thank you..
>>>>>>>>>
>>>>>>>>> On Tue, Jan 5, 2016 at 7:06 PM, Lahiru Cooray <lahi...@wso2.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> I get the below error while building the
>>>>>>>>>> carbon-feature-repository (
>>>>>>>>>> https://github.com/wso2/carbon-feature-repository >
>>>>>>>>>> release-4.2.x branch)
>>>>>>>>>>
>>>>>>>>>> And the required version 
>>>>>>>>>> (org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1)
>>>>>>>>>> is not available in

Re: [Dev] Error wile building carbon-feature-repository (branch: release-4.2.x)

2016-01-26 Thread Tanya Madurapperuma
>>>>
>>>>>>> from the specified remote repositories:
>>>>>>>
>>>>>>>   wso2.releases (
>>>>>>> http://maven.wso2.org/nexus/content/repositories/releases/,
>>>>>>> releases=true, snapshots=true),
>>>>>>>
>>>>>>>   wso2.snapshots (
>>>>>>> http://maven.wso2.org/nexus/content/repositories/snapshots/,
>>>>>>> releases=false, snapshots=true),
>>>>>>>
>>>>>>>   wso2-nexus (
>>>>>>> http://maven.wso2.org/nexus/content/groups/wso2-public/,
>>>>>>> releases=true, snapshots=true),
>>>>>>>
>>>>>>>   central (http://repo.maven.apache.org/maven2, releases=true,
>>>>>>> snapshots=false)
>>>>>>>
>>>>>>>
>>>>>>> at
>>>>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219)
>>>>>>>
>>>>>>> at
>>>>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157)
>>>>>>>
>>>>>>> at
>>>>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525)
>>>>>>>
>>>>>>> at
>>>>>>> org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:39)
>>>>>>>
>>>>>>> ... 24 more
>>>>>>>
>>>>>>> Caused by:
>>>>>>> org.sonatype.aether.resolution.ArtifactResolutionException: Failure to 
>>>>>>> find
>>>>>>> org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1
>>>>>>> in http://maven.wso2.org/nexus/content/repositories/releases/ was
>>>>>>> cached in the local repository, resolution will not be reattempted until
>>>>>>> the update interval of wso2.releases has elapsed or updates are forced
>>>>>>>
>>>>>>> at
>>>>>>> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
>>>>>>>
>>>>>>> at
>>>>>>> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
>>>>>>>
>>>>>>> at
>>>>>>> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
>>>>>>>
>>>>>>> at
>>>>>>> org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
>>>>>>>
>>>>>>> at
>>>>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:213)
>>>>>>>
>>>>>>> ... 27 more
>>>>>>>
>>>>>>> Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException:
>>>>>>> Failure to find 
>>>>>>> org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1
>>>>>>> in http://maven.wso2.org/nexus/content/repositories/releases/ was
>>>>>>> cached in the local repository, resolution will not be reattempted until
>>>>>>> the update interval of wso2.releases has elapsed or updates are forced
>>>>>>>
>>>>>>> at
>>>>>>> org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
>>>>>>>
>>>>>>> at
>>>>>>> org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
>>>>>>>
>>>>>>> at
>>>>>>> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
>>>>>>>
>>>>>>> ... 31 more
>>>>>>>
>>>>>>> [INFO]
>>>>>>> 
>>>>>>>
>>>>>>> [INFO] BUILD FAILURE
>>>>>>>
>>>>>>> [INFO]
>>>>>>> 
>>>>>>>
>>>>>>> [INFO] Total time: 2.431s
>>>>>>>
>>>>>>> [INFO] Finished at: Tue Jan 05 18:41:24 IST 2016
>>>>>>>
>>>>>>> [INFO] Final Memory: 11M/491M
>>>>>>>
>>>>>>> [INFO]
>>>>>>> 
>>>>>>>
>>>>>>> [ERROR] Failed to execute goal
>>>>>>> org.wso2.maven:carbon-p2-plugin:1.5.3:p2-repo-gen 
>>>>>>> (2-p2-repo-generation) on
>>>>>>> project wso2carbon-feature-repository: Error occured when processing the
>>>>>>> Feature Artifact: 
>>>>>>> org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:1.9.1:
>>>>>>> ERROR: Failure to find 
>>>>>>> org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1
>>>>>>> in http://maven.wso2.org/nexus/content/repositories/releases/ was
>>>>>>> cached in the local repository, resolution will not be reattempted until
>>>>>>> the update interval of wso2.releases has elapsed or updates are forced
>>>>>>>
>>>>>>> [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.am
>>>>>>> -DartifactId=org.wso2.apimgt.gateway-manager.nested.category.feature
>>>>>>> -Dversion=1.9.1 -Dpackaging=zip -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.am
>>>>>>> -DartifactId=org.wso2.apimgt.gateway-manager.nested.category.feature
>>>>>>> -Dversion=1.9.1 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url]
>>>>>>> -DrepositoryId=[id]
>>>>>>>
>>>>>>> [ERROR]
>>>>>>>
>>>>>>> [ERROR]
>>>>>>>
>>>>>>> [ERROR] org.wso2.am:
>>>>>>> org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1
>>>>>>>
>>>>>>> [ERROR]
>>>>>>>
>>>>>>> [ERROR] from the specified remote repositories:
>>>>>>>
>>>>>>> [ERROR] wso2.releases (
>>>>>>> http://maven.wso2.org/nexus/content/repositories/releases/,
>>>>>>> releases=true, snapshots=true),
>>>>>>>
>>>>>>> [ERROR] wso2.snapshots (
>>>>>>> http://maven.wso2.org/nexus/content/repositories/snapshots/,
>>>>>>> releases=false, snapshots=true),
>>>>>>>
>>>>>>> [ERROR] wso2-nexus (
>>>>>>> http://maven.wso2.org/nexus/content/groups/wso2-public/,
>>>>>>> releases=true, snapshots=true),
>>>>>>>
>>>>>>> [ERROR] central (http://repo.maven.apache.org/maven2,
>>>>>>> releases=true, snapshots=false)
>>>>>>>
>>>>>>> [ERROR] -> [Help 1]
>>>>>>>
>>>>>>> [ERROR]
>>>>>>>
>>>>>>> [ERROR] To see the full stack trace of the errors, re-run Maven with
>>>>>>> the -e switch.
>>>>>>>
>>>>>>> [ERROR] Re-run Maven using the -X switch to enable full debug
>>>>>>> logging.
>>>>>>>
>>>>>>> [ERROR]
>>>>>>>
>>>>>>> [ERROR] For more information about the errors and possible
>>>>>>> solutions, please read the following articles:
>>>>>>>
>>>>>>> [ERROR] [Help 1]
>>>>>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>>>>>>>
>>>>>>> --
>>>>>>> *Lahiru Cooray*
>>>>>>> Software Engineer
>>>>>>> WSO2, Inc.;http://wso2.com/
>>>>>>> lean.enterprise.middleware
>>>>>>>
>>>>>>> Mobile: +94 715 654154
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Lahiru Cooray*
>>>>>> Software Engineer
>>>>>> WSO2, Inc.;http://wso2.com/
>>>>>> lean.enterprise.middleware
>>>>>>
>>>>>> Mobile: +94 715 654154
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Regards,
>>>>> Chamila Adhikarinayake
>>>>> Software Engineer
>>>>> WSO2, Inc.
>>>>> Mobile - +94712346437
>>>>> Email  - chami...@wso2.com
>>>>> Blog  -  http://helpfromadhi.blogspot.com/
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Lahiru Cooray*
>>>> Software Engineer
>>>> WSO2, Inc.;http://wso2.com/
>>>> lean.enterprise.middleware
>>>>
>>>> Mobile: +94 715 654154
>>>>
>>>
>>>
>>>
>>> --
>>> *Lahiru Cooray*
>>> Software Engineer
>>> WSO2, Inc.;http://wso2.com/
>>> lean.enterprise.middleware
>>>
>>> Mobile: +94 715 654154
>>>
>>
>>
>>
>> --
>> *Lahiru Cooray*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> lean.enterprise.middleware
>>
>> Mobile: +94 715 654154
>>
>
>
>
> --
> *Sinthuja Rajendran*
> Associate Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is it possible to ship any jar files needed by Jaggery apps with the app?

2015-10-05 Thread Tanya Madurapperuma
Yes, you can place them at WEB-INF/lib

Thanks,
Tanya

On Mon, Oct 5, 2015 at 10:51 AM, Amila Maha Arachchi <ami...@wso2.com>
wrote:

> Hi all,
>
> $Subject? There is a jaggery app which invokes some java code which is in
> a jar. So, without copying the jar to the application server's dropins or
> lib folder, is there a way to ship it with the app?
>
> Regards,
> Amila.
>
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [UES] Connecting a database to dashboard

2015-08-26 Thread Tanya Madurapperuma
On Wed, Aug 26, 2015 at 12:25 PM, Chanuka Dissanayake chan...@wso2.com
wrote:

 Hi,

 We are going to implement new gadgets(charts) in UES, for that data has to
 be retrieved by joining mysql database tables (at the moments which is
 relying on streams). I would like to know if there's a way of directly
 querying a database in order to get the required data for the gadgets.


What do you mean by directly querying a database? Do you want to poll the
data from the database into the gadget or just one time retrieval?
Please have a look at [1] and [2]. Might be useful.

[1] http://jaggeryjs.org/documentation.jag?api=rdb
[2] https://docs.wso2.com/display/UES100/Creating+WebSocket+Enabled+Gadgets

Thanks,
Tanya


 Thanks  Regards,
 Chanuka.

 --
 Chanuka Dissanayake
 *Software Engineer | **WSO2 Inc.*; http://wso2.com

 Mobile: +94 71 33 63 596
 Email: chan...@wso2.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ML] jQuery conflict in Wrangler Integration

2015-08-24 Thread Tanya Madurapperuma
Ideally $.noConflict(); should resolve the issue. [1]

[1] https://api.jquery.com/jquery.noconflict/

On Mon, Aug 24, 2015 at 2:43 PM, Nirmal Fernando nir...@wso2.com wrote:

 Manu / Tanya,

 Any thoughts?

 On Sun, Aug 23, 2015 at 7:19 PM, Danula Eranjith hmdanu...@gmail.com
 wrote:

 Hi,

 Tried using jQuery Migrate, but it doesn't solve the issue.

 Regards,
 Danula

 On Sun, Aug 23, 2015 at 1:01 PM, CD Athuraliya chathur...@wso2.com
 wrote:

 Hi Danula,

 Can you try using jQuery Migrate [1] plugin? Please make sure you place
 them in correct order.

 [1] http://blog.jquery.com/2013/05/08/jquery-migrate-1-2-1-released/

 Regards,
 CD

 On Sun, Aug 23, 2015 at 11:59 AM, Nirmal Fernando nir...@wso2.com
 wrote:

 @CD any thoughts?

 On Sun, Aug 23, 2015 at 10:34 AM, Danula Eranjith hmdanu...@gmail.com
 wrote:

 Hi,

 I am trying to integrate a data cleaning tool into ML and I have two
 jQuery versions as ML uses 1.11 and wrangler uses 1.4

 jquery-1.4.2.min.js
 jquery-1.11.1.min.js

 I have tried using .noConflict() method but could not resolve the
 issue.
 Any suggestions on how to implement this?

 Regards,
 Danula







 --

 Thanks  regards,
 Nirmal

 Team Lead - WSO2 Machine Learner
 Associate Technical Lead - Data Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





 --
 *CD Athuraliya*
 Software Engineer
 WSO2, Inc.
 lean . enterprise . middleware
 Mobile: +94 716288847 94716288847
 LinkedIn http://lk.linkedin.com/in/cdathuraliya | Twitter
 https://twitter.com/cdathuraliya | Blog
 http://cdathuraliya.tumblr.com/





 --

 Thanks  regards,
 Nirmal

 Team Lead - WSO2 Machine Learner
 Associate Technical Lead - Data Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/





-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Renaming store top-assets into recent-assets

2015-08-07 Thread Tanya Madurapperuma
On Fri, Aug 7, 2015 at 1:24 PM, Udara Rathnayake uda...@wso2.com wrote:

 Hi Tanya,

 I think we can do a simple URL mapping or refactor across the store app.
 Taking second approach seems cleaner but we might need to spend some time
 on testing/updating doc contents etc..


Yes. That was my concern. We being so close to the release refactoring the
entire app might cause undesired issues.
If its only for the landing page +1 from me.

 BTW I'm taking about the current top-assets landing page only.

 Regards,
 UdaraR

 On Fri, Aug 7, 2015 at 1:18 PM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Udara, are we planning this refactoring across the product or is it only
 in the UI level?

 Thanks,
 Tanya

 On Fri, Aug 7, 2015 at 1:11 PM, Udara Rathnayake uda...@wso2.com wrote:

 Adding further info:

 In ES1 we had this top-assets concept where we display banners related
 to assets with X-star rating. But with the latest theme revamp we removed
 this part and now only have recent-assets in this page.

 On Fri, Aug 7, 2015 at 1:02 PM, Udara Rathnayake uda...@wso2.com
 wrote:

 Hi All,

 IMO using the term top-assets is wrong as we list recently added
 assets(cross type) there. So need to incorporate the $Subject.
 Let us know if you have any concerns?

 Regards,
 UdaraR





 --
 Tanya Madurapperuma

 Senior Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com





-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Renaming store top-assets into recent-assets

2015-08-07 Thread Tanya Madurapperuma
Udara, are we planning this refactoring across the product or is it only in
the UI level?

Thanks,
Tanya

On Fri, Aug 7, 2015 at 1:11 PM, Udara Rathnayake uda...@wso2.com wrote:

 Adding further info:

 In ES1 we had this top-assets concept where we display banners related to
 assets with X-star rating. But with the latest theme revamp we removed this
 part and now only have recent-assets in this page.

 On Fri, Aug 7, 2015 at 1:02 PM, Udara Rathnayake uda...@wso2.com wrote:

 Hi All,

 IMO using the term top-assets is wrong as we list recently added
 assets(cross type) there. So need to incorporate the $Subject.
 Let us know if you have any concerns?

 Regards,
 UdaraR





-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] ScriptEngine Error after updating jaggery to 0.10.0

2015-07-28 Thread Tanya Madurapperuma
(ApplicationFilterChain.java:303)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
 at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at
 org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.lang.Thread.run(Thread.java:745)


 Anyone faced same kind of issue before? Any Idea on resolving this issue?

 Thanks in advance for your responses
 Madusanka

 --
 *Madusanka Premaratne* | Associate Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 835 70 73| Work: +94 112 145 345
 Email: madusan...@wso2.com | Web: www.wso2.com

 [image: Facebook] https://www.facebook.com/maduzanka [image: Twitter]
 https://twitter.com/rmmpremaratne [image: Google Plus]
 https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub [image:
 Linkedin] http://lk.linkedin.com/in/madusanka/ [image: Instagram]
 http://instagram.com/madusankapremaratne [image: Skype]
 http://@rmmpremaratne


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can't login as tenant in publisher

2015-07-18 Thread Tanya Madurapperuma
)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
 at
 org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at
 org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.lang.Thread.run(Thread.java:724)

 Shazni Nazeer
 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005






-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Registry search doesn't return the expected results with combinations of space and *

2015-07-16 Thread Tanya Madurapperuma
Reopened [1]

[1] https://wso2.org/jira/browse/REGISTRY-2596

Thanks,
Tanya

On Thu, Jul 16, 2015 at 12:01 PM, Tanya Madurapperuma ta...@wso2.com
wrote:

 Hi Greg team,

 In the management console if we perform an advanced search (Advance
 Filter) with * and space in the search text, it doesn't return the expected
 results.

 Please see the following observations.

 *pie chart*   - returns nothing
 *pie chart- returns nothing
 pie chart*- returns nothing
 *pie - returns nothing
 *pie cha* - returns nothing
 pie cha*  - returns nothing

 *ie* - works
 *pie* - works

 Appreciate if you could fix this since we need this feature for the ES
 release.

 Thanks,
 Tanya

 --
 Tanya Madurapperuma

 Senior Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com




-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Registry search doesn't return the expected results with combinations of space and *

2015-07-16 Thread Tanya Madurapperuma
Hi Greg team,

In the management console if we perform an advanced search (Advance Filter)
with * and space in the search text, it doesn't return the expected results.

Please see the following observations.

*pie chart*   - returns nothing
*pie chart- returns nothing
pie chart*- returns nothing
*pie - returns nothing
*pie cha* - returns nothing
pie cha*  - returns nothing

*ie* - works
*pie* - works

Appreciate if you could fix this since we need this feature for the ES
release.

Thanks,
Tanya

-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Please review merge the PR

2015-06-25 Thread Tanya Madurapperuma
Hi Jerad,

As informed to you offline  with this PR, tile icon doesn't show the pop up
in older versions of chrome (checked in 37.0.2062.94)
When I revert your commit it loads without any issue.
Appreciate if you can have a look.

Thanks,
Tanya

On Thu, Jun 25, 2015 at 8:53 AM, Jerad Rutnam je...@wso2.com wrote:

 Thanks a lot for merging it Udara.

 Cheers!
 Jerad

 On Wed, Jun 24, 2015 at 7:06 PM, Udara Rathnayake uda...@wso2.com wrote:

 PR merged,

 Regards,
 UdaraR

 On Wed, Jun 24, 2015 at 5:47 PM, Jerad Rutnam je...@wso2.com wrote:

 Hi ES Team,

 Please merge this PR [1] which contains some UI fixes,

 - [STORE-783] - Sign in page head text update
 - [STORE-784] - Asset menu close on outside click
 - [STORE-786] - Fixed asset menu cuts when there is no content
 - Renamed font folder to fonts  updated font-wso2 library
 - Asset drop menu style tweak
 - Fix for footer position bottom in store
 - Updated font-wso2 in both Publisher  Store

 [1] - https://github.com/wso2/carbon-store/pull/63

 Thanks,
 Jerad

 On Mon, Jun 22, 2015 at 1:44 PM, Jerad Rutnam je...@wso2.com wrote:

 Hi ES Team,

 Please check and merge the PR [1], which contains,

 - [STORE-786] - Fixed asset menu cuts when there is no content
 https://github.com/jeradrutnam/carbon-store/commit/11934a6ad3956e424959e7badb818529380bac30
 - [STORE-784] - Asset menu close on outside click
 https://github.com/jeradrutnam/carbon-store/commit/b1b06e3e6e3c5d2d47154a4ab7335412c0eff4c4
 - [STORE-783] - Sign in page head text update
 https://github.com/jeradrutnam/carbon-store/commit/07cf4aa3aec9a8ccffc80823541d59f6141ea843

 [1] - *https://github.com/wso2/carbon-store/pull/63
 https://github.com/wso2/carbon-store/pull/63*

 Thanks,
 Jerad

 --
 *Jerad Rutnam*
 *Software Engineer*

 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com




 --
 *Jerad Rutnam*
 *Software Engineer*

 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com





 --
 *Jerad Rutnam*
 *Software Engineer*

 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com




-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2-ES-2.0.0-SNAPSHOT Unable to load Asset Extentions

2015-06-19 Thread Tanya Madurapperuma
 permissions to anonymous role ###
 [2015-06-19 11:35:55,183]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
 -  ### Permission operations have finished ###
 [2015-06-19 11:35:55,190]  INFO {rxt-permissions} -  [permissions]
 finished loading permissions for tenant -1234
 [2015-06-19 11:35:55,194]  INFO
 {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -  Deployed
 webapp:
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[/store].File[/home/charitha/tools/wso2es-2.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/store]
 [2015-06-19 11:35:55,210]  INFO
 {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} -  Deployed
 webapp:
 StandardEngine[Catalina].StandardHost[localhost].StandardContext[/store-admin].File[/home/charitha/tools/wso2es-2.0.0-SNAPSHOT/repository/deployment/server/jaggeryapps/store-admin]
 [2015-06-19 11:35:55,219]  INFO
 {org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector for
 servlet write/read
 [2015-06-19 11:35:55,518]  INFO
 {org.apache.tomcat.util.net.NioSelectorPool} -  Using a shared selector for
 servlet write/read
 [2015-06-19 11:35:55,527]  INFO
 {org.wso2.carbon.registry.eventing.internal.RegistryEventingServiceComponent}
 -  Successfully Initialized Eventing on Registry
 [2015-06-19 11:35:55,542]  INFO
 {org.wso2.carbon.store.notifications.management.ComponentManager} -  Store
 event types successfully registered
 [2015-06-19 11:35:55,542]  INFO
 {org.wso2.carbon.store.notifications.internal.StoreNotificationsComponent}
 -  Store Notification service is activated
 [2015-06-19 11:35:55,583]  INFO
 {org.wso2.carbon.core.init.JMXServerManager} -  JMX Service URL  :
 service:jmx:rmi://localhost:1/jndi/rmi://localhost:/jmxrmi
 [2015-06-19 11:35:55,583]  INFO
 {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Server
   :  WSO2 Enterprise Store-2.0.0-SNAPSHOT
 [2015-06-19 11:35:55,584]  INFO
 {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2
 Carbon started in 19 sec
 [2015-06-19 11:35:55,706]  INFO
 {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt Console URL
  : https://192.168.122.1:9443/carbon/
 [2015-06-19 11:36:01,446]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
 -  Publisher URL : http://192.168.122.1:9763/publisher
 [2015-06-19 11:36:02,194]  INFO {JAGGERY.app-scripts.init-scripts.app:js}
 -  Store URL : http://192.168.122.1:9763/store
 [2015-06-19 11:36:06,095]  WARN {app-core} -  There are no pageHandlers
 defined for tenant undefined
 [2015-06-19 11:36:07,038]  INFO
 {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
 -  Thread pool size for session persistent consumer : 100
 [2015-06-19 11:36:07,046]  INFO
 {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
 -  Session Data Persistence of Authentication framework is not enabled.
 [2015-06-19 11:36:07,046]  INFO
 {org.wso2.carbon.identity.application.authentication.framework.store.SessionDataStore}
 -  Session Data CleanUp Task of Authentication framework is not enabled.

 [1] https://github.com/splinter/es-workshop-1-samples
 [2] https://localhost:9443/publisher/asts/api/apis/documents
 [3] https://localhost:9443/publisher/asts/api/tiers

 --
 *Charitha Goonetilleke*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 77 751 3669 %2B94777513669
 Twitter:@CharithaWs https://twitter.com/CharithaWs, fb: charithag
 https://www.facebook.com/charithag, linkedin: charithag
 http://www.linkedin.com/in/charithag

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2-ES-2.0.0-SNAPSHOT Unable to load Asset Extentions

2015-06-19 Thread Tanya Madurapperuma
You need to have the api.rxt (attached) in the above mentioned folder.
Restart after placing the file.

Thanks,
Tanya

On Fri, Jun 19, 2015 at 12:09 PM, Charitha Goonetilleke charit...@wso2.com
wrote:

 Hi Tanya,

 There is not any RXT specified to be added in the instructions. However I
 have following rxts in the folder. Please let me know if there any specific
 rxt required other than them.

 comment.rxt  endpoint.rxt  proxy.rxtschema.rxtservice.rxt
 site.rxt swagger.rxt  wadl.rxt
 ebook.rxtgadget.rxtpolicy.rxt  restservice.rxt  sequence.rxt
  servicex.rxt  soapservice.rxt  uri.rxt  wsdl.rxt


 On Fri, Jun 19, 2015 at 11:51 AM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Hi Charitha,

 Could you please check whether you have the relavant rxt file in the
 HOME/repository/resources/rxts/ folder?

 Thanks,
 Tanya

 On Fri, Jun 19, 2015 at 11:46 AM, Charitha Goonetilleke 
 charit...@wso2.com wrote:

 Hi Samera,

 I tried to add Asset Extension to ES given in sample[1] scenario 1 on
 fresh ES build. But once I tried to login in to publisher console, ES
 throws the following exception with HTTP status 500.

 [2015-06-19 11:36:13,806] ERROR {rxt.core} -  Unable to locate
 assetResources for tenant: -1234 and type: api
 [2015-06-19 11:36:13,807] ERROR
 {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
  org.mozilla.javascript.JavaScriptException: Unable to locate
 assetResources for tenant: -1234 and type: api
 (rxt/scripts/core/core.js#972)

 Also same exception throwing when I tried to access document api or
 document page via link [2] and [3] respectively.

 This is the server startup log

 [charitha@charithag-wso2 bin]$ sh wso2server.sh
 JAVA_HOME environment variable is set to /usr/java/jdk1.7.0_79
 CARBON_HOME environment variable is set to
 /home/charitha/tools/wso2es-2.0.0-SNAPSHOT
 [2015-06-19 11:35:40,819]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
 Carbon...
 [2015-06-19 11:35:40,820]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
 Linux 4.0.4-303.fc22.x86_64, amd64
 [2015-06-19 11:35:40,820]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home:
 /usr/java/jdk1.7.0_79/jre
 [2015-06-19 11:35:40,820]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version :
 1.7.0_79
 [2015-06-19 11:35:40,820]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM  :
 Java HotSpot(TM) 64-Bit Server VM 24.79-b02,Oracle Corporation
 [2015-06-19 11:35:40,820]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon Home  :
 /home/charitha/tools/wso2es-2.0.0-SNAPSHOT
 [2015-06-19 11:35:40,820]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp Dir:
 /home/charitha/tools/wso2es-2.0.0-SNAPSHOT/tmp
 [2015-06-19 11:35:40,820]  INFO
 {org.wso2.carbon.core.internal.CarbonCoreActivator} -  User :
 charitha, en-US, Asia/Colombo
 [2015-06-19 11:35:40,896]  WARN
 {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} -
  Carbon is configured to use the default keystore (wso2carbon.jks). To
 maximize security when deploying to a production environment, configure a
 new keystore with a unique password in the production server profile.
 [2015-06-19 11:35:40,902]  INFO
 {org.wso2.carbon.databridge.agent.thrift.AgentHolder} -  Agent created !
 [2015-06-19 11:35:40,915]  INFO
 {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} -  Successfully
 deployed Agent Client
 [2015-06-19 11:35:41,232]  INFO {org.wso2.jaggery.scxml.Activator} -
  Activating org.wso2.jaggery.scxml with RealmService enabled
 [2015-06-19 11:35:42,023]  INFO
 {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Configured
 Registry in 37ms
 [2015-06-19 11:35:42,115]  INFO
 {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
  Registry Mode: READ-WRITE
 [2015-06-19 11:35:43,768]  INFO
 {org.wso2.carbon.registry.indexing.solr.SolrClient} -  Default Embedded
 Solr Server Initialized
 [2015-06-19 11:35:43,896]  INFO
 {org.wso2.carbon.social.sql.SocialDBInitilizer} -  Social database already
 exists. Not creating a new database.
 [2015-06-19 11:35:44,008]  INFO
 {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} -  Carbon
 UserStoreMgtDSComponent activated successfully.
 [2015-06-19 11:35:45,977]  INFO
 {org.apache.catalina.startup.TaglibUriRule} -  TLD skipped. URI:
 http://tiles.apache.org/tags-tiles is already defined
 [2015-06-19 11:35:46,448]  INFO
 {org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer}
 -  User Store Configuration Deployer initiated.
 [2015-06-19 11:35:46,448]  INFO
 {org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer}
 -  User Store Configuration Deployer initiated.
 [2015-06-19 11:35:47,002]  INFO
 {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
 service

Re: [Dev] [ES] Refactoring the tags search api in carbon store

2015-06-18 Thread Tanya Madurapperuma
Hi Prasanna,

We have successfully integrated the tags api backend with the front-end
components which has the select2 plugin.

Thanks,
Tanya

On Wed, Jun 17, 2015 at 7:25 PM, Prasanna Dangalla prasa...@wso2.com
wrote:

 Hi Tanya,

 Does this change compliance with select2 plugin ? Because UX team
 integrated select2 plugin into our publisher, to add and list tags.

 Thanks

 On Wed, Jun 17, 2015 at 6:50 PM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Hi,

 We have refactored ES tags api as follows to be consistent with the rest
 of the ES apis.

 *option 1* : returns names of all the tags and their count for the given
 asset type
 *api request template*
 context/apis/tags?type=asset_type

 ex: https://localhost:9443/publisher/apis/tags?type=gadget

 *sample response*
 [{name : charts, count : 13.0}, {name : hbar, count : 1.0},
 {name : visualization, count : 13.0}, {name : mix, count : 1.0}]


 *option 2* : return tags which has the given tag name and belongs to the
 given asset type
 *api request template*
 context/apis/tags?type=asset_typeq=name:tag_name

 ex: https://localhost:9443/publisher/apis/tags?type=gadgetq=
 name:wso2

 *sample response*
 [{name : wso2, count : 5}]

 *options 3 *: returns all the tags
 *api request template*
 context/apis/tags

 Option 3 is not yet implemented and will be a future enhancement.

 We have exposed the api in both the publisher and store.
 Currently changes are pushed to store_771 branch in carbon-store repo and
 will be merging to the master once the 2.2.0 release is done. So the
 aforementioned changes will be available in the 2.3.0 release of the
 carbon-store.

 Thanks,
 Tanya


 --
 Tanya Madurapperuma

 Senior Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com




 --
 Prasanna Dangalla
 Software Engineer, WSO2, Inc.; http://wso2.com/
 lean.enterprise.middleware

 cell: +94 777 55 80 30 | +94 718 11 27 51
 twitter: @prasa77




-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Refactoring asts to assets in carbon-store and product-es

2015-06-18 Thread Tanya Madurapperuma
Hi APIM / Greg teams and all,

As informed offline (to greg and apim teams) we have refactored *asts  *in
carbon store and product-es to *assets *to fix the jira [1].

Since this will break your extensions, we haven't merged the changes to
master, instead have pushed the changes to a branch called *store_769 *in
both repos.

Please refactor your extensions accrodingly and test against the branch
*store_769*.

We will be releasing carbon-store 2.2.0 without these fixes and will be
merging these changes for the 2.3.0 release. Appreciate if you could make
necessary changes at your end for the 2.3.0.

Please reply to this thread if you have faced any issues.

[1] https://wso2.org/jira/browse/STORE-769

Thanks,
Tanya

-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ES] Refactoring the tags search api in carbon store

2015-06-17 Thread Tanya Madurapperuma
Hi,

We have refactored ES tags api as follows to be consistent with the rest of
the ES apis.

*option 1* : returns names of all the tags and their count for the given
asset type
*api request template*
context/apis/tags?type=asset_type

ex: https://localhost:9443/publisher/apis/tags?type=gadget

*sample response*
[{name : charts, count : 13.0}, {name : hbar, count : 1.0},
{name : visualization, count : 13.0}, {name : mix, count : 1.0}]


*option 2* : return tags which has the given tag name and belongs to the
given asset type
*api request template*
context/apis/tags?type=asset_typeq=name:tag_name

ex: https://localhost:9443/publisher/apis/tags?type=gadgetq=name:wso2;

*sample response*
[{name : wso2, count : 5}]

*options 3 *: returns all the tags
*api request template*
context/apis/tags

Option 3 is not yet implemented and will be a future enhancement.

We have exposed the api in both the publisher and store.
Currently changes are pushed to store_771 branch in carbon-store repo and
will be merging to the master once the 2.2.0 release is done. So the
aforementioned changes will be available in the 2.3.0 release of the
carbon-store.

Thanks,
Tanya


-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] No Established session issue at the session timeout

2015-06-14 Thread Tanya Madurapperuma
Hi IS team,

As informed offline we have faced [1] in ES. We understand that once we
move to Identity core 4.5.1, cache expiration period can be configured in
HOME/repository/conf/tomcat/carbon/WEB-INF/web.xml.

Even after the set cache expiration time or a session timeout (already set
the cache expiration time to a higher value than the session timeout), we
face the 405 issue where the logout flow breaks at the identity side (in
the browser with the message *No Established Sessions corresponding to
Session Indexes provided*) providing no clue to the application side.

Hence the following approach was suggested for us to identify the existence
of a valid session.


​
We have following concern with the above suggested approach.
Say we make the call1 and then receive the response 1 as the session still
exists. But between the time that we make the call2, session gets expired.
(since these are network calls and delays may occur.)
So at that point we face the same original problem again.

Isn't the proper approach is to send a logout response from the identity
side with a proper message (no session exists) to the application side
rather than breaking the flow in the middle?

Are there any security vulnerabilities of sending a logout response to a
non existence session? (assuming that a third party who never had a session
at the IDP can still make a logout request)

Appreciate your input.

[1] https://wso2.org/jira/browse/STORE-721

Thanks,
Tanya

-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Reference to a resource bundle in oauth.ui component from application.mgt.ui component

2015-06-10 Thread Tanya Madurapperuma
Hi IS team,

We have faced [1] in ES.
Warning is because in the list-service-providers.jsp at [2] has a reference
to a resource bundle in oauth component which we don't have in ES.

carbon:paginator pageNumber=0
  numberOfPages=1
  page=list-apps.jsp
  pageNumberParameterName=pageNumber
  parameters=10
  resourceBundle=
*org.wso2.carbon.identity.oauth.ui.i18n.Resources*
  prevKey=prev nextKey=next/


This can be fixed if we change the resourceBundle to
*org.wso2.carbon.identity.application.mgt.ui.i18n.Resources
*and add the relevant key value pairs to the i18n file.

*next=Next prev=prev*

IS team please fix accordingly.

[1] https://wso2.org/jira/browse/STORE-706
[2]
application-mgt/org.wso2.carbon.identity.application.mgt.ui/src/main/resources/web/application

Thanks,
Tanya

-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Reference to a resource bundle in oauth.ui component from application.mgt.ui component

2015-06-10 Thread Tanya Madurapperuma
Thanks Prasad !

On Wed, Jun 10, 2015 at 11:57 AM, Prasad Tissera pras...@wso2.com wrote:

 Hi Thanya,

 This is fixed with [1]. Updated the JIRA.

 [1]. https://github.com/wso2/carbon-identity/pull/396

 On Wed, Jun 10, 2015 at 11:56 AM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Hi IS team,

 We have faced [1] in ES.
 Warning is because in the list-service-providers.jsp at [2] has a
 reference to a resource bundle in oauth component which we don't have in ES.

 carbon:paginator pageNumber=0
   numberOfPages=1
   page=list-apps.jsp
   pageNumberParameterName=pageNumber
   parameters=10
   resourceBundle=
 *org.wso2.carbon.identity.oauth.ui.i18n.Resources*
   prevKey=prev nextKey=next/


 This can be fixed if we change the resourceBundle to 
 *org.wso2.carbon.identity.application.mgt.ui.i18n.Resources
 *and add the relevant key value pairs to the i18n file.

 *next=Next prev=prev*

 IS team please fix accordingly.

 [1] https://wso2.org/jira/browse/STORE-706
 [2]
 application-mgt/org.wso2.carbon.identity.application.mgt.ui/src/main/resources/web/application

 Thanks,
 Tanya

 --
 Tanya Madurapperuma

 Senior Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com




 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444




-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Foreign key references from Identity tables to User Manager tables

2015-06-09 Thread Tanya Madurapperuma
Hi IS team,

We have encountered the following issue when running the identity mysql
script before the user manager tables.

ERROR 1005 (HY000): Can't create table 'WSO2CARBON_DB.IDN_ASSOCIATED_ID'
(errno: 150)
ERROR 1005 (HY000): Can't create table
'WSO2CARBON_DB.UM_USER_ACCOUNT_ASSOCIATIONS'
(errno: 150)

This is because there is a foreign key dependency to UM_DOMAIN table in
user manager tables from the above tables.
Therefore both the identity tables and user manager tables should be in a
single database.

With that how can we setup a cluster with the database seperation?

Appreciate your help.

Thanks,
Tanya

-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Foreign key references from Identity tables to User Manager tables

2015-06-09 Thread Tanya Madurapperuma
Thanks Prasad and Thanuja !
Appreciate if you could fix this at the earliest since we need this for the
ES release.

Thanks,
Tanya

On Tue, Jun 9, 2015 at 3:36 PM, Thanuja Jayasinghe than...@wso2.com wrote:

 Hi Tanya,

 We already have a public jira [1] for this.

 [1] - https://wso2.org/jira/browse/IDENTITY-3335

 Thanks,
 Thanuja

 On Tue, Jun 9, 2015 at 3:25 PM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Hi IS team,

 We have encountered the following issue when running the identity mysql
 script before the user manager tables.

 ERROR 1005 (HY000): Can't create table 'WSO2CARBON_DB.IDN_ASSOCIATED_ID'
 (errno: 150)
 ERROR 1005 (HY000): Can't create table 
 'WSO2CARBON_DB.UM_USER_ACCOUNT_ASSOCIATIONS'
 (errno: 150)

 This is because there is a foreign key dependency to UM_DOMAIN table in
 user manager tables from the above tables.
 Therefore both the identity tables and user manager tables should be in a
 single database.

 With that how can we setup a cluster with the database seperation?

 Appreciate your help.

 Thanks,
 Tanya

 --
 Tanya Madurapperuma

 Senior Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com




 --
 *Thanuja Lakmal*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94715979891 +94758009992




-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please fix IDENTITY-3338

2015-06-08 Thread Tanya Madurapperuma
Hi Tharindu,

Identity related tables are created by the activate method of
*org.wso2.carbon.identity.core
*and not by any ES component. And the created tables are referred in
*org.wso2.carbon.idp.mgt.dao*

But the *org.wso2.carbon.idp.mgt.dao* gets activated before the
*org.wso2.carbon.identity.core
*and therefore throwing this error.

IMO this cannot be an issue in ES end since the exact same issue is
reproducible in IS.

@IS team : Please correct me if I am wrong.

Thanks,
Tanya

On Mon, Jun 8, 2015 at 3:20 PM, Tharindu Dharmarathna tharin...@wso2.com
wrote:

 Hi Tanya,

 This Dsetup issue happens due to the component that create db tables in ES
 didn't get activate
 before StartupFinalizerServiceComponent in org.wso2.carbon.core.internal .

 If this StartupFinalizerServiceComponent component activate setup value is
 removing from the system properties.
 Then tables wouldn't create on the DB.

 Thanks
 Tharindu

 On Mon, Jun 8, 2015 at 2:50 PM, Ishara Karunarathna isha...@wso2.com
 wrote:

 Hi,

 Will check on this.

 Thanks,
 Ishara

 On Mon, Jun 8, 2015 at 2:33 PM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Hi IS team,

 We have faced the following issue in ES [1] and is affecting the ES beta
 release. We were able to reproduce the same issue in IS as well [2]

 Appreciate if you could fix [2] at your earliest possible.

 [1] https://wso2.org/jira/browse/STORE-744
 [2] https://wso2.org/jira/browse/IDENTITY-3338

 Thanks,
 Tanya



 --
 Tanya Madurapperuma

 Senior Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com




 --
 Ishara Karunarathna
 Senior Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
 +94717996791

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 *Tharindu Dharmarathna*Associate Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94779109091 %2B94779109091*




-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please fix IDENTITY-3338

2015-06-08 Thread Tanya Madurapperuma
Hi IS team,

We have faced the following issue in ES [1] and is affecting the ES beta
release. We were able to reproduce the same issue in IS as well [2]

Appreciate if you could fix [2] at your earliest possible.

[1] https://wso2.org/jira/browse/STORE-744
[2] https://wso2.org/jira/browse/IDENTITY-3338

Thanks,
Tanya



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Java exception types identification in JaggeryJS

2015-06-08 Thread Tanya Madurapperuma
Try
 e.javaException()

Thanks,
Tanya

On Mon, Jun 8, 2015 at 5:03 PM, Thilini Cooray thili...@wso2.com wrote:

 Hi,

 Is there an approach to identify the type of java exception caught in
 JaggeryJS catch block?

 For an example,
 Suppose a java function throws an
 org.wso2.carbon.apimgt.api.APIManagementException.
 Rhino engine throws a org.mozilla.javascript.WrappedException: Wrapped
 org.wso2.carbon.apimgt.api.APIManagementException to the Jaggery app.

 How can I identify that the type of exception caught by JaggeryJS catch
 block is org.wso2.carbon.apimgt.api.APIManagementException?

 Thanks.
 --
 Best Regards,

 *Thilini Cooray*
 Software Engineer
 Mobile : +94 (0) 774 570 112 %2B94%20%280%29%20773%20451194
 E-mail : thili...@wso2.com

 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Exception thrown in server shutdown with patch0010

2015-05-13 Thread Tanya Madurapperuma
 Baminiwatta
  Senior Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 71 2335936
 blog : lakmali.com





 --
 Lakmali Baminiwatta
  Senior Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 mobile:  +94 71 2335936
 blog : lakmali.com




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using jaggeryJS host object for oauth (To access JIRA)

2015-04-08 Thread Tanya Madurapperuma
Created [2] in jaggery to track scribe upgrade.

[2] https://wso2.org/jira/browse/JAGGERY-402

On Thu, Apr 9, 2015 at 11:11 AM, Tanya Madurapperuma ta...@wso2.com wrote:

 Hi Fathima,

 As we discussed offline, from scribe 1.3.2 onwards it supports RSA-SHA1
 signatures [1]. But the scriber version used in 0.9.0.ALPHA4.wso2v6 is
 1.3.1
 Therefore we have below options in achieving your requirement.

1. Upgrade scribe version in jaggery and patch the host object
2. Write a java client and call it from jaggery (with
Packages.java_client)

 Option 2 will be good to go ahead since it doesn't need any patching.

 Also please check with Engineering dashboard code how the jira integration
 has been done.

 [1]
 http://grepcode.com/file/repo1.maven.org/maven2/org.scribe/scribe/1.3.2/org/scribe/services/RSASha1SignatureService.java?av=f

 Thanks,
 Tanya

 On Thu, Apr 9, 2015 at 9:20 AM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 Hi,

 Thanks. I tried searching on that and ended up in a stack overflow
 question [1]
 http://stackoverflow.com/questions/14127418/scribe-and-atlassian-rest
 , which basically answers my question.
 I won't be able to use this host object to access JIRA using OAuth since
 the Scribe library does not support RSA-SHA1 signatures, which is the only
 signature method available in Atlassian OAuth.

 I will try using the Atlassian provided JIRA client.

 Thanks everyone for helping.

 [1] http://stackoverflow.com/questions/14127418/scribe-and-atlassian-rest

 Thanks.
 Regards,
 Dilhasha

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Inc.*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Thu, Apr 9, 2015 at 6:22 AM, Punnadi Gunarathna punn...@wso2.com
 wrote:

 Hi Dilhasha,

 Please check whether there is a way to specify 'signature_method' in
 your configuration so that it will be set in OAuthRequest object as the
 value of OAuthConstants.SIGN_METHOD parameter.

 On Wed, Apr 8, 2015 at 7:26 PM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 Hi Buddhima,

 Thank you. JIRA is using RSA encryption in their OAuth Process. May be
 that is the reason for the exception. I'll debug and see.
 (I am using 0.9.0.ALPHA4.wso2v6-release of Jaggery.)

 Thanks.
 Regards,
 Dilhasha


 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Inc.*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Apr 8, 2015 at 6:55 PM, Buddhima Wijeweera buddh...@wso2.com
 wrote:

 Hi Fathima,

 The blog post mentioned [1], needs changes in PR
 https://github.com/wso2/jaggery-extensions/pull/9, (I have mentioned
 it in the post).

 The given sample is working after those changes applied.

 Thank you!

 On Wed, Apr 8, 2015 at 12:27 PM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 The configs I'm using are as follows

 var configs = {
'oauth_version' : '1',
'authorization_url' : '
 https://dilhashatest.atlassian.net/plugins/servlet/oauth/authorize',
   'access_token_url'  : '
 https://dilhashatest.atlassian.net/plugins/servlet/oauth/access-token
 ',
'request_token_url' : '
 https://dilhashatest.atlassian.net/plugins/servlet/oauth/request-token
 ',
   'api_key'   : 'hardcoded-consumer',
   'api_secret': '*',
   'callback_url'  : '
 https://apps.appfactory.private.wso2.com:9443/appmgt/site/pages/issuetracker.jag?applicationName=HelloapplicationKey=hello
 '
  };


 I got these values from [2]
 https://www.prodpad.com/2013/05/tech-tutorial-oauth-in-jira/

 Thanks.

 [2] https://www.prodpad.com/2013/05/tech-tutorial-oauth-in-jira/

 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Inc.*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321

 On Wed, Apr 8, 2015 at 12:11 PM, Fathima Dilhasha dilha...@wso2.com
 wrote:

 Hi,

 I'm trying to use the jaggeryJS host object for oauth (to access
 Jira) within AppFactory as in [1]
 https://buddhimawijeweera.wordpress.com/2014/09/28/oauth-process-in-a-jaggery-application/.
 I'm getting an error in the following line.

 var authUrl = oauthService.getAuthorizationUrl();

 Can someone help me on this?

 The error I get is as follows.

 *TID: [0] [AF] [2015-04-08 06:22:05,642] ERROR
 {module/issuetracker/getIssueSummaries.jag} -
  org.mozilla.javascript.WrappedException: Wrapped
 org.scribe.exceptions.OAuthException: Response body is incorrect. Can't
 extract token and secret from this:
 'oauth_problem=signature_method_rejected'
 (/appmgt/modules/issuetracker/get/getIssueSummaries.jag#75)*
 * at
 org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)*
 * at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)*
 * at
 org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)*
 * 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

Re: [Dev] Using jaggeryJS host object for oauth (To access JIRA)

2015-04-08 Thread Tanya Madurapperuma
 by: org.scribe.exceptions.OAuthException: Response body is
 incorrect. Can't extract token and secret from this:
 'oauth_problem=signature_method_rejected'*
 * at
 org.scribe.extractors.TokenExtractorImpl.extract(TokenExtractorImpl.java:41)*
 * at
 org.scribe.extractors.TokenExtractorImpl.extract(TokenExtractorImpl.java:27)*
 * at
 org.scribe.oauth.OAuth10aServiceImpl.getRequestToken(OAuth10aServiceImpl.java:52)*
 * at
 org.jaggeryjs.hostobjects.oauth.OAuthHostObject.jsFunction_getAuthorizationUrl(OAuthHostObject.java:102)*
 * 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*
 * {module/issuetracker/getIssueSummaries.jag}*


 [1]
 https://buddhimawijeweera.wordpress.com/2014/09/28/oauth-process-in-a-jaggery-application/


 Thanks

 Regards,
 Dilhasha
 *M.N.F. Dilhasha*
 Software Engineering Intern | *WSO2 Inc.*

 email   :
 *dilha...@wso2.com dilha...@wso2.com*mobile : +94 77 8449321





 --
 Buddhima Wijeweera
 Software Engineer; WSO2 Inc.; http://wso2.com ,

 Mobile: +94 71 427 9966
 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 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




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF][Jaggery] - How to handle exceptions in jaggery block layer ?

2015-03-30 Thread Tanya Madurapperuma
The way APIM has followed is, exception handling is done at the modules
layer not at the block layer.

Thanks,
Tanya

On Mon, Mar 30, 2015 at 6:03 PM, Mahesh Chinthaka mahe...@wso2.com wrote:

 Hi all,

 Im working on [1]

 What is the best way to handle exceptions in jaggery block layer.
 Specially when its a block layer-ajax

 Is following way correct ?

 catch (e) {
   var msg = Error while getting database info for the application :  + 
 applicationKey
 ;
   log.error(msg);
   log.error(e)
   response.status = 500
   reponse.content = msg;
 }

 Dont we need to throw  the error here ??


 [1] - https://wso2.org/jira/browse/APPFAC-2724
 --
 *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




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Making a web socket to the same page

2015-03-27 Thread Tanya Madurapperuma
Hi all,

Do we allow $ Subject?
I tried the below snippet in a file called index.jag. But it breaks
silently.

!DOCTYPE html
%
var log = new Log();
WebSocket.ontext = function (data) {
 log.info('data sent '+ data)
};
%
html
head
meta charset=UTF-8
titleJaggery WebSocket/title
script type=text/javascript
 var ws = new WebSocket(
   ws://localhost:9763/web/index.jag);

 function sendMessage() {
  ws.send(messageText.value);
  messageText.value = ;
 }
/script
/head
body
div
  br
  input type=text id=messageText size=50 /
  input id=button1 type=button value=Send onclick=sendMessage();
/div
/body
/html

But if I move the below snippet to a different file called server.jag and
change the web socket url to ws://localhost:9763/web/server.jag, it works
fine.

%
var log = new Log();
webSocket.ontext = function (data) {
 log.info('data sent '+ data)
};
%

I understand it doesn't make sense to call the same page. But just asking :)

Thanks,
Tanya

-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] How to convert String value of true/false to Boolean in Jaggery?

2015-03-10 Thread Tanya Madurapperuma
On Tue, Mar 10, 2015 at 11:29 AM, Abimaran Kugathasan abima...@wso2.com
wrote:

 Thanks Himasha,

 In Jaggery, follwing is possible to do and works fine.

 var isLogoutRequest = false;

 if(!Boolean(isLogoutRequest)) {
//
 }


 I was thinking, why can't we have this type of conversion for String value
 of true/false in Jagger?


That is because as same as in javascript, as long as your  isLogoutRequest
is not an empty string it will evaluate to true.

On Tue, Mar 10, 2015 at 11:19 AM, Himasha Guruge himas...@wso2.com wrote:

 Hi Abimaran,

 You could check [1] for different options. Check the answer  where they
 are prioritized based on performance.

 [1]
 http://stackoverflow.com/questions/263965/how-can-i-convert-a-string-to-boolean-in-javascript/28588344#28588344

 Thanks,
 Himasha

 On Tue, Mar 10, 2015 at 11:03 AM, Abimaran Kugathasan abima...@wso2.com
 wrote:

 Hi,

 I have a query string parameter with value true or false. I need to
 convert this value to corresponding boolean value for some conditional
 checking.

 Currently, I'm using string comparision with == to evaluate.

 var isPassiveAuthRequired = request.getParameter(passiveAuthRequired);

 if('true' == isPassiveAuthRequired)   {
 //
 }

 This doesn't look a proper way. I tried Boolean(isPassiveAuthRequired),
 but it returns false even for value 'true'.

 Anybody knows a better way?

 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Himasha Guruge
 *Software Engineer*
 WS*O2* *Inc.*
 Mobile: +94 777459299
 himas...@wso2.com




 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] How to convert String value of true/false to Boolean in Jaggery?

2015-03-10 Thread Tanya Madurapperuma
Hi,

I just tried the following snippet in the try-it of jaggery page and it
gives me the expected output.

var test = true;
var bool_convert = Boolean(test);
print(bool_convert);   //true

-

var test = false;
var bool_convert = Boolean(test);
print(bool_convert);   //true

---

var test = ;
var bool_convert = Boolean(test);
print(bool_convert);   //false

Thanks,
Tanya

On Tue, Mar 10, 2015 at 12:40 PM, Abimaran Kugathasan abima...@wso2.com
wrote:



 On Tue, Mar 10, 2015 at 11:45 AM, Tanya Madurapperuma ta...@wso2.com
 wrote:



 On Tue, Mar 10, 2015 at 11:29 AM, Abimaran Kugathasan abima...@wso2.com
 wrote:

 Thanks Himasha,

 In Jaggery, follwing is possible to do and works fine.

 var isLogoutRequest = false;

 if(!Boolean(isLogoutRequest)) {
//
 }


 I was thinking, why can't we have this type of conversion for String
 value of true/false in Jagger?


 That is because as same as in javascript, as long as your
  isLogoutRequest is not an empty string it will evaluate to true.


 Nope, It doesn't work in Jaggey.   I tried Boolean(isPassiveAuthRequired),
 but it returns false even for value 'true'. That's my worry.

 Why following doesn't work

 var isPassiveAuthRequired = request.getParameter(passiveAuthRequired);
 // value is String

 if(Boolean(isPassiveAuthRequired))   {
 //
 }

 while following works?

 var isLogoutRequest = false; //  here value is boolean

 if(!Boolean(isLogoutRequest)) {
//
 }

 How this Boolean() works in Jaggery?


 On Tue, Mar 10, 2015 at 11:19 AM, Himasha Guruge himas...@wso2.com
 wrote:

 Hi Abimaran,

 You could check [1] for different options. Check the answer  where they
 are prioritized based on performance.

 [1]
 http://stackoverflow.com/questions/263965/how-can-i-convert-a-string-to-boolean-in-javascript/28588344#28588344

 Thanks,
 Himasha

 On Tue, Mar 10, 2015 at 11:03 AM, Abimaran Kugathasan 
 abima...@wso2.com wrote:

 Hi,

 I have a query string parameter with value true or false. I need to
 convert this value to corresponding boolean value for some conditional
 checking.

 Currently, I'm using string comparision with == to evaluate.

 var isPassiveAuthRequired
 = request.getParameter(passiveAuthRequired);

 if('true' == isPassiveAuthRequired)   {
 //
 }

 This doesn't look a proper way. I tried
 Boolean(isPassiveAuthRequired), but it returns false even for value 
 'true'.

 Anybody knows a better way?

 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Himasha Guruge
 *Software Engineer*
 WS*O2* *Inc.*
 Mobile: +94 777459299
 himas...@wso2.com




 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com




 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Facing an error while parsing an XML

2015-02-26 Thread Tanya Madurapperuma
://movingaheadblog.blogspot.com/*

 On Thu, Feb 26, 2015 at 10:17 PM, Bhathiya Jayasekara bhath...@wso2.com
 wrote:

 Hi all,

 I'm facing some issues while trying to read some values from a datasource
 XML. My code is like this.

 1   var stub = new 
 org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminStub('https://localhost:9443/services/NDataSourceAdmin');
 2   var client = stub._getServiceClient();
 3   var options = client.getOptions();
 4   var authenticator = new 
 org.apache.axis2.transport.http.HttpTransportProperties.Authenticator();
 5   authenticator.setUsername(username);
 6   authenticator.setPassword(password);
 7   authenticator.setPreemptiveAuthentication(true);
 8   
 options.setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE,
  authenticator);
 9   client.setOptions(options);

 10  var dsName = WSO2_STAT_DB;

 11  var dataSource = 
 stub.getDataSource(dsName).getDsMetaInfo().getDefinition().getDsXMLConfiguration();
 12  //var dataSource = 
 configurationurlhttps://localhost:9445/urlusernameadmin/usernamepasswordadmin/passworddriverClassNamecom.mysql.jdbc.Driver/driverClassName/configuration;
 13  var dataSourceXml = new XML(dataSource);

 Above code gives below error.

 [2015-02-26 22:09:57,153] ERROR - RhinoEngine 
 org.mozilla.javascript.EvaluatorException: The choice of Java method 
 java.lang.String.replace matching JavaScript argument types 
 (function,string) is ambiguous; candidate methods are:
 class java.lang.String 
 replace(java.lang.CharSequence,java.lang.CharSequence)
 class java.lang.String replace(char,char) (xml#4)
 [2015-02-26 22:09:57,153] ERROR - WebAppManager 
 org.mozilla.javascript.EvaluatorException: The choice of Java method 
 java.lang.String.replace matching JavaScript argument types 
 (function,string) is ambiguous; candidate methods are:
 class java.lang.String 
 replace(java.lang.CharSequence,java.lang.CharSequence)
 class java.lang.String replace(char,char) (xml#4)
 org.jaggeryjs.scriptengine.exceptions.ScriptException: 
 org.mozilla.javascript.EvaluatorException: The choice of Java method 
 java.lang.String.replace matching JavaScript argument types 
 (function,string) is ambiguous; candidate methods are:
 class java.lang.String 
 replace(java.lang.CharSequence,java.lang.CharSequence)
 class java.lang.String replace(char,char) (xml#4)


 If I uncomment *line 12* and comment *line 11*, I don't get above error.
 but if I log both lines (11 and 12), they still give the same output. How
 do I get *line 11 *working like *line 12*?

 Thanks,
 Bhathiya





 var dataSourceXml = new XML(' + dataSource + ');


 --
 *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/*




 --
 *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/*




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Improving the Dashboard of UES

2015-02-16 Thread Tanya Madurapperuma
Hi,

On Tue, Feb 17, 2015 at 10:05 AM, Vidura Mudalige vidu...@wso2.com wrote:

 HI all,

 We are planning to improve the dashboard of UES to support bootstrap and
 pub/sub.

What are the improvements that you are planning for pub/sub? Because UES
already have pub/sub support.


 Current dashboards were build using gridster and it is not flexible. Using
 bootstrap we can build responsive and easily themable dashboards.


AFAIR NadeeshaC also did some work related to this. Will be great if you
can start from there onwards and continue.


 Current dashboards have a fixed layout. Therefore we are planning to add a
 selectable layout to the dashboard to make the dashboard more friendly to
 the user. We are planning to add multitenency to the dashboard as well.

 Suggestions and feedbacks are appreciated.

 Thanks,

 Thanks,
Tanya



 --

 *Vidura Mudalige*
 Software Engineering Intern
 WSO2 Inc.; http://wso2.com

 Mobile: *+94 77 2323175*
 Email : vidu...@wso2.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Payload Factory sending back object wrapped in jsonObject

2015-01-06 Thread Tanya Madurapperuma
Hi Maz,

I tried with the following proxy service and I got the correct response.

?xml version=1.0 encoding=UTF-8?
proxy xmlns=http://ws.apache.org/ns/synapse;
   name=payloadJsonTest
   transports=https,http
   statistics=disable
   trace=disable
   startOnLoad=true
   target
  inSequence
 payloadFactory media-type=json
format{ ip_address: $1}/format
args
   arg evaluator=json expression=$.origin/
/args
 /payloadFactory
 respond/
  /inSequence
   /target
   description/
/proxy

Thanks,
Tanya



On Tue, Jan 6, 2015 at 3:04 PM, Maz Lakadia mlaka...@hotmail.com wrote:

 Hi, I am mediating a message using Payload Factory Mediator. The
 unmediated message is:

 {
  origin: 202.68.75.242
 }

 My mediated payload is meant to be:

 {
  ip_address: 202.68.75.242
 }

 Instead it gives me back:

 {  jsonObject :
 {
  ip_address: 202.68.75.242
 }
 }

 How can I get rid of the jsonObject wrapper?

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help with UES Dashboards

2014-12-12 Thread Tanya Madurapperuma
Hi Thiwanka,

I was able to reproduce your issue. Will check how does that occur and get
back to you.

Thanks,
Tanya

On Fri, Dec 12, 2014 at 1:15 PM, Thiwanka Makumburage 
thiwa...@opensource.lk wrote:

 Hi Guys,
 I have a another question regarding UES.

 When we remove the

 %
 var user = require('/modules/user.js').current();
 if (!user) {
 response.sendRedirect('/vv/login');
 }
 %

 snippet from a dashboard index.jag page, the gadgets will not show on the
 1st page load. After a page refresh the gadgets will load normally. When we
 clear the browser cache and go directly to the dashboard, the same thing
 happens. Any idea how to avoid this issue? When we checked with firebug,and
 we have found the requests for the gadgets are not generating from the
 dashboard app at the 1st load. After a page reload, gadget requests are
 generated normally until we clear the browser cache.

 Thanks

 Best Regrads,
 Thiwanka
 LSF

 On 18 November 2014 at 15:57, Thiwanka Makumburage thiwa...@opensource.lk
  wrote:

 Thanks Tanya  Manuranga.

 On 17 November 2014 11:56, Manuranga Perera m...@wso2.com wrote:

 Hi Thiwanka,

 We currently only support personalize but not edits through the
 dashboard UI. Currently you can only edit in code mode. However supporting
 edits are in our road-map.

 Personalize - adding changers to my (current user's) view of the
 dashboard. the changes are not reflected in other users dashboards.
 Edit - change the dashboard for all users.

 On Mon, Nov 17, 2014 at 11:41 AM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Hi Thiwaka,

 If you edit a dashboard in the personalize mode, those changes will be
 visible only to that particular user. So even if the admin changes the
 dashboard in the personalize mode, those changes will be stored in admin's
 user registry and will be visible only for admin, not the other users.

 AFAIK dashboard design is a one time task, where edits done after
 publishing cannot be made global.
 @ Ruchira, Manu, SameeraM : please correct me if I am wrong.

 Thanks,
 Tanya


 On Mon, Nov 17, 2014 at 11:32 AM, Thiwanka Makumburage 
 thiwa...@opensource.lk wrote:

 Hi Tanya,

 Thanks for the help. Also we wanted to give dashboard edit rights only
 to the admin.So we removed the personalize button from the dashboard, for
 the rest of the users by checking username from the session. Is there a
 better way to do that?

 Best Regards,
 Thiwanka
 LSF

 On 14 November 2014 15:40, Tanya Madurapperuma ta...@wso2.com wrote:

 Hi Thiwanka,

 A dashboard is basically a jaggery app. If you navigate to the
 created dashboard ( at
 UES_HOME/repository/deployment/server/jaggeryapps/your_dashboard ), you
 will find an *index.jag* file. If you remove the below snippet from
 that file, any user will be able to see the dashboard without
 authentication if your gadgets doesn't require a logged in user.

 %
 var user = require('/modules/user.js').current();
 if (!user) {
 response.sendRedirect('/vv/login');
 }
 %

 Thanks,
 Tanya



 On Wed, Nov 12, 2014 at 10:48 AM, Thiwanka Makumburage 
 thiwa...@opensource.lk wrote:

 Hi All,
 I'm Thiwanka Makumburage from Lanka Software Foundation, a member of
 a opensource project called 'SriLanka Innovation Dashboard'. For the
 project we use WSO2 UES product and customized gadgets on top of it. As 
 per
 a client request we want to develop some specific dashboards like 
 following,

1) Common dashboard -

- View by all the users without authentication.
   - Gadgets to included will be decided by the client team.

2) User dashboards

- Each user can have their own customizable dashboard with
   authentication. (to achieve this do we need to automatically 
 create
   dashboards with unique name such as username, for each user at 
 the point of
   registration? )
   - Users will be able to save their preferences with gadgets.

 Could we create No.1 type of a common dashboard using UES? If
 possible, how to achieve that? Thanks!

 Best Regards,
 Thiwanka


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com





 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com




 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Introduce a new API to add new subscriptions.

2014-11-18 Thread Tanya Madurapperuma
Verified in 1.6 and 1.7.

Thanks,
Tanya

On Tue, Nov 18, 2014 at 5:14 PM, Nirdesha Munasinghe nirde...@wso2.com
wrote:

 Hi Tanya,

 I fixed both 1.7.0 and 1.8.0 with the following info:

- To add a subscription by application ID: action=*addSubscription*
name=xxxversion=xxxprovider=xxxtier=xxx*applicationId*=xxx
- To add a subscription by application name: action=
*addAPISubscription*name=xxxversion=xxxprovider=xxxtier=xxx
*applicationName*=xxx

 Will be great if you can verify if this is correct.

 Thanks,
 -Nirdesha

 On Tue, Nov 18, 2014 at 9:30 AM, Jackie Wheeler jac...@wso2.com wrote:

 Nirdesha, can you take a look?

 Thanks,
 Jackie

 On Mon, Nov 17, 2014 at 1:17 AM, Roshan Wijesena ros...@wso2.com wrote:

 Thanks Tanya/Sanjeewa.

 It would be great if we can get documented this somewhere in our docs?

 Regards
 Roshan.

 On Mon, Nov 17, 2014 at 2:34 PM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 subscription-add.jag [1] has
 else if (action == addAPISubscription  request.getMethod() ==
 'POST')
 which takes application name to make a subscription. It calls the
 addAPISubscription method at [2] which calls the 
 jsFunction_addAPISubscription
 method of api store hostobject [3]

 Hence no need to write a new api.

 [1]
 https://github.com/wso2-dev/carbon-apimgt/blob/master/components/apimgt/api-store-web/src/site/blocks/subscription/subscription-add/ajax/subscription-add.jag
 [2]
 https://github.com/wso2-dev/carbon-apimgt/blob/master/components/apimgt/api-store-web/src/modules/subscription/add.jag
 [3]
 https://github.com/wso2-dev/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.hostobjects/src/main/java/org/wso2/carbon/apimgt/hostobjects/APIStoreHostObject.java

 Thanks,
 Tanya

 On Mon, Nov 17, 2014 at 2:17 PM, Sanjeewa Malalgoda sanje...@wso2.com
 wrote:

 It seems you need to expose API to pass *Application name* and user
 name here. Previously mentioned action require *application ID*.
 So we may be able to keep current API as it is and add new action as
 you mentioned. So users who use existing rest API do not have
 to change their application code.

 Thanks,
 sanjeewa.

 On Mon, Nov 17, 2014 at 1:54 PM, Sanjeewa Malalgoda sanje...@wso2.com
  wrote:



 On Mon, Nov 17, 2014 at 1:36 PM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Isn''t the *addAPISubscription* action in subscription-add.jag does
 the same?

 +1. Yes we may use same

 Thanks,
 sanjeewa.

 Thanks,
 Tanya

 On Mon, Nov 17, 2014 at 12:32 PM, Roshan Wijesena ros...@wso2.com
 wrote:

 Hi Devs,

 Current existing addSubscription API [1] accept Application Id as a
 parameter in POST request. It seems, use an internal  attribute as an 
 API
 parameter would not be a good approach.

 Further, I would like to propose a new API, which will take
 application name and user name  as  parameters instead of application 
 ID.
 Sample curl request for the proposed API will be as below.

 curl -X POST -b cookies
 http://localhost:9763/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag
  -d
 'action=addSubscriptionByNamename=API1version=v1provider=admintier=GoldapplicationName=PizzaShopuserName=admin'

 WDYT?

 [1] https://docs.wso2.com/display/AM170/Store+APIs.

 Regards
 Roshan.

 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 *Sanjeewa Malalgoda*
 WSO2 Inc.
 Mobile : +94713068779

  http://sanjeewamalalgoda.blogspot.com/blog
 :http://sanjeewamalalgoda.blogspot.com/
 http://sanjeewamalalgoda.blogspot.com/





 --

 *Sanjeewa Malalgoda*
 WSO2 Inc.
 Mobile : +94713068779

  http://sanjeewamalalgoda.blogspot.com/blog
 :http://sanjeewamalalgoda.blogspot.com/
 http://sanjeewamalalgoda.blogspot.com/





 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com




 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 --
 You received this message because you are subscribed to the Google
 Groups WSO2 Documentation group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to documentation+unsubscr...@wso2.com.
 For more options, visit https://groups.google.com/a/wso2.com/d/optout.




 --
 *Jackie Wheeler*
 VP, Technical Content
 WSO2, Inc.
 Mobile: +1 510 725-2876
 http://wso2.com/




 --

 Thanks,

 Nirdesha Munasinghe

Re: [Dev] [APIM] Introduce a new API to add new subscriptions.

2014-11-18 Thread Tanya Madurapperuma
On Tue, Nov 18, 2014 at 5:20 PM, Tanya Madurapperuma ta...@wso2.com wrote:

 Verified in 1.6 and 1.7.

Sorry I mean 1.8 not 1.6
But In the code base of 1.6 also this api is there. Think we need to add in
1.6 docs as well.

Thanks,
Tanya


 Thanks,
 Tanya

 On Tue, Nov 18, 2014 at 5:14 PM, Nirdesha Munasinghe nirde...@wso2.com
 wrote:

 Hi Tanya,

 I fixed both 1.7.0 and 1.8.0 with the following info:

- To add a subscription by application ID: action=*addSubscription*
name=xxxversion=xxxprovider=xxxtier=xxx*applicationId*=xxx
- To add a subscription by application name: action=
*addAPISubscription*name=xxxversion=xxxprovider=xxxtier=xxx
*applicationName*=xxx

 Will be great if you can verify if this is correct.

 Thanks,
 -Nirdesha

 On Tue, Nov 18, 2014 at 9:30 AM, Jackie Wheeler jac...@wso2.com wrote:

 Nirdesha, can you take a look?

 Thanks,
 Jackie

 On Mon, Nov 17, 2014 at 1:17 AM, Roshan Wijesena ros...@wso2.com
 wrote:

 Thanks Tanya/Sanjeewa.

 It would be great if we can get documented this somewhere in our docs?

 Regards
 Roshan.

 On Mon, Nov 17, 2014 at 2:34 PM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 subscription-add.jag [1] has
 else if (action == addAPISubscription  request.getMethod() ==
 'POST')
 which takes application name to make a subscription. It calls the
 addAPISubscription method at [2] which calls the 
 jsFunction_addAPISubscription
 method of api store hostobject [3]

 Hence no need to write a new api.

 [1]
 https://github.com/wso2-dev/carbon-apimgt/blob/master/components/apimgt/api-store-web/src/site/blocks/subscription/subscription-add/ajax/subscription-add.jag
 [2]
 https://github.com/wso2-dev/carbon-apimgt/blob/master/components/apimgt/api-store-web/src/modules/subscription/add.jag
 [3]
 https://github.com/wso2-dev/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.hostobjects/src/main/java/org/wso2/carbon/apimgt/hostobjects/APIStoreHostObject.java

 Thanks,
 Tanya

 On Mon, Nov 17, 2014 at 2:17 PM, Sanjeewa Malalgoda sanje...@wso2.com
  wrote:

 It seems you need to expose API to pass *Application name* and user
 name here. Previously mentioned action require *application ID*.
 So we may be able to keep current API as it is and add new action as
 you mentioned. So users who use existing rest API do not have
 to change their application code.

 Thanks,
 sanjeewa.

 On Mon, Nov 17, 2014 at 1:54 PM, Sanjeewa Malalgoda 
 sanje...@wso2.com wrote:



 On Mon, Nov 17, 2014 at 1:36 PM, Tanya Madurapperuma ta...@wso2.com
  wrote:

 Isn''t the *addAPISubscription* action in subscription-add.jag
 does the same?

 +1. Yes we may use same

 Thanks,
 sanjeewa.

 Thanks,
 Tanya

 On Mon, Nov 17, 2014 at 12:32 PM, Roshan Wijesena ros...@wso2.com
 wrote:

 Hi Devs,

 Current existing addSubscription API [1] accept Application Id as
 a parameter in POST request. It seems, use an internal  attribute as 
 an API
 parameter would not be a good approach.

 Further, I would like to propose a new API, which will take
 application name and user name  as  parameters instead of application 
 ID.
 Sample curl request for the proposed API will be as below.

 curl -X POST -b cookies
 http://localhost:9763/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag
  -d
 'action=addSubscriptionByNamename=API1version=v1provider=admintier=GoldapplicationName=PizzaShopuserName=admin'

 WDYT?

 [1] https://docs.wso2.com/display/AM170/Store+APIs.

 Regards
 Roshan.

 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 *Sanjeewa Malalgoda*
 WSO2 Inc.
 Mobile : +94713068779

  http://sanjeewamalalgoda.blogspot.com/blog
 :http://sanjeewamalalgoda.blogspot.com/
 http://sanjeewamalalgoda.blogspot.com/





 --

 *Sanjeewa Malalgoda*
 WSO2 Inc.
 Mobile : +94713068779

  http://sanjeewamalalgoda.blogspot.com/blog
 :http://sanjeewamalalgoda.blogspot.com/
 http://sanjeewamalalgoda.blogspot.com/





 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com




 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 --
 You received this message because you are subscribed to the Google
 Groups WSO2 Documentation group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to documentation+unsubscr...@wso2.com

Re: [Dev] [APIM] Introduce a new API to add new subscriptions.

2014-11-17 Thread Tanya Madurapperuma
Isn''t the *addAPISubscription* action in subscription-add.jag does the
same?

Thanks,
Tanya

On Mon, Nov 17, 2014 at 12:32 PM, Roshan Wijesena ros...@wso2.com wrote:

 Hi Devs,

 Current existing addSubscription API [1] accept Application Id as a
 parameter in POST request. It seems, use an internal  attribute as an API
 parameter would not be a good approach.

 Further, I would like to propose a new API, which will take application
 name and user name  as  parameters instead of application ID. Sample curl
 request for the proposed API will be as below.

 curl -X POST -b cookies
 http://localhost:9763/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag
  -d
 'action=addSubscriptionByNamename=API1version=v1provider=admintier=GoldapplicationName=PizzaShopuserName=admin'

 WDYT?

 [1] https://docs.wso2.com/display/AM170/Store+APIs.

 Regards
 Roshan.

 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Introduce a new API to add new subscriptions.

2014-11-17 Thread Tanya Madurapperuma
subscription-add.jag [1] has
else if (action == addAPISubscription  request.getMethod() == 'POST')
which takes application name to make a subscription. It calls the
addAPISubscription method at [2] which calls the jsFunction_addAPISubscription
method of api store hostobject [3]

Hence no need to write a new api.

[1]
https://github.com/wso2-dev/carbon-apimgt/blob/master/components/apimgt/api-store-web/src/site/blocks/subscription/subscription-add/ajax/subscription-add.jag
[2]
https://github.com/wso2-dev/carbon-apimgt/blob/master/components/apimgt/api-store-web/src/modules/subscription/add.jag
[3]
https://github.com/wso2-dev/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.hostobjects/src/main/java/org/wso2/carbon/apimgt/hostobjects/APIStoreHostObject.java

Thanks,
Tanya

On Mon, Nov 17, 2014 at 2:17 PM, Sanjeewa Malalgoda sanje...@wso2.com
wrote:

 It seems you need to expose API to pass *Application name* and user name
 here. Previously mentioned action require *application ID*.
 So we may be able to keep current API as it is and add new action as you
 mentioned. So users who use existing rest API do not have
 to change their application code.

 Thanks,
 sanjeewa.

 On Mon, Nov 17, 2014 at 1:54 PM, Sanjeewa Malalgoda sanje...@wso2.com
 wrote:



 On Mon, Nov 17, 2014 at 1:36 PM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Isn''t the *addAPISubscription* action in subscription-add.jag does the
 same?

 +1. Yes we may use same

 Thanks,
 sanjeewa.

 Thanks,
 Tanya

 On Mon, Nov 17, 2014 at 12:32 PM, Roshan Wijesena ros...@wso2.com
 wrote:

 Hi Devs,

 Current existing addSubscription API [1] accept Application Id as a
 parameter in POST request. It seems, use an internal  attribute as an API
 parameter would not be a good approach.

 Further, I would like to propose a new API, which will take application
 name and user name  as  parameters instead of application ID. Sample curl
 request for the proposed API will be as below.

 curl -X POST -b cookies
 http://localhost:9763/store/site/blocks/subscription/subscription-add/ajax/subscription-add.jag
  -d
 'action=addSubscriptionByNamename=API1version=v1provider=admintier=GoldapplicationName=PizzaShopuserName=admin'

 WDYT?

 [1] https://docs.wso2.com/display/AM170/Store+APIs.

 Regards
 Roshan.

 --
 Roshan Wijesena.
 Senior Software Engineer-WSO2 Inc.
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --

 *Sanjeewa Malalgoda*
 WSO2 Inc.
 Mobile : +94713068779

  http://sanjeewamalalgoda.blogspot.com/blog
 :http://sanjeewamalalgoda.blogspot.com/
 http://sanjeewamalalgoda.blogspot.com/





 --

 *Sanjeewa Malalgoda*
 WSO2 Inc.
 Mobile : +94713068779

  http://sanjeewamalalgoda.blogspot.com/blog
 :http://sanjeewamalalgoda.blogspot.com/
 http://sanjeewamalalgoda.blogspot.com/





-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help with UES Dashboards

2014-11-16 Thread Tanya Madurapperuma
Hi Thiwaka,

If you edit a dashboard in the personalize mode, those changes will be
visible only to that particular user. So even if the admin changes the
dashboard in the personalize mode, those changes will be stored in admin's
user registry and will be visible only for admin, not the other users.

AFAIK dashboard design is a one time task, where edits done after
publishing cannot be made global.
@ Ruchira, Manu, SameeraM : please correct me if I am wrong.

Thanks,
Tanya


On Mon, Nov 17, 2014 at 11:32 AM, Thiwanka Makumburage 
thiwa...@opensource.lk wrote:

 Hi Tanya,

 Thanks for the help. Also we wanted to give dashboard edit rights only to
 the admin.So we removed the personalize button from the dashboard, for the
 rest of the users by checking username from the session. Is there a better
 way to do that?

 Best Regards,
 Thiwanka
 LSF

 On 14 November 2014 15:40, Tanya Madurapperuma ta...@wso2.com wrote:

 Hi Thiwanka,

 A dashboard is basically a jaggery app. If you navigate to the created
 dashboard ( at
 UES_HOME/repository/deployment/server/jaggeryapps/your_dashboard ), you
 will find an *index.jag* file. If you remove the below snippet from that
 file, any user will be able to see the dashboard without authentication if
 your gadgets doesn't require a logged in user.

 %
 var user = require('/modules/user.js').current();
 if (!user) {
 response.sendRedirect('/vv/login');
 }
 %

 Thanks,
 Tanya



 On Wed, Nov 12, 2014 at 10:48 AM, Thiwanka Makumburage 
 thiwa...@opensource.lk wrote:

 Hi All,
 I'm Thiwanka Makumburage from Lanka Software Foundation, a member of a
 opensource project called 'SriLanka Innovation Dashboard'. For the project
 we use WSO2 UES product and customized gadgets on top of it. As per a
 client request we want to develop some specific dashboards like following,

1) Common dashboard -

- View by all the users without authentication.
   - Gadgets to included will be decided by the client team.

2) User dashboards

- Each user can have their own customizable dashboard with
   authentication. (to achieve this do we need to automatically create
   dashboards with unique name such as username, for each user at the 
 point of
   registration? )
   - Users will be able to save their preferences with gadgets.

 Could we create No.1 type of a common dashboard using UES? If possible,
 how to achieve that? Thanks!

 Best Regards,
 Thiwanka


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com





-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help with UES Dashboards

2014-11-14 Thread Tanya Madurapperuma
Hi Thiwanka,

A dashboard is basically a jaggery app. If you navigate to the created
dashboard ( at
UES_HOME/repository/deployment/server/jaggeryapps/your_dashboard ), you
will find an *index.jag* file. If you remove the below snippet from that
file, any user will be able to see the dashboard without authentication if
your gadgets doesn't require a logged in user.

%
var user = require('/modules/user.js').current();
if (!user) {
response.sendRedirect('/vv/login');
}
%

Thanks,
Tanya



On Wed, Nov 12, 2014 at 10:48 AM, Thiwanka Makumburage 
thiwa...@opensource.lk wrote:

 Hi All,
 I'm Thiwanka Makumburage from Lanka Software Foundation, a member of a
 opensource project called 'SriLanka Innovation Dashboard'. For the project
 we use WSO2 UES product and customized gadgets on top of it. As per a
 client request we want to develop some specific dashboards like following,

1) Common dashboard -

- View by all the users without authentication.
   - Gadgets to included will be decided by the client team.

2) User dashboards

- Each user can have their own customizable dashboard with
   authentication. (to achieve this do we need to automatically create
   dashboards with unique name such as username, for each user at the 
 point of
   registration? )
   - Users will be able to save their preferences with gadgets.

 Could we create No.1 type of a common dashboard using UES? If possible,
 how to achieve that? Thanks!

 Best Regards,
 Thiwanka


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Axis2 Email Issue with jaggery jar

2014-11-03 Thread Tanya Madurapperuma
Hi Prasad,

Are you sure it is when
org.jaggeryjs.hostobjects.stream_0.9.0.SNAPSHOT-10252013.jar
is in classpath not
org.jaggeryjs.hostobjects.email_0.9.0.SNAPSHOT-*10252013.jar
*?

Because we have came across the same exception [1] with email host object
in class path and fixed in jaggery master, but not in the version (
0.9.0.SNAPSHOT-10252013) that you use. I have also written blog post [2] on
how the issue is solved explaining it's causes.

[1] https://wso2.org/jira/browse/UES-466
[2]
http://tanyamadurapperuma.blogspot.com/2014/01/struggling-with-nosuchproviderexception.html

Thanks,
Tanya

On Mon, Nov 3, 2014 at 9:21 AM, Prasad Tissera pras...@wso2.com wrote:

 When org.jaggeryjs.hostobjects.stream_0.9.0.SNAPSHOT-10252013.jar  is in
 the classpath email transport give the following exception.

 org.apache.axis2.AxisFault: Error generating mail message
 Caused by: javax.mail.NoSuchProviderException: smtp
 at javax.mail.Session.getService(Session.java:782)
 at javax.mail.Session.getTransport(Session.java:708)
 at javax.mail.Session.getTransport(Session.java:651)
 at javax.mail.Session.getTransport(Session.java:631)
 at javax.mail.Session.getTransport(Session.java:686)
 at javax.mail.Transport.send0(Transport.java:166)
 at javax.mail.Transport.send(Transport.java:98)
 at
 org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:489)
 ... 16 more

 This version is the default packed in is 5.0.0. What is the recommended
 way of fixing this ? We will also need to change this dependency in 5.1.0.

 Regards,
 Prasad.



 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Why does Jaggery Sender Object results in an Exception?

2014-10-28 Thread Tanya Madurapperuma
.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
 at
 org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
 at
 org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
 at
 org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:75)
 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$Worker.runTask(ThreadPoolExecutor.java:895)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:662)
 Caused by: org.jaggeryjs.scriptengine.exceptions.ScriptException:
 javax.mail.AuthenticationFailedException
 at
 org.jaggeryjs.hostobjects.email.SenderHostObject.jsFunction_send(SenderHostObject.java:406)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
 ... 97 more
 Caused by: javax.mail.AuthenticationFailedException
 at javax.mail.Service.connect(Service.java:306)
 at javax.mail.Service.connect(Service.java:156)
 at javax.mail.Service.connect(Service.java:105)
 at javax.mail.Transport.send0(Transport.java:168)
 at javax.mail.Transport.send(Transport.java:98)
 at
 org.jaggeryjs.hostobjects.email.SenderHostObject.jsFunction_send(SenderHostObject.java:404)
 ... 102 more

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 Then I tested the same use-case with Jaggery Sender Object demo code, as
 mentioned on its documentation [1]
 and ended up with the same exception.

 Any idea on why this error pops up?

 Thanks.

 [1] http://jaggeryjs.org/documentation.jag?api=sender


 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Inosh Perera
 Software Engineer, WSO2 Inc.
 Tel: 0785293686



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Why does Jaggery Sender Object results in an Exception?

2014-10-28 Thread Tanya Madurapperuma
On Tue, Oct 28, 2014 at 4:18 PM, Dilan Udara Ariyaratne dil...@wso2.com
wrote:

 Hi Tanya,

 This is exactly as same as what I tested. The only difference is that I
 checked this on a standalone emm server (EMM 1.1.0) and
 then on a standalone Jaggery Server (Jaggery 1.0.0-SNAPSHOT_ALPHA3).

 So, if this works fine for you when tested on top of an AS, well, what is
 the Jaggery version that you are dealing with?


0.9.0ALPHA4


 Thanks for your feedback.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Oct 28, 2014 at 3:30 PM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Hi Dilan,

 As the error itself explains, your error is due to incorrect credentials
 of the sender. Following code snippet works for me.(Tested with AS 5.2.1)
 But when I change the password to an incorrect value, I can reproduce the
 same error you get.

 %
 var to = t...@gmail.com;
 var from = ta...@wso2.com
 var subject = Test Subject;
 var content = Test Content;

 var msg = require('email');
 var email = new msg.Sender(smtp.gmail.com, 25, ta...@wso2.com,
 xx, tls);

 email.from = from;
 email.to = to;
 email.subject = subject;
 email.text = content;
 email.send();

 print(email successfully sent);

 %

 Thanks,
 Tanya

 On Tue, Oct 28, 2014 at 2:36 PM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi Inosh,

 I used the same configuration as provided in the documentation
 and it didn't work at all.


 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Oct 28, 2014 at 2:27 PM, Inosh Perera ino...@wso2.com wrote:

 Hi Dilan,
 It would be easier, if you can provide the configurations(parameters)
 you provided to this function can also be included here. Is it the same as,
 var sender = new email.Sender(smtp.gmail.com, 25, username,
 password, tls);

 Regards,
 Inosh

 On Tue, Oct 28, 2014 at 2:23 PM, Dilan Udara Ariyaratne 
 dil...@wso2.com wrote:

 Hi All,

 I am currently working on an EMM Issue that is directly associated
 with Jaggery Sender Object [1].
 When I run the email sending function that wraps up the Jaggery
 Sender.send() function, that results in an AuthenticationFailedException
 as follows.

 ERROR {JAGGERY.modules.user:js} -
 org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 javax.mail.AuthenticationFailedException (/emm/modules/user.js#893)
 at
 org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
 at
 org.mozilla.javascript.FunctionObject.call(FunctionObject.java:449)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
 at
 org.jaggeryjs.rhino.emm.modules.c7._c_anonymous_39(/emm/modules/user.js:893)
 at org.jaggeryjs.rhino.emm.modules.c7.call(/emm/modules/user.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.emm.api.c0._c_anonymous_17(/emm/api/userRouter.js:192)
 at org.jaggeryjs.rhino.emm.api.c0.call(/emm/api/userRouter.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.emm.modules.c5._c_anonymous_13(/emm/modules/goose.js:174)
 at org.jaggeryjs.rhino.emm.modules.c5.call(/emm/modules/goose.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.emm.modules.c3._c_callAPI_12(/emm/modules/absolute.js:171)
 at
 org.jaggeryjs.rhino.emm.modules.c3.call(/emm/modules/absolute.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
 at
 org.jaggeryjs.rhino.emm.modules.c3._c_anonymous_15(/emm/modules/absolute.js:228)
 at
 org.jaggeryjs.rhino.emm.modules.c3.call(/emm/modules/absolute.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at org.jaggeryjs.rhino.emm.c0._c_script_0(/emm//index.jag:189)
 at org.jaggeryjs.rhino.emm.c0.call(/emm//index.jag)
 at
 org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
 at
 org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
 at org.jaggeryjs.rhino.emm.c0.call(/emm//index.jag)
 at org.jaggeryjs.rhino.emm.c0.exec(/emm//index.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:447)
 at
 org.jaggeryjs.jaggery.core.JaggeryServlet.doPut(JaggeryServlet.java:39)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:758)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848

Re: [Dev] Why does Jaggery Sender Object results in an Exception?

2014-10-28 Thread Tanya Madurapperuma
Hi all,

Yesterday myself and Dilan tried with the above code snippet. We first
tried creating the jaggery app manually inside
repository/deployment/server/jaggeryapps and it worked.We invoked it
serveral times and worked without any issue. After that we created an
archive of the same jaggerapp and upload it through the management
console.App got unzipped in the right manner.But invocation of that failed
with the above exception that Dilan has mentioned.

After several retries, I got a mail from google with the subject Google
Account: sign-in attempt blocked, which says that the mail sending has
been identified as a suspicious activity and google has blocked it.

Then again I tried with a yahoo account by uploading the archive and it
worked fine.

So the issue is, after several attempts, google identify the access to the
sender's account as a suspicious activity and blocked sending mails from
sender's account. Therefore there is no issue with the jaggery email host
object.

Thanks,
Tanya


On Tue, Oct 28, 2014 at 5:01 PM, Harshan Liyanage hars...@wso2.com wrote:

 Hi Tanya,

 I've tried the same code snippet  I'm getting the same issue Dilan has
 encountered. However this email sending feature was already tested 
 verified feature. I'm wondering what causes this exception.

 Thanks,

 Best Regards,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 On Tue, Oct 28, 2014 at 4:28 PM, Tanya Madurapperuma ta...@wso2.com
 wrote:



 On Tue, Oct 28, 2014 at 4:18 PM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi Tanya,

 This is exactly as same as what I tested. The only difference is that I
 checked this on a standalone emm server (EMM 1.1.0) and
 then on a standalone Jaggery Server (Jaggery 1.0.0-SNAPSHOT_ALPHA3).

 So, if this works fine for you when tested on top of an AS, well, what
 is the Jaggery version that you are dealing with?


 0.9.0ALPHA4


 Thanks for your feedback.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Oct 28, 2014 at 3:30 PM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Hi Dilan,

 As the error itself explains, your error is due to incorrect
 credentials of the sender. Following code snippet works for me.(Tested with
 AS 5.2.1) But when I change the password to an incorrect value, I can
 reproduce the same error you get.

 %
 var to = t...@gmail.com;
 var from = ta...@wso2.com
 var subject = Test Subject;
 var content = Test Content;

 var msg = require('email');
 var email = new msg.Sender(smtp.gmail.com, 25, ta...@wso2.com,
 xx, tls);

 email.from = from;
 email.to = to;
 email.subject = subject;
 email.text = content;
 email.send();

 print(email successfully sent);

 %

 Thanks,
 Tanya

 On Tue, Oct 28, 2014 at 2:36 PM, Dilan Udara Ariyaratne 
 dil...@wso2.com wrote:

 Hi Inosh,

 I used the same configuration as provided in the documentation
 and it didn't work at all.


 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Oct 28, 2014 at 2:27 PM, Inosh Perera ino...@wso2.com wrote:

 Hi Dilan,
 It would be easier, if you can provide the configurations(parameters)
 you provided to this function can also be included here. Is it the same 
 as,
 var sender = new email.Sender(smtp.gmail.com, 25, username,
 password, tls);

 Regards,
 Inosh

 On Tue, Oct 28, 2014 at 2:23 PM, Dilan Udara Ariyaratne 
 dil...@wso2.com wrote:

 Hi All,

 I am currently working on an EMM Issue that is directly associated
 with Jaggery Sender Object [1].
 When I run the email sending function that wraps up the Jaggery
 Sender.send() function, that results in an AuthenticationFailedException
 as follows.

 ERROR {JAGGERY.modules.user:js} -
 org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 javax.mail.AuthenticationFailedException (/emm/modules/user.js#893)
 at
 org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
 at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
 at
 org.mozilla.javascript.FunctionObject.call(FunctionObject.java:449)
 at
 org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
 at
 org.jaggeryjs.rhino.emm.modules.c7._c_anonymous_39(/emm/modules/user.js:893)
 at org.jaggeryjs.rhino.emm.modules.c7.call(/emm/modules/user.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.emm.api.c0._c_anonymous_17(/emm/api/userRouter.js:192)
 at org.jaggeryjs.rhino.emm.api.c0.call(/emm/api/userRouter.js)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
 at
 org.jaggeryjs.rhino.emm.modules.c5._c_anonymous_13

[Dev] [ES] Workflow extensions support - Approval task pages or app ?

2014-10-14 Thread Tanya Madurapperuma
Hi,

*Overview*
We are currently working on initial design to support workflow extensions
in Enterprise Store as in APIM. Both global workflow extensions (Ex : Self
signup ) and asset level extensions (Ex : Application creation for an API
store ) will be supported.

*Concern*
Once the workflow support is enabled, there should be a place where
different types of tasks will be  listed for an admin user approval. In
APIM, a seperate admin-dashboard app is used for this
purpose.(admin-dashboard app in APIM serves some other tasks such as theme
uploading etc as well. )

Does it require to use a seperate app for this in ES as well? Isn't it
relevant to add these as pages in ES Publisher with appropriate
permissions.Because basically publisher app acts as a store-admin which is
used to perform store releated admin tasks such as publishing assets to
store, viewing statistics etc.

WDYT?

Thanks,
Tanya
-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] NPE when publishing to an external store

2014-09-14 Thread Tanya Madurapperuma
Hi all,

I followed the doc [1]
https://docs.wso2.com/display/AM170/Publishing+to+API+Stores and tried to
publish an api into an external store.
   - My external store is an another apim instance started with a port
offset 1. Followed [2]
https://docs.wso2.com/display/AM170/Changing+the+Default+Ports+with+Offset
   - external-api-stores.xml is as follows

ExternalAPIStores
 ExternalAPIStore id=Store2 type=wso2

 DisplayNameStore2/DisplayName
 Endpointhttp://localhost:9764/store/Endpoint
 Usernameadmin/Username
 Passwordadmin/Password

 /ExternalAPIStore
  /ExternalAPIStores

- At the time of publishing I get the External Api Stores tab and also
configured external store name with a check box
- But when I select the check box and click on Save, a pop up appears
with the message API publisher - Error null
- In the console below error appears.
 ERROR - external:jag java.lang.NullPointerException: null

I tried in both APIM 1.7.0 and 1.7.1. What am I missing here? Or is this a
bug?

[1] https://docs.wso2.com/display/AM170/Publishing+to+API+Stores
[2]
https://docs.wso2.com/display/AM170/Changing+the+Default+Ports+with+Offset

Thanks,
Tanya

-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] NPE when publishing to an external store

2014-09-14 Thread Tanya Madurapperuma
Yes, I was missing the StoreURL element in external-api-stores.xml.

Adding main store url as follows solved the problem. (In my case
http://localhost:9763/store http://localhost:9764/store)
  StoreURLhttp://localhost:9763/store http://localhost:9764/store
/StoreURL

Thanks Thilini and Lakmali.

Thanks,
Tanya.

On Mon, Sep 15, 2014 at 9:07 AM, Thilini Ishaka thil...@wso2.com wrote:

 Hi Tanya,

 Please try by adding StoreURL as;
 StoreURLhttp://localhost:9764/store/StoreURL after
 ExternalAPIStores element.

 Thanks
 Thilini

 On Mon, Sep 15, 2014 at 8:54 AM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Hi all,

 I followed the doc [1]
 https://docs.wso2.com/display/AM170/Publishing+to+API+Stores and tried
 to publish an api into an external store.
- My external store is an another apim instance started with a port
 offset 1. Followed [2]
 https://docs.wso2.com/display/AM170/Changing+the+Default+Ports+with+Offset
- external-api-stores.xml is as follows

 ExternalAPIStores
  ExternalAPIStore id=Store2 type=wso2

  DisplayNameStore2/DisplayName
  Endpointhttp://localhost:9764/store/Endpoint
  Usernameadmin/Username
  Passwordadmin/Password

  /ExternalAPIStore
   /ExternalAPIStores

 - At the time of publishing I get the External Api Stores tab and
 also configured external store name with a check box
 - But when I select the check box and click on Save, a pop up appears
 with the message API publisher - Error null
 - In the console below error appears.
  ERROR - external:jag java.lang.NullPointerException: null

 I tried in both APIM 1.7.0 and 1.7.1. What am I missing here? Or is this
 a bug?

 [1] https://docs.wso2.com/display/AM170/Publishing+to+API+Stores
 [2]
 https://docs.wso2.com/display/AM170/Changing+the+Default+Ports+with+Offset

 Thanks,
 Tanya

 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Thilini Ishaka
 Senior Software Engineer
 Integration Technologies Team
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] caramel framework supported servers

2014-07-24 Thread Tanya Madurapperuma
Hi,

WSO2 AS 5.2.1 and jaggery-0.9.0-SNAPSHOT_ALPHA3 do not have caramel support
OOTB.
User Engagement Server and Enterprise Store has the caramel feature
installed in them.

You can install the caramel feature in other servers such as AS by coping
the caramel modules in Product_Home/AS

Thanks,
Tanya


On Fri, Jul 25, 2014 at 9:57 AM, Akila Nimantha [IT/EKO/LOITS] 
aki...@lolctech.com wrote:

  Hi all,



 Are wso2application server-5.2.1 and jaggery-0.9.0-SNAPSHOT_ALPHA3 server
 supports caramel framework…???

 Because I put a jaggery application written with caramel in jiggery
 server, and it says the server cannot read the application.

 What are the servers support caramel framework…???



 Regards,

 Akila

 This message (including any attachments) is intended only for the use of
 the individual or entity to which it is addressed and may contain
 information that is non-public, proprietary, privileged, confidential, and
 exempt from disclosure under applicable law or may constitute as attorney
 work product. If you are not the intended recipient, you are hereby
 notified that any use, dissemination, distribution, or copying of this
 communication is strictly prohibited. If you have received this
 communication in error, notify us immediately by telephone and (i) destroy
 this message if a facsimile or (ii) delete this message immediately if this
 is an electronic communication. Thank you.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] caramel framework supported servers

2014-07-24 Thread Tanya Madurapperuma
Correction : Product_Home/modules/


On Fri, Jul 25, 2014 at 10:48 AM, Tanya Madurapperuma ta...@wso2.com
wrote:

 Hi,

 WSO2 AS 5.2.1 and jaggery-0.9.0-SNAPSHOT_ALPHA3 do not have caramel
 support OOTB.
 User Engagement Server and Enterprise Store has the caramel feature
 installed in them.

 You can install the caramel feature in other servers such as AS by coping
 the caramel modules in Product_Home/AS

 Thanks,
 Tanya


 On Fri, Jul 25, 2014 at 9:57 AM, Akila Nimantha [IT/EKO/LOITS] 
 aki...@lolctech.com wrote:

  Hi all,



 Are wso2application server-5.2.1 and jaggery-0.9.0-SNAPSHOT_ALPHA3
 server supports caramel framework…???

 Because I put a jaggery application written with caramel in jiggery
 server, and it says the server cannot read the application.

 What are the servers support caramel framework…???



 Regards,

 Akila

 This message (including any attachments) is intended only for the use of
 the individual or entity to which it is addressed and may contain
 information that is non-public, proprietary, privileged, confidential, and
 exempt from disclosure under applicable law or may constitute as attorney
 work product. If you are not the intended recipient, you are hereby
 notified that any use, dissemination, distribution, or copying of this
 communication is strictly prohibited. If you have received this
 communication in error, notify us immediately by telephone and (i) destroy
 this message if a facsimile or (ii) delete this message immediately if this
 is an electronic communication. Thank you.

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] caramel framework supported servers

2014-07-24 Thread Tanya Madurapperuma
Hi,

Hope you have already gone through jaggeryjs site [1]
http://jaggeryjs.org/ and getting started guide of caramel [2]
http://wso2.github.io/caramel/
Apart from that you can go through the wso2-samples-store [3]
https://github.com/ruchiraw/wso2-samples-storecode to learn caramel in
detail. It contains docs [4]
https://github.com/ruchiraw/wso2-samples-store/tree/master/docs regarding
the sample as well.

Also the publisher , store jaggeryapps of Enterprise Store codes will also
be useful.

[1] http://jaggeryjs.org/
[2] http://wso2.github.io/caramel/
[3] https://github.com/ruchiraw/wso2-samples-store
[4] https://github.com/ruchiraw/wso2-samples-store/tree/master/docs

Thanks,
Tanya


On Fri, Jul 25, 2014 at 10:59 AM, Akila Nimantha [IT/EKO/LOITS] 
aki...@lolctech.com wrote:

  Hi Tanya,

 Thank you for the reply. I already did the change and its working now. J

 Can you give me some advance learning resources for jiggery js and caramel
 framework. Because they seems good but  I couldn’t find that kind of
 learning resource.



 Regards,

 Akila



 *From:* Tanya Madurapperuma [mailto:ta...@wso2.com]
 *Sent:* Friday, July 25, 2014 10:51 AM
 *To:* Akila Nimantha [IT/EKO/LOITS]
 *Cc:* dev@wso2.org
 *Subject:* Re: [Dev] caramel framework supported servers



 Correction : Product_Home/modules/



 On Fri, Jul 25, 2014 at 10:48 AM, Tanya Madurapperuma ta...@wso2.com
 wrote:

  Hi,



 WSO2 AS 5.2.1 and jaggery-0.9.0-SNAPSHOT_ALPHA3 do not have caramel
 support OOTB.

 User Engagement Server and Enterprise Store has the caramel feature
 installed in them.



 You can install the caramel feature in other servers such as AS by coping
 the caramel modules in Product_Home/AS



 Thanks,

 Tanya



 On Fri, Jul 25, 2014 at 9:57 AM, Akila Nimantha [IT/EKO/LOITS] 
 aki...@lolctech.com wrote:

   Hi all,



 Are wso2application server-5.2.1 and jaggery-0.9.0-SNAPSHOT_ALPHA3 server
 supports caramel framework…???

 Because I put a jaggery application written with caramel in jiggery
 server, and it says the server cannot read the application.

 What are the servers support caramel framework…???



 Regards,

 Akila

 This message (including any attachments) is intended only for the use of
 the individual or entity to which it is addressed and may contain
 information that is non-public, proprietary, privileged, confidential, and
 exempt from disclosure under applicable law or may constitute as attorney
 work product. If you are not the intended recipient, you are hereby
 notified that any use, dissemination, distribution, or copying of this
 communication is strictly prohibited. If you have received this
 communication in error, notify us immediately by telephone and (i) destroy
 this message if a facsimile or (ii) delete this message immediately if this
 is an electronic communication. Thank you.



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev





 --

 Tanya Madurapperuma



 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439

 Blog : http://tanyamadurapperuma.blogspot.com





 --

 Tanya Madurapperuma



 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439

 Blog : http://tanyamadurapperuma.blogspot.com

 This message (including any attachments) is intended only for the use of
 the individual or entity to which it is addressed and may contain
 information that is non-public, proprietary, privileged, confidential, and
 exempt from disclosure under applicable law or may constitute as attorney
 work product. If you are not the intended recipient, you are hereby
 notified that any use, dissemination, distribution, or copying of this
 communication is strictly prohibited. If you have received this
 communication in error, notify us immediately by telephone and (i) destroy
 this message if a facsimile or (ii) delete this message immediately if this
 is an electronic communication. Thank you.




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] caramel framework supported servers

2014-07-24 Thread Tanya Madurapperuma
This might also be useful
http://ruchirawageesha.blogspot.com/2014/02/what-caramel-is-really.html


On Fri, Jul 25, 2014 at 11:08 AM, Tanya Madurapperuma ta...@wso2.com
wrote:

 Hi,

 Hope you have already gone through jaggeryjs site [1]
 http://jaggeryjs.org/ and getting started guide of caramel [2]
 http://wso2.github.io/caramel/
 Apart from that you can go through the wso2-samples-store [3]
 https://github.com/ruchiraw/wso2-samples-storecode to learn caramel in
 detail. It contains docs [4]
 https://github.com/ruchiraw/wso2-samples-store/tree/master/docs regarding
 the sample as well.

 Also the publisher , store jaggeryapps of Enterprise Store codes will also
 be useful.

 [1] http://jaggeryjs.org/
 [2] http://wso2.github.io/caramel/
 [3] https://github.com/ruchiraw/wso2-samples-store
 [4] https://github.com/ruchiraw/wso2-samples-store/tree/master/docs

 Thanks,
 Tanya


 On Fri, Jul 25, 2014 at 10:59 AM, Akila Nimantha [IT/EKO/LOITS] 
 aki...@lolctech.com wrote:

  Hi Tanya,

 Thank you for the reply. I already did the change and its working now. J

 Can you give me some advance learning resources for jiggery js and
 caramel framework. Because they seems good but  I couldn’t find that kind
 of learning resource.



 Regards,

 Akila



 *From:* Tanya Madurapperuma [mailto:ta...@wso2.com]
 *Sent:* Friday, July 25, 2014 10:51 AM
 *To:* Akila Nimantha [IT/EKO/LOITS]
 *Cc:* dev@wso2.org
 *Subject:* Re: [Dev] caramel framework supported servers



 Correction : Product_Home/modules/



 On Fri, Jul 25, 2014 at 10:48 AM, Tanya Madurapperuma ta...@wso2.com
 wrote:

  Hi,



 WSO2 AS 5.2.1 and jaggery-0.9.0-SNAPSHOT_ALPHA3 do not have caramel
 support OOTB.

 User Engagement Server and Enterprise Store has the caramel feature
 installed in them.



 You can install the caramel feature in other servers such as AS by coping
 the caramel modules in Product_Home/AS



 Thanks,

 Tanya



 On Fri, Jul 25, 2014 at 9:57 AM, Akila Nimantha [IT/EKO/LOITS] 
 aki...@lolctech.com wrote:

   Hi all,



 Are wso2application server-5.2.1 and jaggery-0.9.0-SNAPSHOT_ALPHA3
 server supports caramel framework…???

 Because I put a jaggery application written with caramel in jiggery
 server, and it says the server cannot read the application.

 What are the servers support caramel framework…???



 Regards,

 Akila

 This message (including any attachments) is intended only for the use of
 the individual or entity to which it is addressed and may contain
 information that is non-public, proprietary, privileged, confidential, and
 exempt from disclosure under applicable law or may constitute as attorney
 work product. If you are not the intended recipient, you are hereby
 notified that any use, dissemination, distribution, or copying of this
 communication is strictly prohibited. If you have received this
 communication in error, notify us immediately by telephone and (i) destroy
 this message if a facsimile or (ii) delete this message immediately if this
 is an electronic communication. Thank you.



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev





 --

 Tanya Madurapperuma



 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439

 Blog : http://tanyamadurapperuma.blogspot.com





 --

 Tanya Madurapperuma



 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439

 Blog : http://tanyamadurapperuma.blogspot.com

 This message (including any attachments) is intended only for the use of
 the individual or entity to which it is addressed and may contain
 information that is non-public, proprietary, privileged, confidential, and
 exempt from disclosure under applicable law or may constitute as attorney
 work product. If you are not the intended recipient, you are hereby
 notified that any use, dissemination, distribution, or copying of this
 communication is strictly prohibited. If you have received this
 communication in error, notify us immediately by telephone and (i) destroy
 this message if a facsimile or (ii) delete this message immediately if this
 is an electronic communication. Thank you.




 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Isura Karunaratne

2014-07-23 Thread Tanya Madurapperuma
Congrats Isura !!!


On Thu, Jul 24, 2014 at 9:07 AM, Susinda Perera susi...@wso2.com wrote:

 Congrats Isura.


 On Wed, Jul 23, 2014 at 9:19 PM, Harsha Kumara hars...@wso2.com wrote:

 Congratulations Isura !


 On Wed, Jul 23, 2014 at 9:01 PM, Amal Gunatilake am...@wso2.com wrote:

 Congratz Isura!!

 Thank you   Best regards,

 *Amal Gunatilake*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware


 On Wed, Jul 23, 2014 at 8:54 PM, Manoj Kumara ma...@wso2.com wrote:

 Congratulations Isura !!!


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188


 On Wed, Jul 23, 2014 at 9:34 AM, Dulanja Liyanage dula...@wso2.com
 wrote:

 Congratulations Isura!


 On Wed, Jul 23, 2014 at 4:30 PM, Johann Nallathamby joh...@wso2.com
 wrote:

 Hi All,

 It's my pleasure to announce Isura Karunaratne as a WSO2 Committer.
 Isura has been a valuable contributor for WSO2 Identity Server
 product, and in recognition of his contributions to WSO2, he has been 
 voted
 as a WSO2 Committer.

 Isura, Congratulations and Keep up the good work!

 Thanks  Regards,
 Johann.

 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Associate Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Dulanja Liyanage
 WSO2 Inc.
 M: +94776764717

 ___
 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



 ___
 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

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Susinda Perera*
 Software Engineer
 Mobile:(+94)716049075

 WSO2 Inc. http://wso2.com/
 Tel : 94 11 214 5345 Fax :94 11 2145300


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Tanya Madurapperuma

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   >