Re: [Mifos-users] [Mifos-developer] Version 16.04.01 api Issues: Cant view clients/loans

14 views
Skip to first unread message

Skyburg Systems

unread,
Apr 27, 2016, 3:45:29 PM4/27/16
to Mifos software development, A good place to start for users or folks new to Mifos.

Hi Adi,

 

The issue with the data appearing across all tenants is valid for a multi-tenant environment with the default tenant database. So far I don’t see a default.openmf.org sub domain to test from. But with other users this issue is prevalent. It looks like something is being passed from the initialtasks.js file to default url. If your database environment does not have default you will not be able to test accurately.

 

You’re right about the other problem. It seems the issue on the loan approvals has been around for a long time and we only just picked it up now.

 

Looking forward to your response.

 

Kind regards,

Sifiso

 

From: Adi Raju [mailto:adi....@confluxtechnologies.com]
Sent: April 27, 2016 5:20 PM
To: 'Mifos software development'; 'Subramanya S N'
Subject: Re: [Mifos-developer] Version 16.04.01 api Issues: Cant view clients/loans

 

Hi Sifiso,

 

First off I want to allay the fears of data getting displayed across tenants.

I have checked on the demo and staging servers on multiple clients and all look to be working fine.

 

In the screens mentioned by you, I do not see any code changes from early 2015.

This looks more of expectation mismatch or code not scaling up to current data size.

Core team will verify and get back with actual issue.

 

Regards,

Adi

 

 

From: Skyburg Systems [mailto:in...@skyburgsystems.org]
Sent: 27 April 2016 18:50
To: 'Subramanya S N' <subra...@confluxtechnologies.com>
Cc: 'Mifos software development' <mifos-d...@lists.sourceforge.net>
Subject: Re: [Mifos-developer] Version 16.04.01 api Issues: Cant view clients/loans

 

Hi Subramanya

 

And another thing is now everything that appears in the default tenant appears in every other tenant if you are using a multi-tenant setup. So if you log into tenant1.mifos.com for example it shows you data from default.mifos.com (i.e. when you are using mifos password on both tenants). Otherwise the other tenants will all not login because they are reflecting the default tenants data.

 

Please advise as a matter of urgency.

 

Kind regards

Sifiso

 

From: Skyburg Systems [mailto:in...@skyburgsystems.org]
Sent: April 27, 2016 2:04 PM
To: 'Subramanya S N'
Cc: 'Mifos software development'; Mifos Users
Subject: RE: [Mifos-developer] Version 16.04.01 api Issues: Cant view clients/loans

 

Subramanya,

 

Ok

I have created one example on the demo.openmf.org as you advised. I have attached two screenshots. One of the loan account awaiting approval and the other of the tab in pending tasks for Loan Approval. And no new loans in version 16.04.01 are appearing under loan approval, or disbursement and client approval.

 

The issue seems to be on the user interface. And data is not being called on certain screens.

 

Kind regards,

Sifiso

 

From: Subramanya S N [mailto:subra...@confluxtechnologies.com]
Sent: April 27, 2016 1:18 PM
To: Mifos software development
Cc: Mifos Users
Subject: Re: [Mifos-developer] Version 16.04.01 api Issues: Cant view clients/loans

 

Hi Sifio,

Can you please explain the issue in detail. Can you reproduce the same in https://demo.openmf.org/.

 

On Wed, Apr 27, 2016 at 3:05 PM, Skyburg Systems <in...@skyburgsystems.org> wrote:

Hi guys,

 

Noticed that if you create a client in 16.04.01 they don’t appear under loan approvals, and according to other partners it’s not a bug as such but an API issue. Especially if you are running on your own domain name, some of the REST apis are calling default domain instead of tenant.openmf.org for example. Just upgraded so really need your advice to this ‘quick-fix’.

 

Kind regards,

Sifiso


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
Mifos-developer mailing list
mifos-d...@lists.sourceforge.net
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer




--

Regards,
Subramanya.

 

Vishwas Babu A J

unread,
Apr 28, 2016, 8:18:54 PM4/28/16
to Mifos software development, A good place to start for users or folks new to Mifos.
Hi Sifiso,

The first problem you are reporting (the one you described on Skype with you being able to see inconsistent data across tenants in the maker checker screen) is a configuration issue your end, I haven’t looked at loan approval issues you have encountered but it might also be an extension of the deployment problem.

The Mifos community app works in a multi tenant environment in three ways

1) By default, it tries to connect to a tenant named “default” on the target Mifos platform
2) If the tenantIdentifier is passed in as a URL parameter, the community app connects to this tenant . In your scenario https://209.126.68.38/?tenantIdentifier=oakfin# would connect to the tenant named “oakfin” 
3) If you are using a subdomain of “openmf.org", the community app tries to replace the tenantIdentifer with the subdomain. So oakfin.openmf.org would connect to “oakfin” tenant , randommfi.openmf.org would connect to “randonmfi” and so on. The setting of tenantIdentifier based on a subdomain  is done in initialTasks.js only for the “openmf.org” domain .

You were trying to create data on https://209.126.68.38/?tenantIdentifier=oakfin# (which was creating the data on a tenant “oakfin” ) and then view the same on https://oakfin.mifosx.net (which connects to the “default" tenant) hence the data incosistency . If you want https://oakfin.mifosx.net to automatically connect to “oakfin” , you would have to make this change in initialTasks.js

i.e replace 

if (mainLink.hostname.indexOf(openmf.org') >= 0) {
with

if (mainLink.hostname.indexOf(‘mifosx.net') >= 0) {
You could also make a small modification to pick up the configurable domain name from configurations.js instead of it being hardcoded in initialTasks.js so you do not have to edit initialTasks.js file on every upgrade 


Regards,
Vishwas



Skyburg Systems

unread,
May 10, 2016, 8:22:56 AM5/10/16
to Mifos software development, A good place to start for users or folks new to Mifos.

Hi Vishwas,

 

Maybe the best method of checking is if you create a new client and create a new loan for them. Then see if that loan appears in the loan approvals section. I’ve tried it on the demo.openmf.org as well as other instances tested by other providers and no new client has a new loan that appears in loan approvals in the pending tasks section.

 

Please advise.

 

Regards,

Sifiso

Adi Raju

unread,
May 10, 2016, 8:41:54 AM5/10/16
to Mifos software development, A good place to start for users or folks new to Mifos.

Sifiso,

 

Please track the below issue….

https://mifosforge.jira.com/browse/MIFOSX-2712

The solution should be part of formal 16.05.01.RELEASE pending this week.

Skyburg Systems

unread,
May 10, 2016, 1:36:04 PM5/10/16
to Mifos software development, A good place to start for users or folks new to Mifos.

Ok thanks Adi, looking forward to it.

Reply all
Reply to author
Forward
0 new messages