Commit Graph
5118 Commits
Author SHA1 Message Date
Michael Vorburger 4e1d87f20a fix broken docker-compose set up (re. FINERACT-773)
This fixed bugs introduced in edc9e030e1
(in https://github.com/apache/fineract/pull/648) which for FINERACT-773
actually broke things more instead of adding the intended feature, cauz:

1. FINERACT_DEFAULT_TENANTDB_HOSTNAME and FINERACT_DEFAULT_TENANTDB_PORT
   were meant to be OS Environment Variables, not Java System properties
   and so need to be read via System.getenv() not System.getProperty(),
   duh!

2. The Travis CI test which was meant to ensure non-regression for this
   broke in that same change, because the "|| docker logs" introduced at
   the same time would always pass (EITHER because "http" passed OR
   if not then "docker logs" would return 0), duh again!

Both were dumb, not sure what I was thinking when I had hacked this.. ;)
2020-01-12 20:44:22 +01:00
Michael Vorburger 89b996cf58 Revert changes made to LoanReschedulingWithinCenterTest (FINERACT-702)
@awasum changed this in the SpotBugs related work, but this seems both
wrong, and, for me, makes this test now fail instead of pass (even
though for him it passed on the original PR...).

Probably related to https://issues.apache.org/jira/browse/FINERACT-820;
note that my current local time as I'm testing this is Sunday, and it
WORKS with; I'm now confused when FINERACT-820 affects us and when not.
Or perhaps this has nothing at all to do with that.
2020-01-12 13:16:42 +01:00
Awasum YannickandMichael Vorburger ⛑️ af0dd7e5f3 use SpotBugs & fix over 300 high priority rule violations (FINERACT-702)
This PR also serves as a base solution for upcoming FINERACT-712 and
FINERACT-696.  It includes using Objects.equals() to prevent NPEs, and
adding gradle check to run SpotBugs on Travis CI.

