Uploaded image for project: 'Teiid Spring Boot'
  1. Teiid Spring Boot
  2. TEIIDSB-134

OData 2 source fails with default headers

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0
    • 1.2.0
    • core, OData
    • None
    • 1
    • Low

      The translator sets the content type by default: https://github.com/teiid/teiid/blob/06b9828a3fd6dafa358ff93f0a4803e69a3bfdf4/connectors/odata/translator-odata/src/main/java/org/teiid/translator/odata/BaseQueryExecution.java#L227

      This seems to be handled differently by CXF and spring webservice sources. A user is reporting that a simple request (without a payload) succeeds with CXF, but fails with spring.

      the translator throw org.springframework.web.client.HttpClientErrorException$UnsupportedMediaType: 415 Unsupported Media Type by executing Query, for example "Select * from categories", by jdbc client such as SQuirrel.

              rhn-engineering-shawkins Steven Hawkins
              rhn-engineering-shawkins Steven Hawkins
              Archiver:
              rhn-support-adandapa Aitik Dandapat (Inactive)

                Created:
                Updated:
                Resolved:
                Archived:

                  Estimated:
                  Original Estimate - 3 hours
                  3h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 30 minutes Time Not Required
                  2h 30m