Lucee 7: Preserve case

I just noticed, the Lucee release 7 is marked as stable - woooo!
As the Upgrade by Lucee admin is not shown and the “old”-Append in the URL didn’t work, i rebuild my docker container and lucee started, thats nice! On the first look, the performance is stunning!

I migrated my old lucee-server.xml with configTranslate() and as far as I can see, the Preserve case Option is missing.

I added a

"preserveCase": true,

but this doesn’t change it? Is there a list of all keys? Can I set the Lucee Admin Password here as well?

OS: Docker / Linux
Java Version: 21
Tomcat Version: 11
Lucee Version: 7.0.0.395

Did you have <compiler dot-notation-upper-case="false"/> in your xml?

There’s support for reading preserveCase from .CFConfig.json, which is handled/translated as the inverse of dotNotationUpperCase (which is what the admin uses/writes/etc)

Glad you like 7! The performance is even better with java 21

(I edited my posting, I use java 21 and tomcat 11).

Thanks for your quick reply. I added "dotNotationUpperCase": false, to the CFConfig.json, restarted, but the Lucee admin shows the default (convert to Upper Case) and the result from Lucee has Upper keys.

There is no dot-notation-upper-case or other dotNotationUpperCase in the whole/opt/lucee folder (+subfolders) - I checked with grep.

How can I debug this problem?

(Found the password key, its hspw).

hmmm, change the setting via the admin and see what changes in the file?

If i switch (one of them) to false, the .CFConfig.json is updated, so its no permission problem.

Is it possible you have this ENV set somewhere?

LUCEE_PRESERVE_CASE=false

I think that would override your .CFconfig.json?

good call, I did a code review, there’s nothing in 5.4 which indicates that xml attribute is supported?

The Dockerfile has this:

ENV LUCEE_JAVA_OPTS "-Xms128m -Xmx1024m"
ENV LUCEE_FULL_NULL_SUPPORT true
ENV LUCEE_PRESERVE_CASE true

But this doesn’t work either.

ahhh, I think there’s a logic bug with the inverse setting compared to dotNotationUpperCase

can you confirm setting it to false works?

https://luceeserver.atlassian.net/browse/LDEV-5889

fixed in 7.0.1.55-SNAPSHOT