Jeff Stevens
08/26/2022, 2:02 PM<cfoutput>
...
<cfloop>
<cfset FormElementPK = rc.formElements.getRow(i)["FormElementsPK"]>
<script>
//Create a listener for the question text editor to check for errors on blur
var #toScript(FormElementPK, "jsFormElementPK")#;
var inputFieldId = document.getElementById("##question" + jsFormElementPK + "TextEditor");
$(inputFieldId).on('blur', function(e) {
alert("I am a test message!");
checkQuestionTextForErrors(inputFieldId);
});
</script>
...
</cfloop>
...
</cfoutput>
Its intended effect is to dynamically generate Ids and then create Jquery event listeners for those Ids. The problem I have is that the event listeners work only when I hardcode the Ids (replace inputFieldId with "##question1TextEditor" etc). I'm wondering, why does this not create working event listeners when I dynamically generate the Ids the way code above does?Mark Berning
08/26/2022, 2:52 PMBrian
08/29/2022, 12:29 PMRodney
08/29/2022, 12:55 PMC. Jason Wilson
08/29/2022, 12:56 PMC. Jason Wilson
08/29/2022, 12:57 PMBrian
08/30/2022, 2:41 PMOokma-Kyi
08/30/2022, 10:25 PMelpete
08/30/2022, 10:52 PMOokma-Kyi
08/31/2022, 3:07 PMFormiko
08/31/2022, 3:36 PMFormiko
08/31/2022, 7:08 PMdrewnathanson
08/31/2022, 7:16 PMFormiko
08/31/2022, 8:21 PMiknowkungfoo
08/31/2022, 9:17 PMiknowkungfoo
08/31/2022, 9:20 PMAdam Cameron
https://i2.paste.pics/37fefdcfa6c1b7430620331c431c0db9.png▾
Jason Ryan
09/02/2022, 6:18 PMcom.fasterxml.jackson.core:jackson-databind
from the Lucee docker images? I tried out the light build, which unlike the normal build appears to not include this in /opt/lucee/server/lucee-server/bundle
but my ECR image scan is still flagging numerous critical vulnerabilites coming from that package (like 30+)
Edit: Was able to determine this comes from Commandbox (root/.CommandBox/engine/cfml/cli/lucee-server/bundles/org.lucee.ehcache-2.10.3.jar
)Adam Cameron
websolete
09/04/2022, 5:22 PMwebsolete
09/04/2022, 5:24 PMproperty string variables.firstName;
with variables. explicitly included. is that a typo or is there some benefit to doing that, given that properties will be in the variables scope anyway...Gareth
09/05/2022, 3:24 AMdfgrumpy
09/05/2022, 4:16 AMPete Williamson
09/05/2022, 12:57 PMC2 CompilerThre invoked oom-killer: gfp_mask=0x280da, order=0, oom_score_adj=0
This shows Java being killed in the logs:
Out of memory: Kill process 73217 (java) score 733 or sacrifice child
Killed process 73217 (java), UID 48, total-vm:12282868kB, anon-rss:6391832kB, file-rss:0kB, shmem-rss:0kB
Can anyone shed any light on how the C2 Compiler is related to excuting CFML code, and if there's anyway I can work out exactly what it was up to?gsr
09/05/2022, 2:38 PMFIELDNAMES TABLESLISTS[]
TABLESLISTS[] dbo.projects
old code is passing the value from ajax by declaring a array object and then push it to the call as {TABLESLISTS : TABLESLISTS}
i wonder how to fix itDave Merrill
09/05/2022, 2:46 PMgsr
09/05/2022, 6:33 PM<cfset objDS = createobject("java","coldfusion.server.ServiceFactory").getDatasourceService().getDatasources() />
<cfdump var="#objDS#" abort>
<cfoutput>
<table border="1" cellpadding="3" cellspacing="0" width="50%">
<tr>
<th><b>DataSource</b></th>
<th><b>Username</b></th>
<th><b>Password</b></th>
</tr>
<cfloop collection="#objDS#" item="Key">
<cfif len(objDS[Key]["password"])>
<cfset password = Decrypt(objDS[Key]["password"],generate3DesKey("0yJ!@1$r8p0L@r1$6yJ!@1rj"), "DESede","Base64") />
<tr>
<td>#objDS[key].name#</td>
<td>#objDS[key].username#</td>
<td>#password#</td>
</tr>
</cfif>
</cfloop>
</table>
</cfoutput>
gsr
09/05/2022, 6:34 PMgetDatasourceService()
gavinbaumanis
09/06/2022, 5:18 AMif( myVar = 2) {
throw("myVar = 2. It should never be 2");
}
But it fails - because it isn't in a try/catch.
Only - I don't want to catch it.
I want it to blow up the request.websolete
09/06/2022, 2:13 PMvar env = server?.system?.environment ?: {};
if( env.keyExists(arguments.name) ) { ... }
to this:
var env = server?.system?.environment?[arguments.name] ?: "";
or something similar. it's not hugely important to do the second way, just curious if there's a square bracket version of safe navigation