PS: SpotBugs is the successor to (and same code as) FindBugs.
2020-01-12 13:16:42 +01:00
Michael Vorburger 75f7c5947d add .project and .settings/ to .gitignore 2020-01-10 17:34:54 +01:00
Sidney WasibaniandMichael Vorburger ⛑️ 865e5a54a3 FINERACT-803 change the license comment type 2020-01-10 16:38:44 +01:00
Sidney WasibaniandMichael Vorburger ⛑️ ff702dbd19 FINERACT-803 fix exception handling for username duplication 2020-01-10 16:38:44 +01:00
Michael Vorburger a93a6b8487 Change /authentication API to pass data in request body instead of URL arguments (FINERACT-726) 2020-01-08 22:50:16 +01:00
Awasum YannickandGitHub ba6f778d85 Merge pull request #675 from apache/vorburger-travis
change .travis.yml to only run docker test if integration test passed
2019-12-16 21:27:10 +01:00
Michael Vorburger ⛑️andGitHub 5bce2422e0 change .travis.yml to only run docker test if integration test passed 2019-12-14 15:51:49 +01:00
Awasum YannickandGitHub f739f919c7 Merge pull request #672 from vorburger/fix-equals-NPE
fix potential NPE in JobParameter.equals() (FINERACT-428)
2019-12-14 13:21:20 +01:00
Michael Vorburger ⛑️ 030d9c8bd8 fix potential NPE in JobParameter.equals() (FINERACT-428) 2019-12-12 21:39:45 +00:00
Kumaranath FernandoandMichael Vorburger ⛑️ 0da4cdd412 Parallelization of Jobs: Parallelizing and paging of recalculate interest for loans (PR #524 for FINERACT-428) 2019-12-12 21:44:44 +01:00
Michael Vorburger ⛑️andGitHub cc181b5742 reset/verify all default global configurations in some integration tests (PR #671 for FINERACT-722)
Remove necessary resetting of 2 select default global configurations in FlexibleSavingsInterestPostingIntegrationTest.

Fixes issue where global configurations were affecting state between integration tests. This caused LoanReschedulingWithinCenterTest to fail on the first day of the month only because the "skip-repayment-on-first-day-of-month" configuration was modified but never reset by GlobalConfigurationTest.

Also updated other integration tests to reset and verify default global configurations.

FINERACT-722
2019-12-12 09:21:45 +01:00
andrew-dzakandMichael Vorburger ⛑️ 0474f59bcf fix overdraft account balance (PR #659 for FINERACT-753) 2019-12-11 07:59:50 +01:00
Percy Ayuk AshuandMichael Vorburger ⛑️ 26b4e0000c use dependency's versions from Spring BOM (PR #668 for FINERACT-805) 2019-12-10 06:38:41 +01:00
Mohit SinhaandGitHub d6eb3b0cf3 Merge pull request #665 from apache/revert-660-FINERACT-803
Revert "FINERACT-803: validate username uniqueness"
2019-12-08 00:39:32 +07:00
Mohit SinhaandGitHub 9674e0a718 Revert "FINERACT-803: validate username uniqueness" 2019-12-07 23:24:00 +07:00
Mohit SinhaandGitHub fb1e3d7c18 Merge pull request #660 from jamesidw/FINERACT-803
FINERACT-803: validate username uniqueness
2019-12-03 19:17:21 +07:00
Sidney Wasibani d9a0a9ac63 FINERACT-803: validate username uniqueness
FINERACT-803: treat existing username in update, to same user, as valid

FINERACT-803: skip username uniqueness validation for updates

FINERACT-803: add integration test for username uniqueness validation

FINERACT-803: change the validation error message to show the errant username

FINERACT-803: restore username uniqueness validation for updates

FINERACT-803: apply minor code clean up suggestions
2019-12-03 14:07:37 +03:00
Yemdjih Kaze NasserandMichael Vorburger ⛑️ a20f76d686 Use Spring Boot BOM to avoid maintaining version numbers in dependencies.gradle (#662 for FINERACT-797) 2019-12-02 07:44:35 -08:00
xurrorandMichael Vorburger ⛑️ 0440a36317 remove todos from XBRLBuiderTest 2019-12-01 17:12:25 -08:00
Percy Ayuk AshuandMichael Vorburger ⛑️ 451f4a6338 FINERACT-777 Use api / implementation scoped Gradle dependencies (#661)
see https://issues.apache.org/jira/browse/FINERACT-777
2019-12-01 17:08:31 -08:00
Maek TwainandMichael Vorburger ⛑️ 981bc17a60 Adding vnd.ms-excel MIME type support in BulkImportWorkbookServiceImpl (#650) 2019-11-27 18:33:17 -08:00
Awasum YannickandGitHub c6d8a49a8c Merge pull request #648 from vorburger/FINERACT-773_Dockerfile-JDBC-URL
Make it possible to customize JDBC URLs in Docker Image at run-time instead of at build (FINERACT-773)
2019-11-26 08:16:03 +01:00
Michael Vorburger edc9e030e1 Allow customizing JDBC URLs at run-time instead of during container build (FINERACT-773)
In Docker, set JAVA_OPTS instead of FINERACT_TENANTS_URL.

Because ARG/ENV in the Dockerfile can't (easily) be changed at run-time.

At first I tried to override the ENTRYPOINT with a script which sets
JAVA_OPTS based on FINERACT_TENANTS_URL and then delegates to the original
/app-entrypoint.sh; that didn't immediately work, so this seems simpler.

Including make default tenant JDBC hostname & port configurable at Docker container run instead of build time.
2019-11-26 06:06:59 +01:00
Michael Vorburger ⛑️andGitHub 01518b0f32 Delete .response.json.swp 2019-11-25 20:52:13 -08:00
Awasum YannickandGitHub 3ea8d209bb Merge pull request #655 from xurror/develop
remove TODO Auto-generated method stub
2019-11-25 09:00:51 +01:00
xurror b0bfeddc62 remove TODO Auto-generated method stub 2019-11-25 08:58:07 +01:00
Awasum YannickandGitHub d553b421bf Merge pull request #658 from vorburger/dottheia
add .theia/settings.json
2019-11-25 08:30:27 +01:00
Awasum YannickandGitHub e7868706f5 Merge pull request #657 from vorburger/log-less
reduce excessive logging causing Travis CI problems (FINERACT-800)
2019-11-25 08:12:27 +01:00
Kang BrederandMichael Vorburger ⛑️ 2770f78cc4 Corrected all Swagger documents found in the Accounting module by adding API description in anappropriate manner and the response.json file found in the swagger UI has been updated with the latest changes. 2019-11-24 23:08:59 -08:00
Kang BrederandMichael Vorburger ⛑️ 5ce86eaced Added description to Batch API swagger document in a correct manner. 2019-11-24 23:08:05 -08:00
Sidney WasibaniandMichael Vorburger ⛑️ c601856ca4 FINERACT-787 add selfServiceRoles template resource 2019-11-24 22:54:37 -08:00
Michael Vorburger ⛑️ f255a597f8 add .theia/settings.json to avoid confusing prompt on http://gitpod.io
and exclude JSON files from RAT (because they cannot contain license header comments)
2019-11-25 07:44:37 +01:00
Michael Vorburger 8c65696d49 reduce excessive logging causing Travis CI problems (FINERACT-800) 2019-11-25 07:44:37 +01:00
Michael Vorburger 2c733283c7 reduce excessive logging causing Travis CI problems (FINERACT-800) 2019-11-25 07:31:50 +01:00
Michael Vorburger ⛑️andGitHub a9858b1145 Merge pull request #653 from awasum/spring-boot-2.1.7-upgrade
upgrade Spring Framework dependencies (FINERACT-724)

reviewed on https://github.com/apache/fineract/pull/642 
and https://github.com/apache/fineract/pull/653
2019-11-24 12:11:14 -08:00
ibondarenko 347108b382 FINERACT-724 fix oauth authentication, replace DefaultPasswordEncoderFactories with standard spring security PasswordEncoderFactories 2019-11-22 18:28:10 +02:00
ibondarenko 1e0e6ca3e7 FINERACT-724 fix oauth configuration 2019-11-21 17:36:43 +02:00
ibondarenko 1d9176505b FINERACT-724 fix travis build after spring version migration 2019-11-21 12:33:24 +02:00
ibondarenko 33acc37a76 FINERACT-724 disable csrf on oauth configuration 2019-11-21 11:05:11 +02:00
ibondarenko 69f650654f Merge branch 'develop' of https://github.com/ivan333m/fineract into develop 2019-11-12 10:46:06 +02:00
ibondarenko e743fd5207 FINERACT-724 fixes after review (minor cleanup) 2019-11-12 10:36:27 +02:00
ibondarenko de77996e66 FINERACT-724 fixes after review (part2) 2019-11-12 10:36:27 +02:00
ibondarenko 377787280c FINERACT-724 fixes after review 2019-11-12 10:36:27 +02:00
ibondarenko c0383997bb implementation of FINERACT-724 properties cleanup 2019-11-12 10:36:27 +02:00
ibondarenko 43fd8618ad implementation of FINERACT-724 (Upgrade Spring Boot, Spring and Spring Security to their latest stable version) 2019-11-12 10:36:27 +02:00
Michael Vorburger 23c3f23e12 sleep 30s instead of 5s before attempting to httpie 2019-10-21 09:45:23 +02:00
Michael Vorburger 1aee1ef6a8 install httpie in .travis.yml for docker-compose test 2019-10-21 09:45:23 +02:00
Michael Vorburger a06c008cc3 Stop mysql system service before docker-compose on Travis CI 2019-10-21 09:45:23 +02:00