Commit Graph
5200 Commits
Author SHA1 Message Date
Michael Vorburger f1c7a7b4bc add DRIVERCLASS_NAME, PROTOCOL, SUB_PROTOCOL to docker-compose.yml
These are the default values, from jdbc.properties, only added for
clarity and to make it obvious that they need to be changed e.g. for
FINERACT-762.

The different formats and naming conventions are a little bit of a mess,
but changing them now leads to backwards incompatibility, so for now
let's leave as is; possible clean up later in FINERACT-889.
2020-04-15 17:58:36 +02:00
Michael Vorburger 519dd204d8 set fineract_tenants_* more nicely in docker-compose.yml
We can use environment variables instead of system properties.

We originally had to use system properties and could not use environment
variables, because these used to read by Tomcat, but since the switch
to Hikari in FINERACT-796 these are read by Spring Boot instead of
Tomcat, so we can now use system properties.

This both "looks nicer" and is useful e.g. for FINERACT-881.
2020-04-15 17:58:36 +02:00
Michael Vorburger ⛑️andGitHub 9517051340 comment out flaky SchedulerJobsTest (FINERACT-852) (#764)
Also adds a new assertion for a clearer failure message than the
confusing low-level technical ArrayIndexOutOfBoundsException for
whenever this test will be re-activated later.
2020-04-15 10:36:46 +01:00
Michael Vorburger ⛑️andGitHub fd7fa63002 improve ClientSavingsIntegrationTest error reporting (FINERACT-852) (#765)
Adds a new assertion for a hopefully clearer failure message than the
confusing low-level technical ArrayIndexOutOfBoundsException we
regularly hit on Travis CI.

Similar to https://github.com/apache/fineract/pull/764
2020-04-15 09:34:33 +01:00
26b619eea7 FINERACT-809 (#719) : Upgrade RestAssured version
Upgrade RestAssured version

closes https://issues.apache.org/jira/browse/FINERACT-809

Co-authored-by: percyashu <percyayukashu@gmail.com>

Co-authored-by: percyashu <percyayukashu@gmail.com>
2020-04-12 20:36:15 +01:00
Michael Vorburger c9a1b38b0e chmod +x kubernetes/*.sh (and some README updates) 2020-04-12 13:37:47 +02:00
xurrorandMichael Vorburger ⛑️ a9c2140463 Setup configMap and startup and shutdown scripts 2020-04-12 11:06:38 +02:00
xurrorandMichael Vorburger ⛑️ 472f5b6280 FINERACT-783
- Update README.md with instructions for kubernetes
 - Setup fineractmysql configuration file
 - Setup fineract-server configuration file
closes https://issues.apache.org/jira/browse/FINERACT-783
2020-04-12 11:06:38 +02:00
thesmallstarandMichael Vorburger ⛑️ beee2e5330 Fixed: Checkstyle Violations 2020-04-07 23:46:20 +02:00
Michael Vorburger 09d0cfaa52 Remove AbstractPersistableCustom's PK parameterization
Because both are pointless, as the PK @Id is hard-coded to Long anyway,
and the U is (rightfully) fixed to always be an AppUser here.
2020-04-07 23:46:20 +02:00
Michael Vorburger dccea1d65e add @Transient to AbstractPersistableCustom isNew()
see https://jira.spring.io/browse/DATAJPA-622

Even though we don't use Hibernate, copying this annotation from the
original class in Spring Data seems prudent - just in case.  It should
not cause any harm or side effects on OpenJPA.
2020-04-07 23:46:20 +02:00
Michael Vorburger ae4117052b add missing doc to AbstractPersistableCustom & AbstractAuditableCustom 2020-04-07 23:46:20 +02:00
NatashaandMichael Vorburger ⛑️ d0c8c6a012 FINERACT-538 populated updated and created address 2020-04-07 23:15:25 +02:00
NatashaandMichael Vorburger ⛑️ eb8a3572ae FINERACT-122 added clientId, officeId, and groupId. 2020-04-07 23:11:48 +02:00
Manthan SurkarandMichael Vorburger ⛑️ 110684bf30 Added: IntelliJ Checkstyle plugin tip to README 2020-04-07 10:08:03 +02:00
Michael Vorburger ⛑️andGitHub a0a82a0748 add link to Release Process page on Wiki to README 2020-04-06 12:03:11 +02:00
Manthan SurkarandGitHub 402c41dd95 Add Jacoco to measure code coverage (FINERACT-725 / PR #742)
* Added Code Coverage Section in Readme
2020-04-01 23:29:15 +02:00
Michael Vorburger ⛑️ 4ccbcba3a6 add Eclipse Checkstyle plugin tip to README 2020-03-29 13:13:29 +02:00
Michael Vorburger 53e8658d74 apply Hikari's recommended MySQL Configuration (FINERACT-796)
from https://github.com/brettwooldridge/HikariCP/wiki/MySQL-Configuration
and https://github.com/brettwooldridge/HikariCP/wiki/JDBC-Logging#mysql-connectorj
2020-03-28 17:58:39 +01:00
Michael Vorburger 5f2ba51f5a Minor clean ups in DataSource Connection Pool related code 2020-03-28 17:58:39 +01:00
Michael Vorburger 99794914a5 Fix wrong @OneToOne to @ManyToOne in AbstractAuditableCustom 2020-03-28 15:07:28 +01:00
xurrorandMichael Vorburger ⛑️ 3475c0cfb7 FINERACT-796
Use Hikari instead of Tomcat Connection Pool
 - Created hikari connection pool bean
 - Configured connection parameters to match hikari
 - Removed tomcat-jdbc and dbcp
 - Remove unused classes
 - Add Hikari to logback
 - update hikaridatasource bean

closes https://issues.apache.org/jira/browse/FINERACT-796

remove hikaricp import from gradle files

more specific bean config

- Set up datasource properties
- Cleanup unused classes
- Add hikari to logback
2020-03-28 15:06:34 +01:00
percyashuandMichael Vorburger ⛑️ 2e620b4de8 FINERACT-823 Gradle modernizer fixing violations 2020-03-23 00:54:00 +01:00
percyashuandMichael Vorburger ⛑️ ef5bba4d52 Minor Typo fix 2020-03-17 20:53:02 +01:00
thesmallstarandMichael Vorburger ⛑️ 3f11dc51a9 Fix: Duplicate migration version 2020-03-15 11:05:30 +01:00
Michael Vorburger b1eb62f221 fix broken build due to small logging error detected by SpotBugs
significant reformatting due to Eclipse auto-save action (someone really
needs to finish the Checkstyle uniform formatting)

see https://github.com/apache/fineract/pull/592
2020-03-15 11:05:30 +01:00
Angel CajasandMichael Vorburger ⛑️ b9b265b915 Fineract-614
Changes to comply with Checkstyle rules
2020-03-13 17:15:25 +01:00
Angel CajasandMichael Vorburger ⛑️ 8df44af628 Fineract-614:
Updating Global Configurations
Fixing some rebase conflicts
Change to imports on IntegrationTest for CheckStyle
2020-03-13 17:15:25 +01:00
Angel CajasandMichael Vorburger ⛑️ 15a4a7695a Fineract-614:
Updating Global Configurations
Fixing some rebase conflicts
2020-03-13 17:15:25 +01:00
Angel CajasandMichael Vorburger ⛑️ 3a1a90d15e Fineract-614: Renaming SQL file for a higher version number 2020-03-13 17:15:25 +01:00
Angel CajasandMichael Vorburger ⛑️ e2f5c95034 Fixing some code to be compatible with Spring update 2020-03-13 17:15:25 +01:00
Angel CajasandMichael Vorburger ⛑️ c342f5b43d FINERACT-737: Updated Api Docs to include loan charges paid by
FINERACT-736: Api Docs were updated to include rates documentation
FINERACT-735: Integration test were created for rates creation, retrieval and update

Missing permission READ_RATE
2020-03-13 17:15:25 +01:00
Angel CajasandMichael Vorburger ⛑️ a7d4c83e92 A new rates module was added to define new rates that can be used to set min and max nominal interest rate, when a new loan account is created they can be used to determine which rates may be applicable for the loan account. 2020-03-13 17:15:25 +01:00
xurrorandMichael Vorburger ⛑️ f484f884a0 FINERACT-696
add spotbug bug-pattern plugin.

Apply suggestions from code review

closes https://issues.apache.org/jira/browse/FINERACT-696

Co-Authored-By: Michael Vorburger ⛑️ <mike@vorburger.ch>
2020-03-13 09:27:34 +01:00
thesmallstarandMichael Vorburger ⛑️ de329e2489 FINERACT-83 Made interestIncome variable null-safe 2020-03-12 12:57:18 +01:00
thesmallstarandMichael Vorburger ⛑️ 93d1716630 Added: SQL builder toString function 2020-03-12 12:54:46 +01:00
Michael Vorburger 1b1e80b6b1 Log errors from cron jobs individually and with cause (FINERACT-858)
instead of current huge JobExecutionException message (without cause)
2020-03-10 17:10:01 +01:00
Michael Vorburger ⛑️andGitHub 0c9273a11b throw exception with details in InteropServiceImpl (FINERACT-860) (#728)
instead of the NoSuchElementException from Optional.get(), we're now
throwing an UnsupportedOperationException which includes the details of
the missing object.  (This kind of detailed exception was already thrown
in two existing places in the same code after a null check, but it never
reached there, because the Optional.get() failed earlier.  Another
option would have been to return null for an absent Optional, but this
is better.)

The other unrelated changes are automatic clean up actions (in Eclipse).
2020-03-10 12:29:07 +01:00
thesmallstarandMichael Vorburger ⛑️ a34742b59a Made SQL builder ColumnName regex more general 2020-03-10 11:36:49 +01:00
Michael Vorburger 753554e281 Fix audit trails filter (FINERACT-808)
As per the great analysis by Manthan Surkar (@thesmallstar) in the
original PR https://github.com/apache/fineract/pull/723, the cause of
the FINERACT-808 bug was that "the backend would treat "UPDATE" and
similar strings as SQL injection".

The root cause of that was that (IMHO..) how Fineract does SQL injection
is more of a workaround (blacklisting some keywords and some heuristic
checks) then how this really should be done (by using JDBC Prepared
statements with arguments for all external data, instead inlined SQL).

This also lays the foundation for more like this in FINERACT-854.
2020-03-10 11:36:49 +01:00
xurrorandMichael Vorburger ⛑️ a7ebef4781 FINERACT-807
change mifosplatform-tenants and mifostenant-default to fineract_tenants
 and fineract_default respectively

closes https://issues.apache.org/jira/projects/FINERACT/issues/FINERACT-807?filter=allopenissues
2020-03-08 14:16:05 +01:00
Awasum YannickandMichael Vorburger ⛑️ 51f23613ad Fix checkstyle problem in UserAdministrationTest 2020-03-05 15:19:38 +01:00
Awasum YannickandGitHub d4002f22a8 FINERACT-802-restrict-client-to-have-single-self-service-user (#664) 2020-03-05 09:40:13 +01:00
Manthan SurkarandGitHub 867579d321 FINERACT-557: Readme Improvement (#718) 2020-03-02 21:01:01 +01:00
Manthan SurkarandGitHub 49c3450bed FINERACT-80: Include Group loans in resultset (#717) 2020-03-02 20:57:35 +01:00
228ec22a60 Allow customizing Tenants DB JDBC uid/pwd/driver (FINERACT-806) (#713)
* Allow customizing Tenants DB JDBC uid/pwd/driver (FINERACT-806)

Added Java system properties for username and password to docker-compose

Modified sever.xml to get username and password

* Fixes for customizing Tenants DB JDBC uid/pwd/driver (FINERACT-806)

* Use random MYSQL_ROOT_PASSWORD in docker-compose.yml (FINERACT-806)

This provides future non-regression testing that the the customized
MySQL password is actually really used, and it doesn't just work because
"mysql" is still hard-coded anywhere.

Co-authored-by: Yemdjih Kaze Nasser <kaze.nasser@outlook.com>
2020-02-09 19:36:58 +01:00
Michael Vorburger ⛑️andGitHub c6b2c09032 COPY only the minimal required files to build in the Dockerfile (#712)
This speeds up e.g. "podman-compose build" for me from 5m to 4m.

BEFORE:
real	5m29.884s
user	4m17.643s
sys	    2m57.567s

AFTER:
real	4m19.458s
user	3m13.815s
sys	    2m 3.095s
2020-02-09 19:35:27 +01:00
xurrorandMichael Vorburger ⛑️ 78eb402206 FINERACT-840
Update API docs and demo app URL
2020-02-06 18:26:47 -08:00
Tomer MosheandGitHub 45978337b2 Fixed openjpa.persistence.InvalidStateException (#711)
* Update AbstractPersistableCustom.java

Made AbstractPersistableCustom serializable to solve org.apache.openjpa.persistence.InvalidStateException

* Update AbstractPersistableCustom.java

removed space
2020-02-06 08:20:42 +01:00
percyashuandMichael Vorburger ⛑️ aadc2a006c FINERACT-775 Clean up Util 2020-02-02 11:36:53 +01:00