From e1f125887b97840868432bacd7f8b62f03441231 Mon Sep 17 00:00:00 2001 From: Patrick Dowler Date: Mon, 24 Jun 2024 10:59:06 -0700 Subject: [PATCH] vault: bug fix for allocationParent init --- .../main/java/org/opencadc/vault/NodePersistenceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vault/src/main/java/org/opencadc/vault/NodePersistenceImpl.java b/vault/src/main/java/org/opencadc/vault/NodePersistenceImpl.java index e6d3d7f6..dc7a208b 100644 --- a/vault/src/main/java/org/opencadc/vault/NodePersistenceImpl.java +++ b/vault/src/main/java/org/opencadc/vault/NodePersistenceImpl.java @@ -234,20 +234,20 @@ private void initRootNode() { for (String ap : VaultInitAction.getAllocationParents(config)) { if (ap.isEmpty()) { // allocations are in root - aps.add(root); + aps.add(rn); log.info("allocationParent: /"); } else { try { // simple top-level names only - ContainerNode cn = (ContainerNode) get(root, ap); + ContainerNode cn = (ContainerNode) get(rn, ap); String str = ""; if (cn == null) { cn = new ContainerNode(ap); - cn.parent = root; + cn.parent = rn; cn.isPublic = true; cn.inheritPermissions = false; - cn.owner = root.owner; + cn.owner = rn.owner; str = "created/"; put(cn); }