Project

General

Profile

« Previous | Next » 

Revision 5460

Added by berkley over 14 years ago

fixed bug with logger where localid didn't get appended when inserting a data file

View differences:

test/edu/ucsb/nceas/metacat/dataone/CrudServiceTest.java
215 215
	        
216 216
	        Date d2 = new Date();
217 217
	        ObjectList ol = cs.listObjects(token, d1, d2, of1);
218
	        assertTrue(ol.sizeObjectInfoList() == 1);
218
	        assertTrue(ol.sizeObjectInfoList() > 0);
219 219
	        ObjectInfo oi = ol.getObjectInfo(0);
220 220
	        //this will fail if the error state exists.
221 221
	        assertFalse(oi.getChecksum().getValue().startsWith("MD5"));
src/edu/ucsb/nceas/metacat/dataone/CrudService.java
327 327

  
328 328
        } else {
329 329
            // DEFAULT CASE: DATA (needs to be checked and completed)
330
            insertDataObject(object, guid, sessionData);
330
            localId = insertDataObject(object, guid, sessionData);
331 331
            
332 332
        }
333 333

  

Also available in: Unified diff