[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:55:00 EST 2016


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

Paul Richardson commented on TEIID-4566:
----------------------------------------

Hey [~shawkins]

Have uploaded the usstates and patients vdbs that have displayed the problem, along with their accompanying drivers and connection definitions that are available in their respective zip archives.

Looked through all jiras before posting and none relate to this problem. I know it is not a problem in 8.12.4 since we are distributing komodo with this version. However, since 8.12.7 seems to be the product release, I thought it prudent to highlight since it appears to be some kind of regression.

A quick scan through gitk does not highlight anything that maybe related to this problem either but I may've missed something. Can checkout master and do a build/install/test/git-bisect to determine if is has been fixed if you like?

> 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-service.zip, patient-vdb.xml, USStates-service.zip, 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