Revision 7534
Added by ben leinfelder over 11 years ago
src/edu/ucsb/nceas/metacat/dataone/CNodeService.java | ||
---|---|---|
1565 | 1565 |
if ( replicaNode.getValue().equals(listedReplica.getReplicaMemberNode().getValue())) { |
1566 | 1566 |
// don't allow status to change from COMPLETED to anything other |
1567 | 1567 |
// than INVALIDATED: prevents overwrites from race conditions |
1568 |
if ( listedReplica.getReplicationStatus() == ReplicationStatus.COMPLETED && |
|
1569 |
replicaStatus != ReplicationStatus.INVALIDATED ) { |
|
1568 |
if ( listedReplica.getReplicationStatus() != replicaStatus && |
|
1569 |
listedReplica.getReplicationStatus() == ReplicationStatus.COMPLETED && |
|
1570 |
replicaStatus != ReplicationStatus.INVALIDATED ) { |
|
1570 | 1571 |
throw new InvalidRequest("4853", "Status state change from " + |
1571 | 1572 |
listedReplica.getReplicationStatus() + " to " + |
1572 | 1573 |
replicaStatus.toString() + "is prohibited for identifier " + |
Also available in: Unified diff
allow verification date to be updated for replicas (patch from Skye). https://redmine.dataone.org/issues/3699