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

2016-07-03 Thread Dunith Dhanushka
Hi Tanya,

I tested the fix with Analytics ESB and it worked as expected. I could see
gadgets rendering in the tenant user space as well.

Thanks for looking into this.

Regards,
Dunith

On Mon, Jul 4, 2016 at 9:08 AM, Tanya Madurapperuma  wrote:

> 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  wrote:
>
>> Thanks Tanya/Nisala for the quick turnaround!
>>
>>
>>
>> On Fri, Jul 1, 2016 at 6:54 PM, Nisala Nanayakkara 
>> 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 
>>> 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 
 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 
> wrote:
>
>> Hi Dunith,
>>
>> On Fri, Jul 1, 2016 at 3:42 PM, Dunith Dhanushka 
>> 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 *
>>> Twitter - @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 *
> Twitter - @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 *
>> Twitter - @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 *
Twitter - @dunithd 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-07-03 Thread Tharindu Edirisinghe
Hi Asantha,

While you are adding the roll back transaction capability, also look into
testing a high load and try to generate database level exceptions. Once
thing you can try out is writing a client for performing userstore manager
operations such as add user, add role, login, logout etc. and play it with
a high concurrency using Jmeter. Then we should be able to get a better
understanding of transaction management with respective to MongoDB.

Regards,
TharinduE

On Mon, Jul 4, 2016 at 10:57 AM, Asantha Thilina 
wrote:

> Hi all,
>
> i will be trying for implement roll back transactions capability in
> MongoDB to add to MongoDB User Store[2] i found that MongoDB use a concept
> call two phase commit[1] i trying to implement that inside my code but it
> seems to be little complex and i think it may arise performance issue when
> adding high load of dataset at once is there any other better method i can
> achieve this task? any advices would be grateful
>
> [1] https://docs.mongodb.com/manual/tutorial/perform-two-phase-commits/
> [2] https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Wed, Jun 29, 2016 at 2:55 PM, Asantha Thilina  > wrote:
>
>> Hi Tharindu,
>>
>> I have finished and added delete functions also to users ,roles and user
>> claim deletions to my repo[1]
>>
>> [1] https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Mon, Jun 27, 2016 at 4:18 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi aiya,
>>>
>>> i have small problem in my research, i will be developing convolution
>>> neural network using deeplearning4j to detect frauds i have discovered some
>>> fraud patterns which can use to train my network but the problem i having
>>> is,are there any possibility to add condition driven capability to dataset
>>> to train model
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Wed, Jun 22, 2016 at 9:35 PM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
 Good work Asantha... Meanwhile let's look at getting your research work
 published as well. I will provide feedback for the work so far in couple of
 days time. I have also completed the Mid Review based on your current work
 where you are already ahead of schedule.

 Regards,
 TharinduE

 On Wed, Jun 22, 2016 at 9:41 PM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi Tharindu,
>
> following is the summary of operations i have implemented up to now
> and yet to implement
>
> 1. Add new MongoDB User Store - done both case sensitive and
> intensensitive
> 2. Add new users to MongoDB user store - done both case sensitive and
> intensensitive
> 3. Add new roles to MongoDB user store - done both case sensitive and
> intensensitive
> 4. Search users and roles - done both case sensitive and intensensitive
> 5. Assign roles to mongodb user store users - done both case sensitive
> and intensensitive
> 6. Assign users to mongodb user store roles - done both case sensitive
> and intensensitive
> 7. Edit claim values of user profiles  - done both case sensitive and
> intensensitive
> for those implemented user operations i have added selenium scripts
> also to my repo[1] and also i have prepared user guide[2] and 
> administrator
> guide[3] also and also i have updated my blog[4] with all my tasks what i
> have done and following are the tasks yet to complete
>
> 1. implement delete operations
> 2. implement new profiles adding
> 3. check for injections possibilities and improve the security of all
> the functions
> 4. prepare full test scripts for all the functions
> 5. prepare developer guide and database architecture diagrams
>
> expect your feedback
>
> [1]  https://github.com/asanthamax/mongodbuserstore
> [2]
> https://docs.google.com/document/d/1mdnmYruzQz5QSxAYwM1XVeJntJMFdxUsV5gord7LuPA/edit?usp=sharing
> [3]
> https://docs.google.com/document/d/1fCLfZYsPOBkHMzRCGM3aexoBSplX3bKIRmONmFsgkBc/edit?usp=sharing
> [4]  http://asanthamax.blogspot.com
>
> Thanks,
> Asantha
>
> On Wed, Jun 22, 2016 at 12:29 AM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> I have finished the case insensitive user operations as well and i
>> added selenium test scripts for those implemented functions to my repo[1]
>> except delete function all the other functions with test script added to 
>> my
>> repo[1]
>>
>> [1] https://github.com/asanthamax/mongodbuserstore
>>
>> Thanks,
>> Asantha
>>
>> On Fri, Jun 17, 2016 at 2:28 AM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi Tharindu,
>>>
>>> sure i'll be look forward for the hangout
>>>
>>> Thanks,
>>> Asantha
>>>
>>> On Fri, Jun 17, 

