Revision 7192
Added by Chris Jones over 12 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
428 | 428 |
if (session == null || session.getSubject() == null) { |
429 | 429 |
String msg = "No session was provided to replicate identifier " + |
430 | 430 |
sysmeta.getIdentifier().getValue(); |
431 |
failure = new NotAuthorized("2152", msg); |
|
432 |
setReplicationStatus(thisNodeSession, pid, nodeId, ReplicationStatus.FAILED, failure); |
|
433 | 431 |
logMetacat.info(msg); |
434 |
return true; |
|
432 |
throw new NotAuthorized("2152", msg); |
|
433 |
|
|
435 | 434 |
} |
436 | 435 |
|
437 | 436 |
|
Also available in: Unified diff
Don't set the replication status to failed for an object when it is called by a public user. Just throw the NotAuthorized exception. This prevents this node from being de-prioritized because of public calls to the method.