aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webdav/src/main
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-08-03 16:02:09 +0200
committerMartin Stockhammer <martin_s@apache.org>2019-08-03 16:02:09 +0200
commit9ebf8c88809bbe9c689a0a4ac5628f92f49f152e (patch)
treec9f051590c2c05766881e70b1d068628b9d158ff /archiva-modules/archiva-web/archiva-webdav/src/main
parentc56ce11c20b1963760b74e397acb200f61c1f95e (diff)
downloadarchiva-9ebf8c88809bbe9c689a0a4ac5628f92f49f152e.tar.gz
archiva-9ebf8c88809bbe9c689a0a4ac5628f92f49f152e.zip
Fixing Unit Tests
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webdav/src/main')
-rw-r--r--archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java
index 4a0a548c9..ad0bb388e 100644
--- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java
+++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java
@@ -430,7 +430,7 @@ public class ArchivaDavResourceFactory
String requestedFileName = StringUtils.substringAfterLast( pathInfo, "/" );
StorageAsset temporaryIndexDirectory =
buildMergedIndexDirectory( activePrincipal, request, repoGroup );
- StorageAsset asset = temporaryIndexDirectory.getStorage().getAsset(requestedFileName);
+ StorageAsset asset = temporaryIndexDirectory.resolve(requestedFileName);
try {
resource = new ArchivaDavResource( asset, requestedFileName, repoGroup,