Re: [Dev] GSOC 2016 - Project 21 : MongoDB Userstore Development

2016-07-03 Thread Asantha Thilina
Hi all,

i will be trying for implement roll back transactions capability in MongoDB
to add to MongoDB User Store[2] i found that MongoDB use a concept call two
phase commit[1] i trying to implement that inside my code but it seems to
be little complex and i think it may arise performance issue when adding
high load of dataset at once is there any other better method i can achieve
this task? any advices would be grateful

[1] https://docs.mongodb.com/manual/tutorial/perform-two-phase-commits/
[2] https://github.com/asanthamax/mongodbuserstore

Thanks,
Asantha

On Wed, Jun 29, 2016 at 2:55 PM, Asantha Thilina 
wrote:

> Hi Tharindu,
>
> I have finished and added delete functions also to users ,roles and user
> claim deletions to my repo[1]
>
> [1] https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Mon, Jun 27, 2016 at 4:18 AM, Asantha Thilina  > wrote:
>
>> Hi aiya,
>>
>> i have small problem in my research, i will be developing convolution
>> neural network using deeplearning4j to detect frauds i have discovered some
>> fraud patterns which can use to train my network but the problem i having
>> is,are there any possibility to add condition driven capability to dataset
>> to train model
>>
>> Thanks,
>> Asantha
>>
>> On Wed, Jun 22, 2016 at 9:35 PM, Tharindu Edirisinghe > > wrote:
>>
>>> Good work Asantha... Meanwhile let's look at getting your research work
>>> published as well. I will provide feedback for the work so far in couple of
>>> days time. I have also completed the Mid Review based on your current work
>>> where you are already ahead of schedule.
>>>
>>> Regards,
>>> TharinduE
>>>
>>> On Wed, Jun 22, 2016 at 9:41 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 following is the summary of operations i have implemented up to now and
 yet to implement

 1. Add new MongoDB User Store - done both case sensitive and
 intensensitive
 2. Add new users to MongoDB user store - done both case sensitive and
 intensensitive
 3. Add new roles to MongoDB user store - done both case sensitive and
 intensensitive
 4. Search users and roles - done both case sensitive and intensensitive
 5. Assign roles to mongodb user store users - done both case sensitive
 and intensensitive
 6. Assign users to mongodb user store roles - done both case sensitive
 and intensensitive
 7. Edit claim values of user profiles  - done both case sensitive and
 intensensitive
 for those implemented user operations i have added selenium scripts
 also to my repo[1] and also i have prepared user guide[2] and administrator
 guide[3] also and also i have updated my blog[4] with all my tasks what i
 have done and following are the tasks yet to complete

 1. implement delete operations
 2. implement new profiles adding
 3. check for injections possibilities and improve the security of all
 the functions
 4. prepare full test scripts for all the functions
 5. prepare developer guide and database architecture diagrams

 expect your feedback

 [1]  https://github.com/asanthamax/mongodbuserstore
 [2]
 https://docs.google.com/document/d/1mdnmYruzQz5QSxAYwM1XVeJntJMFdxUsV5gord7LuPA/edit?usp=sharing
 [3]
 https://docs.google.com/document/d/1fCLfZYsPOBkHMzRCGM3aexoBSplX3bKIRmONmFsgkBc/edit?usp=sharing
 [4]  http://asanthamax.blogspot.com

 Thanks,
 Asantha

 On Wed, Jun 22, 2016 at 12:29 AM, Asantha Thilina <
 asanthathil...@gmail.com> wrote:

> Hi Tharindu,
>
> I have finished the case insensitive user operations as well and i
> added selenium test scripts for those implemented functions to my repo[1]
> except delete function all the other functions with test script added to 
> my
> repo[1]
>
> [1] https://github.com/asanthamax/mongodbuserstore
>
> Thanks,
> Asantha
>
> On Fri, Jun 17, 2016 at 2:28 AM, Asantha Thilina <
> asanthathil...@gmail.com> wrote:
>
>> Hi Tharindu,
>>
>> sure i'll be look forward for the hangout
>>
>> Thanks,
>> Asantha
>>
>> On Fri, Jun 17, 2016 at 2:22 AM, Tharindu Edirisinghe <
>> tharin...@wso2.com> wrote:
>>
>>> Hi Asantha,
>>>
>>> I will go through the docs and provide feedback soon. Let's have a
>>> hangout session to discuss the pending issues.
>>>
>>> I'm available today 9.00 P.M IST for a google hangout.
>>>
>>> Thanks,
>>> TharinduE
>>>
>>> On Fri, Jun 17, 2016 at 11:30 AM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi Tharindu,

 I have prepared the user guide[1] and administrator guide[2] in
 google doc since all tasks are not finished yet i have only added the 
 tasks
 i have already done 

Re: [Dev] log user events to audit.log file via Jaggery block layer

2016-07-03 Thread Amalka Subasinghe
Added above mentioned code block to the router.jag file
Then the logs will be printed as...

[2016-07-04 10:48:00,050]  INFO -  User : ad...@wso2.com, Action :
createDatabaseAndAttachUser
[2016-07-04 10:48:06,300]  INFO -  User : ad...@wso2.com, Action :
dropDatabase
[2016-07-04 10:48:08,406]  INFO -  User : ad...@wso2.com, Action :
dropDatabase
[2016-07-04 10:48:15,675]  INFO -  User : ad...@wso2.com, Action :
createDatabaseAndAttachUser
[2016-07-04 10:48:24,817]  INFO -  User : ad...@wso2.com, Action :
createDatabaseUser



On Sun, Jul 3, 2016 at 4:17 PM, Mahesh Chinthaka  wrote:

> Hi Amalka,
>
> All the requests/actions go through it (router.jag).
>
>
>
> On Sun, Jul 3, 2016 at 7:16 AM, Amalka Subasinghe  wrote:
>
>> Hi,
>>
>> We can log adding following to the jaggery.
>>
>> var audit = org.wso2.carbon.CarbonConstants.AUDIT_LOG;
>> audit.info("User : " + jagg.getUser() + ", Action : " +  action);
>>
>> Here. I want to log who is the user logged in and what action he called.
>> Would it be ok to add this code to the router jag in app cloud? As I know
>> all requests/actions go through it. am I right?
>>
>> Thanks
>> Amalka
>>
>> On Fri, Jul 1, 2016 at 12:13 PM, Amalka Subasinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> I have a Jaggery app deployed in WSO2AS, I want to log user activities
>>> via block layer to a separate file (to audit.log).
>>> Please help.
>>>
>>> Thanks
>>> Amalka
>>>
>>>
>>
>>
>> --
>> Amalka Subasinghe
>>
>> WSO2 Inc.
>> Mobile: +94 77 9401267
>>
>
>
>
> --
> *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
>



-- 
Amalka Subasinghe

