This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 544d60cd79 Jasper cannot operate without a work folder
544d60cd79 is described below
commit 544d60cd7943586d1d3d3c797f6859207f31baac
Author: remm <[email protected]>
AuthorDate: Mon May 25 20:55:45 2026 +0200
Jasper cannot operate without a work folder
Even if it could, the options would be half initialized and not
functional, so use an ISE instead.
---
java/org/apache/jasper/EmbeddedServletOptions.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/java/org/apache/jasper/EmbeddedServletOptions.java
b/java/org/apache/jasper/EmbeddedServletOptions.java
index 81a85cffb4..5014b3e211 100644
--- a/java/org/apache/jasper/EmbeddedServletOptions.java
+++ b/java/org/apache/jasper/EmbeddedServletOptions.java
@@ -621,8 +621,7 @@ public final class EmbeddedServletOptions implements
Options {
scratchDir = (File) context.getAttribute(ServletContext.TEMPDIR);
}
if (scratchDir == null) {
- log.fatal(Localizer.getMessage("jsp.error.no.scratch.dir"));
- return;
+ throw new
IllegalStateException(Localizer.getMessage("jsp.error.no.scratch.dir"));
}
if (!(scratchDir.exists() && scratchDir.canRead() &&
scratchDir.canWrite() && scratchDir.isDirectory())) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]