comparison OrthancServer/OrthancFindRequestHandler.cpp @ 3342:63f59ad9381a

Fix issue #136 (C-Find request fails when found DICOM file does not have certain tags)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Apr 2019 13:36:13 +0200
parents 8ea7c4546c3a
children 94f4a18a79cc
comparison
equal deleted inserted replaced
3341:8f44dadcdbc1 3342:63f59ad9381a
369 LOG(WARNING) << "C-FIND query requesting a sequence, but reading JSON from disk is disabled"; 369 LOG(WARNING) << "C-FIND query requesting a sequence, but reading JSON from disk is disabled";
370 answers.Add(result); 370 answers.Add(result);
371 } 371 }
372 else 372 else
373 { 373 {
374 ParsedDicomFile dicom(result); 374 ParsedDicomFile dicom(result, GetDefaultDicomEncoding(), true /* be permissive, cf. issue #136 */);
375 375
376 for (std::list<DicomTag>::const_iterator tag = sequencesToReturn.begin(); 376 for (std::list<DicomTag>::const_iterator tag = sequencesToReturn.begin();
377 tag != sequencesToReturn.end(); ++tag) 377 tag != sequencesToReturn.end(); ++tag)
378 { 378 {
379 assert(dicomAsJson != NULL); 379 assert(dicomAsJson != NULL);