diff options
author | Jon Bratseth <bratseth@gmail.com> | 2021-09-24 11:18:56 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2021-09-24 11:18:56 +0200 |
commit | 056732ab45cbc172ebc9f1eabd9f74dccf8bd7c3 (patch) | |
tree | c770695c3f34a0a4be3f982b1f147d8524cb963a | |
parent | 9dabf1ce317325a334fd5f6aac531456acea17c4 (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.
-rw-r--r-- | standalone-container/src/main/java/com/yahoo/container/standalone/LocalFileDb.java | 2 |
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; } |