Mercurial > hg > orthanc-dicomweb
changeset 671:4113e0465b4b
ignore empty keys in QIDO-RS requests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 03 Sep 2024 16:57:19 +0200 |
parents | 2047b0921877 |
children | c302094b719e |
files | Plugin/QidoRs.cpp |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugin/QidoRs.cpp Wed Aug 28 16:12:45 2024 +0200 +++ b/Plugin/QidoRs.cpp Tue Sep 03 16:57:19 2024 +0200 @@ -132,6 +132,16 @@ for (uint32_t i = 0; i < request->getCount; i++) { std::string key(request->getKeys[i]); + if (key.empty()) + { + /** + * This case can happen in Weasis, which uses the following + * URL if doing a basic QIDO-RS request (note the "?&"): + * http://localhost:8042/dicom-web/studies?&includefield=00080020,00080030,00080050,00080061,00080090,00081030,00100010,00100020,00100021,00100030,00100040,0020000D,00200010&limit=10&offset=0 + **/ + continue; + } + std::string value(request->getValues[i]); args += " [" + key + "=" + value + "]";