gsr
06/27/2024, 8:37 PMGareth
06/28/2024, 2:42 AMlmajano
06/28/2024, 11:10 AMrodyon
06/28/2024, 5:49 PMrodyon
06/28/2024, 5:50 PMrodyon
06/28/2024, 5:52 PMevagoras
07/01/2024, 6:10 PM:
) which are needed in a SELECT statement in queryExecute
. More details in thread...Angela Jones
07/01/2024, 7:16 PMAdam Cameron
Angela Jones
07/01/2024, 10:11 PMPK
07/02/2024, 6:47 PMBrent
07/02/2024, 9:36 PMthis.triggerdatamember = true
in Application.cfc
? Long story short I needed to add this to prevent errors which I can go into detail about if needed. Just checking if there is any negative impact from setting that or if it's harmless...dswitzer
07/03/2024, 2:55 PM<http://pool.ntp.org|pool.ntp.org>
as the time server. Unfortunately, the response that <http://pool.ntp.org|pool.ntp.org>
was returning was forcing Lucee to interpret the value as "0", which was making the Lucee clock reset to Jan 1, 1900.
So if you have this feature enabled and are using the default time server (pool.ntp.org), I'd recommend checking the timestamps on your application as you may have some issues.
You can read more about the problem here:
https://cfml.slack.com/archives/C06TA0A9W/p1719928636716069Dave Merrill
07/03/2024, 4:54 PMgsr
07/03/2024, 7:51 PMDave Merrill
07/05/2024, 1:29 PMpaul
07/08/2024, 9:00 AM<cfif ReFindNoCase("^[a-z0-9_:./-]+$", arguments.value)><cfreturn 0></cfif>
and I think if I change it to
<cfif ReFindNoCase("^[a-z0-9_:./-##]+$", arguments.value)><cfreturn 0></cfif>
( SQLInjectionFilter.ccfc ) It should be OK. This is a legacy code base so it's hard to find exact tests. Yes I know Pete write it and have also reached out just want top see if anyone could help sooner.Travis
07/09/2024, 2:49 PMunserialize()
and serialize()
?Gareth
07/10/2024, 2:31 AMMatt Casey
07/11/2024, 3:15 PMsetLocale()
and the locale aware formatting functions lsnumberformat()
and lsdateformat()
within parallel execution loops such as arrayEach() etc.
This is the sort of thing you might want to do to speed up the sending of email messages with HTTP calls to an API where the connection overhead is quite significant.
eg. Something along these lines.
parallel = true;
maxThread = 5;
arrayEach(messages, function(messagedata) {
setLocale(messagedata.locale);
// Generate and send a localised message here
var payload = {
message:"My message was sent on #lsdateformat(now(), "dddd d mmmm yyy")#"
};
// Send the message...
var req = new Http(method:"POST", url:some_endpoint);
req.addParam(type:"body", value:serializeJson(body));
resp = req.send().getPrefix();
}, parallel, maxThreads);
The issue is that the setLocale()
in your loop has a high chance of clobbering the locale value set by other loops. So when you use lsdateformat()
or lsnumberformat()
you can't be sure what locale you will get.
The solution to to use the 3rd argument and pass the locale value into those functions.
eg. use lsdateformat(now(), "dddd d mmmm yyyy", "es")
It's more laborious but seems to solve the issue.
I have a gist here showing the issue.ellipsisces1292
07/15/2024, 4:47 PMellipsisces1292
07/15/2024, 4:50 PMehoffman
07/15/2024, 7:33 PMadeptdeveloper
07/16/2024, 3:06 PMadeptdeveloper
07/17/2024, 5:50 PMblusol
07/18/2024, 4:34 PMdswitzer
07/18/2024, 6:25 PMDave Merrill
07/19/2024, 3:55 PMellipsisces1292
07/20/2024, 7:11 PMmarc_g
07/22/2024, 1:24 PM