Project

General

Profile

Actions

Bug #939

closed

dcm2json/dcm2xml -nat (and library routines) produce invalid XML

Added by Michael Onken about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
High
Category:
Library and Apps
Target version:
Start date:
2020-08-06
Due date:
% Done:

100%

Estimated time:
1:00 h
Module:
dcmdata
Operating System:
Compiler:

Description

Report from forum user Shaeto forum message:

Method DcmPersonName::writeJson outputs incorrectly encoded data to the json document.
"Lexer" helper class does not encode characters and produces invalid json if patient name contains for example " (quotation mark)
imho Lexer::writeComponent must call something like DcmJsonFormat::printValueString.

Actions #1

Updated by Jörg Riesmeier about 5 years ago

  • Priority changed from Normal to High
  • Target version set to 3.6.6
Actions #2

Updated by Jörg Riesmeier about 5 years ago

The output of "dcm2xml --native-format" also seems to be affected (see forum posting).

Actions #3

Updated by Michael Onken about 5 years ago

  • Subject changed from dcm2json (and library routines) produces invalid JSON to dcm2json/dcm2xml -nat (and library routines) produce invalid XML
Actions #4

Updated by Marco Eichelberg about 5 years ago

  • % Done changed from 0 to 50
  • Estimated time set to 0:00 h

Json part of this bug fixed with commit #f817c890e.

Actions #5

Updated by Marco Eichelberg almost 5 years ago

  • % Done changed from 50 to 100
  • Estimated time changed from 0:00 h to 1:00 h

Closed by commit #194562e8a.

Actions #6

Updated by Marco Eichelberg almost 5 years ago

  • Status changed from New to Closed
  • Assignee set to Marco Eichelberg
Actions

Also available in: Atom PDF