Hi,
I am fairly new to using Orthanc and I am doing some testing. I have noticed a few things that I am hoping I can get some feedback on. I am trying to use the Indexer mode from the Advanced Storage plugin to index an existing set of DICOM instances on disk. I want the Orthanc instance to be “read-only” but it appears there may be issues with using the ”ReadOnly”: true configuration with the Advanced Storage Indexer mode. Here is the configuration that produces the following log message:
{
"Plugins" : [ "." ],
"OrthancExplorer2" : {
"Enable": true,
"IsDefaultOrthancUI": true,
},
"ReadOnly" : true,
"AdvancedStorage": {
"Enable": true,
"Indexer": {
"Enable": true,
"Folders": ["...path...to...data..."],
"TakeOwnership": false
}
}
}
W1109 15:30:05.757252 MAIN advanced-storage:/Plugin.cpp:370] Orthanc is ReadOnly. The plugin will not be able to adopt files and the indexer mode will not be available
Is this an issue? The indexer mode seems to be working but the message makes me unsure.
Related, if I instead set the ReadOnly option to false and instead use a Lua script to filter HTTP requests, such as with:
{
"Plugins" : [ "." ],
"LuaScripts" : [
"./filter.lua"
],
"OrthancExplorer2" : {
"Enable": true,
"IsDefaultOrthancUI": true,
},
"RemoteAccessAllowed" : true,
"ReadOnly" : false,
"AdvancedStorage": {
"Enable": true,
"Indexer": {
"Enable": true,
"Folders": ["...path...to...data..."],
"TakeOwnership": false
}
}
}
function IncomingHttpRequestFilter(method, uri, ip, username, httpHeaders)
if method == 'GET' then
return true
else
return false
end
end
Then the DICOM instances don’t show up in the Orthanc Explorer 2 (though they do show up in the Legacy UI). Any thoughts or comments on best practices for developing a read-only environment while using advanced storage.