Merge remote-tracking branch 'origin/master' into jetty-9.1
This commit is contained in:
commit
080781ec0e
|
@ -32,6 +32,8 @@ import java.nio.channels.ReadableByteChannel;
|
|||
import java.nio.file.StandardOpenOption;
|
||||
import java.security.Permission;
|
||||
|
||||
import javax.management.RuntimeErrorException;
|
||||
|
||||
import org.eclipse.jetty.util.IO;
|
||||
import org.eclipse.jetty.util.URIUtil;
|
||||
import org.eclipse.jetty.util.log.Log;
|
||||
|
@ -148,7 +150,17 @@ public class FileResource extends Resource
|
|||
}
|
||||
catch(IOException e)
|
||||
{
|
||||
LOG.warn(e);
|
||||
LOG.warn("bad alias for {}: {}",file,e.toString());
|
||||
LOG.debug(e);
|
||||
try
|
||||
{
|
||||
return new URL("http://eclipse.org/bad/canonical/alias");
|
||||
}
|
||||
catch(Exception e2)
|
||||
{
|
||||
LOG.ignore(e2);
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue