|
|
@ -90,7 +90,7 @@ bool Bag::validate( list<string> & log ) { |
|
|
|
if (this->bagmetadata_p->has_oxum()) { |
|
|
|
// check oxum of payload
|
|
|
|
Checksum c; |
|
|
|
list<string> files = this->payload_p->get_all_relative_paths(); |
|
|
|
list<string> files = this->payload_p->get_all_absolute_paths(); |
|
|
|
oxum_t expected_oxum = this->bagmetadata_p->get_oxum(); |
|
|
|
oxum_t calculated_oxum = c.oxum_of_filelist( files ); |
|
|
|
if (expected_oxum.octetcount != calculated_oxum.octetcount) { |
|
|
|