Datasources created after module load take on custom DSN parameters defined in bx-mssql

Description

When bx-mssql is installed/loaded into boxlang core AND a single datasource is constructed using the mssql driver, all subsequent datasource creations error due to an invalid connection string.

Upon closer inspection, it appears that the bx-mssql DB driver is setting a trustServerCertificate: true custom parameter into shared state in the DatasourceConfig.DEFAULTS public static final property, which then applies that custom parameter to every datasource created thereafter.

See screenshot - in this case, the datasource creation is attempting to append ?trustServerCertificate=true to a Derby datasource connection string. Neither the parameter nor the ? URI delimiter is appropriate in this case. (Though the URI delimiter would be resolved by installing bx-derby, we shouldn’t need to require the bx-derby module just to avoid mutating a valid connection string.)

Attachments

1

Activity

Show:

Michael Born @ Ortus December 28, 2024 at 11:28 AM
Edited

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Fix versions

Priority

Sentry

Created December 28, 2024 at 11:23 AM
Updated December 28, 2024 at 12:09 PM
Resolved December 28, 2024 at 11:28 AM