myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awi...@apache.org
Subject svn commit: r550554 - /myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/URLUtils.java
Date Mon, 25 Jun 2007 17:13:49 GMT
Author: awiner
Date: Mon Jun 25 10:13:48 2007
New Revision: 550554

URL: http://svn.apache.org/viewvc?view=rev&rev=550554
Log:
Followup to TRINIDAD-73:  fix logged exception when displaying directories

Modified:
    myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/URLUtils.java

Modified: myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/URLUtils.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/URLUtils.java?view=diff&rev=550554&r1=550553&r2=550554
==============================================================================
--- myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/URLUtils.java
(original)
+++ myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/URLUtils.java
Mon Jun 25 10:13:48 2007
@@ -53,7 +53,13 @@
         if (is != null)
           is.close();
       }
+      // If the connection doesn't support getInputStream(),
+      // or there's an IOException (Tomcat throws an exception
+      // on directory views, for example), that's OK.
       catch (UnknownServiceException use)
+      {
+      }
+      catch (IOException ioe)
       {
       }
 



Mime
View raw message