changeset 814:aeee9cc66dd9

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 May 2014 15:29:27 +0200
parents b640aeee11ba
children 5dcfdd3bfca9
files NEWS OrthancServer/OrthancInitialization.cpp
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Thu May 08 15:15:55 2014 +0200
+++ b/NEWS	Thu May 08 15:29:27 2014 +0200
@@ -6,6 +6,7 @@
 * Embedding of images within DICOM instances
 * Adding/removal/modification of remote modalities/peers through REST
 * Reuse of the previous SCU connection to avoid unecessary handshakes
+* Fix problems with anonymization and modification
 * Fix missing licensing terms about reuse of some code from DCMTK
 * Various code refactorings
 
--- a/OrthancServer/OrthancInitialization.cpp	Thu May 08 15:15:55 2014 +0200
+++ b/OrthancServer/OrthancInitialization.cpp	Thu May 08 15:29:27 2014 +0200
@@ -532,7 +532,7 @@
 
     if (!configuration_->isMember("DicomModalities"))
     {
-      throw OrthancException(ErrorCode_BadFileFormat);
+      (*configuration_) ["DicomModalities"] = Json::objectValue;
     }
 
     Json::Value& modalities = (*configuration_) ["DicomModalities"];
@@ -575,7 +575,7 @@
 
     if (!configuration_->isMember("OrthancPeers"))
     {
-      throw OrthancException(ErrorCode_BadFileFormat);
+      (*configuration_) ["OrthancPeers"] = Json::objectValue;
     }
 
     Json::Value& peers = (*configuration_) ["OrthancPeers"];