# HG changeset patch # User Alain Mazy # Date 1786445270 -7200 # Node ID a7b50450570c870c5f8b34845e746693df45652a # Parent 83b3ccf70aadbf0ea5f2e30854f4528e4c8ee8b1 Fix: If the metadata cache attachment is missing from disk for a series, it is now generated again. diff -r 83b3ccf70aad -r a7b50450570c NEWS --- a/NEWS Tue Aug 11 12:38:45 2026 +0200 +++ b/NEWS Tue Aug 11 12:47:50 2026 +0200 @@ -9,6 +9,7 @@ large datasets. (contribution by Yusuf Sayita, Philips) * Clarified error message when trying to access a single frame from a video in WADO-RS. * Fixed rendering of multiframe RGB48 images (TODO: requires the latest OrthancFramework) +* Fix: If the metadata cache attachment is missing from disk for a series, it is now generated again. Version 1.23 (2026-04-15) diff -r 83b3ccf70aad -r a7b50450570c Plugin/WadoRs.cpp --- a/Plugin/WadoRs.cpp Tue Aug 11 12:38:45 2026 +0200 +++ b/Plugin/WadoRs.cpp Tue Aug 11 12:47:50 2026 +0200 @@ -2037,7 +2037,17 @@ std::string attachmentUrl = "/series/" + seriesOrthancId + "/attachments/" + SERIES_METADATA_ATTACHMENT_ID; - if (OrthancPlugins::RestApiGetString(cacheContent, attachmentUrl + "/data", false)) + bool attachmentFound = false; + try + { + attachmentFound = OrthancPlugins::RestApiGetString(cacheContent, attachmentUrl + "/data", false); + } + catch (...) + { + // ignore the error and regenerate + } + + if (attachmentFound) { if (boost::starts_with(cacheContent, "2;")) // version 2, cacheContent is "2;sorted-instances-list-md5;compressedSeriesMetadata" {