Project

General

Profile

« Previous | Next » 

Revision 6516

skip Objects that have null format ids are invalid checksums

View differences:

IdentifierManager.java
1558 1558
                	//cs.setAlgorithm(ChecksumAlgorithm.valueOf(checksumAlgorithm));
1559 1559
                    cs.setAlgorithm(checksumAlgorithm);
1560 1560
                } catch (Exception e) {
1561
					logMetacat.warn("could not parse checksum algorithm", e);
1561
					logMetacat.error("could not parse checksum algorithm", e);
1562
					continue;
1562 1563
				}
1563 1564
                oi.setChecksum(cs);
1564 1565
                
1565 1566
                try {
1566 1567
	                oi.setFmtid(ObjectFormatCache.getInstance().getFormat(fmtidStr).getFmtid());
1567 1568
                } catch (NotFound e) {
1568
                	logMetacat.warn("could not find object format: " + fmtidStr, e);
1569

  
1569
                	logMetacat.error("could not find object format: " + fmtidStr, e);
1570
                	// skip this one
1571
                	continue;
1570 1572
				}
1571 1573
                                
1572 1574
                oi.setSize(size);

Also available in: Unified diff