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

Content is returned as XML with Content-Type set to JSON

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • (Java) V4 4.4.0
    • None
    • odata4-server
    • None

    Description

      If I do a OData request passing Accept: application/json

      I get the result properly as JSON.

      I send Accept:application/json;odata=minimalmetadata;q=1.0

      I get a HTTP 406 error.

      I send Accept: application/json;odata=minimalmetadata;q=1.0,application/atomsvc+xml;q=0.8,application/atom+xml;q=0.8,application/xml;q=0.7,text/plain;q=0.7

      Then I get data back as XML (presumably because we don't support minimalmetadata for JSON), but the content type is application/json;odata=minimalmetadata.

      I found this issue while trying to use Excel to call an OData service, so these are Accept headers Excel construct.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            JPMoresmau JP Moresmau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: