[teiid-issues] [JBoss JIRA] (TEIID-4047) OData - $top with negative value return status code 500

Steven Hawkins (JIRA) issues at jboss.org
Mon Mar 14 09:17:00 EDT 2016


    [ https://issues.jboss.org/browse/TEIID-4047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13176090#comment-13176090 ] 

Steven Hawkins commented on TEIID-4047:
---------------------------------------

Almost all of the 500 returns of this sort are coming from TeiidServiceHandler catch (Exception) blocks.  The exceptions handled there would be something like SQLException - which we'll need to get at the root exception (TeiidProcessingException is a 4xx error, most others would be 5xx), TeiidProcessingException 4xx, and all others 5xx.  As was seen with the other issues we'll need to make sure the code is being consistently set on the odata error (both atom and json) as well to be the Teiid exception code when possible.

> OData - $top with negative value return status code 500
> -------------------------------------------------------
>
>                 Key: TEIID-4047
>                 URL: https://issues.jboss.org/browse/TEIID-4047
>             Project: Teiid
>          Issue Type: Sub-task
>          Components: OData
>            Reporter: Juraj Duráni
>            Assignee: Ramesh Reddy
>
> OData request with query option $top with negative value returns status code 500. The root cause is SQLException. OData service should check passed value and return e.g. 400 instead.
> *URL:* http://localhost:8080/odata4/olingo_basic/Source/Customers/?$top=-1
> See http://docs.oasis-open.org/odata/odata/v4.0/errata02/os/complete/part1-protocol/odata-v4.0-errata02-os-part1-protocol-complete.html#_Toc406398306



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the teiid-issues mailing list