[jboss-jira] [JBoss JIRA] (WFLY-1605) Jackson type info is lost in a GET request returning a collection of objects

Juergen Zimmermann (JIRA) jira-events at lists.jboss.org
Fri Jun 28 10:19:22 EDT 2013


     [ https://issues.jboss.org/browse/WFLY-1605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juergen Zimmermann updated WFLY-1605:
-------------------------------------

    Attachment: testcase-WFLY-1605.zip


The test class contains 2 test methods
1) The method "failure" tests the URL according to a GET method which returns a Response object (containing a list of objects) and fails because of the lost type info
2) The method "success" tests the URL according to a GET method which directly returns a list of objects
                
> Jackson type info is lost in a GET request returning a collection of objects
> ----------------------------------------------------------------------------
>
>                 Key: WFLY-1605
>                 URL: https://issues.jboss.org/browse/WFLY-1605
>             Project: WildFly
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 8.0.0.Alpha2
>            Reporter: Juergen Zimmermann
>            Assignee: Stuart Douglas
>         Attachments: testcase-WFLY-1605.zip
>
>
> I'm having a simple class hierarchy: an abstract class AbstractCustomer and 2 derived concrete classes.
> 1) When the GET request's method directly returns a list of objects of AbstractCustomer, then the mapping information is available (as defined with @JsonTypeInfo and @JsonSubTypes)
> 2) However, when the GET request's method returns a Response object encapsulating the same list (plus a link header), then the mapping information isn't sent to the client.
> I'll attach a testcase.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list