You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Riccardo Mariani (JIRA)" <ji...@apache.org> on 2016/07/09 06:12:10 UTC

[jira] [Created] (OLINGO-977) Missing call "writer.writeStartDocument" in ODataXmlSerializer.complexCollection()

Riccardo Mariani created OLINGO-977:
---------------------------------------

             Summary: Missing call "writer.writeStartDocument" in ODataXmlSerializer.complexCollection()
                 Key: OLINGO-977
                 URL: https://issues.apache.org/jira/browse/OLINGO-977
             Project: Olingo
          Issue Type: Bug
          Components: odata4-server
    Affects Versions: (Java) V4 4.2.0
            Reporter: Riccardo Mariani
            Priority: Minor


The ODataXmlSerializer component does not call writer.writeStartDocument(DEFAULT_CHARSET, "1.0"); in complexCollection() method.
The fix
{code}
  XMLStreamWriter writer = XMLOutputFactory.newInstance().createXMLStreamWriter(outputStream, DEFAULT_CHARSET);
++ writer.writeStartDocument(DEFAULT_CHARSET, "1.0");
writer.writeStartElement(METADATA, Constants.VALUE, NS_METADATA);
{code}
Moreover maybe we should add a test to verify the xml format of value returned by all methods in the ODataXmlSerializer.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)