[teiid-issues] [JBoss JIRA] (TEIID-4566) Use of $top without $filter in odata url query fails

Paul Richardson (JIRA) issues at jboss.org
Tue Nov 8 14:44:00 EST 2016


     [ https://issues.jboss.org/browse/TEIID-4566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Richardson updated TEIID-4566:
-----------------------------------
    Attachment: patient-vdb.xml


> Use of $top without $filter in odata url query fails
> ----------------------------------------------------
>
>                 Key: TEIID-4566
>                 URL: https://issues.jboss.org/browse/TEIID-4566
>             Project: Teiid
>          Issue Type: Bug
>          Components: OData
>    Affects Versions: 8.12.7.6_3
>            Reporter: Paul Richardson
>            Assignee: Steven Hawkins
>         Attachments: patient-vdb.xml, usstates-vdb.xml
>
>
> Have built teiid dv 6.3 distribution from git (d2642e58) and installed into eap.
> On deployment of vdb, odata url works correctly with most parameters. However, it returns 
> {code:xml}
> <error>
>   <code>null</code>
>   <message>Assertion failed.</message>
> </error>
> {code}
> for urls containing the $top=x parameter (where x is some number), eg.
> https://localhost:8443/odata4/usstates.1/USStates/SvcView?$top=10
> On the other hand, if I add a filter to the set of parameters, the top 10 is returned correctly, eg.
> https://localhost:8443/odata4/usstates.1/USStates/SvcView?$top=10&$filter=startswith(code,%27A%27)
> The stacktrace in the jb log can be found [here|https://gist.github.com/phantomjinx/b8fbc45329762daa9972b0fe77472f08].



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the teiid-issues mailing list