aboutsummaryrefslogtreecommitdiffstats
path: root/standalone-container
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2021-09-24 11:18:56 +0200
committerJon Bratseth <bratseth@gmail.com>2021-09-24 11:18:56 +0200
commit056732ab45cbc172ebc9f1eabd9f74dccf8bd7c3 (patch)
treec770695c3f34a0a4be3f982b1f147d8524cb963a /standalone-container
parent9dabf1ce317325a334fd5f6aac531456acea17c4 (diff)
Tolerate missing file references
If Vespa contains a config definition with a path, and this is set by the application, this will cause a hash file reference, which we should not attemt to resolve server side.
Diffstat (limited to 'standalone-container')
-rw-r--r--standalone-container/src/main/java/com/yahoo/container/standalone/LocalFileDb.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/standalone-container/src/main/java/com/yahoo/container/standalone/LocalFileDb.java b/standalone-container/src/main/java/com/yahoo/container/standalone/LocalFileDb.java
index ed7d30c476f..09c486d0ff1 100644
--- a/standalone-container/src/main/java/com/yahoo/container/standalone/LocalFileDb.java
+++ b/standalone-container/src/main/java/com/yahoo/container/standalone/LocalFileDb.java
@@ -37,7 +37,7 @@ public class LocalFileDb implements FileAcquirer, FileRegistry {
synchronized (this) {
File file = fileReferenceToFile.get(reference);
if (file == null) {
- throw new RuntimeException("Invalid file reference " + reference);
+ return new File(reference.value()); // Downloaded file reference: Will (hopefully) be resolved client side
}
return file;
}