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


Paul Richardson created TEIID-4566:
--------------------------------------

             Summary: 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


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 only 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