From 01cf4e248b56967e23b494f1f57d83889cf8d66e Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 12 Mar 2013 10:04:45 -0700 Subject: [PATCH] ignore Keep hints when verifying collection uuid == md5sum --- app/models/collection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/collection.rb b/app/models/collection.rb index 03c0a94495..76dd60fb0a 100644 --- a/app/models/collection.rb +++ b/app/models/collection.rb @@ -28,7 +28,7 @@ class Collection < OrvosModel if self.manifest_text.nil? and self.uuid.nil? super elsif self.manifest_text and self.uuid - if self.uuid == Digest::MD5.hexdigest(self.manifest_text) + if self.uuid.gsub(/\+[^,]+/,'') == Digest::MD5.hexdigest(self.manifest_text) true else errors.add :uuid, 'uuid does not match checksum of manifest_text' -- 2.30.2