Bug 1316500

Summary: OData - Request entity which does not exist return 204 instead of 404
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Juraj Duráni <jdurani>
Component: TeiidAssignee: Van Halbert <vhalbert>
Status: CLOSED CURRENTRELEASE QA Contact: Juraj Duráni <jdurani>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: aszczucz, blafond, jolee, mbaluch, thauser, vhalbert
Target Milestone: ER2   
Target Release: 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-24 11:39:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Juraj Duráni 2016-03-10 11:16:51 UTC
Description of problem:
If entity with requested ID does not exist, OData service should return 404 but Teiid returns 204.

*URL:* http://localhost:8080/odata4/olingo_basic/Source/SimpleTableView(-2)

Moreover, if users define also property in the URL, Teiid returns 404, but body is neither in XML nor in JSON format (seems like generic EAP error page).

*URL:* http://localhost:8080/odata4/olingo_basic/Source/SimpleTableView(-2)/intkey

See http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/odata-v4.0-errata02-os-part1-protocol-complete.html#_Toc406398293

Comment 1 JBoss JIRA Server 2016-03-11 14:04:20 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-4058 to Resolved

Comment 2 Juraj Duráni 2016-05-25 13:20:47 UTC
Teiid returns 404 if entity does not exist. Verified.

Regarding generic EAP error page - this is separate issue.