mendix / database-connector

https://appstore.home.mendix.com/link/app/2888/Mendix/Database-Connector
Apache License 2.0
9 stars 25 forks source link

java.security.AccessControlException #4

Closed acdickinson closed 7 years ago

acdickinson commented 7 years ago

In order to use this module, additional exceptions need to be added to the security policy.

The following should be no problem to add: (java.util.PropertyPermission "hikaricp.configurationFile" "read") (java.util.PropertyPermission "com.zaxxer.hikari.*" "read")

However, once these permissions are added to the policy (Mendix\\modeler\runtemplates\deployment\data\security.policy) another permission is required.

java.security.AccessControlException / access denied ("java.util.PropertyPermission" "*" "read,write")

Due to the fact that the once a datasource is created with no name, a random number is generated and updated globally. As a result a read/write * is required. This can be solved by adjusting the JdbcConnectionManager with the attached version.

Changes are

See pull request #5 for updated code.

arjenw commented 7 years ago

This issue is fixed in release 1.02