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