Revision 9329
Added by Jing Tao about 9 years ago
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java | ||
---|---|---|
1637 | 1637 |
logMetacat.debug("the dateUploaded in the new system metadata is (by time) "+sysmeta.getDateUploaded().getTime()); |
1638 | 1638 |
if(currentSysmeta == null ) { |
1639 | 1639 |
//do we need throw an exception? |
1640 |
logMetacat.warn("Currently there is no system metadata in this node associated with the pid "+pid.getValue()); |
|
1640 |
logMetacat.warn("D1NodeService.updateSystemMetadata: Currently there is no system metadata in this node associated with the pid "+pid.getValue());
|
|
1641 | 1641 |
} else { |
1642 | 1642 |
|
1643 |
BigInteger newVersion = sysmeta.getSerialVersion(); |
|
1643 |
/*BigInteger newVersion = sysmeta.getSerialVersion();
|
|
1644 | 1644 |
if(newVersion == null) { |
1645 | 1645 |
throw new InvalidRequest("4869", "The serial version can't be null in the new system metadata"); |
1646 | 1646 |
} |
... | ... | |
1648 | 1648 |
if(currentVersion != null && newVersion.compareTo(currentVersion) <= 0) { |
1649 | 1649 |
throw new InvalidRequest("4869", "The serial version in the new system metadata is "+newVersion.toString()+ |
1650 | 1650 |
" which is less than or equals the previous version "+currentVersion.toString()+". This is illegal in the updateSystemMetadata method."); |
1651 |
} |
|
1651 |
}*/
|
|
1652 | 1652 |
Identifier currentSid = currentSysmeta.getSeriesId(); |
1653 | 1653 |
if(currentSid != null) { |
1654 | 1654 |
logMetacat.debug("In the branch that the sid is not null in the current system metadata and the current sid is "+currentSid.getValue()); |
Also available in: Unified diff
Commented out the code to check serial version on the updateSystemMetadata method.