mirror of https://github.com/apache/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
This commit is contained in:
parent
e84119abed
commit
d6ed4a5db5
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue