Reduce Lucee's Dependency on .CFConfig Configuration
Description
Activity
Pothys - MitrahSoft 26 August 2024 at 12:05
Yes, @Michael Offner , that works fine. Now, it allows Lucee to start and operate as a functional server even without any .CFConfig.json configuration.
Michael Offner 23 August 2024 at 16:05
@Pothys - MitrahSoft that is expected, because the admin mapping does not exist th admin does not. you need to test if Lucee itself works in that case.
Pothys - MitrahSoft 19 August 2024 at 05:48
@Michael Offner , I investigated the .CFConfig.json file, which was initially empty {}. After running it with the Lucee version 6.1.1.61, the .CFConfig.json file generated only a salt key, and admin page shows an error.
lucee.runtime.exp.MissingIncludeException: Page [/lucee/admin/server.cfm] [C:\..\..\lucee-server\context\context\admin\server.cfm] not found
at lucee.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:1130)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1042)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:940)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:213)
at lucee.runtime.listener.ModernAppListener.onRequest(ModernAppListener.java:100)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2725)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2712)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2683)
at lucee.runtime.engine.Request.exe(Request.java:45)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1160)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1117)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97)
at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:42)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:394)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:770)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:834)
Michael Offner 15 August 2024 at 20:18
@Pothys - MitrahSoft please run Lucee with an “empty“ config looking like this {}
(if it is not a valid json, it will be replaced with new default version).
Michael Offner 15 August 2024 at 20:15
https://github.com/lucee/Lucee/commit/e9fa9ef6476dce9831ebb8d17e1bec90352791b9
changed some default values to match the values set by the default config. Also added some default for zip resource and the dump template.
Details
Assignee
Pothys - MitrahSoftPothys - MitrahSoftReporter
Michael OffnerMichael OffnerNew 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
Fix versions
Priority
New
Details
Details
Assignee
Reporter
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
Currently, Lucee requires a significant amount of configuration to be set in the
.CFConfig.json
file for the server to function properly. The goal of this improvement is to reduce this dependency to the absolute minimum, allowing Lucee to start and operate as a functional server even without any.CFConfig.json
configuration.While it is understood that certain features may be unavailable or limited without specific configurations, the server should still be able to run and serve basic requests out-of-the-box. This change will enhance the usability of Lucee, especially in environments where minimal setup is desirable.
Objective:
Reduce mandatory configurations in
.CFConfig.json
to ensure Lucee can start and function with no configuration file provided.Ensure Lucee can operate as a basic server with default settings, even when no
.CFConfig.json
is present.Identify and document the minimal set of configurations necessary for essential features, while ensuring non-critical features gracefully degrade or are disabled when not configured.