WSO2 Inc.
Mobile: +94 77 9401267
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] WSO2 API Manager 2.0.0 BETA2 Released!

2016-07-03 Thread Nirmal Fernando
On Fri, Jul 1, 2016 at 9:21 PM, Harsha Kumara  wrote:

> WSO2 API Manager 2.0.0 BETA2 Released!
> 
>
> We are pleased to announce the BETA2 release of WSO2 API Manager 2.0.0.
>
> WSO2 API Manager is a complete solution for designing and publishing APIs,
> securing and routing API traffic in a scalable way, whilst nurturing a
> developer community around the API ecosystem.
>
> This release comes with both the runtime and analytics, providing
> out-of-the-box support for API usage and performance analysis. You can
> download these distributions below.
>
> Runtime - wso2am-2.0.0-BETA2.zip
> 
>
Correction on the name of the analytics pack;

>
> Analytics - wso2analytics-apim-2.0.0-beta2.zip
> 
> P2-Repository - p2-repository
> 
> Improvements and Bug Fixes - WSO2 API Manager - Version 2.0.0-Beta2Bug
>
>- [APIMANAGER-4228 ] -
>When using the publisher REST API is used, internal server error (code 500)
>occurs in following cases
>- [APIMANAGER-4963 ] -
>It takes more than 7 minutes to start the APIM server with few errors
>- [APIMANAGER-5047 ] -
>[Cluster setup] APIs are not visible in the Store side
>- [APIMANAGER-5048 ] -
>Exceptions thrown when starting the server with -Dsetup by pointing API
>Manager database to Mysql 5.7
>- [APIMANAGER-5066 ] -
>'There is already an object named 'APPLICATION_NAME_CONSTRAINT' in the
>database' error occurs when executing MSSQL script given for AM DB.
>- [APIMANAGER-5067 ] -
>Read me and release notes files in APIM 2.0.0 pack aren't up to date
>- [APIMANAGER-5078 ] -
>Statistics are not displayed in Publisher and Store dashboards when connect
>to an analytics cluster
>- [APIMANAGER-5081 ] -
>go to overview option via add new API throws an exception
>- [APIMANAGER-5097 ] -
>Application throttled out response body showing a 'No Content' when
>enabling analytics
>- [APIMANAGER-5105 ] -
>Case Sensitive tags are displayed as same in capital letters
>- [APIMANAGER-5108 ] -
>No statistics displayed for subscribers other than admin in Published APIs
>over time
>- [APIMANAGER-5109 ] -
>Dropdown should rename as 'API subscribed by' in Publish APIs over time
>Statistics
>- [APIMANAGER-5110 ] -
>Other tenant subscribers aren't displayed in 'API subscribed by' drop down
>in Published APIs Over Time Statistics
>- [APIMANAGER-5111 ] -
>Cannot Delete subscriptions when API or provider name contains "-" from CXF
>Store REST API
>- [APIMANAGER-5116 ] -
>No Statistics displayed for API Usage Across Usage Agent Statistics
>- [APIMANAGER-5117 ] -
>[Tiers API]tierPlan returns null eventhough there is a tier plan set to a
>API tier
>- [APIMANAGER-5118 ] -
>[Tiers API]Attributes are returned as blank eventhough there are set of
>attributes defined for an API level tier
>- [APIMANAGER-5120 ] -
>Faulty invocations aren't listed in Faulty Invocations Statistics
>- [APIMANAGER-5122 ] -
>No Statistics displayed in API Latency Statitsics according to the
>invocations
>- [APIMANAGER-5123 ] -
>No Drop downs available in Developer Signups Over Time Statistics
>- [APIMANAGER-5135 ] -
>FileNotFoundException for metrics and mb-store scripts when DB is MySQL 5.7
>and server started with -Dsetup
>- [APIMANAGER-5141 ] -
>Client-side SDK for Java: Compilation failure with Java 8
>
> Improvement
>
>- [APIMANAGER-5084 ] -
>APIM 1.10 Publisher: forward slash in API version will break the 

