Skip to content
This repository was archived by the owner on Aug 17, 2018. It is now read-only.

Commit aafdd88

Browse files
author
Kin Man Chung
committed
Oracle bug 13627370: Request for non-existent JSP file returns a 500 (instead
400) when use-precompiled (in sun-web.xml) is set to true. svn path=/trunk/; revision=1414
1 parent 9645cde commit aafdd88

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

impl/src/main/java/org/apache/jasper/servlet/JspServlet.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,7 @@ private void serviceJspFile(HttpServletRequest request,
440440
if (wrapper == null) {
441441
// Check if the requested JSP page exists, to avoid
442442
// creating unnecessary directories and files.
443-
if (null == context.getResource(jspUri)
444-
&& !options.getUsePrecompiled()) {
443+
if (null == context.getResource(jspUri)) {
445444
String includeRequestUri = (String)
446445
request.getAttribute("javax.servlet.include.request_uri");
447446
if (includeRequestUri != null) {

0 commit comments

Comments
 (0)