Charles Robertson
05/16/2023, 11:32 AMConfigImport()
The problem is, it doesn't seem to record any of these settings:
"allowAlter":true,
"allowCreate":true,
"allowDelete":true,
"allowDrop":true,
"allowGrant":false,
"allowInsert":true,
"allowRevoke":false,
"allowSelect":true,
"allowStoredProcs":true,
"allowUpdate":true,
All these settings are TRUE in the Server Admin
I want to go into the DB and change them.
I don't fancy having to manually change 600 DSNs manually across 6 PRE PROD/PROD boxes.
UPDATE:
I have actually found the DSNs in:
lucee-server.xml
But, there are no Allowed Operations attributes in the <data-source> node?
And when we run some of the databases, the connections fail. After we manually set REVOKE/GRANT to FALSE, the connections succeed.
It seems that by default, all these operations are set to TRUE, which doesn't seem to agree with:
https://github.com/lucee/Lucee/blob/3a563f215bc6060f0410a36099f5310300f0cf75/core/[β¦]c/main/java/resource/component/org/lucee/cfml/Administrator.cfc
When I manually change the values of REVOKE/GRANT in the Lucee Server Admin to FALSE, and I check the XML in:
lucee-server.xml
There is no mention of REVOKE/GRANT anywhere? So Lucee must be storing this data in a Database somewhere?zackster
05/16/2023, 12:05 PMCharles Robertson
05/16/2023, 12:10 PMUpdateDatasource() instead, to add the Allowed Operations?
It seems that if I run this method:
<cfadmin action="updateDatasource" name="" type="" newName="" host="" database="" port="" username="" password="" allowedRevoke="false" allowedGrant="false" />
That might work?zackster
05/16/2023, 12:13 PMzackster
05/16/2023, 12:15 PMCharles Robertson
05/16/2023, 12:44 PMzackster
05/16/2023, 1:13 PMCharles Robertson
05/16/2023, 1:19 PMAllowed Operations values are stored in the Application scope?
Which seems a bit ropey?
But you can only change the values manually, using the GUI.
If I can find out where the raw values are being stored, I may be able to change 600 values more easily, using find/replace with regex etczackster
05/16/2023, 1:20 PMzackster
05/16/2023, 1:20 PMCharles Robertson
05/16/2023, 1:21 PMCharles Robertson
05/16/2023, 1:22 PMpothys-mitrahsoft
05/16/2023, 1:23 PMCharles Robertson
05/16/2023, 1:23 PMzackster
05/16/2023, 1:27 PMCharles Robertson
05/16/2023, 1:29 PMCharles Robertson
05/16/2023, 1:29 PMpothys-mitrahsoft
05/16/2023, 1:29 PMCharles Robertson
05/16/2023, 1:33 PMgrant=βfalseβ or revoke=βtrueβ. Itβs not very intuitive?zackster
05/16/2023, 1:34 PMzackster
05/16/2023, 1:34 PMCharles Robertson
05/16/2023, 1:36 PMCharles Robertson
05/16/2023, 1:36 PM"allowAlter":true,
"allowCreate":true,
"allowDelete":true,
"allowDrop":true,
"allowGrant":false,
"allowInsert":true,
"allowRevoke":false,
"allowSelect":true,
Well, this is what I was importing into ConfigImport()zackster
05/16/2023, 1:40 PMzackster
05/16/2023, 1:40 PMzackster
05/16/2023, 1:41 PMCharles Robertson
05/16/2023, 1:41 PMCharles Robertson
05/16/2023, 1:43 PMallow="511"
For:
allow="415"Charles Robertson
05/16/2023, 1:44 PMzackster
05/16/2023, 1:46 PMCharles Robertson
05/16/2023, 1:47 PMlucee-server.xmlCharles Robertson
05/16/2023, 1:48 PMzackster
05/16/2023, 1:49 PMzackster
05/17/2023, 7:16 AMzackster
05/17/2023, 7:28 AMzackster
05/17/2023, 8:50 AMCharles Robertson
05/17/2023, 9:55 AMACF -> Lucee fixes to production, very soon. Tight schedule.
I will let you know the results...
Thank you for fixing this. πCharles Robertson
05/17/2023, 9:56 AMCharles Robertson
05/17/2023, 10:04 AMzackster
05/17/2023, 10:07 AMCharles Robertson
05/17/2023, 10:20 AMC:\Users\ADMCharlesr\.CommandBox\server\F52F378669CF969E685912784C2D3D37-luceeCfconfigTest\lucee-5.3.9.166\WEB-INF\lucee-server\deploy
Should I restart the server or do I need to install the snapshot via the Lucee Server admin:zackster
05/17/2023, 10:22 AMCharles Robertson
05/17/2023, 10:28 AMzackster
05/17/2023, 10:28 AMCharles Robertson
05/17/2023, 10:28 AMCharles Robertson
05/17/2023, 10:49 AMzackster
05/17/2023, 10:51 AMCharles Robertson
05/17/2023, 10:51 AMzackster
05/17/2023, 10:51 AMzackster
05/17/2023, 10:51 AMCharles Robertson
05/17/2023, 11:07 AMzackster
05/17/2023, 11:10 AMzackster
05/17/2023, 11:11 AMCharles Robertson
05/17/2023, 11:11 AMCharles Robertson
05/17/2023, 11:12 AMC:\Users\ADMCharlesr\.CommandBox\server\A39A87EE2EFB28FAFA02EAB99EA6149F-system_learningassistant_lucee\lucee-5.3.9.166\WEB-INF\lucee-server\bundlesCharles Robertson
05/17/2023, 11:15 AMcom.microsoft.jdbc.sqlserver.SQLServerDriver
For
com.microsoft.sqlserver.jdbc.SQLServerDriver
And everything worked...πzackster
05/17/2023, 11:18 AMzackster
05/17/2023, 12:02 PM