Details
-
Bug
-
Resolution: Fixed
-
Low
-
2.3.3
-
None
-
None
Description
Crowd preallocates arrays of max-results at the start of LDAP queries unless the size is EntityQuery.ALL_RESULTS. If a client sends a huge value for this, to indicate that they don't care about batching, this will exhaust memory.
Switch to always allocating collections with their default sizes and growing them as necessary.
Attachments
Issue Links
- supersedes
-
CWD-2513 Handle "java.lang.OutOfMemoryError: Requested array size exceeds VM limit" with meaningful messages for the Admins
- Closed