Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1073

Collections with derived complex types - wrong odata.type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • (Java) V4 4.3.0
    • (Java) V4 4.4.0
    • odata4-client
    • None

    Description

      When you have a collection of complex types the client knows during serialization only the type of the collection. So when you have complex values of a derived type in the collection they get serialized incorrectly with a odata.type of the collection and not their own derived type.

      The problem is that during the serialization we only have a ComplexValue without type information. The ODataBinderImpl will transform a ClientValue which has correct type information to a ComplexValue without type information. The easiest solution would be propably to add type information to ComplexValue.

      Attachments

        1. Odata_types.diff
          58 kB
          Ramya

        Activity

          People

            chrisam Christian Amend
            frederik.zimmer Frederik Zimmer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: