datasource hints don't include username if password is blank

Description

My local MySQL server has a single user of "root" and the password is an empty string. (it's for local dev only). When I add a datasource and then go back and edit it in the interface to see the code I need to add to my Application.cfc, it omits both the username and the password from the code even though they are required to connect.

Please keep the username and password in the code even if they are blank. Or at least the username, even if there is no password.

Environment

None

Activity

Show:
Pothys - MitrahSoft
March 3, 2017, 10:27 PM

The issues occurred due to a If condition on ( https://github.com/lucee/Lucee/blob/5.1/core/src/main/cfml/context/admin/services.datasource.create.cfm#L546 ). Need to remove the condition for displaying the username and empty password.

Pothys - MitrahSoft
June 18, 2020, 9:44 PM

I've added a fix for this ticket

Pull Request: https://github.com/lucee/Lucee/pull/965

Michael Offner
September 1, 2020, 2:57 AM

Michael Offner
September 1, 2020, 3:01 AM

please give this a try and report back here

Pothys - MitrahSoft
September 1, 2020, 6:26 PM

I've checked this ticket and works as expected from the fixed version.

Fixed

Assignee

Pothys - MitrahSoft

Reporter

Brad Wood

Priority

Minor

Labels

Fix versions

Sprint

5.3.8 Sprint 3