MN-947
February 3, 2021, 8:17pm
1
application.cfc
this.serialization.preserveCaseForQueryColumn = true;
this.serialization.serializeQueryAs = “struct”;
this.serialization.preserveCaseForQueryColumn = true;
this.sessionManagement = true;
this.nullSupport=true;
this.handleUnquotedAttrValueAsString=false;
The setting: handleUnquotedAttrValueAsString does not work. We are trying to spin up a docker instance but this application needs the “Unquoted Attr” setting set to false. How can we do that?
OS : AWS Linux
Java Version : 11.0.7 (AdoptOpenJDK) 64bit
Tomcat Version : Apache Tomcat/9.0.35
Lucee Version : Lucee 5.3.6.61
coz it’s a compiler setting, it needs to be set at the server level, as such you can’t set it via Application.cfc
if (obj != null) admin.updateCachedAfterTimeRange(Caster.toTimeSpan(obj));
else admin.updateCachedAfterTimeRange(null);
store();
adminSync.broadcast(attributes, config);
}
private void doUpdateCompilerSettings() throws SecurityException, PageException {
admin.updateCompilerSettings(getBoolObject("admin", "UpdateCompilerSettings", "dotNotationUpperCase"),
getBoolObject("admin", "UpdateCompilerSettings", "suppressWSBeforeArg"), getBoolObject("admin", "UpdateCompilerSettings", "nullSupport"),
getBoolObject("admin", "UpdateCompilerSettings", "handleUnquotedAttrValueAsString"), getInteger("admin", "UpdateCompilerSettings", "externalizeStringGTE"));
admin.updateTemplateCharset(getString("admin", action, "templateCharset"));
store();
adminSync.broadcast(attributes, config);
}
/*
* private void doGetLogSetting() throws PageException { String name=getString("admin",
* "GetLogSetting", "name"); name=name.trim().toLowerCase(); Query qry=_doGetLogSettings();
*
MN-947
February 3, 2021, 9:15pm
3
So if I were to set it using cfadmin? How would I do that? Is there a better way?
MN-947
February 3, 2021, 9:38pm
4
<cfadmin
action="getCompilerSettings"
type="web"
password="**********"
returnVariable="admin_result" />
<cfdump var="#admin_result#" />
<cfif admin_result.handleUnquotedAttrValueAsString EQ true>
<cfadmin
action="updateCompilerSettings"
DotNotationUpperCase="false"
externalizeStringGTE="-1"
handleUnquotedAttrValueAsString="true"
nullSupport="true"
suppressWSBeforeArg="true"
templateCharset="UTF-8"
type="web"
password="**********" />
</cfif>
This appears to be the solution.