You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Joshy Augustine <jo...@gmail.com> on 2014/08/13 19:51:03 UTC

Apache Chemistry 0.11 + alfresco 4.2 pagination question

Hi,

Apologies in advance if I am missing something obvious. I am encountering
the following situation in my test code.


ItemIterable<QueryResult> queryResult = session.query(complete_statement,
*false*,context);




queryResult.getTotalNumItems() // returns 3

queryResult.skipTo(0).getPage(2).getHasMoreItems() //returns *false*



Is it correct that the 3 rd line is returning false?


-- 
Cheers,
Joshy

Re: Apache Chemistry 0.11 + alfresco 4.2 pagination question

Posted by Joshy Augustine <jo...@gmail.com>.
Thanks Peter. I have posted a question to alfresco-technical-discussion
group.

Thanks,
Joshy



On Thu, Aug 14, 2014 at 4:13 PM, Peter Monks <pe...@alfresco.com>
wrote:

> G’day Joshy,
>
> Best to raise it on the alfresco-tech mailing list first (
> alfresco-technical-discussion@googlegroups.com<mailto:
> alfresco-technical-discussion@googlegroups.com>).
>
> Cheers,
> Peter
>

Re: Apache Chemistry 0.11 + alfresco 4.2 pagination question

Posted by Peter Monks <pe...@alfresco.com>.
G’day Joshy,

Best to raise it on the alfresco-tech mailing list first (alfresco-technical-discussion@googlegroups.com<ma...@googlegroups.com>).

Cheers,
Peter


On 2014-08-14, at 2:45 AM, Joshy Augustine <jo...@gmail.com>> wrote:

Thanks Florian.

You are right. The same code works fine in SharePoint. Do you know what is
the best way to report an Alfresco CMIS Issue?

Thanks,
Joshy


On Wed, Aug 13, 2014 at 7:12 PM, Florian Müller <fm...@apache.org>> wrote:

Hi Joshy,

That is likely a repository bug. The hasMoreItems flag should be true in
this case.


- Florian


Hi,

Apologies in advance if I am missing something obvious. I am encountering
the following situation in my test code.


ItemIterable<QueryResult> queryResult = session.query(complete_statement,
*false*,context);




queryResult.getTotalNumItems() // returns 3

queryResult.skipTo(0).getPage(2).getHasMoreItems() //returns *false*



Is it correct that the 3 rd line is returning false?






--
Cheers,
Josh


Re: Apache Chemistry 0.11 + alfresco 4.2 pagination question

Posted by Joshy Augustine <jo...@gmail.com>.
Thanks Florian.

You are right. The same code works fine in SharePoint. Do you know what is
the best way to report an Alfresco CMIS Issue?

Thanks,
Joshy


On Wed, Aug 13, 2014 at 7:12 PM, Florian Müller <fm...@apache.org> wrote:

> Hi Joshy,
>
> That is likely a repository bug. The hasMoreItems flag should be true in
> this case.
>
>
> - Florian
>
>
> > Hi,
> >
> > Apologies in advance if I am missing something obvious. I am encountering
> > the following situation in my test code.
> >
> >
> > ItemIterable<QueryResult> queryResult = session.query(complete_statement,
> > *false*,context);
> >
> >
> >
> >
> > queryResult.getTotalNumItems() // returns 3
> >
> > queryResult.skipTo(0).getPage(2).getHasMoreItems() //returns *false*
> >
> >
> >
> > Is it correct that the 3 rd line is returning false?
> >
> >
>



-- 
Cheers,
Josh

Re: Apache Chemistry 0.11 + alfresco 4.2 pagination question

Posted by Florian Müller <fm...@apache.org>.
Hi Joshy,

That is likely a repository bug. The hasMoreItems flag should be true in
this case.


- Florian


> Hi,
> 
> Apologies in advance if I am missing something obvious. I am encountering
> the following situation in my test code.
> 
> 
> ItemIterable<QueryResult> queryResult = session.query(complete_statement,
> *false*,context);
> 
> 
> 
> 
> queryResult.getTotalNumItems() // returns 3
> 
> queryResult.skipTo(0).getPage(2).getHasMoreItems() //returns *false*
> 
> 
> 
> Is it correct that the 3 rd line is returning false?
> 
>