Mercurial > hg > orthanc-dicomweb
changeset 778:a7b50450570c
Fix: If the metadata cache attachment is missing from disk for a series, it is now generated again.
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Tue, 11 Aug 2026 12:47:50 +0200 |
| parents | 83b3ccf70aad |
| children | c3e479690bf5 |
| files | NEWS Plugin/WadoRs.cpp |
| diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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" {
