You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the ContentHandlerAdapter to parse a valid NativeDicomModel XML string that contains a DicomAttribute of VR OB with an InlineBinary child node in Base64 encoding and a subsequent DicomAttribute with VR ST and no content, some binary content is being filled into the empty attribute.
To Reproduce
The following simplistic test reproduces the problem:
With dcm4che 5.22.0 the test fails as there is binary data in the supposedly empty second attribute.
Expected behavior
Attributes are parsed correctly and test succeeds.
Analysis
It seems the flag inlineBinary in ContentHandlerAdapter is not set to false in some cases. Adding an inlineBinary = false; to the end of endElement() for example makes the test succeed.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the
ContentHandlerAdapter
to parse a valid NativeDicomModel XML string that contains a DicomAttribute of VR OB with an InlineBinary child node in Base64 encoding and a subsequent DicomAttribute with VR ST and no content, some binary content is being filled into the empty attribute.To Reproduce
The following simplistic test reproduces the problem:
With dcm4che 5.22.0 the test fails as there is binary data in the supposedly empty second attribute.
Expected behavior
Attributes are parsed correctly and test succeeds.
Analysis
It seems the flag
inlineBinary
inContentHandlerAdapter
is not set to false in some cases. Adding aninlineBinary = false;
to the end ofendElement()
for example makes the test succeed.The text was updated successfully, but these errors were encountered: