How to reproduce:
- Open Lucee Admin Overview
- Enter a label for a web context
- Click Update button
Expected: Form submits, page reloads, label is displayed
Actual: Form submits, page reloads, label reverts to hash value
OS: Ubuntu-compatible Pop!_OS 22.04
Java Version: 25.0.1 (Eclipse Adoptium) 64bit
Tomcat Version: 11.0.13
Lucee Version: 7.0.0.395
I removed the “labels” key from .CFConfig.json and Lucee Admin recreated it:
"labels": {
"label": [
{
"id": "e558d2cf31a044a03154228ca8af863b",
"name": "ROOT"
}
]
}
So it appears to be a bug in the Admin display of those form input values.
And I may have found it in the Lucee repo, line 506 of ConfigServerImpl.java:
public Map<String, String> getLabels() {
if (labels == null) {
synchronized (SystemUtil.createToken("ConfigServerImpl", "getLabels")) {
if (labels == null) {
labels = ConfigFactoryImpl.loadLabel(null, root);
}
}
labels = new HashMap<String, String>();
}
return labels;
}
labels = new HashMap<String, String>(); wipes out what’s returned from ConfigFactoryImpl.loadLabel?
@micstriit or @Zackster should I submit bug report? Maybe even with my own pull request if it’s a simple matter of removing that line?
Yes, I have tested this with 7.0.1.73-SNAPSHOT, and it is a bug. Please file a bug report and add a PR.
1 Like
This issue has been resolved and is tracked under the related ticket: LDEV-5915
1 Like