JSON serializer should disallow mixed JDM/XDM

Bug #918151 reported by Chris Hillery
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Critical
Ghislain Fourny

Bug Description

Based on the first item in the sequence being serialized, the default serializer (currently xml_emitter) should either output only JSON items, or only XDM items. It should raise an error if a mixed sequence is detected. It should also suppress the XML version declaration for JSON sequences.

Ideally there would be some internally flag (or possibly an alternate serialization method, eg. -z method=mixed) to allow serialization of mixed sequences for testing purposes, even though such output would be neither valid XML nor valid JSON.

Related branches

Chris Hillery (ceejatec)
Changed in zorba:
milestone: none → 3.0
importance: Undecided → Medium
assignee: nobody → Chris Hillery (ceejatec)
status: New → Triaged
Changed in zorba:
assignee: Chris Hillery (ceejatec) → Ghislain Fourny (gislenius)
status: Triaged → New
importance: Medium → Critical
milestone: none → 2.7
Revision history for this message
Chris Hillery (ceejatec) wrote :

I believe this is actually all completed, although it may not have associated test cases. I also can't remember whether I implemented the "mixed" override flag or not, although I don't think so.

Changed in zorba:
status: New → In Progress
Changed in zorba:
status: In Progress → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
milestone: 2.7 → 2.6
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.