# HG changeset patch # User Sebastien Jodogne # Date 1468418150 -7200 # Node ID 02c543c42e61ed85ab0feae1cd8294e75b29a0c0 # Parent 79fa4262e8d4b0cead450a488fa261469b45bd9a "Permissive" flag for URI "/modalities/{...}/store" to ignore C-Store transfer errors diff -r 79fa4262e8d4 -r 02c543c42e61 NEWS --- a/NEWS Thu Jul 07 12:00:51 2016 +0200 +++ b/NEWS Wed Jul 13 15:55:50 2016 +0200 @@ -1,6 +1,8 @@ Pending changes in the mainline =============================== +* "Permissive" flag for URI "/modalities/{...}/store" to ignore C-Store transfer errors + Version 1.1.0 (2016/06/27) ========================== diff -r 79fa4262e8d4 -r 02c543c42e61 OrthancServer/OrthancRestApi/OrthancRestModalities.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp Thu Jul 07 12:00:51 2016 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp Wed Jul 13 15:55:50 2016 +0200 @@ -720,13 +720,28 @@ } } + static const char* PERMISSIVE = "Permissive"; + bool permissive = false; + if (request.type() == Json::objectValue && + request.isMember(PERMISSIVE)) + { + if (request[PERMISSIVE].type() == Json::booleanValue) + { + permissive = request[PERMISSIVE].asBool(); + } + else + { + throw OrthancException(ErrorCode_BadFileFormat); + } + } + RemoteModalityParameters p = Configuration::GetModalityUsingSymbolicName(remote); ServerJob job; for (std::list::const_iterator it = instances.begin(); it != instances.end(); ++it) { - job.AddCommand(new StoreScuCommand(context, localAet, p, false, + job.AddCommand(new StoreScuCommand(context, localAet, p, permissive, moveOriginatorID)).AddInput(*it); }