[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:13:22 EDT 2013


Juergen Zimmermann created WFLY-1605:
----------------------------------------

             Summary: 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


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