Mercurial > hg > orthanc
diff OrthancServer/Sources/ResourceFinder.cpp @ 5617:8905ffa45fc2 find-refactoring
started listing of children resources
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 09 May 2024 14:59:17 +0200 |
parents | 1e92fb051fd7 |
children | 1864b16bc7b1 |
line wrap: on
line diff
--- a/OrthancServer/Sources/ResourceFinder.cpp Thu May 09 13:02:51 2024 +0200 +++ b/OrthancServer/Sources/ResourceFinder.cpp Thu May 09 14:59:17 2024 +0200 @@ -361,6 +361,7 @@ request_(level), expand_(expand), format_(DicomToJsonFormat_Human), + allowStorageAccess_(true), hasRequestedTags_(false), includeAllMetadata_(false) { @@ -503,6 +504,12 @@ if (!missingTags.empty()) { + if (!allowStorageAccess_) + { + throw OrthancException(ErrorCode_BadSequenceOfCalls, + "Cannot add missing requested tags, as access to file storage is disallowed"); + } + OrthancConfiguration::ReaderLock lock; if (lock.GetConfiguration().IsWarningEnabled(Warnings_001_TagsBeingReadFromStorage)) {