You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Chandan V.A (JIRA)" <ji...@apache.org> on 2015/10/24 10:09:27 UTC

[jira] [Assigned] (OLINGO-715) Skip Query Option not working with JPA extension

     [ https://issues.apache.org/jira/browse/OLINGO-715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chandan V.A reassigned OLINGO-715:
----------------------------------

    Assignee: Chandan V.A

> Skip Query Option not working with JPA extension
> ------------------------------------------------
>
>                 Key: OLINGO-715
>                 URL: https://issues.apache.org/jira/browse/OLINGO-715
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-jpa
>    Affects Versions: V2 2.0.3
>            Reporter: Prashanth
>            Assignee: Chandan V.A
>              Labels: olingo-jpa, skip
>
> Request with $skip alone is getting the empty result set.
> URI : http://localhost:8080/odata/odata.svc/Pages?$skip=1
> Actual : Above GET request is getting the response feed without any entries.
> Expected : It should fetch all the entries except first feed
> Technical RootCause Identified :
> JPAPage -> formulateTopSkip() is returning the TopSkip object with top=0  when there is a skip value without top passed in URI. Hence when skip=1 , then TopSkip is skip=1 and top=0 , which is resulting in empty result set in the response.
> Execution Flow : 
> JPAProcessorImpl : process(final GetEntitySetUriInfo uriParserResultView) -> 
> handlePaging(final Query query, final GetEntitySetUriInfo uriParserResultView) -> 
> JPAPage:build() -> 
> buildFromQuery() -> 
> formulateTopSkip()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)