This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 7df0badea3 Jasper cannot operate without a work folder
7df0badea3 is described below
commit 7df0badea384c6e699c47f8a3a9b38ad157137e3
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 24e99987c5..18193811ba 100644
--- a/java/org/apache/jasper/EmbeddedServletOptions.java
+++ b/java/org/apache/jasper/EmbeddedServletOptions.java
@@ -701,8 +701,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]