OpenSearch/docs/reference/migration/migrate_6_0
Jay Modi 7520a107be Optionally require a valid content type for all rest requests with content (#22691)
This change adds a strict mode for xcontent parsing on the rest layer. The strict mode will be off by default for 5.x and in a separate commit will be enabled by default for 6.0. The strict mode, which can be enabled by setting `http.content_type.required: true` in 5.x, will require that all incoming rest requests have a valid and supported content type header before the request is dispatched. In the non-strict mode, the Content-Type header will be inspected and if it is not present or not valid, we will continue with auto detection of content like we have done previously.

The content type header is parsed to the matching XContentType value with the only exception being for plain text requests. This value is then passed on with the content bytes so that we can reduce the number of places where we need to auto-detect the content type.

As part of this, many transport requests and builders were updated to provide methods that
accepted the XContentType along with the bytes and the methods that would rely on auto-detection have been deprecated.

In the non-strict mode, deprecation warnings are issued whenever a request with body doesn't provide the Content-Type header.

See #19388
2017-02-02 14:07:13 -05:00
..
cat.asciidoc Remove 5.x references from cat API migration doc 2016-11-09 07:09:59 -05:00
cluster.asciidoc No longer allow cluster name in data path 2016-09-12 15:47:01 -06:00
docs.asciidoc No longer allow cluster name in data path 2016-09-12 15:47:01 -06:00
indices.asciidoc Add a deprecation notice to shadow replicas (#22647) 2017-01-18 12:28:09 +01:00
ingest.asciidoc Change type of ingest doc meta-data field 'TIMESTAMP' to `Date` (#22234) 2016-12-19 09:10:58 +01:00
mappings.asciidoc Make boolean conversion strict (#22200) 2017-01-19 07:59:18 +01:00
percolator.asciidoc percolator: remove deprecated percolate and mpercolate apis 2017-01-10 11:18:27 +01:00
plugins.asciidoc Merge branch 'pr/remove-azure-container-auto-creation' 2017-01-31 09:05:43 +01:00
rest.asciidoc Optionally require a valid content type for all rest requests with content (#22691) 2017-02-02 14:07:13 -05:00
scripting.asciidoc Remove groovy scripting language (#21607) 2016-11-22 19:24:12 -08:00
search.asciidoc Fixed bad asciidoc 2017-01-30 11:56:40 +01:00
settings.asciidoc Make boolean conversion strict (#22200) 2017-01-19 07:59:18 +01:00
stats.asciidoc Add information about the removal of store throttling to the migration guide. 2016-11-21 15:03:07 +01:00