[ 
http://mifosforge.jira.com/browse/MIFOS-2252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

keithwoodlock resolved MIFOS-2252.
----------------------------------

             Team: Core
       Resolution: Fixed
    Fix Version/s:     (was: Unscheduled)
                   Shamim D

fixed in trunk for shaminD - https://ci.mifos.org:8843/hudson/job/trunk/1163/

The problem is that the validation method used ProcessFlowRules.isValidOverride 
does not allow for the database configuration to be enabled but the property 
based conifuration in the files to be disabled. 

This is a valid scenario when first launching mifos.

It has being changed so that mifos can now have database configuration enabled 
(or disabled) out of box and file based configuration can override this so long 
as no entities concerned with the process step already exist (clients, groups).

> Process flow trapdoor settings still rejected when no clients exist
> -------------------------------------------------------------------
>
>                 Key: MIFOS-2252
>                 URL: http://mifosforge.jira.com/browse/MIFOS-2252
>             Project: mifos
>          Issue Type: Bug
>          Components: Custom Properties
>    Affects Versions: Release 1.2
>         Environment: Platform: All, OS: All
>            Reporter: jbrewster
>            Assignee: keithwoodlock
>            Priority: Major
>             Fix For: Shamim D
>
>         Attachments: localhost.2008-11-12.log
>
>
> If I set the trapdoor process flow settings, e.g. 
> 'ClientPendingApprovalStateEnabled', to false prior to populating the Mifos DB
> with customer data, the application will still reject the setting and Mifos 
> will
> fail to start.  This is due to running the latest-data.sql script which 
> enables
> these settings in the customer_state and account_state tables.
> Repro steps:
> 1. drop existing mifos DB.
> 2. Create and initialize DB using sql scripts we provide with sourceforge
> download package:  
>          mysql -u root -pmysql < sql/create_mifos_db.sql
>          mysql -D mifos -u root -pmysql < sql/latest-schema.sql
>          mysql -D mifos -u root -pmysql < sql/latest-data.sql
>          mysql -D mifos -u root -pmysql < sql/init_mifos_password.sql
> 3. Place custom application properties file in tomcat path set some of the
> trapdoor process flow settings like LoanPendingApprovalStateEnabled and
> ClientPendingApprovalStateEnabled to false.
> 4. Deploy mifos.war and start tomcat.
> Expected result:
> Mifos deployed and trapdoor settings are used since no customer data has been
> entered.
> Actual result:
> Tomcat fails to start.  Error in tomcat log reports: 
> "The value for key ProcessFlow.ClientPendingApprovalStateEnabled in the file
> applicationConfiguration.custom.properties must to be set to 1 because it was
> set to 1 in the database, hence can't be set to to 0 in the custom 
> configuration
> file as this might invalidate existing data. Records for clients in the 
> 'pending
> approval' state may already exist. Also,
> applicationConfiguration.default.properties must never be changed--make sure
> this file is untouched."
> full log attached to issue.  Tested with revision v...@14040.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to