14860: Fixes bug by assigning the signed manifest text to the snapshot being saved.
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Tue, 19 Feb 2019 19:50:36 +0000 (16:50 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Tue, 19 Feb 2019 19:50:36 +0000 (16:50 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

services/api/app/models/collection.rb

index 33cc686d4f5a14f3a432bc3df077ab258797a4a8..6147b79f9f5aa16c6b9e24ef5164bab43139373a 100644 (file)
@@ -262,6 +262,7 @@ class Collection < ArvadosModel
       sync_past_versions if syncable_updates.any?
       if snapshot
         snapshot.attributes = self.syncable_updates
+        snapshot.manifest_text = snapshot.signed_manifest_text
         snapshot.save
       end
     end