Commit Graph

14795 Commits

Author SHA1 Message Date
Jasper Siepkes 861e3ad01f
IDEMPIERE-5013 Implement HikariCP as a replacement for c3p0 (#926)
* Replaced PostgreSQL and Oracle connection pools with HikariCP.

Replaced C3P0 with HikariCP. HikariCP is a Apache licensed connection pool with substantially better performance and better resilience to failure (DB disconnects, etc.) then C3P0. Read more about it here: https://github.com/brettwooldridge/HikariCP .

Cleaned up the `getCachedConnection` method. With HikariCP there is no need to retry to obtain a connection since getting an connection will block until a free connection is available or until a timeout is reached (default 30 seconds) at which point an `SQLException` is thrown. This also removed calling `Runtime.getRuntime().runFinalization();`. HikariCP is currently configured to detect / log leaks when a connection hasn't returned to the pool for longer then 5 minutes.

Loading of pool config properties was cleaned up. Defaults are now loaded from a single file instead of defaults coming from both file and hardcoded properties. It is now also possible to specify any HikariCP property in the user pool property file.

Initialization of the datasource must happen in the `getDataSource()` method because at object construction not all JDBC config is known. However this method could (as far as I could tell) be called concurrently from multiple threads but had no mechanism to prevent initializing the DB pool multiple times. The variable in which the pool itself was stored (`m_ds`) also was not marked volatile or immutable which could lead to visibility issues. Instead of lazy initialization of the pool in the `getDataSource()` method the pool could probably better be initialized at object construction. However I wasn't able to achieve that without breakage therefor I made the initialization mechanism work correctly with concurrent invocations.

Various config options such as the `MaxStatementsPerConnection` options were removed because HikariCP doesn't support them.

* (Re)added Sequence time-out.
2022-09-10 12:21:57 +02:00
Carlos Ruiz 7e6ba65858
IDEMPIERE-5413 PO is Immutable in Report Wizard (#1473) 2022-09-09 14:32:33 +02:00
Peter Takács 005a1847e8
IDEMPIERE-5412 - Improve Dashboard Theme Look (#1471)
* IDEMPIERE-5412 - Improve Dashboard Theme Look

* IDEMPIERE-5412 - added message: NoDataAvailable

* IDEMPIERE-5412 - update default theme version
2022-09-09 14:55:54 +08:00
Peter Takács 27d01814e7
IDEMPIERE-5400 - Gauge Indicator Style and Color Improvement (#1470)
* IDEMPIERE-5400 - Gauge Indicator Style and Color Improvement

* IDEMPIERE-5400 - patch pr1470
2022-09-09 14:14:50 +08:00
Peter Takács 8589601b49
IDEMPIERE-5389 - improve Status Line as Dashboard Content height (#1468)
* IDEMPIERE-5389 - improve Status Line as Dashboard Content height

* IDEMPIERE-5389 - fix firefox issue, refactor fixed widget same height
2022-09-07 22:50:35 +08:00
Deepak Pansheriya 8c5c0ecbfa
IDEMPIERE-5326: Parsing error for report view if where clause and vir… (#1385)
* IDEMPIERE-5326: Parsing error for report view if where clause and virtual column used in print format

* IDEMPIERE-5326: Fixing Compilation error

* IDEMPIERE-5326: Adding method back for backward compitability

* IDEMPIERE-5326: Adding constructors  for backward compitability
2022-09-07 21:45:23 +08:00
Peter Takács 1f4a23657a
IDEMPIERE-5400 - Dashboard Goal Content should render as single Gauge Indicator (#1458)
* IDEMPIERE-5400 - Dashboard Goal Content should render as single Gauge Indicator

* IDEMPIERE-5400 - better css responsivity

* IDEMPIERE-5400 - add update goal

* IDEMPIERE-5400 - fixes

* IDEMPIERE-5400 - resolved conflict, migration fix

* IDEMPIERE-5400 - fix bad merge
2022-09-07 21:40:29 +08:00
Peter Takács ee3476c3eb
IDEMPIERE-5409 - Dashboard Content - Maximizable checkbox (#1467)
* IDEMPIERE-5409 - Dashboard Content - Maximizable checkbox

* IDEMPIERE-5409 - IsMaximizable default 'Y'

* IDEMPIERE-5393 - fixes

* IDEMPIERE-5409 - fixed script name
2022-09-07 17:00:18 +08:00
Peter Takács d249509b80
IDEMPIERE-5406 - Define max-height to Charts in Dashboard Row Layout (#1462)
* IDEMPIERE-5406 - Define max-height to Charts in Dashboard Row Layout

* IDEMPIERE-5406 - Define max-height only in Row Layout

* IDEMPIERE-5406 - media query added

* IDEMPIERE-5406 - update default theme version
2022-09-07 15:28:54 +08:00
Peter Takács 3756af2e55
IDEMPIERE-5389-fix - additional row height fix (#1466) 2022-09-07 07:41:41 +08:00
hengsin 92cdb06129
IDEMPIERE-5402 Replace Jfree Chart with Billboard (#1463)
- replace jfreechart with https://github.com/naver/billboard.js
2022-09-07 00:36:43 +02:00
Carlos Ruiz 8748f11ddf
IDEMPIERE-5354 Manage use case for microsoft OAuth2 preferred_username (FHCA-3757) (#1464) 2022-09-06 13:58:17 +02:00
Carlos Ruiz 0e71fa9884
IDEMPIERE-5407 Heavy query in MRole repeated too often (FHCA-3883) (#1465)
Removed the method MRole.loadTableInfo which loaded the arrays: m_tableAccessLevel, m_tableName, m_viewName, m_tableIdName
and replaced all usage with visits to cached information from tables or columns
2022-09-06 15:01:06 +08:00
Nicolas Micoud 537cb8b9b8
IDEMPIERE-5403 : Misleading error message on TimeUtil.getDay(int, int, int) (#1460)
https://idempiere.atlassian.net/browse/IDEMPIERE-5403
2022-09-05 13:13:36 +02:00
Nicolas Micoud f22d2a512f
IDEMPIERE-5342 : Increase remaining ProfileInfo columns to 4000 (#1459)
* IDEMPIERE-5342 : Increase remaining ProfileInfo columns to 4000

https://idempiere.atlassian.net/browse/IDEMPIERE-1575

* IDEMPIERE-5342 : Increase remaining ProfileInfo columns to 4000 (to v9)

moving from v10 to v9
2022-09-02 13:32:15 +02:00
Carlos Ruiz 8cd20b9e88
IDEMPIERE-5399 Data type Time is mostly useless (#1456) 2022-08-30 20:14:17 +08:00
Nicolas Micoud 79d9efb8f5
IDEMPIERE-5395 : Validation Rules at Client level (#1451) 2022-08-30 13:25:01 +02:00
Peter Takács e528c6f8cb
IDEMPIERE-5389 - Dashboard row layout (#1448)
* IDEMPIERE-5389 - Dashboard row layout

* IDEMPIERE-5389 - taking changes related to ticket 5393

* IDEMPIERE-5389 - added Flex Grow to Preference

* IDEMPIERE-5389 - fixing gadget heights

* IDEMPIERE-5389 - center alignment for Status Line

* IDEMPIERE-5389 - fall back to column layout

* IDEMPIERE-5389 - pr1448 patch

* IDEMPIERE-5389 - FixOracleMigration patch
2022-08-30 10:11:42 +02:00
hengsin c45005be41
IDEMPIERE-5376 CConnection and DB clean up (#1457)
* IDEMPIERE-5376 CConnection and DB clean up

* IDEMPIERE-5376 CConnection and DB clean up

- More clean up

* IDEMPIERE-5376 CConnection and DB clean up

- Fix @Deprecated annotation
2022-08-29 21:36:50 +02:00
Nicolas Micoud 527ccfcf35
IDEMPIERE-5265 : Wizard for Chosen Multiple Selection List editor - only for MultipleSelectionList editors / available for process parameters (#1454)
* IDEMPIERE-5265 : Wizard for Chosen Multiple Selection List editor

Do not show Assistant for TableDir editors
Show Assistant for process parameters

* IDEMPIERE-5265 : Wizard for Chosen Multiple Selection List editor - Show Assistant for process parameters

Better code from @hengsin

* IDEMPIERE-5265 : Wizard for Chosen Multiple Selection List editor - only for MultipleSelectionList editors

Comment to explicitely state that the Assistant is for MultipleSelectionList editors only (ie not
for MultipleSelectionTable editors)
2022-08-29 17:21:46 +08:00
Nicolas Micoud d0d42ffaf1
IDEMPIERE-5361 : Jasper reports with Charts are not working (#1452)
* IDEMPIERE-5361 : Jasper reports with Charts are not working

* IDEMPIERE-5361 : patch from hengsin
2022-08-26 09:35:54 +08:00
hengsin 0034ebd517
IDEMPIERE-5392 Maven Build: add flag to skip auto clean (#1453)
* IDEMPIERE-5392 Maven Build: add flag to skip auto clean

* IDEMPIERE-5392 Maven Build: add flag to skip auto clean

- Add -DmaterializeProduct flag. Use -DmaterializeProduct=none to turn
off part of org.idempiere.p2 build.
- Add parallel execution setting for test.

* IDEMPIERE-5392 Maven Build: add flag to skip auto clean

- handle potential multi threaded conflict on context property

* IDEMPIERE-5392 Maven Build: add flag to skip auto clean

- Fix maven error/warning in Eclipse for maven-antrun-plugin
2022-08-25 10:49:31 +02:00
Peter Takács 0aaf904e34
IDEMPIERE-5393 - Allow rendering status line as widget/gadget in dashboard (#1449)
* IDEMPIERE-5393 - Allow rendering status line as widget/gadget in dashboard

* IDEMPIERE-5393 - css class for status line

* IDEMPIERE-5393 - update default theme version
2022-08-24 15:49:06 +08:00
Carlos Ruiz 2dab2d9882
IDEMPIERE-5394 Export to XLSX in Info Windows and Account Viewer (#1450)
* IDEMPIERE-5394 Export to XLSX in Info Windows and Account Viewer
2022-08-24 09:33:12 +08:00
hengsin 360861e300
IDEMPIERE-5392 Maven Build: add flag to skip auto clean (#1447)
* IDEMPIERE-5392 Maven Build: add flag to skip auto clean

* IDEMPIERE-5392 Maven Build: add flag to skip auto clean

- Add -DmaterializeProduct flag. Use -DmaterializeProduct=none to turn
off part of org.idempiere.p2 build.
- Add parallel execution setting for test.

* IDEMPIERE-5392 Maven Build: add flag to skip auto clean

- handle potential multi threaded conflict on context property
2022-08-22 17:09:33 +02:00
Peter Takács ab78a8acbd
IDEMPIERE-5369 - Dashboard Cross Tenant Check (#1425) 2022-08-19 12:01:22 +02:00
hengsin ce22d1cc51
IDEMPIERE-5391 Unit Test: Fix support for parallel execution of test (#1446) 2022-08-17 18:34:51 +02:00
Carlos Ruiz a558644949
IDEMPIERE-3340 Fix cross tenant in Favourites (#1445) 2022-08-17 18:17:13 +08:00
Peter Takács e670ebbd14
IDEMPIERE-5302 - Drill Assistant Feature with re-generated migration scripts (#1390)
* IDEMPIERE-5302 - Drill Assistant Feature with re-generated migration scripts

* IDEMPIERE-5302 - added IsShowInDrillOptions, ID fixes

* IDEMPIERE-5302 - added IsShowInDrillOptions default Y

* IDEMPIERE-5302 - creating Table Print Formats on Run Report

* IDEMPIERE-5302 - applied pr1390_fixes patch

* IDEMPIERE-5302 - applied pr1390_badimports patch
2022-08-17 18:08:45 +08:00
hengsin bb8e1a45d4
IDEMPIERE-5387 Unit Test: always include process info summary as document workflow assertion failure message (#1443) 2022-08-15 12:28:01 +02:00
Carlos Ruiz db2e59c163
IDEMPIERE-5385 PDF attachments cannot be displayed in firefox (#1442)
* IDEMPIERE-5385 PDF attachments cannot be displayed in firefox
2022-08-15 15:26:00 +08:00
hengsin 288e96fe8d
IDEMPIERE-5376 CConnection and DB clean up (#1441)
* IDEMPIERE-5376 CConnection and DB clean up

* IDEMPIERE-5376 CConnection and DB clean up

- More clean up
2022-08-13 12:05:52 +02:00
Carlos Ruiz 165229d2db
IDEMPIERE-5380 StackOverflowError when try to login in application with substitute user (FHCA-3828) (#1437) 2022-08-13 10:15:31 +08:00
Layda Salas 05dcc275a9
IDEMPIERE-5372 Wrong default for IsApproved column on C_Order, C_Invo… (#1436)
* IDEMPIERE-5372 Wrong default for IsApproved column on C_Order, C_Invoice and C_CashPlan #resolve

* IDEMPIERE-5372 Wrong default for IsApproved column on C_Order, C_Invoice and C_CashPlan #resolve
2022-08-12 19:20:58 +02:00
Deepak Pansheriya c929d60e3b
IDEMPIERE-5312: Allowing Drag and drop file in Attachment dialog (#1415)
* IDEMPIERE-5312: Allowing Drag and drop file in Attachment dialog

* IDEMPIERE-5312: Fixing as per Hengsin's code review comments

* IDEMPIERE-5312:  Applying txt file uplaod issue fix from Carlos
2022-08-12 23:13:45 +08:00
Carlos Ruiz 9bfc177697
IDEMPIERE-5378 MFA must allow to select the mechanism when the user has several registered (FHCA-3808) (#1434)
* IDEMPIERE-5378 MFA must allow to select the mechanism when the user has several registered (FHCA-3808)

* IDEMPIERE-5378 auto select when TOTP is the only mechanism
2022-08-12 17:30:54 +08:00
Carlos Ruiz 5e5c977733
IDEMPIERE-5382 Allow just one MFA registration per mechanism (FHCA-3822) (#1439) 2022-08-12 17:15:28 +08:00
Carlos Ruiz bc9808eb14
IDEMPIERE-5381 System users cannot revoke MFA trusted devices in GardenWorld (FHCA-3824) (#1438) 2022-08-12 17:13:54 +08:00
Carlos Ruiz c88e6487f1
IDEMPIERE-5377 Invoice stuck in "Create From" material receipt window (#1433) 2022-08-11 20:51:20 +02:00
hengsin 3a2f0ff64d
IDEMPIERE-5376 CConnection and DB clean up (#1432) 2022-08-10 14:52:53 +02:00
Diego Ruiz d8f48d1f17
IDEMPIERE-5373 - Attach result file from Import CSV Process when running on Background (#1431) 2022-08-10 14:50:34 +08:00
Carlos Ruiz 5bd3af0d2f
IDEMPIERE-236 Centralization of hardcoded IDs (#1429)
* IDEMPIERE-236 Centralization of hardcoded IDs

* IDEMPIERE-236 Centralization of hardcoded IDs
2022-08-09 22:12:54 +08:00
Peter Takács c92d1b3896
IDEMPIERE-5356 - Printing Support on ProcessInfoDialog - NPE fix (#1428)
* IDEMPIERE-5356 - NPE fix

* IDEMPIERE-5356 - applied 1428_pr patch
2022-08-09 11:50:06 +02:00
Carlos Ruiz 0cb7216599
IDEMPIERE-5375 Read-only windows are not shown in Favourites dashboard (#1430) 2022-08-09 15:09:03 +08:00
Peter Takács 0d05606682
IDEMPIERE-5362 - Attribute Dialog UX improvments 2022 aug (#1418)
* IDEMPIERE-5362 - Attribute Dialog should use scroll when many attributes

* IDEMPIERE-5362 - adding max height to dialog
2022-08-09 15:08:17 +08:00
Diego Ruiz da37cf8871
IDEMPIERE-4723 - Deprecate and replace FDialog (#1421)
* IDEMPIERE-4723 - Replace FDialog class

* IDEMPIERE-4723 - Refactor Dialog code

* IDEMPIERE-4723 - Deprecate FDialog

* IDEMPIERE-4723 - Add deprecated message in the FDialog class. Make Dialog final and add a private constructor

* IDEMPIERE-4723 - Remove unused imports
2022-08-09 15:06:21 +08:00
hengsin 5f8e7be3c5
IDEMPIERE-5367 Logic expression IN doesn't works with quoted text (#1423)
* IDEMPIERE-5367 Logic expression IN doesn't works with quoted text

* IDEMPIERE-5367 Logic expression IN doesn't works with quoted text

- Fixed equal not working for quoted text with comma (e.g 'A,R,S')
2022-08-05 13:21:50 +02:00
Fr Jeremy Krieg d78238b0f6
IDEMPIERE-5368 Pack In doesn't close resources properly on failure (#1424)
Change code to use try-with-resources to ensure automatic cleanup.
2022-08-05 09:49:10 +08:00
Carlos Ruiz 464de082a5
IDEMPIERE-5355 Improve default trx name (FHCA-3765) (#1427)
Improve performance using StackWalker instead of Throwable->getStackTrace
2022-08-05 09:46:11 +08:00
Carlos Ruiz 9b812a315f
IDEMPIERE-3340 Fix cross tenant in Favourites (#1426) 2022-08-05 00:11:06 +02:00