]
RH Bugzilla Integration commented on TEIID-4040:
------------------------------------------------
Juraj Duráni <jdurani(a)redhat.com> changed the Status of [bug
Representation of OData error does not contain error code.
----------------------------------------------------------
Key: TEIID-4040
URL:
https://issues.jboss.org/browse/TEIID-4040
Project: Teiid
Issue Type: Sub-task
Components: OData
Reporter: Juraj Duráni
Assignee: Ramesh Reddy
Fix For: 9.0, 8.12.5
JSON:
*URL:*
http://localhost:8080/odata4/olingo_basic/Source/SimpleTableView/?$filter...
*Actual result:*
\{"error":\{"code":null,"message":"TEIID30492
Non-comparable expression of type object cannot be used in comparison: g4.clobval =
?."\}\}
*Expected result:* "code":30492
XML (in this case OData returns HTTP status code instead of error code):
*URL:*
http://localhost:8080/odata4/olingo_basic/Source/SimpleTableView/?$filter...
*Result:*
{code:xml}
<error>
<code>500</code>
<message>TEIID30492 Non-comparable expression of type object cannot be used in
comparison: g1.clobval = ?.</message>
</error>
{code}
*Expected result:*
{code:xml}<code>:30492</code>{code}