# HG changeset patch # User Alain Mazy # Date 1738224121 -3600 # Node ID 9c20ede25ef8567852724027aeebd4d245949252 # Parent 773a082325f409d5deb6c0e85cbd4ba5d701080f In the ExtendedFind mode, optimized tools/find when StorageAccessMode is set to Never diff -r 773a082325f4 -r 9c20ede25ef8 NEWS --- a/NEWS Wed Jan 22 15:20:38 2025 +0100 +++ b/NEWS Thu Jan 30 09:02:01 2025 +0100 @@ -1,6 +1,12 @@ Pending changes in the mainline =============================== +Maintenance +----------- + +* In the "ExtendedFind" mode, optimized "tools/find" when "StorageAccessMode" is + set to "Never". + Version 1.12.6 (2025-01-22) =========================== diff -r 773a082325f4 -r 9c20ede25ef8 OrthancServer/Plugins/Engine/OrthancPlugins.cpp --- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Wed Jan 22 15:20:38 2025 +0100 +++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Thu Jan 30 09:02:01 2025 +0100 @@ -4684,7 +4684,7 @@ if (entry == NULL) { - throw OrthancException(ErrorCode_UnknownDicomTag); + throw OrthancException(ErrorCode_UnknownDicomTag, p.name); } else { diff -r 773a082325f4 -r 9c20ede25ef8 OrthancServer/Sources/ResourceFinder.cpp --- a/OrthancServer/Sources/ResourceFinder.cpp Wed Jan 22 15:20:38 2025 +0100 +++ b/OrthancServer/Sources/ResourceFinder.cpp Thu Jan 30 09:02:01 2025 +0100 @@ -849,7 +849,8 @@ if (request_.GetLevel() != ResourceType_Instance) { - request_.SetRetrieveOneInstanceMetadataAndAttachments(true); + // only retrieve the instance attachments and metadata if we have allowed access to the storage + request_.SetRetrieveOneInstanceMetadataAndAttachments(IsStorageAccessAllowed()); } } }