You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Prashanth (JIRA)" <ji...@apache.org> on 2015/06/25 14:11:04 UTC
[jira] [Updated] (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 ]
Prashanth updated OLINGO-715:
-----------------------------
Description:
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()
was:
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.
> 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
> 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)