Re: [Dev] [WSO2 Connector] Concur- getExchangeRate issue

2016-07-03 Thread Malaka Silva
Thx Rajjaz,

AFAIK you can only get exchange rate with the expense.

@Rajjaz / keertika - Please confirm.

[1]
https://developer.concur.com/api-reference-deprecated/version-one-one/expense-entry/get-expense-entry.html

On Sun, Jul 3, 2016 at 9:22 AM, Rajjaz Mohammed  wrote:

> Hi,
>
> Method removed from the connector and will add a new version in the store.
> Other then getExchangeRate method other methods are works fine[1].
>
> [1] https://wso2.org/jira/browse/ESBCONNECT-107
>
> On Sat, Jul 2, 2016 at 11:18 AM, Keerthika Mahendralingam <
> keerth...@wso2.com> wrote:
>
>> Hi Godwin,
>>
>> According to the documentation [1], this method is not available in the
>> API. I have created a public JIRA[2] to remove this method from the
>> connector.
>>
>> [1].
>> https://developer.concur.com/api-reference/expense/expense-report/expense-form.html
>>
>> [2]. https://wso2.org/jira/browse/ESBCONNECT-107
>>
>> Thanks,
>> Keerthika.
>>
>> On Sat, Jul 2, 2016 at 1:10 AM, Godwin Shrimal  wrote:
>>
>>> Hi All,
>>>
>>> I am trying to get exchange rate using WSO2 Concur connector and getting
>>> below response.
>>>
>>> 
>>> Not Found
>>> 2016-07-01T15:31:40
>>> 26D1A0AC-E21C-4626-85A3-2BB5380505DF
>>> 
>>>
>>> Once we enable wire log it has an outbound as *GET
>>> /api/v3.0/expense/exchangerates/?forDate=01/01/2016& HTTP/1.1 , *So we
>>> try the relevant rest endpoint   which is in [1] also give the same result.
>>> Concur shows the particular error in [2].
>>>
>>> Any thought ?
>>>
>>>
>>> [1]
>>> https://www.concursolutions.com/api/v3.0/expense/exchangerates/?forDate=05/05/2016
>>> [2] https://developer.concur.com/tools-support/reference/http-codes.html
>>>
>>> *Note: My token is valid since when I try some other endpoint those are
>>> working properly.*
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>>
>>
>>
>>
>> --
>> 
>> Keerthika Mahendralingam
>> Software Engineer
>> Mobile :+94 (0) 776 121144
>> keerth...@wso2.com
>> WSO2, Inc.
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thank you
> Best Regards
>
> *Rajjaz HM*
> Associate Software Engineer
> Platform Extension Team
> WSO2 Inc. 
> lean | enterprise | middleware
> Mobile | +94752833834|+94777226874
> Email   | raj...@wso2.com
> LinkedIn  | Blogger
>  | WSO2 Profile
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

Malaka Silva
Senior Technical Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
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  wrote:

> Thanks Tanya/Nisala for the quick turnaround!
>
>
>
> On Fri, Jul 1, 2016 at 6:54 PM, Nisala Nanayakkara 
> 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 
>> 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 
>>> 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 
 wrote:

> Hi Dunith,
>
> On Fri, Jul 1, 2016 at 3:42 PM, Dunith Dhanushka 
> 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 *
>> Twitter - @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 *
 Twitter - @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 *
> Twitter - @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] Please merge

2016-07-03 Thread Kalpa Welivitigoda
Hi Isura,

Would you please provide with a related carbon-multitenancy jira [1] and a
test case for the fix?

[1] https://wso2.org/jira/browse/CMTENANCY

On Sat, Jul 2, 2016 at 1:35 AM, Isura Karunaratne  wrote:

