[
https://issues.jboss.org/browse/TEIID-4042?page=com.atlassian.jira.plugin...
]
Ramesh Reddy commented on TEIID-4042:
-------------------------------------
The Text reads from spec as follows
"If the relationship terminates on a collection, the response MUST be the
format-specific representation of the collection of related entities. If no entities are
related, the response is the format-specific representation of an empty collection.
If the relationship terminates on a single entity, the response MUST be the
format-specific representation of the related single entity. If no entity is related, the
service returns 204 No Content
So, only in the case where the the relation ship produces a single entity, and when that
entity is not found it should return 204, the current 200 is correct per spec.
OData returns status code 200 insteda of 204 if there are no expanded
entities
-------------------------------------------------------------------------------
Key: TEIID-4042
URL:
https://issues.jboss.org/browse/TEIID-4042
Project: Teiid
Issue Type: Sub-task
Components: OData
Reporter: Juraj DurĂ¡ni
Assignee: Ramesh Reddy
Fix For: 9.0, 8.12.5
*URL:*
http://localhost:8080/odata4/olingo_basic/Source/Customers(4)/Orders_FK0
*Returned status code:* 200
*Expected:* 204 and empty body
See
http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-pr...
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)