preside claims a datasource is not found when it is throwing errors

Description

https://github.com/pixl8/Preside-CMS/blob/stable/system/services/database/adapters/AdapterFactory.cfc#L71

due to the try catch ignore

if there is a problem with the database connection, rather than showing the problem, preside just reports

Datasource, [preside], not found.

swallowing the useful information

java.sql.SQLException: Access denied for user 'preside-demo'@'localhost' (using password: NO)

or if the database server is down

com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

this could at least be included in the exception detail if security is a concern

Activity

Show:

Details

Assignee

Reporter

Priority

Backbone Work Sync

Created May 29, 2023 at 12:56 PM
Updated July 11, 2023 at 11:52 AM