Adam Cameron
<cfcomponent extends="Parent">
<cfscript>
static {
final static.MY_CONST = 3
}
</cfscript>
<!--- ... etc, rest of file --->
</cfcomponent>
And Lucee is going:
Error executing bundle - test.path.to.MyTest message: The static member [MY_CONST] does not exist in the Component [<http://path.to.My|path.to.My>]
It's simply not true. It's there. It's always there.
I recommend you guys add a lot of test cases around static support.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?Anders Lars
05/17/2023, 10:50 AMAdam Cameron
<cfscript>
startTime = parseDateTime("2022-01-02 03:04:05", "yyyy-mm-dd HH:nn:ss", "Europe/London")
upTime = startTime.diff("s", now())
writeDump([
startTime = startTime,
upTime = upTime
])
</cfscript>
https://trycf.com/gist/74e8f4b5563e90f56a81d411d02e332f/lucee6-beta?theme=monokai
Lucee 5: the diff is positive, eg: 43246273
Lucee 6: the diff is negative, eg: -43246306
Actually it's probably this: https://luceeserver.atlassian.net/browse/LDEV-2044 ? So a bug fix.seancorfield
Adam Cameron
.diff()
, all our tests pass on Lucee 6. cc @alexpixl8Adam Cameron
<cfscript>
function pow(o1, o2) {
return o1 ^ o2;
}
writeOutput(pow(2,-1))
</cfscript>
I am getting:
lucee.runtime.exp.NativeException: Invalid operation
at java.base/java.math.BigDecimal.pow(Unknown Source)seandaniels
05/17/2023, 7:46 PMsessionCluster=true
on a production app that has three Lucee instances all running 5.3.10.120. Very rarely, but seemingly in the same situations, a session variable only persists on the instance it was set on, meaning the session data is inconsistent across instances. The situation(s) in question I believe all involve a redirect (using ColdBox's relocate()
) after setting the session variable. Is this is a known issue? Is there some sort of session flush I need to execute before the relocation?Sam Scott
05/18/2023, 9:22 PM/usr/local/lib/serverHome/WEB-INF/lucee-web/datasource.log
. (Severity = "INFO" where before it was "ERROR")
I'm not sure if updating the docker image had anything to do with it but it doesn't look like I changed anything in the code; figured this might be a LogBox setting in my Coldbox.cfc but nothing's jumping out at me. Where should I look?d1rtym0nk3y
05/19/2023, 8:26 AM<cfscript>
if(structKeyExists(rc, "myvalue")) {
dump(rc.myvalue);
function test() {
return rc;
}
try {
test();
}
catch(any e) {
dump(e);
}
}
</cfscript>
which correctly dumps rc.myvalue, and then catches this error
The key [rc] does not exist.
lucee.runtime.exp.ExpressionException: The key [rc] does not exist.
at lucee.runtime.type.scope.UndefinedImpl.get(UndefinedImpl.java:240)
at lucee.runtime.type.scope.UndefinedImpl.get(UndefinedImpl.java:184)
at views.main.test_cfm$cf$c7h.udfCall(/views/main/test.cfm:4)
maybe i'm not remembering this correctly, but i thought functions had access to the calling context variableszackster
05/19/2023, 11:02 AMzackster
05/20/2023, 9:33 AMzackster
05/20/2023, 5:03 PMzackster
05/20/2023, 6:54 PMzackster
05/20/2023, 9:58 PMzackster
05/20/2023, 10:06 PMzackster
05/20/2023, 10:11 PMAdam Cameron
priority
has not been implemented on cfmail
?
(ref: https://docs.lucee.org/reference/tags/mail.html#attribute-priority)Charles Robertson
05/24/2023, 3:58 PMConfigImport()
, does anyone know if this object key:
maxCFThreads
Refers to:Charles Robertson
05/24/2023, 3:58 PMzackster
05/25/2023, 7:52 AMzackster
05/26/2023, 11:53 AM[INFO] [java] [script] test.tickets.LDEV4225
[INFO] [java] [script] Syntax Error, invalid Expression [7] at position [1025]
[INFO] [java] [script] [ a a a " }7D]
[INFO] [java] [script]
[INFO] [java] [script] Syntax Error, invalid Expression [7] at position [25] in [{ content: "a a a a a " }7D]
micha
05/26/2023, 2:35 PMmicha
05/26/2023, 2:36 PMmicha
05/26/2023, 2:37 PMmicha
05/26/2023, 2:37 PMmicha
05/26/2023, 2:38 PMjamiejackson
05/26/2023, 9:21 PMmaestro2
05/29/2023, 5:06 PMquetwo
05/31/2023, 3:25 AM