# HG changeset patch # User Alain Mazy # Date 1776763640 -7200 # Node ID 8d3fda9b647029e6d5a711b091e85c4582ba05d5 # Parent fa2ad46c9af38b00223836ebc4102f2f50b98deb fix resubmit for StoreJob diff -r fa2ad46c9af3 -r 8d3fda9b6470 NEWS --- a/NEWS Mon Apr 20 19:56:19 2026 +0200 +++ b/NEWS Tue Apr 21 11:27:20 2026 +0200 @@ -25,6 +25,8 @@ Maintenance ----------- +* Fix /jobs/.../resubmit for OrthancPeerStore and DicomModalityStore jobs + (bug introduced in 1.12.10) * Fix Orthanc::ImageAccessor that was broken in Orthanc Framework 1.12.11 diff -r fa2ad46c9af3 -r 8d3fda9b6470 OrthancServer/Sources/ServerJobs/DicomModalityStoreJob.cpp --- a/OrthancServer/Sources/ServerJobs/DicomModalityStoreJob.cpp Mon Apr 20 19:56:19 2026 +0200 +++ b/OrthancServer/Sources/ServerJobs/DicomModalityStoreJob.cpp Tue Apr 21 11:27:20 2026 +0200 @@ -224,7 +224,7 @@ void DicomModalityStoreJob::Reset() { - SetOfInstancesJob::Reset(); + StoreJob::Reset(); /** * "After the N-EVENT-REPORT has been sent, the Transaction UID is diff -r fa2ad46c9af3 -r 8d3fda9b6470 OrthancServer/Sources/ServerJobs/StoreJob.cpp --- a/OrthancServer/Sources/ServerJobs/StoreJob.cpp Mon Apr 20 19:56:19 2026 +0200 +++ b/OrthancServer/Sources/ServerJobs/StoreJob.cpp Tue Apr 21 11:27:20 2026 +0200 @@ -81,6 +81,14 @@ } } + void StoreJob::Reset() // called in case of "resubmit" + { + SetOfInstancesJob::Reset(); + + // restart the loader threads here (this can happen quite long before the job starts actually being executed but this is the only place where we can do this) + Start(); + } + void StoreJob::Start() { diff -r fa2ad46c9af3 -r 8d3fda9b6470 OrthancServer/Sources/ServerJobs/StoreJob.h --- a/OrthancServer/Sources/ServerJobs/StoreJob.h Mon Apr 20 19:56:19 2026 +0200 +++ b/OrthancServer/Sources/ServerJobs/StoreJob.h Tue Apr 21 11:27:20 2026 +0200 @@ -50,6 +50,8 @@ StoreJob(ServerContext& context, const Json::Value& serialized); + virtual void Reset() ORTHANC_OVERRIDE; + virtual void Start() ORTHANC_OVERRIDE; virtual void Stop(JobStopReason reason) ORTHANC_OVERRIDE;