Loading src/main/java/it/inaf/oats/vospace/MoveService.java +1 −1 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ public class MoveService extends AbstractNodeService { if(snd.isPermissionDenied()) throw PermissionDeniedException.forPath(destinationPath); if(!snd.isWritable()) throw new InternalFaultException("Destination is not writable: "+ destinationPath); if(!snd.isContainer()) throw new InternalFaultException("Existing destination is not a container: " + destinationPath); if(!snd.isImmutable()) throw new InternalFaultException("Destination is immutable: " + destinationPath); if(snd.isImmutable()) throw new InternalFaultException("Destination is immutable: " + destinationPath); destinationNodeLtreePath = snd.getDestinationNodeLtreePath(); Loading src/main/java/it/inaf/oats/vospace/persistence/NodeDAO.java +1 −1 Original line number Diff line number Diff line Loading @@ -256,7 +256,7 @@ public class NodeDAO { + "((SELECT COUNT(*) FROM (SELECT UNNEST(?) INTERSECT SELECT UNNEST(n.group_write)) AS allowed_groups ) = 0 AND\n" + "n.creator_id <> ?) AS is_permission_denied,\n" + "n.type = 'container' AS is_container,\n" + "n.job_id IS NOT NULL AS busy_state\n" + "n.job_id IS NOT NULL AS busy_state,\n" + "n.immutable AS is_immutable\n" + "FROM node n \n" + "LEFT JOIN location loc ON loc.location_id = n.location_id\n" Loading Loading
src/main/java/it/inaf/oats/vospace/MoveService.java +1 −1 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ public class MoveService extends AbstractNodeService { if(snd.isPermissionDenied()) throw PermissionDeniedException.forPath(destinationPath); if(!snd.isWritable()) throw new InternalFaultException("Destination is not writable: "+ destinationPath); if(!snd.isContainer()) throw new InternalFaultException("Existing destination is not a container: " + destinationPath); if(!snd.isImmutable()) throw new InternalFaultException("Destination is immutable: " + destinationPath); if(snd.isImmutable()) throw new InternalFaultException("Destination is immutable: " + destinationPath); destinationNodeLtreePath = snd.getDestinationNodeLtreePath(); Loading
src/main/java/it/inaf/oats/vospace/persistence/NodeDAO.java +1 −1 Original line number Diff line number Diff line Loading @@ -256,7 +256,7 @@ public class NodeDAO { + "((SELECT COUNT(*) FROM (SELECT UNNEST(?) INTERSECT SELECT UNNEST(n.group_write)) AS allowed_groups ) = 0 AND\n" + "n.creator_id <> ?) AS is_permission_denied,\n" + "n.type = 'container' AS is_container,\n" + "n.job_id IS NOT NULL AS busy_state\n" + "n.job_id IS NOT NULL AS busy_state,\n" + "n.immutable AS is_immutable\n" + "FROM node n \n" + "LEFT JOIN location loc ON loc.location_id = n.location_id\n" Loading