risto
10/19/2022, 6:54 PMNate Smith
10/19/2022, 10:06 PMMarc Funaro
10/21/2022, 3:36 PMzackster
10/24/2022, 12:39 PMconfigImport()
with the Web.cfc
and Server.cfc
startup listeners, best tried with 5.3.10.84-SNAPSHOT https://docs.lucee.org/guides/cookbooks/Startup_Listeners.htmlzackster
10/24/2022, 1:36 PMAdam Cameron
cf_session_data
table is created as:
CREATE TABLE `cf_session_data` (
`expires` varchar(64) NOT NULL,
`cfid` varchar(64) NOT NULL,
`name` varchar(255) NOT NULL,
`data` longtext NOT NULL,
UNIQUE KEY `ix_cf_session_data` (`cfid`,`name`,`expires`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
And on others:
CREATE TABLE `cf_session_data` (
`expires` varchar(64) NOT NULL,
`cfid` varchar(64) NOT NULL,
`name` varchar(255) NOT NULL,
`data` longtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
All are MySQL 8, Lucee 5.3.9.160. One difference is that the ones that have the KEY are driven by a commandbox docker image, the others are just driven by the standard lucee docker image. I can't think why that would matter though?
I'm not so worried about the charset/collation stuff, but I am concerned about the lack of unique key.
I have found this: https://docs.lucee.org/guides/Various/FAQs/technical-FAQs/database-session.html#tip-manually-check-cf_session_data-table-for, but that alludes to how the table might not be set up properly, rather than why it might not be set up properly.
Other googling only turned up with the same issue; no actual answers.brettpr
10/27/2022, 9:45 AMzackster
10/27/2022, 3:55 PMAdam Cameron
st = {}
[
"tahi",
"rua",
"toru",
"wha"
].each((n) => writeOutput(n))
Errors with: Invalid Syntax Closing []] not found on line 5
st = {}; // <--- say hello to my little friend
[
"tahi",
"rua",
"toru",
"wha"
].each((n) => writeOutput(n))
Works fine
😐zackster
10/31/2022, 8:49 AMAdam Cameron
JohnBampton
10/31/2022, 9:16 AMAdam Cameron
isObject
& `isValid`: https://trycf.com/gist/68714a07fd05f75f9edb7c05b7db0a47/lucee5?setupCodeGistId=816ce84fd991c2682df612dbaf1cad11&theme=monokai
Compare behaviours of CF's baseline expectations, and Lucee.
Lucee's behaviour is inconsistent with CF's, and also internally inconsistent.
Or am I missing something?Anders Lars
11/01/2022, 3:29 PMzackster
11/03/2022, 9:19 AMzackster
11/03/2022, 3:54 PMzackster
11/07/2022, 2:53 PMJonas Eriksson
11/08/2022, 10:32 AMromanstr
11/08/2022, 1:41 PMzackster
11/08/2022, 6:15 PMAdam Cameron
org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [CFMLServlet] in context with path [] threw exception [null] with root cause
thing that was flooding the logs.Adam Cameron
i=1
do {
x = randRange(1,10)
if (x > 5) {
continue
}
writeOutput(x)
} while(++i <= 10)
Syntax Error, Invalid Construct
If one puts a semi-colon after the continue
, it works. It works as one would expect on CF.
https://trycf.com/gist/063a476b5ab7d0e67300fab8e2e55802/lucee5?theme=monokai
Looks to me like it doesn't occur to Lucee that }
can be considered the end of the previous statement, as much as ;
could be.
I thought this had been raised previously, but didn't find anything in Jira. I might have been thinking of another situation where behaviour is similarly bung/unexpected. I def know I raised a ticket about break
, but I was wrong with that one cos there was some legit uncertainty about whether or not the statement had ended with that one.ivan
11/10/2022, 5:07 PM// application.cfc
component {
if( cookie.keyExists("snapshot") && cookie.snapshot.len() ){
this.root = getDirectoryFromPath( getCurrentTemplatePath() );
this.mappings["/"] = this.root & "../" & cookie.snapshot;
}
// ...
}
Also, I don't know how to deal with static assets (css/js/images) because those mapped in the application.cfc are not calledgavinbaumanis
11/11/2022, 2:09 AM"Dragons live here : do not EVER consider editing or even trying to understand anything in here."
But of course this isn't helpful for anyone.
The CFC is entirely cfscript.
(Side quest : is there a way to display a literal AT symbol in slack - Eg. AT:hint complains about having multiple possible matches?)
Now, I know I can create anything I like as an annotation, @mybullshitannotation this is some some text
However - I can't seem to find a list of the ones that I can use that have a "special" meaning.
That is - is there a list that would contain returnFormat, returnType, hint, etc
Or is simply a one-to-one for the tag attributes from the cffunction docs here?
Are there any differences?
Are they documented anywhere? - if not I feel a doc PR coming along.
More specifically - to my current need - how do I annotate an argument in cfscript?
I know that the following provides the "hint";
@argumentOne This a hint
But... how do I annotate for;
the datatype of the argument?
if it is required?
or is Just "free text" for arguments as a result of Lucee treating annotations differently to ACF (Lucee believes an annotation is just a comment and should not effect code operation , (which I like BTW).
So it would seem nonsensical to have special handling of argument attributes in annotations?
I don't mind, either way - I just can't find anything specifically about it in the docs.
As always thanks!zackster
11/11/2022, 10:11 AMzackster
11/11/2022, 10:12 AMzackster
11/11/2022, 10:13 AMzackster
11/11/2022, 10:14 AMzackster
11/11/2022, 12:43 PMAnders Lars
11/14/2022, 1:09 AM