> Hi Johann,
>
>
>
> On Sat, Jul 2, 2016 at 1:03 AM, Johann Nallathamby 
> wrote:
>
>> Added two comments. Please check.''
>>
>
> Noted and Fixed.
>
>
> Thanks
> Isura
>
>>
>> On Sat, Jul 2, 2016 at 12:05 AM, Isura Karunaratne 
>> wrote:
>>
>>> HI Kalpa,
>>>
>>>
>>> Please review and merge following PR[1]
>>>
>>> [1] https://github.com/wso2/carbon-multitenancy/pull/91
>>>
>>> Thanks
>>> Isura
>>>
>>> --
>>> Isura Dilhara Karunaratne
>>> Senior Software Engineer
>>>
>>> Mob +94 772 254 810
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Technical Lead & Product Lead of WSO2 Identity Server
>> Governance Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com *
>>
>
>
>
> --
> Isura Dilhara Karunaratne
> Senior Software Engineer
>
> Mob +94 772 254 810
>
>


-- 
Best Regards,

Kalpa Welivitigoda
Senior Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] SAP RFC Function

2016-07-03 Thread JĂșnior
Hi,

Does anyone here has any example on calling a SAP RFC Function from WSO2
ESB?

Thanks
-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Clarification regarding Carbon Security JWT Login module

2016-07-03 Thread Farasath Ahamed
Hi,

Currently in order to validate the signature of a JWT in [1] we retrieve
the correct certificate using the "*alias*" parameter passed on to the
login module.

How is this value set in a real example? I mean how do we really decide
which IDP issued the JWT to pick the correct alias for the module to do the
signature validation?


[1]
https://github.com/wso2-extensions/carbon-security-login-module-jwt/blob/master/components/src/main/java/org/wso2/carbon/security/caas/module/jwt/JWTLoginModule.java


Thanks,
Farasath Ahamed
Software Engineer,
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware


Email: farasa...@wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DIV][ES]Adding file to hidden field when adding a new asset type in ES

2016-07-03 Thread Megala Uthayakumar
Hi All,

We are developing a DS asset extension for ES. In that user inserts a zip
file (Which contains the gadget thumbnail and other relevant gadget files
within it) and in order to get only the relevant thumbnail file, I have
included a hidden field of type file. So that I can unzip the zip file and
save only the thumbnail at ES side and can refer to that file for
thumbnail. I tried to add the path to the relevant field. But It is only
passing as string. I also tried to pass a jaggery file object. But still
actual file is not uploaded.

Following is the line, I inserted in asset.js,  under update,
*  options.attributes.gadget_thumbnail = GADGET_EXT_PATH + '/' +
gadgetsDirectoryLabel + '/' +
options.attributes.overview_id+'_'+options.attributes.overview_version +
'/thumbnail';*

How can I solve this problem? Any help on this is highly appreciated.

Thanks.

Regards,
Megala

-- 
Megala Uthayakumar

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


Re: [Dev] Authentication Failed for IOT Server

2016-07-03 Thread Lakshitha Warnakulasuriya
Hi Rasika,

It's working fine now. It is my mistake. I gave the wrong IP for register
the app. Now it is working fine. Thanx.

Thanx and Regards,
Lakshitha.
On 3 Jul 2016 16:58, "Rasika Perera"  wrote:

> Hi Lakshitha,
>
> Thank you very much for trying out IoT Server. You meant to say you are
> trying to authenticate your android_sense app from your mobile with server
> address as http://localhost:9443?
>
> It would not work since localhost on your host machine is mapped to
> 127.0.0.1 which is your local loopback. In your mobile localhost/ local
> loopback would be your mobile itself.
>
> I assume you didn't host your IoT server on Internet with a public IP. In
> that case, for the testing purpose you can connect your mobile and IoT
> server into a same network with a WiFi router.
>
> Let us know if this work for you.
>
> Thank you
>
>
> On Sat, Jul 2, 2016 at 7:59 AM, Lakshitha Warnakulasuriya <
> lakshitha...@gmail.com> wrote:
>
>> Hi Ayyoob,
>>
>> IOT server up on https://localhost:9443 url. I used this for Android
>> Sense app url.
>>
>> Thanks and Regards,
>> Lakshitha.
>> On 2 Jul 2016 03:54, "Ayyoob Hamza"  wrote:
>>
>> Hi Lakshitha,
>>
>> Did you point the URL to the correct endpoint(Server URL)?. It should be
>> in the form of
>> https://:9443
>>
>> Regards,
>> Ayyoob
>>
>> *Ayyoob Hamza*
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>
>> On Sat, Jul 2, 2016 at 12:36 AM, Lakshitha Warnakulasuriya <
>> lakshitha...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I'm using alpha version of WSO2 IOT server. I'm trying connecting my
>>> android device with IOT server using Android Sense app. Authentication
>>> Failed when I try to register for the app.
>>>
>>> Username - admin
>>> Password - admin
>>> URL - https://localhost:9443
>>>
>>> Any help can be really appreciated.
>>>
>>> Thanks and Regards,
>>> Lakshitha.
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> M: +94 71 680 9060 E: rasi...@wso2.com
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Authentication Failed for IOT Server

