X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/84b538b627cba20558e0a52f3efe73eec90a46fe..b73985d8a0c9173aec57f6a81fe540b2813a5bff:/services/api/app/models/collection.rb?ds=sidebyside diff --git a/services/api/app/models/collection.rb b/services/api/app/models/collection.rb index 4a612924b6..8579509de7 100644 --- a/services/api/app/models/collection.rb +++ b/services/api/app/models/collection.rb @@ -46,6 +46,10 @@ class Collection < ArvadosModel ) end + def self.ignored_select_attributes + super + ["updated_at", "file_names"] + end + FILE_TOKEN = /^[[:digit:]]+:[[:digit:]]+:/ def check_signatures return false if self.manifest_text.nil? @@ -310,7 +314,7 @@ class Collection < ArvadosModel # looks like a saved Docker image. manifest = Keep::Manifest.new(coll_match.manifest_text) if manifest.exact_file_count?(1) and - (manifest.files[0][1] =~ /^[0-9A-Fa-f]{64}\.tar$/) + (manifest.files[0][1] =~ /^(sha256:)?[0-9A-Fa-f]{64}\.tar$/) return [coll_match] end end