# HG changeset patch # User Sebastien Jodogne # Date 1602238043 -7200 # Node ID 3510da0e260c7ed5f20c790d7f8a7b25343d0c15 # Parent 799c0c527ced13375962c4326712258d535fed8a fix diff -r 799c0c527ced -r 3510da0e260c OrthancServer/Sources/OrthancWebDav.cpp --- a/OrthancServer/Sources/OrthancWebDav.cpp Fri Oct 09 12:02:40 2020 +0200 +++ b/OrthancServer/Sources/OrthancWebDav.cpp Fri Oct 09 12:07:23 2020 +0200 @@ -45,7 +45,7 @@ static const char* const BY_PATIENTS = "by-patients"; static const char* const BY_STUDIES = "by-studies"; -static const char* const BY_DATE = "by-dates"; +static const char* const BY_DATES = "by-dates"; static const char* const BY_UIDS = "by-uids"; static const char* const UPLOADS = "uploads"; static const char* const MAIN_DICOM_TAGS = "MainDicomTags"; @@ -1187,7 +1187,7 @@ IWebDavBucket::Collection tmp; return studies_->ListCollection(tmp, UriComponents(path.begin() + 1, path.end())); } - else if (path[0] == BY_DATE) + else if (path[0] == BY_DATES) { IWebDavBucket::Collection tmp; return dates_->ListCollection(tmp, UriComponents(path.begin() + 1, path.end())); @@ -1208,7 +1208,7 @@ { if (path.empty()) { - collection.AddResource(new Folder(BY_DATE)); + collection.AddResource(new Folder(BY_DATES)); collection.AddResource(new Folder(BY_PATIENTS)); collection.AddResource(new Folder(BY_STUDIES)); collection.AddResource(new Folder(BY_UIDS)); @@ -1262,7 +1262,7 @@ { return studies_->ListCollection(collection, UriComponents(path.begin() + 1, path.end())); } - else if (path[0] == BY_DATE) + else if (path[0] == BY_DATES) { return dates_->ListCollection(collection, UriComponents(path.begin() + 1, path.end())); } @@ -1349,6 +1349,10 @@ { return studies_->GetFileContent(mime, content, modificationTime, UriComponents(path.begin() + 1, path.end())); } + else if (path[0] == BY_DATES) + { + return dates_->GetFileContent(mime, content, modificationTime, UriComponents(path.begin() + 1, path.end())); + } else if (path[0] == UPLOADS) { return uploads_.GetFileContent(mime, content, modificationTime, UriComponents(path.begin() + 1, path.end()));