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

ludovicp
31.40.2010 ddedc0e2c6e3e32209f82d5d5a740a6b59ce5d63
Fix issue #4401 - SimplePage request control is now ignored if page size is >= the search size-limit
1 files modified
8 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/backends/jeb/EntryContainer.java 8 ●●●●● patch | view | raw | blame | history
opendj-sdk/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.