Skip to content

Commit 211b900

Browse files
committed
Add notes to local.settings.json for installing local Storage Emulator, and fix compilation bug.
1 parent 563aeea commit 211b900

File tree

1 file changed

+6
-0
lines changed
  • apachefop-serverless-az-func/src/main/java/com/cajuncoding/apachefop/serverless/utils

1 file changed

+6
-0
lines changed

apachefop-serverless-az-func/src/main/java/com/cajuncoding/apachefop/serverless/utils/ResourceUtils.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ public static Path getBaseMappedPath() {
3636

3737
public static Path MapServerPath(Path pathToMap) {
3838
var basePath = getBaseMappedPath();
39+
40+
//Guard to ensure that the path is something inside of the current Base Path,
41+
// otherwise relativize() will throw Exceptions.
42+
if(!pathToMap.startsWith(basePath))
43+
return null;
44+
3945
var relativePath = basePath.relativize(pathToMap);
4046
return relativePath;
4147
}

0 commit comments

Comments
 (0)