We have setup a DCM4CHEE instance (Version 5.32 and NOT secure) on windows and trying to enable Weasis viewer integration. As per the instructions on integration wiki page, the below properties are configured
IID_PATIENT_URL=weasis://$dicom:rs --url "http://127.0.0.1:8080{{qidoBasePath}}" -r "patientID={{patientID}}" --query-ext "&includedefaults=false"
IID_STUDY_URL=weasis://$dicom:rs --url "http://127.0.0.1:8080{{qidoBasePath}}" -r "studyUID={{studyUID}}" --query-ext "&includedefaults=false"
IID_URL_TARGET=_selfHowever when we try to launch the study, we are getting the below error on the browser console:
Prepared URL: weasis://$dicom:rs --url "http://127.0.0.1:8080/dcm4chee-arc/aets/DCM4CHEE/rs" -r "patientID=556342B^^^DCM4CHEE.F7449213.0DA2E1E6" --query-ext "&includedefaults=false" main.bf03ee3da83f8c5d.js:3:1950025
ERROR DOMException: An invalid or illegal string was specified
openViewer http://127.0.0.1:8080/dcm4chee-arc/ui2/en/main.bf03ee3da83f8c5d.js:3
__tryOrUnsub http://127.0.0.1:8080/dcm4chee-arc/ui2/en/main.bf03ee3da83f8c5d.js:3
next http://127.0.0.1:8080/dcm4chee-arc/ui2/en/main.bf03ee3da83f8c5d.js:3
_next http://127.0.0.1:8080/dcm4chee-arc/ui2/en/main.bf03ee3da83f8c5d.js:3 We have also tried to change the properties with url encoding to as below, in which case there is no error in the browser console and the Weasis viewer opens, but the study is not getting loaded.
IID_PATIENT_URL=weasis://$dicom%3Ars --url "http://127.0.0.1:8080{{qidoBasePath}}" -r "patientID={{patientID}}" --query-ext "&includedefaults=false"IID_STUDY_URL=weasis://$dicom%3Ars --url "http://127.0.0.1:8080{{qidoBasePath}}" -r "studyUID={{studyUID}}" --query-ext "&includedefaults=false"
IID_URL_TARGET=_self
With the above properties, we see the below error in Weasis logs:
04.03.2025 21:01:58.119 *ERROR* [AWT-EventQueue-0] org.weasis.launcher.WeasisLauncher: Execute commandjava.lang.reflect.InvocationTargetException: null
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.weasis.launcher.WeasisLauncher.commandSessionExecute(WeasisLauncher.java:585)
Caused by: org.apache.felix.gogo.runtime.SyntaxError: bad expression: dicom%3Ars
at org.apache.felix.gogo.runtime.Expander.expandExp(Expander.java:922)
at org.apache.felix.gogo.runtime.Expander.doExpand(Expander.java:687)
at org.apache.felix.gogo.runtime.Expander.expand(Expander.java:120)
Can someone please help rectify the issue?