# HG changeset patch # User Alain Mazy # Date 1674816568 -3600 # Node ID 19ccae2e0371166d8ffc1fc435653fa301aaac45 # Parent 4a0dfa23d28c06990ad1efa5ff9333bb75d3ac76 Fix issue #212 (Anonymization process transcodes data and loses resource link) diff -r 4a0dfa23d28c -r 19ccae2e0371 NEWS --- a/NEWS Fri Jan 27 11:25:56 2023 +0100 +++ b/NEWS Fri Jan 27 11:49:28 2023 +0100 @@ -45,7 +45,7 @@ ----------- * Fix decoding of RLE images for which the "Planar Configuration" tag (0028,0006) equals 1 - +* Fix issue #212 (Anonymization process transcodes data and loses resource link). version 1.11.2 (2022-08-30) =========================== diff -r 4a0dfa23d28c -r 19ccae2e0371 OrthancServer/Sources/ServerContext.cpp --- a/OrthancServer/Sources/ServerContext.cpp Fri Jan 27 11:25:56 2023 +0100 +++ b/OrthancServer/Sources/ServerContext.cpp Fri Jan 27 11:49:28 2023 +0100 @@ -819,11 +819,7 @@ std::unique_ptr toStore(DicomInstanceToStore::CreateFromParsedDicomFile(*tmp)); toStore->SetOrigin(dicom->GetOrigin()); - - if (isReconstruct) // the initial instance to store already has its own metadata - { - toStore->CopyMetadata(dicom->GetMetadata()); - } + toStore->CopyMetadata(dicom->GetMetadata()); StoreResult result = StoreAfterTranscoding(resultPublicId, *toStore, mode, isReconstruct); assert(resultPublicId == tmp->GetHasher().HashInstance());