From ad1f68c37d46e56916e18996e14405ed9dab7d35 Mon Sep 17 00:00:00 2001 From: radhika Date: Wed, 17 Jun 2015 19:06:00 -0400 Subject: [PATCH] 6277: rename the before_validation filter check_manifest_validity as log_invalid_manifest_format until we are ready to actually validate manifest formats. --- services/api/app/models/collection.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/api/app/models/collection.rb b/services/api/app/models/collection.rb index f7822ec070..cac25d1c53 100644 --- a/services/api/app/models/collection.rb +++ b/services/api/app/models/collection.rb @@ -9,7 +9,7 @@ class Collection < ArvadosModel serialize :properties, Hash before_validation :check_encoding - before_validation :check_manifest_validity + before_validation :log_invalid_manifest_format before_validation :check_signatures before_validation :strip_signatures_and_update_replication_confirmed validate :ensure_pdh_matches_manifest_text @@ -193,7 +193,7 @@ class Collection < ArvadosModel end end - def check_manifest_validity + def log_invalid_manifest_format begin Keep::Manifest.validate! manifest_text if manifest_text rescue => e -- 2.30.2