Project

General

Profile

« Previous | Next » 

Revision 5957

Added by berkley over 13 years ago

fixed bug where the wrong checksum alg got written to the db

View differences:

src/edu/ucsb/nceas/metacat/dataone/CrudService.java
1627 1627
              sm.getDateUploaded().getTime(), 
1628 1628
              sm.getRightsHolder().getValue(),
1629 1629
              sm.getChecksum().getValue(), 
1630
              sm.getChecksum().getAlgorithm().toString(), 
1630
              /*sm.getChecksum().getAlgorithm().toString()*/sm.getChecksum().getAlgorithm().name(), 
1631 1631
              sm.getOriginMemberNode().getValue(), 
1632 1632
              sm.getAuthoritativeMemberNode().getValue(), 
1633 1633
              sm.getDateSysMetadataModified().getTime(), 
src/edu/ucsb/nceas/metacat/IdentifierManager.java
689 689
    {
690 690
        DBConnection dbConn = null;
691 691
        int serialNumber = -1;
692
        
692 693
        try {
693 694
            // Get a database connection from the pool
694 695
            dbConn = 
......
971 972
                Checksum cs = new Checksum();
972 973
                cs.setValue(checksum);
973 974
                cs.setAlgorithm(ChecksumAlgorithm.valueOf(checksumAlgorithm));
975
                //cs.setAlgorithm(ChecksumAlgorithm.convert(checksumAlgorithm));
974 976
                oi.setChecksum(cs);
975 977
                
976 978
                ObjectFormat oFormat = ObjectFormat.convert(format);

Also available in: Unified diff