### Eclipse Workspace Patch 1.0 #P metacat Index: src/edu/ucsb/nceas/metacat/dataone/CNodeService.java =================================================================== --- src/edu/ucsb/nceas/metacat/dataone/CNodeService.java (revision 7528) +++ src/edu/ucsb/nceas/metacat/dataone/CNodeService.java (working copy) @@ -1565,8 +1565,9 @@ if ( replicaNode.getValue().equals(listedReplica.getReplicaMemberNode().getValue())) { // don't allow status to change from COMPLETED to anything other // than INVALIDATED: prevents overwrites from race conditions - if ( listedReplica.getReplicationStatus() == ReplicationStatus.COMPLETED && - replicaStatus != ReplicationStatus.INVALIDATED ) { + if ( listedReplica.getReplicationStatus() != replicaStatus && + listedReplica.getReplicationStatus() == ReplicationStatus.COMPLETED && + replicaStatus != ReplicationStatus.INVALIDATED ) { throw new InvalidRequest("4853", "Status state change from " + listedReplica.getReplicationStatus() + " to " + replicaStatus.toString() + "is prohibited for identifier " +