[teiid-issues] [JBoss JIRA] (TEIID-4042) OData returns status code 200 insteda of 204 if there are no expanded entities
Ramesh Reddy (JIRA)
issues at jboss.org
Thu Apr 21 16:48:00 EDT 2016
[ https://issues.jboss.org/browse/TEIID-4042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13195466#comment-13195466 ]
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-protocol/odata-v4.0-errata02-os-part1-protocol-complete.html#_Toc406398311
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the teiid-issues
mailing list