configImport needs to understand datasource allowedselect etc

Description

internally lucee stores the datasource allow rights in a bit packed int, ie allow=”511”

https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/tag/Admin.java#L2669

https://github.com/lucee/Lucee/blob/5.3/loader/src/main/java/lucee/runtime/db/DataSource.java#L40

cfconfig exports them exploded as

configImport needs to support translating these into allow="511", it currently only supports the allow value

Environment

None

Attachments

1

Activity

Charles Robertson 26 May 2023 at 19:31

I must say ConfigImport() seems to be pretty simple, as it currently stands in 5.x

Just add an object of settings and an admin password, and away you go. I’m not sure why you wouldn’t continue this approach, in 6.x?

Michael Offner 26 May 2023 at 14:45

configImport is not supported on Lucee 6 yet, because it will have a very different much simpler approach. feel free to open a ticket to add configImport support to Lucee 6.

Zac Spitzer 24 May 2023 at 07:42

the test case fails with 6.0

Pothys - MitrahSoft 18 May 2023 at 09:45
Edited

I've checked this ticket with lucee fixed version 5.3.10.139-SNAPSHOT. Now pick up the Allowed operations values from the imported data object on configimport() and works fine

Zac Spitzer 17 May 2023 at 12:23

not sure if this is needed or how to adapt for 6.0

Fixed

Details

Assignee

Reporter

Priority

Labels

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Affects versions

Created 16 May 2023 at 13:45
Updated 30 May 2023 at 16:21
Resolved 26 May 2023 at 14:45