After using the admin it can happen, that the language resource is not properly loaded

Description

It is not quite clear how it happens but when using a new version of Lucee and after clicking in the admin for a few times, the following error appears:

It does not matter where one clicks, the URL params are absolutely fine and usually working.

Environment

None

Attachments

2
  • 22 May 2023, 02:09 pm
  • 22 May 2023, 02:08 pm

Activity

Show:

Michael Offner 22 May 2023 at 14:48

this is already fixed in Lucee 6.0

Michael Offner 22 May 2023 at 14:24
Edited

Workaround:

Run this code and after that restart Lucee:

<cfscript> path=expandPath("/lucee/admin/resources/language/"); files=directoryList(path:path,filter:"*.xml"); if(len(files)) { dump(label:"found xml files, nothing to do!",var:files); } else { dump("there are no xml files, copy them in place!"); fileCopy("https://s3.eu-central-2.wasabisys.com/lucee/de.xml", path&"de.xml"); fileCopy("https://s3.eu-central-2.wasabisys.com/lucee/en.xml", path&"en.xml"); files=directoryList(path:path,filter:"*.xml"); dump(label:"result AFTER copy them in place.",var:files); dump("call the Lucee admin with ?reinit=true in the URL or restart lucee"); } </cfscript>

Michael Offner 22 May 2023 at 14:23

This issue is happening because the necessary xml languages resources are no longer available outside the lucee-context.lar, but lucee still creates a language folder for them.

Because of that Lucee finds that empty language folder at

/WEB-INF/lucee/context/admin/resources/language/

and not the folder in the lucee-context.lar

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 22 May 2023 at 14:09
Updated 26 May 2023 at 14:41
Resolved 26 May 2023 at 14:41

Flag notifications