wado.php broken in 6.6.2

Known bugs reported by PacsOne users
Post Reply
tburba
Posts:50
Joined:Fri Apr 23, 2010 5:02 pm
Contact:
wado.php broken in 6.6.2

Post by tburba » Tue Jun 13, 2017 1:35 pm

In a demo installation of the newest version (6.6.2), WADO is unusable. A typical URL on 6.5.4

http://SERVERNAME/wado.php?requestType= ... on%2Fdicom

downloads the file in the browser; here it results in an error:

Code: Select all

<br />
<b>Notice</b>:  Undefined offset: 0 in <b>C:\Program Files\PacsOne\php\wado.php</b> on line <b>94</b><br />
<h2><font color=red>Failed to Resolve Database Name<br>Array
(
    [requestType] => WADO
    [studyUID] => 1.2.724.33963612.20110600.17286709759638691243
    ...
A crude fix that works for me:

Code: Select all

--- wado.662.php	2016-06-29 17:26:10.000000000 +0300
+++ wado.php	2017-06-13 15:57:33.844030200 +0300
@@ -89,7 +89,7 @@
 } else {
     // just use the first database from the parsed INI configuration files
     $oracle = false;
-    $databases = getDatabaseNames($oracle);
+    $databases = array_values(getDatabaseNames($oracle));
     if (count($databases)) {
         $database = $databases[0]['Database'];
         if (isset($databases[0]['DatabaseHost']))

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Re: wado.php broken in 6.6.2

Post by pacsone » Mon Aug 07, 2017 4:48 pm

This is confirmed to be a bug in version 6.6.2 of PacsOne Server, and we'll fix it in the next release (6.6.3) to be released soon.

In the meanwhile, you can download the patched "php/wado.php" script from our website below:

http://www.pacsone.net/Patch662.zip

Post Reply