mirror of https://github.com/apache/archiva.git
[MRM-781] additional fixes to webdav
Submitted by: James William Dumay git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@649382 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fada72428f
commit
cc0ce2d707
|
@ -133,6 +133,8 @@ public class ArchivaDavResource implements DavResource
|
||||||
if (!isCollection())
|
if (!isCollection())
|
||||||
{
|
{
|
||||||
IOUtils.copy(new FileInputStream(localResource), outputContext.getOutputStream());
|
IOUtils.copy(new FileInputStream(localResource), outputContext.getOutputStream());
|
||||||
|
outputContext.setContentLength(getContentLength());
|
||||||
|
outputContext.setContentType(getContentType());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -269,7 +269,7 @@ public class ArchivaDavResourceFactory implements DavResourceFactory, Auditable
|
||||||
}
|
}
|
||||||
catch ( RepositoryMetadataException e )
|
catch ( RepositoryMetadataException e )
|
||||||
{
|
{
|
||||||
log.error(e.getMessage(), e);
|
/* eat it */
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -283,7 +283,7 @@ public class ArchivaDavResourceFactory implements DavResourceFactory, Auditable
|
||||||
}
|
}
|
||||||
catch ( RepositoryMetadataException e )
|
catch ( RepositoryMetadataException e )
|
||||||
{
|
{
|
||||||
log.error(e.getMessage(), e);
|
/* eat it */
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue