[teiid-issues] [JBoss JIRA] (TEIID-4040) JSON representation of OData error does not contain error code.
Juraj Duráni (JIRA)
issues at jboss.org
Mon Mar 14 10:08:00 EDT 2016
[ https://issues.jboss.org/browse/TEIID-4040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juraj Duráni updated TEIID-4040:
--------------------------------
Description:
JSON:
*URL:* http://localhost:8080/odata4/olingo_basic/Source/SimpleTableView/?$filter=clobval%20eq%201&$format=json
*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=clobval%20eq%201&$format=xml
*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}
was:
JSON:
*URL:* http://localhost:8080/odata4/olingo_basic/Source/SimpleTableView/?$filter=clobval%20eq%201&$format=json
*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:
> JSON 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
>
> JSON:
> *URL:* http://localhost:8080/odata4/olingo_basic/Source/SimpleTableView/?$filter=clobval%20eq%201&$format=json
> *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=clobval%20eq%201&$format=xml
> *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}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the teiid-issues
mailing list