Skip to content

Commit

Permalink
ODATA-1568 (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen authored Nov 15, 2023
1 parent 54b8a8b commit 114ef11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/odata-protocol/odata-protocol.html
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ <h2 id="94-error-response-body"><a name="ErrorResponseBody" href="#ErrorResponse
</ul>
<p>Service implementations SHOULD carefully consider which information to include in production environments to guard against potential security concerns around information disclosure.</p>
<h2 id="95-in-stream-errors"><a name="InStreamErrors" href="#InStreamErrors">9.5 In-Stream Errors</a></h2>
<p>In the case that the service encounters an error after sending a success status to the client, the service MUST leave the response malformed according to its <a href="#HeaderContentType"><code>Content-Type</code></a>. Clients MUST treat the entire response as being in error.</p>
<p>In the case that the service encounters an error after sending a success status to the client, the service MUST leave the response malformed according to its <a href="#HeaderContentType"><code>Content-Type</code></a> or abort the response by causing an error on transport protocol level. Clients MUST treat the entire response as being in error.</p>
<p>Services MAY include the header <a href="#HeaderODataError"><code>OData-Error</code></a> as a trailing header if supported by the transport protocol (e.g. HTTP/1.1 with chunked transfer encoding, or HTTP/2).</p>
<hr />
<h1 id="10-context-url"><a name="ContextURL" href="#ContextURL">10 Context URL</a></h1>
Expand Down
3 changes: 2 additions & 1 deletion docs/odata-protocol/odata-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,8 @@ concerns around information disclosure.

In the case that the service encounters an error after sending a success
status to the client, the service MUST leave the response malformed
according to its [`Content-Type`](#HeaderContentType). Clients MUST treat
according to its [`Content-Type`](#HeaderContentType) or abort the response by
causing an error on transport protocol level. Clients MUST treat
the entire response as being in error.

Services MAY include the header [`OData-Error`](#HeaderODataError) as a
Expand Down
3 changes: 2 additions & 1 deletion odata-protocol/8 Header Fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,8 @@ concerns around information disclosure.

In the case that the service encounters an error after sending a success
status to the client, the service MUST leave the response malformed
according to its [`Content-Type`](#HeaderContentType). Clients MUST treat
according to its [`Content-Type`](#HeaderContentType) or abort the response by
causing an error on transport protocol level. Clients MUST treat
the entire response as being in error.

Services MAY include the header [`OData-Error`](#HeaderODataError) as a
Expand Down

0 comments on commit 114ef11

Please sign in to comment.