mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ludovicp
31.40.2010 c053859c3b69e9e334586396fc5cbb518c5281af
Fix issue #4401 - SimplePage request control is now ignored if page size is >= the search size-limit
1 files modified
8 ■■■■■ changed files
opends/src/server/org/opends/server/backends/jeb/EntryContainer.java 8 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/EntryContainer.java
@@ -910,6 +910,14 @@
        searchOperation.getResponseControls().add(control);
        return;
      }
      if (searchOperation.getSizeLimit() > 0 &&
        pageRequest.getSize() >= searchOperation.getSizeLimit())
      {
        // The RFC says : "If the page size is greater than or equal to the
        // sizeLimit value, the server should ignore the control as the
        // request can be satisfied in a single page"
        pageRequest = null;
      }
    }
    // Handle base-object search first.