From: Joakim Erdfelt Date: Mon, 26 Feb 2007 17:06:10 +0000 (+0000) Subject: [MRM-276] HTTP error 500 when artifact is not found X-Git-Tag: archiva-0.9-alpha-1~92 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d6ed4a5db52e2023e073d73a16371cf4c442d2a9;p=archiva.git [MRM-276] HTTP error 500 when artifact is not found Submitted By: Antoine Veret git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@511903 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-webapp/src/main/java/org/apache/maven/archiva/web/repository/ProxiedDavServer.java b/archiva-webapp/src/main/java/org/apache/maven/archiva/web/repository/ProxiedDavServer.java index db43e54b7..d57c5906f 100644 --- a/archiva-webapp/src/main/java/org/apache/maven/archiva/web/repository/ProxiedDavServer.java +++ b/archiva-webapp/src/main/java/org/apache/maven/archiva/web/repository/ProxiedDavServer.java @@ -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/**/ proxiedRepositories; + private List/**/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 ) {