changeset 6049:e83414b2b98d attach-custom-data

integration mainline->attach-custom-data
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 18 Mar 2025 13:39:20 +0100 (2 months ago)
parents e282d55e043c (current diff) d508d2348753 (diff)
children 78f4c1da54d3
files NEWS OrthancServer/Sources/OrthancInitialization.cpp
diffstat 4 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Tue Mar 11 10:46:53 2025 +0100
+++ b/NEWS	Tue Mar 18 13:39:20 2025 +0100
@@ -38,10 +38,12 @@
   https://discourse.orthanc-server.org/t/lastupdate-coherency/5524
 * Recovered compatibility with Windows XP that was broken because of DCMTK 3.6.9
 * Enabled support of the 1.2.840.10008.1.2.1.99 transfer syntax
-  (Deflated Explicit VR Little Endian) in static builds
+  (Deflated Explicit VR Little Endian) in static builds + fix length of saved files.
+  https://discourse.orthanc-server.org/t/transcoding-to-deflated-transfer-syntax-fails/5489
 * Housekeeper plugin:
   - When encountering an error, the housekeeper now skips the resource and continues processing.
-
+* Orthanc Explorer:
+  - Allow '-' and '_' in labels.
 
 
 Version 1.12.6 (2025-01-22)
--- a/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp	Tue Mar 11 10:46:53 2025 +0100
+++ b/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp	Tue Mar 18 13:39:20 2025 +0100
@@ -1603,7 +1603,7 @@
       // buffer if its size was overestimated by (*)
       ob.flush();
 
-      size_t effectiveSize = static_cast<size_t>(ob.tell());
+      size_t effectiveSize = static_cast<size_t>(ob.filled());
       if (effectiveSize < buffer.size())
       {
         buffer.resize(effectiveSize);
--- a/OrthancServer/OrthancExplorer/explorer.js	Tue Mar 11 10:46:53 2025 +0100
+++ b/OrthancServer/OrthancExplorer/explorer.js	Tue Mar 18 13:39:20 2025 +0100
@@ -71,6 +71,11 @@
   return s.match(/^[0-9a-zA-Z]+$/);
 }
 
+function IsValidLabelName(s)
+{
+  return s.match(/^[0-9a-zA-Z\-_]+$/);
+}
+
 
 function DeepCopy(obj)
 {
@@ -780,7 +785,7 @@
             click: function () {
               var label = $.mobile.sdLastInput;
               if (label.length > 0) {
-                if (IsAlphanumeric(label)) {
+                if (IsValidLabelName(label)) {
                   $.ajax({
                     url: '../' + resourceLevel + '/' + resourceId + '/labels/' + label,
                     dataType: 'json',
--- a/OrthancServer/Sources/OrthancInitialization.cpp	Tue Mar 11 10:46:53 2025 +0100
+++ b/OrthancServer/Sources/OrthancInitialization.cpp	Tue Mar 18 13:39:20 2025 +0100
@@ -59,6 +59,7 @@
 #    undef __FILE__
 #    define __FILE__ __ORTHANC_FILE__
 #  endif
+#  include <google/protobuf/stubs/common.h>
 #  include <google/protobuf/any.h>
 #endif