You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fg...@apache.org on 2010/04/01 19:05:07 UTC
svn commit: r930044 -
/incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISQueryFeed.java
Author: fguillaume
Date: Thu Apr 1 17:05:06 2010
New Revision: 930044
URL: http://svn.apache.org/viewvc?rev=930044&view=rev
Log:
CMIS-188: pass correct maxItems when generating AtomPub feed
Modified:
incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISQueryFeed.java
Modified: incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISQueryFeed.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISQueryFeed.java?rev=930044&r1=930043&r2=930044&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISQueryFeed.java (original)
+++ incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISQueryFeed.java Thu Apr 1 17:05:06 2010
@@ -14,6 +14,7 @@
* Authors:
* Florent Guillaume, Nuxeo
* Amelie Avramo, EntropySoft
+ * Michael Durig, Day
*/
package org.apache.chemistry.atompub.server;
@@ -153,7 +154,7 @@ public class CMISQueryFeed extends CMISO
throws ResponseContextException {
SPI spi = getSPI(request);
try {
- Paging paging = new Paging(maxItems, skipCount);
+ Paging paging = new Paging(maxItems == -1 ? 0 : maxItems, skipCount);
Inclusion inclusion = new Inclusion(null, renditions,
relationships, allowableActions, policies, acls);
ListPage<ObjectEntry> results = spi.query(statement,