Project

General

Profile

« Previous | Next » 

Revision 10216

Added by Jing Tao over 7 years ago

In the synchronizationFailed method, use syncExcpetion.getIdentifier method to try before the obsoleted method getPid.

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
1312 1312

  
1313 1313
        String localId;
1314 1314
        Identifier pid;
1315
        if ( syncFailed.getPid() != null ) {
1315
        //synFailed.getPid was obsolseted since d1_common_java 2.4
1316
        String pidStr = syncFailed.getIdentifier();
1317
        if (pidStr == null || pidString.trim().equals("")) {
1318
            pidStr = syncFailed.getPid();
1319
        }
1320
        logMetacat.debug("MNodeService.synchronizationFailed - the failed identifier is "+pidStr);
1321
        if ( pidString != null && !pidString.trim().equals("") ) {
1322
            
1316 1323
            pid = new Identifier();
1317 1324
            pid.setValue(syncFailed.getPid());
1318 1325
            boolean allowed;

Also available in: Unified diff