changeset 3389:eb57b7cd5f21

fix in DicomWebJsonVisitor
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Jun 2019 09:46:58 +0200
parents 18cd4951fccc
children d1445f2df123
files Core/DicomParsing/DicomWebJsonVisitor.cpp
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/DicomParsing/DicomWebJsonVisitor.cpp	Thu Jun 06 09:04:26 2019 +0200
+++ b/Core/DicomParsing/DicomWebJsonVisitor.cpp	Thu Jun 06 09:46:58 2019 +0200
@@ -551,6 +551,15 @@
           node[KEY_VALUE] = Json::arrayValue;
           for (size_t i = 0; i < tokens.size(); i++)
           {
+            /**
+             * The following call to "StripSpaces()" fixes the issue
+             * reported by Rana Asim Wajid on 2019-06-05 ("Error
+             * Exception while invoking plugin service 32: Bad file
+             * format"):
+             * https://groups.google.com/d/msg/orthanc-users/T32FovWPcCE/-hKFbfRJBgAJ
+             **/
+            tokens[i] = Orthanc::Toolbox::StripSpaces(tokens[i]);
+
             try
             {
               switch (vr)