# HG changeset patch # User Alain Mazy # Date 1701072305 -3600 # Node ID 2d23c92c359a3f5d7361188fca08d4d90c785add # Parent dacdce5e5c22b2b76b9392ef437431d3fc5655ef Zip of studies whose PatientName and PatientID did not contain any ASCII character are now valid diff -r dacdce5e5c22 -r 2d23c92c359a NEWS --- a/NEWS Fri Nov 24 18:14:52 2023 +0100 +++ b/NEWS Mon Nov 27 09:05:05 2023 +0100 @@ -33,6 +33,7 @@ * Solved a deadlock related to the Job Engine events and plugins. Job events are now pushed into a queue to be handled asynchronously by plugins. +* Zip of studies whose PatientName and PatientID did not contain any ASCII character are now valid. REST API diff -r dacdce5e5c22 -r 2d23c92c359a OrthancServer/Sources/ServerJobs/ArchiveJob.cpp --- a/OrthancServer/Sources/ServerJobs/ArchiveJob.cpp Fri Nov 24 18:14:52 2023 +0100 +++ b/OrthancServer/Sources/ServerJobs/ArchiveJob.cpp Mon Nov 27 09:05:05 2023 +0100 @@ -34,6 +34,7 @@ #include "../ServerContext.h" #include +#include #if defined(_MSC_VER) #define snprintf _snprintf @@ -962,7 +963,8 @@ path = Toolbox::StripSpaces(Toolbox::ConvertToAscii(path)); - if (path.empty()) + if (path.empty() + || (static_cast(boost::count(path, '^')) == path.size())) // this happens with non ASCII patient names: only the '^' remains and this is not a valid zip folder name { path = std::string("Unknown ") + EnumerationToString(GetResourceLevel(level)); }