]> source.dussan.org Git - archiva.git/commitdiff
[MRM-276] HTTP error 500 when artifact is not found
authorJoakim Erdfelt <joakime@apache.org>
Mon, 26 Feb 2007 17:06:10 +0000 (17:06 +0000)
committerJoakim Erdfelt <joakime@apache.org>
Mon, 26 Feb 2007 17:06:10 +0000 (17:06 +0000)
Submitted By: Antoine Veret

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@511903 13f79535-47bb-0310-9956-ffa450edef68

archiva-webapp/src/main/java/org/apache/maven/archiva/web/repository/ProxiedDavServer.java

index db43e54b77dc33827adcf74319295acb87e67ea9..d57c5906fdfa2a5833c7fdd38ca6e7db1246c4fd 100644 (file)
@@ -37,6 +37,8 @@ import org.codehaus.plexus.webdav.DavServerException;
 import org.codehaus.plexus.webdav.servlet.DavServerRequest;
 import org.codehaus.plexus.webdav.util.WebdavMethodUtil;
 
+import sun.security.action.GetLongAction;
+
 import javax.servlet.ServletConfig;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletResponse;
@@ -83,7 +85,7 @@ public class ProxiedDavServer
 
     private ArtifactRepository managedRepository;
 
-    private List/*<ArtifactRepository>*/ proxiedRepositories;
+    private List/*<ArtifactRepository>*/proxiedRepositories;
 
     private ProxyInfo wagonProxy;
 
@@ -157,7 +159,9 @@ public class ProxiedDavServer
         }
         catch ( ResourceDoesNotExistException e )
         {
-            throw new ServletException( "Unable to fetch resource, it does not exist.", e );
+            // TODO: getLogger().info( "Unable to fetch resource, it does not exist.", e );
+            // return an HTTP 404 instead of HTTP 500 error.
+            return;
         }
         catch ( ProxyException e )
         {