Project

General

Profile

Revision 6726

set the byte size of the ORE map before adding it

View differences:

src/edu/ucsb/nceas/metacat/dataone/SystemMetadataFactory.java
460 460
			            // TODO: other fields to update?
461 461
						resourceMapSysMeta.setObsoletes(null);
462 462
						resourceMapSysMeta.setObsoletedBy(null);
463
						resourceMapSysMeta.setSize(BigInteger.valueOf(sizeOfStream(IOUtils.toInputStream(resourceMapXML, MetaCatServlet.DEFAULT_ENCODING))));
463 464
			            
464 465
						// save it locally
465 466
						Session session = new Session();

Also available in: Unified diff