Project

General

Profile

« Previous | Next » 

Revision 7486

make sure serial version is included or set on MN.update().
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5793

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
271 271
        Date now = Calendar.getInstance().getTime();
272 272
        sysmeta.setDateSysMetadataModified(now);
273 273
        sysmeta.setDateUploaded(now);
274
        
275
        // make sure serial version is set to something
276
        BigInteger serialVersion = sysmeta.getSerialVersion();
277
        if (serialVersion == null) {
278
        	sysmeta.setSerialVersion(BigInteger.ZERO);
279
        }
274 280

  
275 281
        // does the subject have WRITE ( == update) priveleges on the pid?
276 282
        allowed = isAuthorized(session, pid, Permission.WRITE);

Also available in: Unified diff