Skip to content

Opening files with VR OW errors over UNC path #777

@HengiFettlich

Description

@HengiFettlich

Describe the bug. What happened?

  1. Create UNC share with CT.dcm
  2. Open Weasis
  3. Drag&Drop file via UNC path into Weasis Viewport (i.e. \Hostname\Share\CT.dcm)
  4. Error message with log output

CT.dcm.zip

What version of Weasis are you running?

4.6.6

On which system the problem occurs?

Windows

Relevant log output

13.02.2026 13:36:27.525 *ERROR* [DicomModelLoader-1] org.weasis.dicom.codec.DicomMediaIO: Cannot read DICOM:java.lang.IllegalStateException: uri: file://Hostname/Share/CT.dcm?offset=2218&length=33536
	at org.dcm4che3.data.BulkData.getFile(BulkData.java:147)
	at org.dcm4che3.data.BulkData.openStream(BulkData.java:165)
	at org.dcm4che3.data.BulkData.toBytes(BulkData.java:193)

Additional contextual elements

Using dcmdump from dcm4che, dumping the file with UNC paths works normally. This seems like an edge case with unescaping the file URI.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions