dswitzer
12/13/2022, 3:24 PMzackster
12/14/2022, 10:55 AMzackster
12/14/2022, 11:11 AMAdam Cameron
/
every 15sec (or so) by any chance? I'm seeing requests being logged from curl/7.68.0
about every 15sec.
Or might it be something to do with Lucee servers strummed up by commandbox?
This is in a docker container, but we don't have a healthcheck configuredzackster
12/15/2022, 8:53 AMDean
12/16/2022, 1:57 AM<cfquery name ="test" datasource="#mydsn#" tags="mytag" cachedwithin="#createTimespan(1,0,0,0)#">
select * from myTable
</cfquery>
<cfscript>
writedump(var=test, expand=false)
cacheClear(filter=listToArray("mytag"),cachename= 'querycache')
</cfscript>
I get:
lucee.runtime.exp.NativeException: java.lang.NullPointerException
at lucee.runtime.cache.util.QueryTagFilter.accept(QueryTagFilter.java:27)
at lucee.extension.io.cache.redis.CacheSupport.remove(CacheSupport.java:88)
at lucee.runtime.functions.cache.CacheClear._call(CacheClear.java:111)
at lucee.runtime.functions.cache.CacheClear.call(CacheClear.java:69)
at dean_cfm$cf$i.call(/dean.cfm:3)
It only seems to happen with ElastiCache, if I use a local docker container, with the same Redis version, I dont get the error and the cacheClear removes the correct query from the cache.
Happy to do more testing if someone can tell me why its throwing a NullPointerException in the QueryTagFilter.zackster
12/16/2022, 1:19 PMcommandbox
over to lucee/script-runner
Now the docs build takes 2mins instead of 4mins https://luceeserver.atlassian.net/browse/LD-160zackster
12/16/2022, 1:44 PMzackster
12/18/2022, 3:28 PMAnders Lars
12/19/2022, 2:36 AMlocal.conn = createObject("java", "java.net.URL").init(arguments.url).openConnection(); etc ...
Is that normal, or maybe something that used to be a thing and isn't anymore? Code could have been there from before it was switched to lucee. If so, then i might ditch it - or keep it for 1 / 2 dog slow SOAP calls.
I tested ~100 calls over cfhttp and the java version and observed about an average 20% improvement in the java version, but TBH most of the calls are < 20ms so the saving is barely anything - and they of course miss out on stuff like LDEV-3810, plus seems easier to debug with tools like FusionReactor when you use CFHTTP.johnfarrar
12/19/2022, 2:09 PMzackster
12/19/2022, 4:29 PMzackster
12/21/2022, 10:43 PMzackster
12/22/2022, 6:29 PMzackster
12/27/2022, 2:47 PMGetDirectoryFromPath( GetDirectoryFromPath( getCurrentTemplatePath() ) ) == GetDirectoryFromPath (getCurrentTemplatePath() )
https://github.com/zspitzer/Lucee/blob/6.0/core/src/main/java/lucee/runtime/functions/system/GetDirectoryFromPath.java#L38romanstr
12/28/2022, 11:27 AMDean
12/31/2022, 10:02 PMBad Gateway (502)
. The Lucee admin is also not available for some minutes, but if I wait for that to become available, then I call our refresh URL, everything works fine. Instance is running under Commandbox 5.7 on Windows. More logging info in thread....bdw429s
01/02/2023, 7:06 PMcfhttp
tag, when used with the file
attribute, writes the downloaded file out to disk as it receives it, as opposed to buffering the entire thing in memory first and then writing it. Imagine, downloading something like an 8 Gig file, etc. You'd want it to be flushed out to disk as it comes in.harryk
01/03/2023, 9:39 AMbdw429s
01/03/2023, 9:04 PMguustnieuwenhuis
01/04/2023, 10:42 AMstdout
and stderr
? So that it becomes part of the Docker logs and picked up by Cloudwatch automatically.zackster
01/04/2023, 7:34 PMgavinbaumanis
01/04/2023, 10:43 PMharryk
01/05/2023, 10:16 AMFROM lucee/lucee:5.3.10.97-nginx-tomcat9.0-jdk11-openjdk
In the Dockerfile I am copying the FR files into a folder
fusionreactor.jar
libfrjvmti_x64.so
COPY ./cms/fusionreactor /custom-libs/fusionreactor
And in setenv.sh I am setting the FR opts:
setenv.sh
# FusionReactor opts
FR_OPTS="$FR_OPTS-javaagent:/custom-libs/fusionreactor/fusionreactor.jar=name=cms,address=8088 -agentpath:/custom-libs/fusionreactor/libfrjvmti_x64.so -Dfrlicense=$FR_LICENSE -Dfrshutdownaction=remove -Dfrlicenseservice.leasetime.hint=10 -Dfrregisterhostname=$FR_SERVERNAME -Dfr.cloud.group=cms"
But when I access FR in my browser I get the message:
Fusion Reactor
Fusion Reactor is not ready please try again in a few seconds.
Already waited more the 10 minutes, the message doesn't change.
Any hint would be appreciated!dswitzer
01/05/2023, 2:50 PMparam
uses a string value of NULL
for the default
attribute, Lucee seems to be treated this as saying "Make this parameter null", which generates an error:
<cfscript>
param name="form.thisShouldDefaultToAString" default="NULL";
writeDump(form);
</cfscript>
If you change the string from NULL
to null
then it works as expected. If you add a type
attribute of string
, then it generates an empty string:
<cfscript>
param name="form.thisShouldDefaultToAString" type="string" default="NULL";
writeDump(form);
</cfscript>
This seems wrong to me and is certainly misleading. Is this a documented behavior?zackster
01/05/2023, 4:55 PMJohn Liljegren
01/05/2023, 7:15 PMJohn Liljegren
01/05/2023, 7:16 PMgavinbaumanis
01/06/2023, 12:03 AMCharles Robertson
01/06/2023, 9:54 AMCacheRegionNew()
ACF does not enforce this.
The consequences are enormous for migration projects.
I am now facing this exact issue.
We are migrating from ACF to Lucee, and from what I can see, unless we expose the plain text:
this.webAdminPassword
In the:
Application.cfc
We would need to build a form, before the main application loads and ask the user to submit the Administrator password, before proceeding.
As I understand, the Administrator password is an encrypted hash, which means it cannot be reversed. So, I would need expose the clear text version of the password?
I mean I understand that it is a security issue, but why does ACF feel that it is unnecessary to enforce this methodology? 🤔