tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lar...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/context DefaultCMSetter.java
Date Thu, 21 Sep 2000 23:42:06 GMT
larryi      00/09/21 16:42:05

  Modified:    src/share/org/apache/tomcat/context Tag: tomcat_32
                        DefaultCMSetter.java
  Log:
  Restore the stack traces to ExceptionHandler().  Inclusion/exclusion via
  a configuration setting is the appropriate solution.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.45.2.4  +2 -12     jakarta-tomcat/src/share/org/apache/tomcat/context/DefaultCMSetter.java
  
  Index: DefaultCMSetter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/context/DefaultCMSetter.java,v
  retrieving revision 1.45.2.3
  retrieving revision 1.45.2.4
  diff -u -r1.45.2.3 -r1.45.2.4
  --- DefaultCMSetter.java	2000/09/21 10:25:09	1.45.2.3
  +++ DefaultCMSetter.java	2000/09/21 23:42:04	1.45.2.4
  @@ -233,12 +233,8 @@
   
   	buf.append("<b>")
   	    .append(sm.getString("defaulterrorpage.internalservleterror"))
  -	    .append("</b>")
  -	    .append(e.getMessage())
  -	    .append("<br>\r\n");
  -	    //.append("</b><br>");
  +	    .append("</b><br>");
   
  -/* Disable stack trace for security reasons
   	buf.append("<pre>");
   
   	StringWriter sw = new StringWriter();
  @@ -248,18 +244,13 @@
   	buf.append(sw.toString());
   
   	buf.append("</pre>\r\n");
  -*/
   
           if (e instanceof ServletException) {
   	    Throwable cause = ((ServletException)e).getRootCause();
   	    if (cause != null) {
   		buf.append("<b>")
   		    .append(sm.getString("defaulterrorpage.rootcause"))
  -		    .append("</b>")
  -		    .append(cause.getMessage())
  -		    .append("\r\n");
  -		    //.append("</b>\r\n");
  -/*
  +		    .append("</b>\r\n");
   	    buf.append("<pre>");
   
   	    sw=new StringWriter();
  @@ -268,7 +259,6 @@
   	    buf.append( sw.toString());
   
   	    buf.append("</pre>\r\n");
  -*/
   	    }
   	}
   	
  
  
  

Mime
View raw message