Skip to content

Commit c71944c

Browse files
fm3normanrz
andauthored
Allow local absolute mag paths to point to same-orga datasets (#8722)
Vx now writes out absolute paths instead of symlinking other dataset layers. This is currently rejected by wk. This PR relaxes this check. ### Issues: - fixes https://scm.slack.com/archives/C5AKLAV0B/p1750927178238689?thread_ts=1750859466.889959&cid=C5AKLAV0B ------ - [x] Needs datastore update after deployment Co-authored-by: Norman Rzepka <code@normanrz.com>
1 parent 2e479fe commit c71944c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webknossos-datastore/app/com/scalableminds/webknossos/datastore/storage/RemoteSourceDescriptorService.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class RemoteSourceDescriptorService @Inject()(dSRemoteWebknossosClient: DSRemote
5555
} else if (uri.getScheme == null || uri.getScheme == DataVaultService.schemeFile) {
5656
val localPath = Paths.get(uri.getPath)
5757
if (localPath.isAbsolute) {
58-
if (localPath.toString.startsWith(localDatasetDir.toAbsolutePath.toString) || dataStoreConfig.Datastore.localDirectoryWhitelist
58+
if (localPath.toString.startsWith(localDatasetDir.getParent.toAbsolutePath.toString) || dataStoreConfig.Datastore.localDirectoryWhitelist
5959
.exists(whitelistEntry => localPath.toString.startsWith(whitelistEntry)))
6060
uri
6161
else

0 commit comments

Comments
 (0)