diff --git a/src/main/java/sirius/biz/storage/layer2/BlobHardRef.java b/src/main/java/sirius/biz/storage/layer2/BlobHardRef.java index 4b2628a03..02061524e 100644 --- a/src/main/java/sirius/biz/storage/layer2/BlobHardRef.java +++ b/src/main/java/sirius/biz/storage/layer2/BlobHardRef.java @@ -101,6 +101,7 @@ public long fetchSize() { * @return the formatted (human-readable) file size of the referenced blob or an empty string, if the reference * is empty */ + @NoodleSandbox(NoodleSandbox.Accessibility.GRANTED) public String fetchFormattedSize() { return fetchBlob().map(Blob::getSize).map(NLS::formatSize).orElse(""); } diff --git a/src/main/java/sirius/biz/storage/layer2/BlobSoftRef.java b/src/main/java/sirius/biz/storage/layer2/BlobSoftRef.java index 2c945823d..608d6242c 100644 --- a/src/main/java/sirius/biz/storage/layer2/BlobSoftRef.java +++ b/src/main/java/sirius/biz/storage/layer2/BlobSoftRef.java @@ -11,6 +11,7 @@ import sirius.db.mixing.BaseEntity; import sirius.db.mixing.types.BaseEntityRef; import sirius.kernel.commons.Strings; +import sirius.pasta.noodle.sandbox.NoodleSandbox; import javax.annotation.Nullable; import java.util.regex.Pattern; @@ -89,6 +90,7 @@ public String getPath() { * * @return true if a URL was stored, false if an object key or nothing yet is stored */ + @NoodleSandbox(NoodleSandbox.Accessibility.GRANTED) public boolean isURL() { return supportsURL && Strings.isFilled(key) && URL_PATTERN.matcher(key).find(); }