Admin API UpdateDatasource function fails to set storage attribute to true.

Description

During our application startup, (via code) we run some one-time additional configuration options for the Lucee web context using the Admin API. The following snippet, creates the datasource for us; however, yields the storage option in the Administrator UI to not have the storage option selected. The admin UI works fine and allows us to toggle the flag on the created datasource.

In turn, the datasource cannot be used for session, client or log storage when this occurs.

We'll be using cfconfig as a workaround.

Environment

Docker Linux `FROM ortussolutions/commandbox:lucee5-alpine`

Activity

Show:
Pothys - MitrahSoft
March 16, 2020, 12:24 PM

I've checked this ticket & confirmed the issue has happened on lucee latest version 5.3.6.18-SNAPSHOT also.
Not only in storage, but it also reflected to blog, clob, allowed_ ( select, insert, update).

Zac Spitzer
March 16, 2020, 12:50 PM

the problem is getArguments() is searching it's own argument scope, rather than the calling function's

https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/resource/component/org/lucee/cfml/Administrator.cfc#L2902

Zac Spitzer
March 29, 2020, 11:42 AM
Zac Spitzer
May 8, 2020, 5:46 PM

Pothys - MitrahSoft
November 24, 2020, 1:50 PM

This issue was fixed in lucee version 5.3.7.47. Could you please check with the latest version and report here back.

Assignee

Michael Offner

Reporter

Byron Mann

Priority

New

Labels

Fix versions

None

Affects versions

Configure