[OS-JIRA] Created: (CAY-409) XMLEncoder drops synthetic root for singleton collections

From: jira-norepl..bjectstyle.org
Date: Thu Dec 15 2005 - 17:01:46 EST

  • Next message: Cris Daniluk: "Re: XMLEncoder behavior"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-409

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-409
        Summary: XMLEncoder drops synthetic root for singleton collections
           Type: Bug

         Status: Assigned
       Priority: Major

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Versions:
                 1.2 [DEV]

       Assignee: Andrus Adamchik
       Reporter: Cris Daniluk

        Created: Thu, 15 Dec 2005 5:01 PM
        Updated: Thu, 15 Dec 2005 5:01 PM

    Description:
    Currently, the XMLEncoder is set to ignore the synthetic root if only one node is returned. Thus, singleton lists are returned without the root. This is inconsistent, because a query could return different XML structures depending on the data.

    A patch is attached which still ignores the synthetic root if a data object is passed directly, but includes it if a Collection is encoded, regardless of size.

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Thu Dec 15 2005 - 17:01:47 EST