2016-07-03 Thread Rasika Perera
Hi Lakshitha,

Thank you very much for trying out IoT Server. You meant to say you are
trying to authenticate your android_sense app from your mobile with server
address as http://localhost:9443?

It would not work since localhost on your host machine is mapped to
127.0.0.1 which is your local loopback. In your mobile localhost/ local
loopback would be your mobile itself.

I assume you didn't host your IoT server on Internet with a public IP. In
that case, for the testing purpose you can connect your mobile and IoT
server into a same network with a WiFi router.

Let us know if this work for you.

Thank you


On Sat, Jul 2, 2016 at 7:59 AM, Lakshitha Warnakulasuriya <
lakshitha...@gmail.com> wrote:

> Hi Ayyoob,
>
> IOT server up on https://localhost:9443 url. I used this for Android
> Sense app url.
>
> Thanks and Regards,
> Lakshitha.
> On 2 Jul 2016 03:54, "Ayyoob Hamza"  wrote:
>
> Hi Lakshitha,
>
> Did you point the URL to the correct endpoint(Server URL)?. It should be
> in the form of
> https://:9443
>
> Regards,
> Ayyoob
>
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
> On Sat, Jul 2, 2016 at 12:36 AM, Lakshitha Warnakulasuriya <
> lakshitha...@gmail.com> wrote:
>
>> Hi All,
>>
>> I'm using alpha version of WSO2 IOT server. I'm trying connecting my
>> android device with IOT server using Android Sense app. Authentication
>> Failed when I try to register for the app.
>>
>> Username - admin
>> Password - admin
>> URL - https://localhost:9443
>>
>> Any help can be really appreciated.
>>
>> Thanks and Regards,
>> Lakshitha.
>>
>> ___
>> 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
>
>


-- 
With Regards,

*Rasika Perera*
Software Engineer
M: +94 71 680 9060 E: rasi...@wso2.com
LinkedIn: http://lk.linkedin.com/in/rasika90

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] log user events to audit.log file via Jaggery block layer

2016-07-03 Thread Mahesh Chinthaka
Hi Amalka,

All the requests/actions go through it (router.jag).



On Sun, Jul 3, 2016 at 7:16 AM, Amalka Subasinghe  wrote:

> Hi,
>
> We can log adding following to the jaggery.
>
> var audit = org.wso2.carbon.CarbonConstants.AUDIT_LOG;
> audit.info("User : " + jagg.getUser() + ", Action : " +  action);
>
> Here. I want to log who is the user logged in and what action he called.
> Would it be ok to add this code to the router jag in app cloud? As I know
> all requests/actions go through it. am I right?
>
> Thanks
> Amalka
>
> On Fri, Jul 1, 2016 at 12:13 PM, Amalka Subasinghe 
> wrote:
>
>> Hi,
>>
>> I have a Jaggery app deployed in WSO2AS, I want to log user activities
>> via block layer to a separate file (to audit.log).
>> Please help.
>>
>> Thanks
>> Amalka
>>
>>
>
>
> --
> Amalka Subasinghe
>
> WSO2 Inc.
> Mobile: +94 77 9401267
>



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