Administrator.updateDatasource() "verify" option fails when password is encrypted

Description

When using the Administrator.updateDatasource() to create datasources, the "verify" option fails if the password string is using the encrypted string format (i.e. encrypted:pasword_hash_here).

The datasource gets created corrected and you can verify the datasource as a separate step, but not in a single action. I suspect this is because it's passing the "password" string in as-is.

Since I'm trying to use the Administrator.cfc as part of a provision script, it would be create to be able to update and verify in a single step.

Environment

CentOS 7/Apache 2.4

Activity

Show:
Pothys - MitrahSoft
July 23, 2020, 4:37 PM

I've checked this ticket. If we creating the datasource using Administrator.updateDatasource(), if verify is true means and also we didn't use correct password, it'll throw a error like

And if we set false and password also not correct means, it doesn't throw any error. But, we can see the same error when verify that datasource through admin in separate step.

Pothys - MitrahSoft
August 20, 2020, 1:49 PM

I"ve checked this again. We can able to create a datasource using encrypted: password and also can able to verify the datasource via admin.

Pothys - MitrahSoft
August 20, 2020, 1:52 PM

will confirm about this issue.

Pothys - MitrahSoft
September 22, 2020, 2:32 PM

I've added a test case for this ticket.

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

Assignee

Michael Offner

Reporter

Dan Switzer, II

Priority

New

Labels

Fix versions

None

Affects versions

Configure