From b44c4467a5f98204d656ae45f1de2351ce3ab23bc339f0ab4f1d99465485c174 Mon Sep 17 00:00:00 2001 From: Axel Braun Date: Sat, 21 Dec 2024 21:33:09 +0000 Subject: [PATCH] version update OBS-URL: https://build.opensuse.org/package/show/graphics/orthanc?expand=0&rev=85 --- .gitattributes | 23 ++ .gitignore | 1 + Configuration.json | 538 +++++++++++++++++++++++++++++++++ Orthanc-1.12.4.tar.gz | 3 + Orthanc-1.12.5.tar.gz | 3 + _service | 4 + axios-0.19.0.tar.gz | 3 + boost.patch | 233 +++++++++++++++ bootstrap-4.3.1.zip | 3 + dcmtk.diff | 11 + index.html | 12 + jquery-3.4.1.min.js | 2 + orthanc-readme.SUSE | 34 +++ orthanc-rpmlintrc | 12 + orthanc.changes | 676 ++++++++++++++++++++++++++++++++++++++++++ orthanc.service | 31 ++ orthanc.spec | 322 ++++++++++++++++++++ serve-folders.json | 15 + sha.patch | 20 ++ toolbox.patch | 27 ++ vuejs-2.6.10.tar.gz | 3 + worklists.json | 12 + 22 files changed, 1988 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Configuration.json create mode 100644 Orthanc-1.12.4.tar.gz create mode 100644 Orthanc-1.12.5.tar.gz create mode 100644 _service create mode 100644 axios-0.19.0.tar.gz create mode 100644 boost.patch create mode 100644 bootstrap-4.3.1.zip create mode 100644 dcmtk.diff create mode 100644 index.html create mode 100644 jquery-3.4.1.min.js create mode 100644 orthanc-readme.SUSE create mode 100644 orthanc-rpmlintrc create mode 100644 orthanc.changes create mode 100644 orthanc.service create mode 100644 orthanc.spec create mode 100644 serve-folders.json create mode 100644 sha.patch create mode 100644 toolbox.patch create mode 100644 vuejs-2.6.10.tar.gz create mode 100644 worklists.json diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Configuration.json b/Configuration.json new file mode 100644 index 0000000..501f3cd --- /dev/null +++ b/Configuration.json @@ -0,0 +1,538 @@ +{ + /** + * General configuration of Orthanc + **/ + + // The logical name of this instance of Orthanc. This one is + // displayed in Orthanc Explorer and at the URI "/system". + "Name" : "MyOrthanc@openSUSE", + + // Path to the directory that holds the heavyweight files (i.e. the + // raw DICOM instances). Backslashes must be either escaped by + // doubling them, or replaced by forward slashes "/". + "StorageDirectory" : "/var/lib/orthanc/OrthancStorage", + + // Path to the directory that holds the SQLite index (if unset, the + // value of StorageDirectory is used). This index could be stored on + // a RAM-drive or a SSD device for performance reasons. + "IndexDirectory" : "/var/lib/orthanc/OrthancStorage", + + // Path to the directory where Orthanc stores its large temporary + // files. The content of this folder can be safely deleted if + // Orthanc once stopped. The folder must exist. The corresponding + // filesystem must be properly sized, given that for instance a ZIP + // archive of DICOM images created by a job can weight several GBs, + // and that there might be up to "min(JobsHistorySize, + // MediaArchiveSize)" archives to be stored simultaneously. If not + // set, Orthanc will use the default temporary folder of the + // operating system (such as "/tmp/" on UNIX-like systems, or + // "C:/Temp" on Microsoft Windows). + // "TemporaryDirectory" : "/tmp/Orthanc/", + + // Enable the transparent compression of the DICOM instances + "StorageCompression" : false, + + // Maximum size of the storage in MB (a value of "0" indicates no + // limit on the storage size) + "MaximumStorageSize" : 0, + + // Maximum number of patients that can be stored at a given time + // in the storage (a value of "0" indicates no limit on the number + // of patients) + "MaximumPatientCount" : 0, + + // List of paths to the custom Lua scripts that are to be loaded + // into this instance of Orthanc + "LuaScripts" : [ + ], + + // List of paths to the plugins that are to be loaded into this + // instance of Orthanc (e.g. "./libPluginTest.so" for Linux, or + // "./PluginTest.dll" for Windows). These paths can refer to + // folders, in which case they will be scanned non-recursively to + // find shared libraries. Backslashes must be either escaped by + // doubling them, or replaced by forward slashes "/". + // global definition for openSUSE + "Plugins" : [ + "/usr/share/orthanc/plugins" + ], + + // Maximum number of processing jobs that are simultaneously running + // at any given time. A value of "0" indicates to use all the + // available CPU logical cores. To emulate Orthanc <= 1.3.2, set + // this value to "1". + "ConcurrentJobs" : 2, + + + /** + * Configuration of the HTTP server + **/ + + // Enable the HTTP server. If this parameter is set to "false", + // Orthanc acts as a pure DICOM server. The REST API and Orthanc + // Explorer will not be available. + "HttpServerEnabled" : true, + + // HTTP port for the REST services and for the GUI + "HttpPort" : 8042, + + // When the following option is "true", if an error is encountered + // while calling the REST API, a JSON message describing the error + // is put in the HTTP answer. This feature can be disabled if the + // HTTP client does not properly handles such answers. + "HttpDescribeErrors" : true, + + // Enable HTTP compression to improve network bandwidth utilization, + // at the expense of more computations on the server. Orthanc + // supports the "gzip" and "deflate" HTTP encodings. + "HttpCompressionEnabled" : true, + + + + /** + * Configuration of the DICOM server + **/ + + // Enable the DICOM server. If this parameter is set to "false", + // Orthanc acts as a pure REST server. It will not be possible to + // receive files or to do query/retrieve through the DICOM protocol. + "DicomServerEnabled" : true, + + // The DICOM Application Entity Title (cannot be longer than 16 + // characters) + "DicomAet" : "ORTHANC", + + // Check whether the called AET corresponds to the AET of Orthanc + // during an incoming DICOM SCU request + "DicomCheckCalledAet" : false, + + // The DICOM port + "DicomPort" : 4242, + + // The default encoding that is assumed for DICOM files without + // "SpecificCharacterSet" DICOM tag, and that is used when answering + // C-Find requests (including worklists). The allowed values are + // "Ascii", "Utf8", "Latin1", "Latin2", "Latin3", "Latin4", + // "Latin5", "Cyrillic", "Windows1251", "Arabic", "Greek", "Hebrew", + // "Thai", "Japanese", "Chinese", "JapaneseKanji", "Korean", and + // "SimplifiedChinese". + "DefaultEncoding" : "Latin1", + + // The transfer syntaxes that are accepted by Orthanc C-Store SCP + "DeflatedTransferSyntaxAccepted" : true, + "JpegTransferSyntaxAccepted" : true, + "Jpeg2000TransferSyntaxAccepted" : true, + "JpegLosslessTransferSyntaxAccepted" : true, + "JpipTransferSyntaxAccepted" : true, + "Mpeg2TransferSyntaxAccepted" : true, + "RleTransferSyntaxAccepted" : true, + "Mpeg4TransferSyntaxAccepted" : true, // New in Orthanc 1.6.0 + + // Whether Orthanc accepts to act as C-Store SCP for unknown storage + // SOP classes (aka. "promiscuous mode") + "UnknownSopClassAccepted" : false, + + // Set the timeout (in seconds) after which the DICOM associations + // are closed by the Orthanc SCP (server) if no further DIMSE + // command is received from the SCU (client). + "DicomScpTimeout" : 30, + + + + /** + * Security-related options for the HTTP server + **/ + + // Whether remote hosts can connect to the HTTP server + "RemoteAccessAllowed" : false, + + // Whether or not SSL is enabled + "SslEnabled" : false, + + // Path to the SSL certificate in the PEM format (meaningful only if + // SSL is enabled) + "SslCertificate" : "certificate.pem", + + // Whether or not the password protection is enabled (using HTTP + // basic access authentication). Starting with Orthanc 1.5.8, if + // "AuthenticationEnabled" is not explicitly set, authentication is + // enabled iff. remote access is allowed (i.e. the default value of + // "AuthenticationEnabled" equals that of "RemoteAccessAllowed"). + /** + "AuthenticationEnabled" : false, + **/ + + // The list of the registered users. Because Orthanc uses HTTP + // Basic Authentication, the passwords are stored as plain text. + "RegisteredUsers" : { + // "alice" : "alicePassword" + }, + + + + /** + * Network topology + **/ + + // The list of the known DICOM modalities + "DicomModalities" : { + /** + * Uncommenting the following line would enable Orthanc to + * connect to an instance of the "storescp" open-source DICOM + * store (shipped in the DCMTK distribution), as started by the + * command line "storescp 2000". The first parameter is the + * AET of the remote modality (cannot be longer than 16 + * characters), the second one is the remote network address, + * and the third one is the TCP port number corresponding + * to the DICOM protocol on the remote modality (usually 104). + **/ + // "sample" : [ "STORESCP", "127.0.0.1", 2000 ] + + /** + * A fourth parameter is available to enable patches for + * specific PACS manufacturers. The allowed values are currently: + * - "Generic" (default value), + * - "GenericNoWildcardInDates" (to replace "*" by "" in date fields + * in outgoing C-Find requests originating from Orthanc), + * - "GenericNoUniversalWildcard" (to replace "*" by "" in all fields + * in outgoing C-Find SCU requests originating from Orthanc), + * - "StoreScp" (storescp tool from DCMTK), + * - "Vitrea", + * - "GE" (Enterprise Archive, MRI consoles and Advantage Workstation + * from GE Healthcare). + * + * This parameter is case-sensitive. + **/ + // "vitrea" : [ "VITREA", "192.168.1.1", 104, "Vitrea" ] + + /** + * By default, the Orthanc SCP accepts all DICOM commands (C-ECHO, + * C-STORE, C-FIND, C-MOVE, and storage commitment) issued by the + * registered remote SCU modalities. Starting with Orthanc 1.5.0, + * it is possible to specify which DICOM commands are allowed, + * separately for each remote modality, using the syntax + * below. The "AllowEcho" (resp. "AllowStore") option only has an + * effect respectively if global option "DicomAlwaysAllowEcho" + * (resp. "DicomAlwaysAllowStore") is set to false. + **/ + //"untrusted" : { + // "AET" : "ORTHANC", + // "Port" : 104, + // "Host" : "127.0.0.1", + // "Manufacturer" : "Generic", + // "AllowEcho" : false, + // "AllowFind" : false, + // "AllowMove" : false, + // "AllowStore" : true, + // "AllowStorageCommitment" : false // new in 1.6.0 + //} + }, + + // Whether to store the DICOM modalities in the Orthanc database + // instead of in this configuration file (new in Orthanc 1.5.0) + "DicomModalitiesInDatabase" : false, + + // Whether the Orthanc SCP allows incoming C-Echo requests, even + // from SCU modalities it does not know about (i.e. that are not + // listed in the "DicomModalities" option above). Orthanc 1.3.0 + // is the only version to behave as if this argument was set to "false". + "DicomAlwaysAllowEcho" : true, + + // Whether the Orthanc SCP allows incoming C-Store requests, even + // from SCU modalities it does not know about (i.e. that are not + // listed in the "DicomModalities" option above) + "DicomAlwaysAllowStore" : true, + + // Whether Orthanc checks the IP/hostname address of the remote + // modality initiating a DICOM connection (as listed in the + // "DicomModalities" option above). If this option is set to + // "false", Orthanc only checks the AET of the remote modality. + "DicomCheckModalityHost" : false, + + // The timeout (in seconds) after which the DICOM associations are + // considered as closed by the Orthanc SCU (client) if the remote + // DICOM SCP (server) does not answer. + "DicomScuTimeout" : 10, + + // The list of the known Orthanc peers + "OrthancPeers" : { + /** + * Each line gives the base URL of an Orthanc peer, possibly + * followed by the username/password pair (if the password + * protection is enabled on the peer). + **/ + // "peer" : [ "http://127.0.0.1:8043/", "alice", "alicePassword" ] + // "peer2" : [ "http://127.0.0.1:8044/" ] + + /** + * This is another, more advanced format to define Orthanc + * peers. It notably allows to specify HTTP headers, a HTTPS + * client certificate in the PEM format (as in the "--cert" option + * of curl), or to enable PKCS#11 authentication for smart cards. + **/ + // "peer" : { + // "Url" : "http://127.0.0.1:8043/", + // "Username" : "alice", + // "Password" : "alicePassword", + // "HttpHeaders" : { "Token" : "Hello world" }, + // "CertificateFile" : "client.crt", + // "CertificateKeyFile" : "client.key", + // "CertificateKeyPassword" : "certpass", + // "Pkcs11" : false + // } + }, + + // Whether to store the Orthanc peers in the Orthanc database + // instead of in this configuration file (new in Orthanc 1.5.0) + "OrthancPeersInDatabase" : false, + + // Parameters of the HTTP proxy to be used by Orthanc. If set to the + // empty string, no HTTP proxy is used. For instance: + // "HttpProxy" : "192.168.0.1:3128" + // "HttpProxy" : "proxyUser:proxyPassword@192.168.0.1:3128" + "HttpProxy" : "", + + // If set to "true", debug messages from libcurl will be issued + // whenever Orthanc makes an outgoing HTTP request. This is notably + // useful to debug HTTPS-related problems. + "HttpVerbose" : false, + + // Set the timeout for HTTP requests issued by Orthanc (in seconds). + "HttpTimeout" : 60, + + // Enable the verification of the peers during HTTPS requests. This + // option must be set to "false" if using self-signed certificates. + // Pay attention that setting this option to "false" results in + // security risks! + // Reference: http://curl.haxx.se/docs/sslcerts.html + "HttpsVerifyPeers" : true, + + // Path to the CA (certification authority) certificates to validate + // peers in HTTPS requests. From curl documentation ("--cacert" + // option): "Tells curl to use the specified certificate file to + // verify the peers. The file may contain multiple CA + // certificates. The certificate(s) must be in PEM format." On + // Debian-based systems, this option can be set to + // "/etc/ssl/certs/ca-certificates.crt" + "HttpsCACertificates" : "", + + + + /** + * Advanced options + **/ + + // Dictionary of symbolic names for the user-defined metadata. Each + // entry must map an unique string to an unique number between 1024 + // and 65535. Reserved values: + // - The Orthanc whole-slide imaging plugin uses metadata 4200 + "UserMetadata" : { + // "Sample" : 1024 + }, + + // Dictionary of symbolic names for the user-defined types of + // attached files. Each entry must map an unique string to an unique + // number between 1024 and 65535. Optionally, a second argument can + // provided to specify a MIME content type for the attachment. + "UserContentType" : { + // "sample" : 1024 + // "sample2" : [ 1025, "application/pdf" ] + }, + + // Number of seconds without receiving any instance before a + // patient, a study or a series is considered as stable. + "StableAge" : 60, + + // By default, Orthanc compares AET (Application Entity Titles) in a + // case-insensitive way. Setting this option to "true" will enable + // case-sensitive matching. + "StrictAetComparison" : false, + + // When the following option is "true", the MD5 of the DICOM files + // will be computed and stored in the Orthanc database. This + // information can be used to detect disk corruption, at the price + // of a small performance overhead. + "StoreMD5ForAttachments" : true, + + // The maximum number of results for a single C-FIND request at the + // Patient, Study or Series level. Setting this option to "0" means + // no limit. + "LimitFindResults" : 0, + + // The maximum number of results for a single C-FIND request at the + // Instance level. Setting this option to "0" means no limit. + "LimitFindInstances" : 0, + + // The maximum number of active jobs in the Orthanc scheduler. When + // this limit is reached, the addition of new jobs is blocked until + // some job finishes. + "LimitJobs" : 10, + + // If this option is set to "true" (default behavior until Orthanc + // 1.3.2), Orthanc will log the resources that are exported to other + // DICOM modalities or Orthanc peers, inside the URI + // "/exports". Setting this option to "false" is useful to prevent + // the index to grow indefinitely in auto-routing tasks (this is the + // default behavior since Orthanc 1.4.0). + "LogExportedResources" : false, + + // Enable or disable HTTP Keep-Alive (persistent HTTP + // connections). Setting this option to "true" prevents Orthanc + // issue #32 ("HttpServer does not support multiple HTTP requests in + // the same TCP stream"), but can possibly slow down HTTP clients + // that do not support persistent connections. The default behavior + // used to be "false" in Orthanc <= 1.5.1. Setting this option to + // "false" is also recommended if Orthanc is compiled against + // Mongoose. + "KeepAlive" : true, + + // Enable or disable Nagle's algorithm. Only taken into + // consideration if Orthanc is compiled to use CivetWeb. Experiments + // show that best performance can be obtained by setting both + // "KeepAlive" and "TcpNoDelay" to "true". Beware however of + // caveats: https://eklitzke.org/the-caveats-of-tcp-nodelay + "TcpNoDelay" : true, + + // Number of threads that are used by the embedded HTTP server. + "HttpThreadsCount" : 50, + + // If this option is set to "false", Orthanc will run in index-only + // mode. The DICOM files will not be stored on the drive. Note that + // this option might prevent the upgrade to newer versions of Orthanc. + "StoreDicom" : true, + + // DICOM associations initiated by Lua scripts are kept open as long + // as new DICOM commands are issued. This option sets the number of + // seconds of inactivity to wait before automatically closing a + // DICOM association used by Lua. If set to 0, the connection is + // closed immediately. + "DicomAssociationCloseDelay" : 5, + + // Maximum number of query/retrieve DICOM requests that are + // maintained by Orthanc. The least recently used requests get + // deleted as new requests are issued. + "QueryRetrieveSize" : 100, + + // When handling a C-Find SCP request, setting this flag to "true" + // will enable case-sensitive match for PN value representation + // (such as PatientName). By default, the search is + // case-insensitive, which does not follow the DICOM standard. + "CaseSensitivePN" : false, + + // Configure PKCS#11 to use hardware security modules (HSM) and + // smart cards when carrying on HTTPS client authentication. + /** + "Pkcs11" : { + "Module" : "/usr/local/lib/libbeidpkcs11.so", + "Module" : "C:/Windows/System32/beidpkcs11.dll", + "Pin" : "1234", + "Verbose" : true + } + **/ + + // If set to "false", Orthanc will not load its default dictionary + // of private tags. This might be necessary if you cannot import a + // DICOM file encoded using the Implicit VR Endian transfer syntax, + // and containing private tags: Such an import error might stem from + // a bad dictionary. You can still list your private tags of + // interest in the "Dictionary" configuration option below. + "LoadPrivateDictionary" : true, + + // Locale to be used by Orthanc. Currently, only used if comparing + // strings in a case-insensitive way. It should be safe to keep this + // value undefined, which lets Orthanc autodetect the suitable locale. + // "Locale" : "en_US.UTF-8", + + // Register a new tag in the dictionary of DICOM tags that are known + // to Orthanc. Each line must contain the tag (formatted as 2 + // hexadecimal numbers), the value representation (2 upcase + // characters), a nickname for the tag, possibly the minimum + // multiplicity (> 0 with defaults to 1), possibly the maximum + // multiplicity (0 means arbitrary multiplicity, defaults to 1), and + // possibly the Private Creator (for private tags). + "Dictionary" : { + // "0014,1020" : [ "DA", "ValidationExpiryDate", 1, 1 ] + // "00e1,10c2" : [ "UI", "PET-CT Multi Modality Name", 1, 1, "ELSCINT1" ] + // "7053,1003" : [ "ST", "Original Image Filename", 1, 1, "Philips PET Private Group" ] + // "2001,5f" : [ "SQ", "StackSequence", 1, 1, "Philips Imaging DD 001" ] + }, + + // Whether to run DICOM C-Move operations synchronously. If set to + // "false" (asynchronous mode), each incoming C-Move request results + // in the creation of a new background job. Up to Orthanc 1.3.2, the + // implicit behavior was to use synchronous C-Move ("true"). Between + // Orthanc 1.4.0 and 1.4.2, the default behavior was set to + // asynchronous C-Move ("false"). Since Orthanc 1.5.0, the default + // behavior is back to synchronous C-Move ("true", which ensures + // backward compatibility with Orthanc <= 1.3.2). + "SynchronousCMove" : true, + + // Maximum number of completed jobs that are kept in memory. A + // processing job is considered as complete once it is tagged as + // "Success" or "Failure". Since Orthanc 1.5.0, a value of "0" + // indicates to keep no job in memory (i.e. jobs are removed from + // the history as soon as they are completed), which prevents the + // use of some features of Orthanc (typically, synchronous mode in + // REST API) and should be avoided for non-developers. + "JobsHistorySize" : 10, + + // Whether to save the jobs into the Orthanc database. If this + // option is set to "true", the pending/running/completed jobs are + // automatically reloaded from the database if Orthanc is stopped + // then restarted (except if the "--no-jobs" command-line argument + // is specified). This option should be set to "false" if multiple + // Orthanc servers are using the same database (e.g. if PostgreSQL + // or MariaDB/MySQL is used). + "SaveJobs" : true, + + // Specifies how Orthanc reacts when it receives a DICOM instance + // whose SOPInstanceUID is already stored. If set to "true", the new + // instance replaces the old one. If set to "false", the new + // instance is discarded and the old one is kept. Up to Orthanc + // 1.4.1, the implicit behavior corresponded to "false". + "OverwriteInstances" : false, + + // Maximum number of ZIP/media archives that are maintained by + // Orthanc, as a response to the asynchronous creation of archives. + // The least recently used archives get deleted as new archives are + // generated. This option was introduced in Orthanc 1.5.0, and has + // no effect on the synchronous generation of archives. + "MediaArchiveSize" : 1, + + // Performance setting to specify how Orthanc accesses the storage + // area during C-FIND. Three modes are available: (1) "Always" + // allows Orthanc to read the storage area as soon as it needs an + // information that is not present in its database (slowest mode), + // (2) "Never" prevents Orthanc from accessing the storage area, and + // makes it uses exclusively its database (fastest mode), and (3) + // "Answers" allows Orthanc to read the storage area to generate its + // answers, but not to filter the DICOM resources (balance between + // the two modes). By default, the mode is "Always", which + // corresponds to the behavior of Orthanc <= 1.5.0. + "StorageAccessOnFind" : "Always", + + // Whether Orthanc monitors its metrics (new in Orthanc 1.5.4). If + // set to "true", the metrics can be retrieved at + // "/tools/metrics-prometheus" formetted using the Prometheus + // text-based exposition format. + "MetricsEnabled" : true, + + // Whether calls to URI "/tools/execute-script" is enabled. Starting + // with Orthanc 1.5.8, this URI is disabled by default for security. + "ExecuteLuaEnabled" : false, + + // Set the timeout for HTTP requests, in seconds. This corresponds + // to option "request_timeout_ms" of Mongoose/Civetweb. It will set + // the socket options "SO_RCVTIMEO" and "SO_SNDTIMEO" to the + // specified value. + "HttpRequestTimeout" : 30, + + // Set the default private creator that is used by Orthanc when it + // looks for a private tag in its dictionary (cf. "Dictionary" + // option), or when it creates/modifies a DICOM file (new in Orthanc 1.6.0). + "DefaultPrivateCreator" : "", + + // Maximum number of storage commitment reports (i.e. received from + // remote modalities) to be kept in memory (new in Orthanc 1.6.0). + "StorageCommitmentReportsSize" : 100 +} diff --git a/Orthanc-1.12.4.tar.gz b/Orthanc-1.12.4.tar.gz new file mode 100644 index 0000000..4da813f --- /dev/null +++ b/Orthanc-1.12.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54964a43639248840abcba23b2566e5f6786594bfa5b494644608cc29db8a92b +size 2056110 diff --git a/Orthanc-1.12.5.tar.gz b/Orthanc-1.12.5.tar.gz new file mode 100644 index 0000000..280e0ca --- /dev/null +++ b/Orthanc-1.12.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9ed9da0a1c1821ad488a1b004ba492c4782839f10f132b35e1d99035adc5b23 +size 2065505 diff --git a/_service b/_service new file mode 100644 index 0000000..aa59ca1 --- /dev/null +++ b/_service @@ -0,0 +1,4 @@ + + + + diff --git a/axios-0.19.0.tar.gz b/axios-0.19.0.tar.gz new file mode 100644 index 0000000..bdc6ae1 --- /dev/null +++ b/axios-0.19.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29577c6085b090b4e4a99392fcdd582fb6bbcb49b2aaf2cc7b7fa3874529b380 +size 125193 diff --git a/boost.patch b/boost.patch new file mode 100644 index 0000000..4d3de11 --- /dev/null +++ b/boost.patch @@ -0,0 +1,233 @@ + +# HG changeset patch +# User Alain Mazy +# Date 1727274427 -7200 +# Node ID 2b429588de28773d4aa062b3eb78c64663d7cbd2 +# Parent 16df205057106f4246107cfe45710e56324007e8 +fix support for Boost 1.86 + +diff -r 16df20505710 -r 2b429588de28 OrthancFramework/Resources/CMake/BoostConfiguration.cmake +--- a/OrthancFramework/Resources/CMake/BoostConfiguration.cmake Tue Sep 24 09:26:42 2024 +0200 ++++ b/OrthancFramework/Resources/CMake/BoostConfiguration.cmake Wed Sep 25 16:27:07 2024 +0200 +@@ -91,10 +91,10 @@ + ## Parameters for static compilation of Boost + ## + +- set(BOOST_NAME boost_1_85_0) +- set(BOOST_VERSION 1.85.0) +- set(BOOST_BCP_SUFFIX bcpdigest-1.12.4) +- set(BOOST_MD5 "1017e9c8383efdea01c059a8d3cc4dda") ++ set(BOOST_NAME boost_1_86_0) ++ set(BOOST_VERSION 1.86.0) ++ set(BOOST_BCP_SUFFIX bcpdigest-1.12.5) ++ set(BOOST_MD5 "20b9c325c0dde830889ee75a9e64ded8") + set(BOOST_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/${BOOST_NAME}_${BOOST_BCP_SUFFIX}.tar.gz") + set(BOOST_SOURCES_DIR ${CMAKE_BINARY_DIR}/${BOOST_NAME}) + +@@ -115,7 +115,7 @@ + if (FirstRun) + execute_process( + COMMAND ${PATCH_EXECUTABLE} -p0 -N -i +- ${CMAKE_CURRENT_LIST_DIR}/../Patches/boost-1.85.0-emscripten.patch ++ ${CMAKE_CURRENT_LIST_DIR}/../Patches/boost-1.86.0-emscripten.patch + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} + RESULT_VARIABLE Failure + ) +diff -r 16df20505710 -r 2b429588de28 OrthancFramework/Resources/CMake/BoostConfiguration.sh +--- a/OrthancFramework/Resources/CMake/BoostConfiguration.sh Tue Sep 24 09:26:42 2024 +0200 ++++ b/OrthancFramework/Resources/CMake/BoostConfiguration.sh Wed Sep 25 16:27:07 2024 +0200 +@@ -27,9 +27,10 @@ + ## - Orthanc 1.12.2: Boost 1.83.0 + ## - Orthanc 1.12.3: Boost 1.84.0 + ## - Orthanc > 1.12.3: Boost 1.85.0 ++## - Orthanc 1.12.5: Boost 1.86.0 + +-BOOST_VERSION=1_85_0 +-ORTHANC_VERSION=1.12.4 ++BOOST_VERSION=1_86_0 ++ORTHANC_VERSION=1.12.5 + + rm -rf /tmp/boost_${BOOST_VERSION} + rm -rf /tmp/bcp/boost_${BOOST_VERSION} +diff -r 16df20505710 -r 2b429588de28 OrthancFramework/Resources/Patches/boost-1.86.0-emscripten.patch +--- /dev/null Thu Jan 01 00:00:00 1970 +0000 ++++ b/OrthancFramework/Resources/Patches/boost-1.86.0-emscripten.patch Wed Sep 25 16:27:07 2024 +0200 +@@ -0,0 +1,127 @@ ++diff -urEb boost_1_86_0.orig/libs/locale/src/boost/locale/shared/date_time.cpp boost_1_86_0/libs/locale/src/boost/locale/shared/date_time.cpp ++--- boost_1_86_0.orig/libs/locale/src/boost/locale/shared/date_time.cpp 2024-09-25 15:46:01.000000000 +0200 +++++ boost_1_86_0/libs/locale/src/boost/locale/shared/date_time.cpp 2024-09-25 15:58:51.306131987 +0200 ++@@ -12,8 +12,10 @@ ++ #include ++ #include ++ #include ++-#include ++-#include +++#if !defined(__EMSCRIPTEN__) +++# include +++# include +++#endif ++ #include ++ ++ namespace boost { namespace locale { ++@@ -400,6 +402,7 @@ ++ return impl_->get_option(abstract_calendar::is_dst) != 0; ++ } ++ +++#if !defined(__EMSCRIPTEN__) ++ namespace time_zone { ++ boost::mutex& tz_mutex() ++ { ++@@ -422,7 +425,7 @@ ++ return boost::exchange(tz_id(), new_id); ++ } ++ } // namespace time_zone ++- +++#endif ++ }} // namespace boost::locale ++ ++ // boostinspect:nominmax ++diff -urEb boost_1_86_0.orig/libs/locale/src/boost/locale/shared/generator.cpp boost_1_86_0/libs/locale/src/boost/locale/shared/generator.cpp ++--- boost_1_86_0.orig/libs/locale/src/boost/locale/shared/generator.cpp 2024-09-25 15:46:01.000000000 +0200 +++++ boost_1_86_0/libs/locale/src/boost/locale/shared/generator.cpp 2024-09-25 16:00:07.756233916 +0200 ++@@ -7,8 +7,10 @@ ++ #include ++ #include ++ #include ++-#include ++-#include +++#if !defined(__EMSCRIPTEN__) +++# include +++# include +++#endif ++ #include ++ #include ++ #include ++@@ -21,8 +23,9 @@ ++ {} ++ ++ mutable std::map cached; +++#if !defined(__EMSCRIPTEN__) ++ mutable boost::mutex cached_lock; ++- +++#endif ++ category_t cats; ++ char_facet_t chars; ++ ++@@ -101,7 +104,9 @@ ++ std::locale generator::generate(const std::locale& base, const std::string& id) const ++ { ++ if(d->caching_enabled) { +++#if !defined(__EMSCRIPTEN__) ++ boost::unique_lock guard(d->cached_lock); +++#endif ++ const auto p = d->cached.find(id); ++ if(p != d->cached.end()) ++ return p->second; ++@@ -126,7 +131,9 @@ ++ result = backend->install(result, facet, char_facet_t::nochar); ++ } ++ if(d->caching_enabled) { +++#if !defined(__EMSCRIPTEN__) ++ boost::unique_lock guard(d->cached_lock); +++#endif ++ const auto p = d->cached.find(id); ++ if(p == d->cached.end()) ++ d->cached[id] = result; ++diff -urEb boost_1_86_0.orig/libs/locale/src/boost/locale/shared/localization_backend.cpp boost_1_86_0/libs/locale/src/boost/locale/shared/localization_backend.cpp ++--- boost_1_86_0.orig/libs/locale/src/boost/locale/shared/localization_backend.cpp 2024-09-25 15:46:01.000000000 +0200 +++++ boost_1_86_0/libs/locale/src/boost/locale/shared/localization_backend.cpp 2024-09-25 16:01:09.196820495 +0200 ++@@ -5,8 +5,10 @@ ++ // https://www.boost.org/LICENSE_1_0.txt ++ ++ #include ++-#include ++-#include +++#if !defined(__EMSCRIPTEN__) +++# include +++# include +++#endif ++ #include ++ #include ++ #include ++@@ -211,11 +213,13 @@ ++ return mgr; ++ } ++ +++#if !defined(__EMSCRIPTEN__) ++ boost::mutex& localization_backend_manager_mutex() ++ { ++ static boost::mutex the_mutex; ++ return the_mutex; ++ } +++#endif ++ localization_backend_manager& localization_backend_manager_global() ++ { ++ static localization_backend_manager the_manager = make_default_backend_mgr(); ++@@ -225,12 +229,16 @@ ++ ++ localization_backend_manager localization_backend_manager::global() ++ { +++#if !defined(__EMSCRIPTEN__) ++ boost::unique_lock lock(localization_backend_manager_mutex()); +++#endif ++ return localization_backend_manager_global(); ++ } ++ localization_backend_manager localization_backend_manager::global(const localization_backend_manager& in) ++ { +++#if !defined(__EMSCRIPTEN__) ++ boost::unique_lock lock(localization_backend_manager_mutex()); +++#endif ++ return exchange(localization_backend_manager_global(), in); ++ } ++ +diff -r 16df20505710 -r 2b429588de28 OrthancFramework/Sources/Toolbox.cpp +--- a/OrthancFramework/Sources/Toolbox.cpp Tue Sep 24 09:26:42 2024 +0200 ++++ b/OrthancFramework/Sources/Toolbox.cpp Wed Sep 25 16:27:07 2024 +0200 +@@ -812,14 +812,32 @@ + sha1.process_bytes(data, size); + } + ++#if BOOST_VERSION >= 108600 ++ unsigned char digest[20]; ++ ++ // Sanity check for the memory layout: A SHA-1 digest is 160 bits wide ++ assert(sizeof(digest) == (160 / 8)); ++ assert(sizeof(boost::uuids::detail::sha1::digest_type) == 20); ++ ++ // From Boost 1.86, digest_type is "unsigned char[20]" while it was "unsigned int[5]"" in previous versions. ++ // Always perform the cast even if it is useless for Boost < 1.86 ++ sha1.get_digest(digest); ++ ++ result.resize(8 * 5 + 4); ++ sprintf(&result[0], "%02x%02x%02x%02x-%02x%02x%02x%02x-%02x%02x%02x%02x-%02x%02x%02x%02x-%02x%02x%02x%02x", ++ digest[0], digest[1], digest[2], digest[3], ++ digest[4], digest[5], digest[6], digest[7], ++ digest[8], digest[9], digest[10], digest[11], ++ digest[12], digest[13], digest[14], digest[15], ++ digest[16], digest[17], digest[18], digest[19]); ++ ++#else + unsigned int digest[5]; + // Sanity check for the memory layout: A SHA-1 digest is 160 bits wide + assert(sizeof(unsigned int) == 4 && sizeof(digest) == (160 / 8)); + assert(sizeof(boost::uuids::detail::sha1::digest_type) == 20); +- +- // From Boost 1.86, digest_type is "unsigned char[20]" while it was "unsigned int[5]"" in previous versions. +- // Always perform the cast even if it is useless for Boost < 1.86 +- sha1.get_digest(*(reinterpret_cast(digest))); ++ ++ sha1.get_digest(digest)); + + result.resize(8 * 5 + 4); + sprintf(&result[0], "%08x-%08x-%08x-%08x-%08x", +@@ -828,6 +846,9 @@ + digest[2], + digest[3], + digest[4]); ++ ++#endif ++ + } + + void Toolbox::ComputeSHA1(std::string& result, + diff --git a/bootstrap-4.3.1.zip b/bootstrap-4.3.1.zip new file mode 100644 index 0000000..241b7f1 --- /dev/null +++ b/bootstrap-4.3.1.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7fcae50c070250e4e1ae36a670e5ee8fe9d529eb3f1a03c527f8223ce3f61bc +size 2705432 diff --git a/dcmtk.diff b/dcmtk.diff new file mode 100644 index 0000000..5baee90 --- /dev/null +++ b/dcmtk.diff @@ -0,0 +1,11 @@ +diff -U 3 -dHrN -- a/OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake b/OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake +--- a/OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake 2024-01-31 12:33:17.000000000 +0100 ++++ b/OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake 2024-02-07 18:49:46.121815912 +0100 +@@ -302,6 +302,7 @@ + /usr/share/libdcmtk18 + /usr/share/libdcmtk19 + /usr/share/libdcmtk20 ++ /usr/share/dcmtk-3.6.8 + /usr/local/share/dcmtk + /usr/local/share/dcmtk-3.6.8 + ) diff --git a/index.html b/index.html new file mode 100644 index 0000000..9b87884 --- /dev/null +++ b/index.html @@ -0,0 +1,12 @@ + + + +

