Bug 1316484 - OData - $top with negative value return status code 500
Summary: OData - $top with negative value return status code 500
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Teiid
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER2
: 6.3.0
Assignee: Van Halbert
QA Contact: Juraj Duráni
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-10 11:02 UTC by Juraj Duráni
Modified: 2016-08-24 11:36 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-08-24 11:36:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIID-4047 0 Major Closed OData - $top with negative value return status code 500 2018-06-25 03:46:45 UTC

Description Juraj Duráni 2016-03-10 11:02:03 UTC
Description of problem:
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

Comment 1 JBoss JIRA Server 2016-03-14 13:07:19 UTC
Ramesh Reddy <rareddy> updated the status of jira TEIID-4047 to Coding In Progress

Comment 2 JBoss JIRA Server 2016-03-17 14:17:28 UTC
Ramesh Reddy <rareddy> updated the status of jira TEIID-4047 to Resolved

Comment 3 Juraj Duráni 2016-05-25 13:17:40 UTC
Teiid returns reasonable error message. Verified.

Comment 4 JBoss JIRA Server 2016-06-15 12:36:06 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-4047 to Closed


Note You need to log in before you can comment on or make changes to this bug.