View Issue Details

IDProjectCategoryView StatusLast Update
0003945Slicer4Core: MRMLpublic2020-03-04 11:58
Reportererikc Assigned Toalexy  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionSlicer 4.4.0 
Target VersionFixed in VersionSlicer 4.11.0 
Summary0003945: DICOM study description field with "&" in name (e.g. "CT Head&Neck") results in un-parseable scene.mrml file
Description

The protocol description in a CT scanner can have a name like “CT Stroke Protocol Head&Neck”. This makes it into the DICOM metadata as:
(0008,1030) StudyDescription “CT Stroke Protocol Head&Neck”

When this series is loaded into Slicer, it results in a node named, for example,
"CT Stroke Protocol Head&Neck (20150115)_SubjectHierarchy”

When the scene is saved to disk, this name is incorporated into an xml token.

Importantly, when this scene.mrml file is subsequently imported in order to restore one's work, nothing appears to happen. It appears that all work has been lost, but only because the "&" in the token results in a failed mrml read. A message like the following appears in the log:

   Error parsing XML in stream at line 42, column 71, byte index 13903: not well-formed (invalid token)

If the "&" were replace by "AND", the .mrml read would proceed normally.

Additional Information

This is a relatively minor issue with easy work-around once one knows about it, but it can be upsetting for slicer novices who find it impossible to save and restore work.

Thanks for considering this bug/feature!

TagsNo tags attached.

Activities

lassoan

lassoan

2020-03-04 11:58

developer   ~0016329

Fixed in recent preview releases (for example, Slicer-4.11.0-2020-03-01 - revision 28798).

Issue History

Date Modified Username Field Change
2015-01-26 15:13 erikc New Issue
2015-01-26 15:13 erikc Status new => assigned
2015-01-26 15:13 erikc Assigned To => alexy
2020-03-04 11:58 lassoan Status assigned => resolved
2020-03-04 11:58 lassoan Resolution open => fixed
2020-03-04 11:58 lassoan Fixed in Version => Slicer 4.11.0
2020-03-04 11:58 lassoan Note Added: 0016329