You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/entitlements/FilesEntitlement.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -331,13 +331,13 @@ public static FilesEntitlement build(List<Object> paths) {
331
331
}
332
332
333
333
PathrelativePath = Path.of(relativePathAsString);
334
-
if (platform != null && platform.isCurrent() && FileData.isAbsolutePath(relativePathAsString)) {
334
+
if (FileData.isAbsolutePath(relativePathAsString)) {
335
335
thrownewPolicyValidationException("'relative_path' [" + relativePathAsString + "] must be relative");
0 commit comments