Index of the Orthanc documentation

+ + + + diff --git a/jquery-3.4.1.min.js b/jquery-3.4.1.min.js new file mode 100644 index 0000000..1d780e8 --- /dev/null +++ b/jquery-3.4.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",k=function(e,t){return new k.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp($),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(m.childNodes),m.childNodes),t[m.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:m)!==C&&T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&U.test(t)){(s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=k),o=(l=h(t)).length;while(o--)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ee.test(t)&&ye(e.parentNode)||e}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){A(t,!0)}finally{s===k&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[k]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:m;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),m!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",$)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===m&&y(m,e)?-1:t===C||t.ownerDocument===m&&y(m,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]===m?-1:s[r]===m?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&k.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,q=k(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?k.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",y.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),k.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(k.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&k.event.add(e,i,ke)}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v){n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ie,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;while(l--)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(R)||[""]).length;while(l--)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Vt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Yt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Vt=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Vt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===k.css(e,"position"))e=e.offsetParent;return e||ie})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return _(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=ze(y.pixelPosition,function(e,t){if(t)return t=_e(e,n),$e.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0 Tue Aug 13 08:06:42 UTC 2019 diff --git a/orthanc-rpmlintrc b/orthanc-rpmlintrc new file mode 100644 index 0000000..47e45de --- /dev/null +++ b/orthanc-rpmlintrc @@ -0,0 +1,12 @@ +# end-of-line is not really a pain: +addFilter("wrong-file-end-of-line-encoding /usr/share/doc/packages/orthanc/Samples/CppHelpers/README.md"); +# some python files are installed under 'examples' +# they should be adjusted +addFilter("env-script-interpreter"); +addFilter("non-executable-script"); +# false positive +addFilter("script-without-shebang /etc/orthanc/Configuration.json"); +addFilter("script-without-shebang /etc/orthanc/worklists.json"); +addFilter("script-without-shebang /etc/orthanc/serve-folders.json"); +# Orthanc source was all the time in /usr/src.... +addFilter("filelist-forbidden-fhs23 /usr/src/orthanc"); diff --git a/orthanc.changes b/orthanc.changes new file mode 100644 index 0000000..16aac14 --- /dev/null +++ b/orthanc.changes @@ -0,0 +1,676 @@ +------------------------------------------------------------------- +Fri Dec 20 17:20:24 UTC 2024 - Axel Braun + +- version 1.12.5 + * patches toolbox.patch boost.patch sha.patch removed (in sourcecode) + * for details, see NEWS file + +------------------------------------------------------------------- +Mon Oct 14 11:53:47 UTC 2024 - Axel Braun + +- applied patches to source tree (for plugins) + +------------------------------------------------------------------- +Mon Sep 30 08:43:53 UTC 2024 - Axel Braun + +- sha.patch added to fix Leap build + +------------------------------------------------------------------- +Wed Sep 25 08:35:12 UTC 2024 - Axel Braun + +- toolbox.patch and boost.patch added to fix TW build + +------------------------------------------------------------------- +Fri Jun 7 06:00:51 UTC 2024 - Axel Braun + +- version 1.12.4 + * boost185.diff removed + * API version upgraded to 24 + * Added "MaximumPatientCount" in /system + * Added a new "LimitToThisLevelMainDicomTags" field in the payload of + /patients|studies|series/instances/../reconstruct to speed up the reconstruction + in case you just want to update the MainDicomTags of that resource level only + (e.g., after you have updated the "ExtraMainDicomTags" for this level) + * The "requestedTags" GET argument is deprecated in favor of "requested-tags" + * Added "?whole" option to "/instances/{id}/tags" to access tags stored after pixel data + + * Multitenant DICOM plugin: added support for locales. + * Housekeeper plugin: + - Added an option "LimitMainDicomTagsReconstructLevel" + (allowed values: "Patient", "Study", "Series", "Instance"). This can greatly speed + up the housekeeper process, e.g. if you have only update the Study level ExtraMainDicomTags. + - Fixed broken /instances/../tags route after running the Housekeeper + after having changed the "IngestTranscoding". + * SDK: added OrthancPluginLogMessage() as a new primitive for plugins + to log messages. This new primitive will display the plugin name, + the plugin file name, and the plugin line number in the logs. If + they are not using the LOG() facilities provided by the + OrthancFramework, plugins should now use ORTHANC_PLUGINS_LOG_INFO(), + ORTHANC_PLUGINS_LOG_WARNING(), and ORTHANC_PLUGINS_LOG_ERROR(). + + * C-Find queries: + - In C-Find queries including "GenericGroupLength" tags, Orthanc was still + extracting these tags from the storage although they were already ignored + and not returned in the response. + They are now removed from the query earlier to avoid this disk access that + could slow down the response time. Note that this seems to happen mainly + when the query originates from some GE devices (AWS). + - "TimezoneOffsetFromUTC" is now ignored for matching. + * The 0x0111 DIMSE Status is now considered as a warning instead of an error + when received as a response to a C-Store. + See https://discourse.orthanc-server.org/t/ignore-dimse-status-0x0111-when-sending-partial-duplicate-studies/4555/3 + * Removed potential PHI from the logs when Orthanc encounters an error while + creating a ZIP archive. + * Monitoring of stable resources now also takes into consideration the + resource type, not only the resource identifier identifier. + * DICOM TLS: + - In prior versions, when "DicomTlsRemoteCertificateRequired" was set to false, Orthanc + was still sending a client certificate request during the TLS handshake but was not + triggering and error if the client certificate was not trusted (equivalent to the + "--verify-peer-cert" DCMTK option). Starting with Orthanc 1.12.4, if this option is + set to "false", Orthanc will not send a client certificate request during the TLS + handshake anymore (equivalent to the "--ignore-peer-cert" DCMTK option). + - When working with "DicomTlsEnabled": true and "DicomTlsRemoteCertificateRequired": false, + Orthanc was refusing to start if no "DicomTlsTrustedCertificates" was provided. + - New configuration options: + - "DicomTlsMinimumProtocolVersion" to select the minimum TLS protocol version + - "DicomTlsCiphersAccepted" to fine tune the list of accepted ciphers + * Fixed broken /instances/../tags route after calling of + /studies/../reconstruct after having changed the "IngestTranscoding". + * Upgraded dependencies for static builds: + - boost 1.85.0 + +------------------------------------------------------------------- +Fri May 17 09:30:42 UTC 2024 - Axel Braun + +- boost185.diff added to fix TW build issue + +------------------------------------------------------------------- +Thu Mar 21 16:31:18 UTC 2024 - Christophe Marin + +- Update orthanc-source requirements to fix the orthanc-wsi build + +------------------------------------------------------------------- +Tue Mar 19 08:23:12 UTC 2024 - Axel Braun + +- apply dcmtk patch to install section: we need this patch in the source + RPM as well for the plugins, otherwise TW and Leap 15.6 fail to build plugins + +------------------------------------------------------------------- +Thu Mar 7 20:21:58 UTC 2024 - Axel Braun + +- fix build for Leap < 15.6 + +------------------------------------------------------------------- +Thu Mar 7 15:13:59 UTC 2024 - Max Lin + +- Build orthanc with gcc13 on Leap 15 + +------------------------------------------------------------------- +Fri Feb 2 11:54:18 UTC 2024 - Axel Braun + +- version 1.12.3 + * dcmtk.diff added to fix TW build issue + * add user/group orthanc + * Performance of databases: + - At startup, if using a database plugin, displays the latency to access the DB. + - Added support for new DB primitives to enable the "READ COMMITTED" + transaction mode in the PostgreSQL plugin. + * API version upgraded to 23 + * Added a 'KeepLabels' option in /modify routes (default = false) + * Upgraded dependencies for static builds: + - boost 1.84.0 + - curl 8.5.0 + - dcmtk 3.6.8 + - jsoncpp 1.9.5 + - libjpeg 9f + - libpng 1.6.40 + - openssl 3.1.4 + - pugixml 1.14 + - zlib 1.3.1 + +------------------------------------------------------------------- +Thu Dec 21 09:13:15 UTC 2023 - Axel Braun + +- version 1.12.2 - see NEWS for full changelog + libboost.diff removed (included in source) + +------------------------------------------------------------------- +Mon Dec 18 14:13:12 UTC 2023 - Axel Braun + +- libboost.diff to fix build error with boost 1.84 + +------------------------------------------------------------------- +Wed Jul 5 17:24:07 UTC 2023 - Axel Braun + +- version 1.12.1 + * Orthanc now anonymizes according to Basic Profile of PS 3.15-2023b Table E.1-1 + * Added metrics: + - "orthanc_storage_read_bytes" + - "orthanc_storage_written_bytes" + - "orthanc_memory_trimming_duration_ms" + + * API version upgraded to 21 + * "/tools/create-dicom" can now be used to create Encapsulated 3D + Manufacturing Model IODs (MTL, OBJ, or STL) + * Added a route to delete the output of an asynchronous job (right now + only for archive jobs): e.g. DELETE /jobs/../archive + + * Added "OrthancPluginLoadDicomInstance()" to load DICOM instances from the database + * Added "OrthancPluginSetMetricsIntegerValue()" to track metrics with integer values + + * Fix decoding of YBR_FULL RLE images for which the "Planar Configuration" + tag (0028,0006) equals 1 + * Made Orthanc more resilient to common spelling errors in SpecificCharacterSet + * Modality worklists plugin: Allow searching on private tags (exact match only) + * Fix orphan files remaining in storage when working with MaximumStorageSize + (https://discourse.orthanc-server.org/t/issue-with-deleting-incoming-dicoms-when-maximumstoragesize-is-reached/3510) + * When deleting a resource, the "LastUpdate" metadata of its parents are now updated + * Reduced the memory usage when downloading archives when "ZipLoaderThreads" > 0 + * Metrics can be stored either as floating-point numbers, or as integers + * Reduce the frequency of memory trimming from 100ms to 30s to avoid high idle + CPU load (https://discourse.orthanc-server.org/t/onchange-callbacks-and-cpu-loads/3534). + * Upgraded dependencies for static builds: + - boost 1.82.0 + +------------------------------------------------------------------- +Sun Apr 16 19:52:25 UTC 2023 - Axel Braun + +- version 1.12.0 + * Support for labels associated with patients, studies, series, and instances + * Added a sample plugin bringing multitenant DICOM support through labels + * Many other fixes and improvements, see NEWS + +------------------------------------------------------------------- +Fri Apr 14 17:08:47 UTC 2023 - Axel Braun + +- version 1.11.3 + * cmake.diff removed (included in source) + * install_cmd.diff removed (included in source) + * Many improvements, for detailed log see NEWS + +------------------------------------------------------------------- +Tue Oct 25 10:13:39 UTC 2022 - Axel Braun + +- Build fixed for new plugins + cmake.diff added + install_cmd.diff added + +------------------------------------------------------------------- +Tue Sep 27 10:52:42 UTC 2022 - Axel Braun + +- version 1.11.2 + * Added support for RGBA64 images in tools/create-dicom and /preview + * New configuration "MaximumStorageMode" to choose between recyling of + old patients (default behavior) and rejection of new incoming data when + the MaximumStorageSize has been reached. + * New sample plugin: "DelayedDeletion" that will delete files from disk + asynchronously to speed up deletion of large studies. + * Lua: new "SetHttpTimeout" function + * Lua: new "OnHeartBeat" callback called at regular interval provided that + you have configured "LuaHeartBeatPeriod" > 0. + * "ExtraMainDicomTags" configuration now accepts Dicom Sequences. Sequences are + stored in a dedicated new metadata "MainDicomSequences". This should improve + DicomWeb QIDO-RS and avoid warnings like "Accessing Dicom tags from storage when + accessing series : 0040,0275". + Main dicom sequences can now be returned in "MainDicomTags" and in "RequestedTags". + + * Fix the "Never" option of the "StorageAccessOnFind" that was sill accessing + files (bug introduced in 1.11.0). + * Fix the Storage Cache for compressed files (bug introduced in 1.11.1). + * Fix the storage cache that was not used by the Plugin SDK. This fixes the + DicomWeb plugin "/rendered" route performance issues. + + * DelayedDeletion plugin: Fix leaking of symbols + * SQLite now closes and deletes WAL and SHM files on exit. This should improve + handling of SQLite DB over network drives. + * Fix static compilation of boost 1.69 on Ubuntu 22.04 + * Upgraded dependencies for static builds: + - boost 1.80.0 + - dcmtk 3.6.7 (fixes CVE-2022-2119 and CVE-2022-2120) + - openssl 3.0.5 + * Housekeeper plugin: Fix resume of previous processing + * Added missing MOVEPatientRootQueryRetrieveInformationModel in + DicomControlUserConnection::SetupPresentationContexts() + * Improved HttpClient error logging (add method + url) + + * API version upgraded to 18 + * /system is now reporting "DatabaseServerIdentifier" + * Added an Asynchronous mode to /modalities/../move. + * "RequestedTags" option can now include DICOM sequences. + + * New function in the SDK: "OrthancPluginGetDatabaseServerIdentifier" + + * DicomMap::ParseMainDicomTags has been deprecated -> retrieve "full" tags + and use DicomMap::FromDicomAsJson instead + +------------------------------------------------------------------- +Tue May 10 19:36:27 UTC 2022 - Axel Braun + +- version 1.11.0 +* new API version 1.7 +* new configuration parameter +* for detailed changelog see NEWS + +------------------------------------------------------------------- +Fri May 6 13:35:07 UTC 2022 - Marcus Meissner + +- switched source urls to https + +------------------------------------------------------------------- +Fri Mar 25 20:11:18 UTC 2022 - Axel Braun + +- version 1.10.1 +* for detailed changelog see NEWS + +------------------------------------------------------------------- +Wed Oct 13 13:27:12 UTC 2021 - Johannes Segitz + +- Added hardening to systemd service(s) (bsc#1181400). Modified: + * orthanc.service + +------------------------------------------------------------------- +Sun Sep 26 20:02:08 UTC 2021 - Axel Braun + +- Test for SharedLibrary.Basic disabled (fails with new glibc) + +------------------------------------------------------------------- +Wed Sep 1 07:27:28 UTC 2021 - Axel Braun + +- Version 1.9.7 +* New configuration option "DicomAlwaysAllowMove" to disable verification of + the remote modality in C-MOVE SCP +* API version upgraded to 15 +* Added "Level" option to POST /tools/bulk-modify +* Added missing OpenAPI documentation of "KeepSource" in ".../modify" and ".../anonymize" +* Added file CITATION.cff +* Linux Standard Base (LSB) builds of Orthanc can load non-LSB builds of plugins +* Fix upload of ZIP archives containing a DICOMDIR file +* Fix computation of the estimated time of arrival in jobs +* Support detection of windowing and rescale in Philips multiframe images + +------------------------------------------------------------------- +Thu Jul 22 13:34:16 UTC 2021 - Axel Braun + +- version 1.9.6 +* In lookup and query/retrieve, possibility to provide a specific study date +* Clicking on "Send to remote modality" displays the job information to monitor progress +* Fix orphaned attachments if bad revision number is provided + +------------------------------------------------------------------- +Mon Jul 19 06:00:06 UTC 2021 - Steve Kowalik + +- Remove executable bits from Python scripts when creating the source + tree for the -source package to stop it requiring /usr/bin/python + +------------------------------------------------------------------- +Sun Jul 11 11:16:07 UTC 2021 - Axel Braun + +- version 1.9.5 +* Anonymization is applied recursively to nested tags +* API version upgraded to 14 +* Added "Short", "Simplify" and/or "Full" options to control the format of DICOM tags in: + - POST /modalities/{id}/find-worklist + - POST /queries/{id}/answers/{index}/retrieve + - POST /queries/{id}/retrieve +* Fix broken "Do lookup" button in Orthanc Explorer +* Error code and description of jobs are now saved into the Orthanc database + +------------------------------------------------------------------- +Thu Jun 24 12:42:18 UTC 2021 - Axel Braun + +- version 1.9.4 +* Orthanc now anonymizes according to Basic Profile of PS 3.15-2021b Table E.1-1 +* New configuration options: + - "ExternalDictionaries" to load external DICOM dictionaries (useful for DICONDE) + - "SynchronousZipStream" to disable streaming of ZIP +* Orthanc Explorer supports the DICONDE dictionary +* API version upgraded to 13 +* New routes to handle groups of multiple, unrelated DICOM resources at once: + - "/tools/bulk-anonymize" to anonymize a set of resources + - "/tools/bulk-content" to get the content of a set of resources + - "/tools/bulk-delete" to delete a set of resources + - "/tools/bulk-modify" to modify a set of resources +* ZIP archive/media generated in synchronous mode are now streamed by default +* "Replace" tags in "/modify" and "/anonymize" now supports value representation AT +* "/jobs/..." has new field "ErrorDetails" to help identify the cause of an error +* "Replace", "Keep" and "Remove" in "/modify" and "/anonymize" accept paths to subsequences + using the syntax of the dcmodify command-line tool (wildcards are supported as well) +* Added "short", "simplify" and/or "full" options to control the format of DICOM tags in: + - GET /patients, GET /studies, GET /series, GET /instances (together with "&expand") + - GET /patients/{id}, GET /studies/{id}, GET /series/{id}, GET /instances/{id} + - GET /patients/{id}/studies, GET /patients/{id}/series, GET /patients/{id}/instances + - GET /studies/{id}/patient, GET /studies/{id}/series, GET /studies/{id}/instances + - GET /series/{id}/patient, GET /series/{id}/study, GET /series/{id}/instances + - GET /instances/{id}/patient, GET /instances/{id}/study, GET /instances/{id}/series + - GET /patients/{id}/instances-tags, GET /patients/{id}/shared-tags + - GET /studies/{id}/instances-tags, GET /series/{id}/shared-tags + - GET /series/{id}/instances-tags, GET /studies/{id}/shared-tags + - GET /patients/{id}/module, GET /patients/{id}/patient-module + - GET /series/{id}/module, GET /studies/{id}/module, GET /instances/{id}/module + - POST /tools/find +* "/studies/{id}/split" accepts "Instances" parameter to split instances instead of series +* "/studies/{id}/merge" accepts instances inside its "Resources" parameter +* Full support of hierarchical relationships in tags whose VR is UI during anonymization +* C-MOVE SCP: added possible DIMSE status "Sub-operations Complete - One or more Failures" +* Fix issue #146 (Update Anonyization to 2019c) - was actually updated to 2021b +* Upgraded dependencies for static builds (notably on Windows): + - curl 7.77.0 + +------------------------------------------------------------------- +Sun May 9 09:54:25 UTC 2021 - Axel Braun + +- Version 1.9.3 +* New configuration option: "DicomTlsRemoteCertificateRequired" to allow secure DICOM TLS + connections without certificate +* "ETag" headers for metadata and attachments now allow strong comparison (MD5 is included) +* New CMake option: "ORTHANC_LUA_VERSION" to use a specific version of system-wide Lua +* Fix the lifetime of temporary files associated with jobs that create ZIP archive/media: + - In synchronous mode, their number could grow up to "JobsHistorySize" in Orthanc <= 1.9.2 + - In asynchronous mode, the temporary files are removed as soon as their job gets canceled +* Fix regression in the handling of "DicomCheckModalityHost" configuration option + introduced by changeset 4182 in Orthanc 1.7.4 +* Reduced memory consumption of "OrthancPluginHttpClient()", "OrthancPluginHttpClient2()" and + "OrthancPluginCallPeerApi()" on POST/PUT if chunked transfer is disabled +* Fix issue #195 (No need for BulkDataURI when Data Element is empty) + +- from version 1.9.2: +* New configuration options related to multiple readers/writers: + - "DatabaseServerIdentifier" identifies the server in the DB among a pool of Orthanc servers + - "CheckRevisions" to protect against concurrent modifications of metadata and attachments +* API version upgraded to 12 +* "/system" reports the value of the "CheckRevisions" global option +* "/.../{id}/metadata/{name}" and "/.../{id}/attachments/{name}/..." URIs handle the + HTTP headers "If-Match", "If-None-Match" and "ETag" to cope with revisions +* New function in the SDK: OrthancPluginCallRestApi() +* Full refactoring of the database plugin SDK to handle multiple readers/writers, + which notably implies the handling of retries in the case of collisions +* Use the local timezone for query/retrieve in the Orthanc Explorer interface (was UTC before) +* Fix "OrthancServer/Resources/Samples/Python/Replicate.py" for Python 3.x +* Fix issue #83 (ServerIndex shall implement retries for DB temporary errors) +* Upgraded dependencies for static builds (notably on Windows and LSB): + - civetweb 1.14 + - openssl 1.1.1k + +------------------------------------------------------------------- +Thu Feb 25 20:31:58 UTC 2021 - Axel Braun + +- version 1.9.1 +* The "dicom-as-json" attachments are not explicitly stored anymore to improve performance +* If the storage area doesn't support range reading, or if "StorageCompression" + is enabled, a new type of attachment "dicom-until-pixel-data" is generated +* New metadata automatically computed at the instance level: "PixelDataOffset" +* New configuration option related to networking: + - "Timeout" in "DicomModalities" to set DICOM SCU timeout on a per-modality basis + - "Timeout" in "OrthancPeers" to set HTTP client timeout on a per-peer basis +* API version upgraded to 11 +* BREAKING CHANGES: + - External applications should not call "/instances/.../attachments/dicom-as-json" anymore, + and should use "/instances/.../tags" instead + - "/instances/.../tags" route does not report the tags after "Pixel Data" (7fe0,0010) anymore +* "/peers/{id}/store-straight": Synchronously send the DICOM instance in POST body to the peer +* New arguments in the REST API: + - "Timeout" in "/modalities/.../query" + - "Timeout" in "/modalities/.../storage-commitment" + - "Timeout" in "/queries/.../answers/.../query-{studies|series|instances}" +* New value in enumeration: OrthancPluginDicomToJsonFlags_StopAfterPixelData +* New value in enumeration: OrthancPluginDicomToJsonFlags_SkipGroupLengths +* Improved precision of floating-point numbers in DICOM-as-JSON and DICOM summary +* Optimization in C-STORE SCP by avoiding an unnecessary DICOM parsing +* Fix build on big-endian architectures +* Handle public tags with "UN" value representation and containing a string (cf. DICOM CP 246) +* The numbering of sequences in Orthanc Explorer now uses the DICOM convention (starts at 1) +* Possibility to generate a static library containing the Orthanc Framework + +------------------------------------------------------------------- +Fri Jan 29 16:58:24 UTC 2021 - Axel Braun + +- Version 1.9.0 +* Support of DICOM TLS +* New configuration options related to DICOM networking: + - "DicomTlsEnabled" to enable DICOM TLS in Orthanc SCP + - "DicomTlsCertificate" to provide the TLS certificate to be used in both Orthanc SCU and SCP + - "DicomTlsPrivateKey" to provide the private key of the TLS certificate + - "DicomTlsTrustedCertificates" to provide the list of TLS certificates to be trusted by Orthanc + - "UseDicomTls" in "DicomModalities" to enable DICOM TLS in outgoing SCU on a per-modality basis + - "MaximumPduLength" to tune the maximum PDU length (Protocol Data Unit) + - "LocalAet" in "DicomModalities" to overwrite global "DicomAet" for SCU on a per-modality basis + - "AcceptedTransferSyntaxes" to set the transfer syntax UIDs accepted by Orthanc C-STORE SCP + - "H265TransferSyntaxAccepted" to enable/disable all the transfer syntaxes related to H.265 + - "DicomAlwaysAllowFind" to disable verification of the remote modality in C-FIND SCP + - "DicomAlwaysAllowGet" to disable verification of the remote modality in C-GET SCP +* New configuration option: "DicomScuPreferredTransferSyntax" to control transcoding in C-STORE SCU +* New command-line option: "--openapi" to write the OpenAPI documentation of the REST API to a file +* New metadata automatically computed at the series level: "RemoteAET" +* The DICOM meta-header and the transfer syntax are displayed at the "Instance" level +* API version upgraded to 10 +* "/tools/accepted-transfer-syntaxes": Get/set transfer syntaxes accepted by Orthanc C-STORE SCP +* "/tools/unknown-sop-class-accepted": Get/set whether C-STORE SCP accepts unknown SOP class UID +* "/modalities/{...}/query": New string argument "LocalAet" +* "/tools/create-dicom": New flag "Force" to bypass consistency checks for the DICOM tags +* BREAKING CHANGE: All the Lua callbacks "IsXXXTransferSyntaxAccepted()" and + "IsUnknownSopClassAccepted()" have been removed +* New functions in the SDK: + - OrthancPluginCreateMemoryBuffer64() + - OrthancPluginRegisterStorageArea2() + - OrthancPluginCreateDicom2() +* Refactoring and improvements to the cache of DICOM files (it can now hold many files) +* New Prometheus metrics "orthanc_dicom_cache_count" and "orthanc_dicom_cache_size" +* Fix upload of multiple DICOM files using one single POST call to "multipart/form-data" + Could be the final resolution of issue #21 (DICOM files missing after uploading with Firefox) +* Partial fix of issue #48 (Windows service not stopped properly), cf. comments 4 and 5 +* Explicitly use little-endian to encode uncompressed file size with zlib compression +* Upgraded dependencies for static builds (notably on Windows): + - dcmtk 3.6.6 + - jsoncpp 1.9.4 + +------------------------------------------------------------------- +Wed Dec 30 13:15:11 UTC 2020 - Axel Braun + +- Workaround for boo#1180359 + +------------------------------------------------------------------- +Sat Dec 19 12:53:48 UTC 2020 - Axel Braun + +- Version 1.8.2 +* ZIP archives containing DICOM files can be uploaded using WebDAV +* New config option "MallocArenaMax" to control memory usage on GNU/Linux +* Explicit error log if trying to load a 32bit (resp. 64bit) plugin into + a 64bit (resp. 32bit) version of Orthanc +* New configuration options contributed by Varian Medical Systems: + - "DeidentifyLogs" to remove patient identification from the logs (C-GET, C-MOVE, C-FIND) + - "DeidentifyLogsDicomVersion" to specify the deidentification rules for the logs + - "OrthancExplorerEnabled" to enable/disable the Orthanc Explorer Web user interface + - "SslMinimumProtocolVersion" to set the minimal SSL protocol version (now defaults to SSL 1.2) + - "SslCiphersAccepted" to set the accepted ciphers over SSL (now defaults to FIPS 140-2) +* New configuration options related to ingest transcoding: + - "IngestTranscodingOfUncompressed" to control whether uncompressed transfer syntaxes are transcoded + - "IngestTranscodingOfCompressed" to control whether compressed transfer syntaxes are transcoded +* "/instances" can be used to import ZIP archives provided in the POST body +* Allow concurrency on the OrthancPluginRegisterIncomingHttpRequestFilter() callbacks +* Allow empty request body in "/modalities/{id}/echo" +* If meta-header is missing, best-effort to extract "TransferSyntax" in "/instances/{id}/metadata" + +------------------------------------------------------------------- +Tue Dec 8 06:35:51 UTC 2020 - Axel Braun + +- Version 1.8.1 +* adaption to new systemd-macros (OBS) +* New sample tool "OrthancImport.py" to easily import compressed archives (ZIP) into Orthanc +* Logging categories (cf. command-line options starting with "--verbose-" and "--trace=") +* New command-line option "--trace-dicom" to access full debug information from DCMTK +* New config option "DicomEchoChecksFind" to automatically complement C-GET SCU with C-FIND SCU +* API version upgraded to 9 +* "/tools/dicom-echo": Execute C-Echo SCU to a modality that is not registered in "/modalities" +* "/tools/log-level-*": Dynamically access and/or change the verbosity of logging categories +* "/peers/{id}/configuration": Get the configuration of one peer (cf. "/peers?expand") +* "/modalities/{id}/configuration": Get the configuration of one modality (cf. "/modalities?expand") +* "/tools/dicom-echo" and "/modalities/{id}/echo" now accept the field "CheckFind" in their JSON + body to complement C-GET SCU with C-FIND SCU ("DicomEchoChecksFind" on a per-connection basis) +* Archive/media jobs report the size of the created ZIP file in content field "ArchiveSizeMB" +* New function in the SDK: OrthancPluginGenerateRestApiAuthorizationToken() +* C-GET SCP: Fix responses and handling of cancel +* Fix decoding sequence if "BuiltinDecoderTranscoderOrder" is "Before" +* Fix keep-alive in the embedded HTTP server by setting the "Keep-Alive" HTTP header +* Fix access to videos as a single raw frame (feature broken since Orthanc 1.6.0) +* REST API now returns 404 error if deleting an inexistent peer or modality +* Improved forward ABI compatibility of Orthanc Framework (notably, no inline methods anymore) +* Upgraded dependencies for static builds (notably on Windows and LSB): + - civetweb 1.13 + +------------------------------------------------------------------- +Fri Oct 16 10:46:46 UTC 2020 - Axel Braun + +- version 1.8.0 +* Serving the content of Orthanc as a WebDAV network share +* New config options: "WebDavEnabled", "WebDavDeleteAllowed" and "WebDavUploadAllowed" + +------------------------------------------------------------------- +Fri Sep 18 14:50:14 UTC 2020 - Axel Braun + +- Version 1.7.4 +* New configuration options to enable HTTP peers identification through certificates: + "SslVerifyPeers" and "SslTrustedClientCertificates" +* New configuration option "SyncStorageArea" to immediately commit the files onto the disk + (through fsync()), so as to avoid discrepencies between DB and filesystem in case of hard + shutdown of the machine running Orthanc. This slows down adding new files into Orthanc. +* Underscores are now allowed in peers/modalities symbolic names +* Fix compatibility with C-MOVE SCU requests issued by Ambra +* Fix transcoding in C-MOVE SCP, in the case where "SynchronousCMove" is "true" +* When checking DICOM allowed methods, if there are multiple modalities with the same AET, + differentiate them from the calling IP +* Enable the access to raw frames in Philips ELSCINT1 proprietary compression +* Support empty key passwords when using HTTP client certificates +* Fix handling of "ModalitiesInStudy" (0008,0061) in C-FIND and "/tools/find" + +------------------------------------------------------------------- +Tue Aug 25 09:02:07 UTC 2020 - Axel Braun + +- Version 1.7.3 + +* API version upgraded to 8 +* "/peers/{id}/store": New option "Compress" to compress DICOM data using gzip +* "OrthancPeerStore" jobs now report the transmitted size in their public content +* New config option "Worklist.LimitAnswers" for the sample modality worklist plugin +* Add missing tag "Retrieve AE Title (0008,0054)" in C-FIND SCP responses +* Fix DICOM SCP filters if some query tag has > 256 characters (list of UIDs matching) +* "/series/.../ordered-slices" supports spaces in Image Position/Orientation Patient tags +* Fix possible crash in HttpClient if sending multipart body (can occur in STOW-RS) +* Support receiving multipart messages larger than 2GB in the embedded HTTP server + +------------------------------------------------------------------- +Sun Aug 2 15:19:18 UTC 2020 - Axel Braun + +- Version 1.7.2 + * C-FIND SCP now returns private tags (cf. option "DefaultPrivateCreator") + * Packaging of the Orthanc framework as a shared library + * New change types in the SDK: JobSubmitted, JobSuccess, JobFailure + * Issue #182: Better reporting of errors in plugins reading chunked HTTP body + * Fix issue #183 (C-ECHO always fails in Orthanc Explorer, regression from 1.6.1 to 1.7.0) + +------------------------------------------------------------------- +Wed May 27 14:24:06 UTC 2020 - Axel Braun + +- version 1.7.1 +* Fix decoding of DICOM images for plugins (for compatibility with + Orthanc Web Viewer 2.6) + +------------------------------------------------------------------- +Fri May 22 17:22:11 UTC 2020 - Axel Braun + +- new version 1.7.0 + * Support of DICOM C-GET SCP (contribution by Varian) + * DICOM transcoding over the REST API + * Transcoding from compressed to uncompressed transfer syntaxes over DICOM + C-STORE SCU (if the remote modality doesn't support compressed syntaxes) + * New configuration options related to transcoding: + "TranscodeDicomProtocol", "BuiltinDecoderTranscoderOrder", + "IngestTranscoding" and "DicomLossyTranscodingQuality" + * See NEWS for details + +------------------------------------------------------------------- +Wed Apr 22 17:59:05 UTC 2020 - Axel Braun + +- version 1.6.1 + sqlitewrapper.patch removed (included in 1.6.1) + +------------------------------------------------------------------- +Sun Apr 5 07:33:34 UTC 2020 - Axel Braun + +- sqlitewrapper.patch (boo#1167431) + +------------------------------------------------------------------- +Wed Mar 25 19:08:48 UTC 2020 - Axel Braun + +- various security hardenings (boo#1167431) + +------------------------------------------------------------------- +Tue Mar 24 19:34:05 UTC 2020 - Axel Braun + +- ConnectivityCheck Plugin enabled in build + +------------------------------------------------------------------- +Fri Mar 20 13:16:54 UTC 2020 - Axel Braun + +- version 1.6.0 + bugfixes and improvements (see /usr/share/doc/packages/orthanc/NEWS + rpmlintrc for some rpmlint warnings + +------------------------------------------------------------------- +Tue Dec 17 09:02:21 UTC 2019 - Axel Braun + +- for i586, one test disabled (fail due to rounding issues) + +------------------------------------------------------------------- +Thu Oct 17 00:02:56 UTC 2019 - Axel Braun + +- version 1.5.8 + * various bugfixes, see NEWS for details + +------------------------------------------------------------------- +Tue Aug 13 08:06:42 UTC 2019 - Axel Braun + +- version 1.5.7 + * Documentation added + +------------------------------------------------------------------- +Mon Feb 25 17:30:32 UTC 2019 - Axel Braun + +- version 1.5.5 + +------------------------------------------------------------------- +Fri Feb 8 16:17:54 UTC 2019 - Axel Braun + +- version 1.5.4 + civetweb.patch removed + various bugfixes + +------------------------------------------------------------------- +Wed Jan 30 15:55:39 UTC 2019 - axel.braun@gmx.de + +- civetweb.patch added + +------------------------------------------------------------------- +Tue Jan 29 19:35:06 UTC 2019 - Axel Braun + +- version 1.5.3 + * New configuration option: "SaveJobs" to specify whether jobs are stored in the database + * Don't return tags whose group is below 0x0008 in C-FIND SCP answers + * Fix compatibility with DICOMweb plugin (allow multipart answers over HTTP Keep-Alive) + * Fix issue #73 (/modalities/{modalityId}/store raises 500 errors instead of 404) + * Fix issue #90 (C-Find shall match missing tags to null/empty string) + * Fix issue #119 (/patients/.../archive returns a 500 when JobsHistorySize is 0) + * Fix issue #128 (Asynchronous C-MOVE: invalid number of remaining sub-operations) + +------------------------------------------------------------------- +Tue Jan 22 12:36:58 UTC 2019 - Axel Braun + +- version 1.5.2 + temporary fixes for civetweb 1.11 removed + +------------------------------------------------------------------- +Sat Dec 22 16:41:25 UTC 2018 - Axel Braun + +- Version 1.5.1 + Initial OBS build + spec file adapted from Fedora project diff --git a/orthanc.service b/orthanc.service new file mode 100644 index 0000000..7120db9 --- /dev/null +++ b/orthanc.service @@ -0,0 +1,31 @@ +[Unit] +Description=Orthanc DICOM server +Documentation=man:orthanc(1) http://www.orthanc-server.com/ +After=syslog.target network.target + +[Service] +# some security settings +PrivateTmp=true +ProtectSystem=true +ProtectHome=true +ProtectKernelModules=true +ProtectKernelTunables=true +ProtectControlGroups=true +MountFlags=private +NoNewPrivileges=true +PrivateDevices=true +# added automatically, for details please see +# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort +ProtectHostname=true +ProtectKernelLogs=true +RestrictRealtime=true +# end of automatic additions +MemoryDenyWriteExecute=true + +Type=simple +User=orthanc +Group=orthanc +ExecStart=/usr/sbin/orthanc /etc/orthanc/ + +[Install] +WantedBy=multi-user.target diff --git a/orthanc.spec b/orthanc.spec new file mode 100644 index 0000000..54ebf5b --- /dev/null +++ b/orthanc.spec @@ -0,0 +1,322 @@ +# +# spec file for package orthanc +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2019-2024 Dr. Axel Braun +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: orthanc +Version: 1.12.5 +Release: 0 +Summary: RESTful DICOM server for healthcare and medical research +License: GPL-3.0-or-later +Group: Productivity/Graphics/Visualization/Other +URL: https://www.orthanc-server.com/ +Source0: https://orthanc.uclouvain.be/downloads/sources/%{name}/Orthanc-%{version}.tar.gz +Source1: orthanc.service +Source2: orthanc-readme.SUSE +Source3: serve-folders.json +Source4: worklists.json +Source5: index.html +Source7: orthanc-rpmlintrc +Source8: Configuration.json +# Sources for plugin - need a defined version, so taking them from orthanc-server +Source10: https://orthanc.uclouvain.be/downloads/third-party-downloads/dicom-web/bootstrap-4.3.1.zip +Source11: https://orthanc.uclouvain.be/downloads/third-party-downloads/dicom-web/axios-0.19.0.tar.gz +Source12: https://orthanc.uclouvain.be/downloads/third-party-downloads/jquery-3.4.1.min.js +Source13: https://orthanc.uclouvain.be/downloads/third-party-downloads/dicom-web/vuejs-2.6.10.tar.gz + +Patch0: dcmtk.diff +## Patch1: toolbox.patch +# Patch2: boost.patch +## Patch3: sha.patch + +BuildRequires: civetweb-devel +BuildRequires: cmake >= 2.8.0 +BuildRequires: curl-devel +BuildRequires: dcmtk +BuildRequires: dcmtk-devel +BuildRequires: doxygen +%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200 +BuildRequires: gcc13-c++ +%else +BuildRequires: gcc-c++ +%endif +BuildRequires: googletest-devel +BuildRequires: help2man +BuildRequires: jsoncpp-devel +BuildRequires: libboost_date_time-devel >= 1.66 +BuildRequires: libboost_filesystem-devel >= 1.66 +BuildRequires: libboost_iostreams-devel >= 1.66 +BuildRequires: libboost_locale-devel >= 1.66 +BuildRequires: libboost_regex-devel >= 1.66 +BuildRequires: libboost_system-devel >= 1.66 +BuildRequires: libboost_thread-devel >= 1.66 +BuildRequires: protobuf-devel +#Workaround for boo#1180359 +BuildRequires: libbz2-devel +BuildRequires: libjpeg-devel +BuildRequires: libpng-devel +BuildRequires: libtiff-devel +BuildRequires: libuuid-devel +BuildRequires: libwrap0 +BuildRequires: libxml2-devel +BuildRequires: openssl-devel +BuildRequires: pugixml-devel +BuildRequires: sqlite3-devel +BuildRequires: tcpd-devel +BuildRequires: unzip +#Workaround for boo#1180359 +BuildRequires: zlib-devel +BuildRequires: pkgconfig(icu-uc) +BuildRequires: pkgconfig(libsystemd) +BuildRequires: pkgconfig(lua5.1) + +Requires: dcmtk +Requires(pre): /usr/sbin/groupadd +Requires(pre): /usr/sbin/useradd + +Provides: group(orthanc) +Provides: user(orthanc) + +%{?systemd_ordering} + +%description +Orthanc aims at providing a simple, yet powerful standalone DICOM server. +Orthanc can turn any computer running Windows or Linux into a DICOM store +(in other words, a mini-PACS system). Its architecture is lightweight, +meaning that no complex database administration is required, nor the +installation of third-party dependencies. What makes Orthanc unique +is the fact that it provides a RESTful API. Thanks to this major +feature, it is possible to drive Orthanc from any computer language. + +The DICOM tags of the stored medical images can be downloaded in the +JSON file format. Furthermore, standard PNG images can be generated +on-the-fly from the DICOM instances by Orthanc. Orthanc lets its +users focus on the content of the DICOM files, hiding the complexity +of the DICOM format and of the DICOM protocol. + +%package -n %{name}-devel +Summary: Header and source files for creating Orthanc plugins +Group: Development/Libraries/C and C++ +Provides: orthanc-static = %{version}-%{release} +BuildArch: noarch + +%description -n %{name}-devel +This package includes the header files to develop C/C++ plugins for Orthanc. + +%package -n %{name}-doc +Summary: Documentation files for Orthanc +Group: Productivity/Graphics/Visualization/Other +BuildArch: noarch + +%description -n %{name}-doc +This package includes the documentation and the sample codes available +for Orthanc. +It also includes the Python and LUA Scripts, and the documentation to develop +C/C++ plugins for Orthanc. + +%package source +Summary: This package includes the source files for Orthanc +Group: Development/Sources +# DcmtkConfiguration.cmake looks for dicom.dic +Requires: dcmtk +BuildArch: noarch + +%description source +This package includes the source files for Orthanc. Use it in conjunction with the -devel package + +%prep +%autosetup -p1 -n Orthanc-%{version} + +cp %{S:1} %{S:2} . + +#slight change in standard configuration for OrthancStorage +cp %{S:8} OrthancServer/Resources/. + +#OrthancPlugins may ask for additional files to be loaded +#Putting them into this folder prevents download of sources from the web +mkdir -p OrthancServer/ThirdPartyDownloads +cp %{S:10} %{S:11} %{S:12} %{S:13} OrthancServer/ThirdPartyDownloads/. + +%build +%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200 +export CC=gcc-13 +export CXX=g++-13 +%endif +%cmake ../OrthancServer \ + -DSTANDALONE_BUILD:BOOL=ON \ + -DSTATIC_BUILD:BOOL=OFF \ + -DENABLE_CIVETWEB=ON \ + -DORTHANC_UNIT_TESTS_LINK_FRAMEWORK=OFF \ + -DUSE_SYSTEM_MONGOOSE=OFF \ + -DSYSTEM_MONGOOSE_USE_CA/var/tmp/build-root/openSUSE_Tumbleweed-x86_64LLBACKS=OFF \ + -DUNIT_TESTS_WITH_HTTP_CONNEXIONS=OFF \ + -DBoost_NO_BOOST_CMAKE=ON + +%cmake_build %{?_smp_mflags} + +# Generate the man page +help2man ./Orthanc -N -n "Lightweight, RESTful DICOM server for healthcare and medical research" > %{name}.1 + +%check +# we disable one test for i586 +%ifarch != ix86 + build/UnitTests +%else + build/UnitTests --gtest_filter=-ImageProcessing.Convolution --gtest_filter=-Version.CivetwebCompression --gtest_filter=-SharedLibrary.Basic +%endif + +%install +# install: make some dirs... +mkdir -p -m 755 %{buildroot} +mkdir -p -m 755 %{buildroot}%{_sysconfdir}/%{name} +mkdir -p -m 755 %{buildroot}%{_unitdir} +mkdir -p -m 755 %{buildroot}%{_initddir} +mkdir -p -m 755 %{buildroot}%{_bindir} +mkdir -p -m 755 %{buildroot}%{_sbindir} +mkdir -p -m 755 %{buildroot}%{_libdir} +mkdir -p -m 755 %{buildroot}%{_mandir} +mkdir -p -m 755 %{buildroot}%{_docdir}/%{name} + +##setup source directory +mkdir -p -m 755 %{buildroot}/usr/src/%{name} +# Copy sources +tar --strip-components 1 -xzf %{S:0} -C %{buildroot}/usr/src/%{name}/ + +#Apply dcmtk patch +patch %{buildroot}/usr/src/%{name}/OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake < %{P:0} + +#Apply remaining patches to source tree +## patch -p1 -d %{buildroot}/usr/src/%{name} < %{P:1} +## patch -p1 -d %{buildroot}/usr/src/%{name} < %{P:2} +## patch -p1 -d %{buildroot}/usr/src/%{name} < %{P:3} + +# Do not mark Python scripts as executable +find %{buildroot}/usr/src/%{name} -name '*.py' -exec chmod a-x "{}" + +#...and delete dot files +rm %{buildroot}/usr/src/%{name}/.[!.]* + +# and patched files +find %{buildroot}/usr/src/%{name} -iname *.orig -type f -print | xargs /bin/rm -f + +%cmake_install + +##move the doc into +cp -r %{buildroot}/usr/share/doc/%{name}/* %{buildroot}%{_docdir}/%{name}/. +rm -rf %{buildroot}/usr/share/doc/%{name} + +install -m 755 -d %{buildroot}%{_mandir}/man1 +cp build/%{name}.1 %{buildroot}%{_mandir}/man1 + +install -m 755 -d %{buildroot}%{_sysconfdir}/%{name} +cp %{S:3} %{buildroot}%{_sysconfdir}/%{name} +cp %{S:4} %{buildroot}%{_sysconfdir}/%{name} +cp %{S:8} %{buildroot}%{_sysconfdir}/%{name} + +install -m 755 -d %{buildroot}%{_unitdir} +cp orthanc.service %{buildroot}%{_unitdir} + +install -m 755 -d %{buildroot}%{_sharedstatedir}/%{name}/db-v6 + +# Move the plugins from "/usr/lib64/" to "/usr/lib64/orthanc", and +# remove the symbolic links generated by CMake +mkdir -p %{buildroot}%{_libdir}/%{name} +mv build/*.so.%{version} %{buildroot}%{_libdir}/%{name} +# libs since version 1.11.1 dont install in /usr/lib anymore, we need a workaround: +cp %{buildroot}%{_prefix}/share/%{name}/plugins/libConnectivityChecks.so.%{version} %{buildroot}%{_libdir}/%{name} +cp %{buildroot}%{_prefix}/share/%{name}/plugins/libDelayedDeletion.so.%{version} %{buildroot}%{_libdir}/%{name} + +rm build/*.so + +# move the executables to stay consistent +mv %{buildroot}%{_bindir}/OrthancRecoverCompressedFile %{buildroot}%{_bindir}/orthancRecoverCompressedFile +mv %{buildroot}%{_sbindir}/Orthanc %{buildroot}%{_sbindir}/orthanc + +# Create symbolic links to plugins in "/usr/share/orthanc/plugins" +# We stick to the "relative symlinks" section of the guideline + +rm %{buildroot}%{_prefix}/share/%{name}/plugins/*.so* + +ln -s ../../../..%{_libdir}/%{name}/libConnectivityChecks.so.%{version} \ + %{buildroot}%{_prefix}/share/%{name}/plugins/libConnectivityChecks.so +ln -s ../../../..%{_libdir}/%{name}/libDelayedDeletion.so.%{version} \ + %{buildroot}%{_prefix}/share/%{name}/plugins/libDelayedDeletion.so + +ln -s ../../../..%{_libdir}/%{name}/libServeFolders.so.%{version} \ + %{buildroot}%{_prefix}/share/%{name}/plugins/libServeFolders.so +ln -s ../../../..%{_libdir}/%{name}/libModalityWorklists.so.%{version} \ + %{buildroot}%{_prefix}/share/%{name}/plugins/libModalityWorklists.so + +# Prepare documentation: "index.html", Doxygen of plugin SDK, and sample codes +cp -r %{S:5} %{buildroot}%{_docdir}/%{name}/ +cp -r OrthancServer/Resources/Samples/ %{buildroot}%{_docdir}/%{name}/Samples +cp -r OrthancServer/Plugins/Samples/ %{buildroot}%{_docdir}/%{name}/OrthancPluginSamples + +echo 'ldconfig -v | grep libcrypto.so' + +%pre +getent group orthanc >/dev/null || groupadd -r orthanc +getent passwd orthanc >/dev/null || \ + useradd -r -g orthanc -G orthanc -d %{_sharedstatedir}/orthanc -s /sbin/nologin \ + -c "User account that holds information for Orthanc" orthanc + +%service_add_pre orthanc.service + +%preun +%service_del_preun orthanc.service + +%post +/sbin/ldconfig +%service_add_post orthanc.service + +%postun +/sbin/ldconfig +%service_del_postun orthanc.service + +%files +%doc AUTHORS NEWS README TODO orthanc-readme.SUSE +%license COPYING +%{_mandir}/man1/orthanc.1* +%{_bindir}/orthancRecoverCompressedFile +%{_sbindir}/orthanc +%{_unitdir}/orthanc.service +%{_libdir}/orthanc/*.so.%{version} +%{_prefix}/share/orthanc/plugins/*.so* +%dir %attr(0755, orthanc, orthanc) %{_sysconfdir}/orthanc +%dir %{_libdir}/orthanc +%dir %{_prefix}/share/orthanc +%dir %{_prefix}/share/orthanc/plugins +%defattr(0750, orthanc , orthanc) +%config(noreplace) %{_sysconfdir}/orthanc/*.json +%dir %attr(0755, orthanc, orthanc) %{_sharedstatedir}/orthanc +%dir %attr(0755, orthanc, orthanc) %{_sharedstatedir}/orthanc/db-v6 + +%files -n orthanc-devel +%dir %{_includedir}/orthanc +%{_includedir}/orthanc/* + +%files -n orthanc-doc +%{_docdir}/orthanc/index.html +%{_docdir}/orthanc/Orthanc* +%{_docdir}/orthanc/Samples/* +%dir %attr(0755, orthanc, orthanc) %{_docdir}/orthanc/Samples + +%files source +%defattr(-,root,root) +%dir /usr/src/%{name} +/usr/src/%{name}/* + +%changelog diff --git a/serve-folders.json b/serve-folders.json new file mode 100644 index 0000000..ec5e285 --- /dev/null +++ b/serve-folders.json @@ -0,0 +1,15 @@ +{ + /** + * Configuration of the ServeFolders plugin, that can be used to + * serve additional folders through the embedded Web server of + * Orthanc. This is especially useful to avoid problems related to + * the same-origin policy when developing Web applications in + * JavaScript on the top of the REST API of Orthanc. + * + * The commented example would serve the documentation of the plugin + * SDK at the URL http://localhost:8042/doc/index.html + **/ + "ServeFolders" : { + // "/doc" : "/usr/share/doc/orthanc/" + } +} diff --git a/sha.patch b/sha.patch new file mode 100644 index 0000000..25d59de --- /dev/null +++ b/sha.patch @@ -0,0 +1,20 @@ +# HG changeset patch +# User Alain Mazy +# Date 1727274964 -7200 +# Node ID 122fd5f97d394bbbe46e11b65a7a1294ccf61985 +# Parent 2b429588de28773d4aa062b3eb78c64663d7cbd2 +fix + +diff -r 2b429588de28 -r 122fd5f97d39 OrthancFramework/Sources/Toolbox.cpp +--- a/OrthancFramework/Sources/Toolbox.cpp Wed Sep 25 16:27:07 2024 +0200 ++++ b/OrthancFramework/Sources/Toolbox.cpp Wed Sep 25 16:36:04 2024 +0200 +@@ -837,7 +837,7 @@ + assert(sizeof(unsigned int) == 4 && sizeof(digest) == (160 / 8)); + assert(sizeof(boost::uuids::detail::sha1::digest_type) == 20); + +- sha1.get_digest(digest)); ++ sha1.get_digest(digest); + + result.resize(8 * 5 + 4); + sprintf(&result[0], "%08x-%08x-%08x-%08x-%08x", + diff --git a/toolbox.patch b/toolbox.patch new file mode 100644 index 0000000..bb792ac --- /dev/null +++ b/toolbox.patch @@ -0,0 +1,27 @@ +--- a/OrthancFramework/Sources/Toolbox.cpp Fri Sep 20 16:05:04 2024 +0200 ++++ b/OrthancFramework/Sources/Toolbox.cpp Tue Sep 24 09:26:42 2024 +0200 +@@ -801,7 +801,6 @@ + return result; + } + +- + void Toolbox::ComputeSHA1(std::string& result, + const void* data, + size_t size) +@@ -814,11 +813,13 @@ + } + + unsigned int digest[5]; +- + // Sanity check for the memory layout: A SHA-1 digest is 160 bits wide +- assert(sizeof(unsigned int) == 4 && sizeof(digest) == (160 / 8)); ++ assert(sizeof(unsigned int) == 4 && sizeof(digest) == (160 / 8)); ++ assert(sizeof(boost::uuids::detail::sha1::digest_type) == 20); + +- sha1.get_digest(digest); ++ // From Boost 1.86, digest_type is "unsigned char[20]" while it was "unsigned int[5]"" in previous versions. ++ // Always perform the cast even if it is useless for Boost < 1.86 ++ sha1.get_digest(*(reinterpret_cast(digest))); + + result.resize(8 * 5 + 4); + sprintf(&result[0], "%08x-%08x-%08x-%08x-%08x", diff --git a/vuejs-2.6.10.tar.gz b/vuejs-2.6.10.tar.gz new file mode 100644 index 0000000..db0955d --- /dev/null +++ b/vuejs-2.6.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3d900cd9266b5bed9bb6d575fc9ab6787e79e7ad21c01ee1277bff5453121f2 +size 1576461 diff --git a/worklists.json b/worklists.json new file mode 100644 index 0000000..7ad42a2 --- /dev/null +++ b/worklists.json @@ -0,0 +1,12 @@ +{ + /** + * Configuration of the ModalityWorklists plugin, that can be used + * to serve DICOM modality worklists. More information about this + * plugin is available in the source distribution at: + * https://bitbucket.org/sjodogne/orthanc/src/default/Plugins/Samples/ModalityWorklists/README + **/ + "Worklists" : { + "Enable": false, + "Database": "/var/lib/orthanc/worklists" + } +}