[teiid-issues] [JBoss JIRA] (TEIID-4047) OData - $top with negative value return status code 500
Juraj Duráni (JIRA)
issues at jboss.org
Thu Mar 10 01:03:00 EST 2016
[ https://issues.jboss.org/browse/TEIID-4047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174647#comment-13174647 ]
Juraj Duráni commented on TEIID-4047:
-------------------------------------
[~rareddy] In general 4xx codes mean that user made a mistake in the request. On the contrary 5xx codes mean that something is wrong with the server. Therefore if user sends invalid request ($top with negative value is the case) then server should notice user that something is wrong on his/her side not on the side of server.
> 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