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

copilot-swe-agent[bot]
yesterday 4ea22f76016a4ec21f6b46a2144629de4adeb026
refs
author copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Monday, March 30, 2026 11:32 +0200
committer copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Monday, March 30, 2026 11:32 +0200
commit4ea22f76016a4ec21f6b46a2144629de4adeb026
tree 39a100942abdf41f919ffaa5ea08e6893e89e2c0 tree | zip | gz
parent 1e758e22ded5b674021ddd102d31f65b48168d9a view | diff
Fix server crash when File-Based Debug Logger is enabled

When the debug logger is enabled, LoggerConfigManager sets root JUL level
to FINEST which makes Grizzly's DefaultFilterChain.executeFilter() check
isLoggable(FINEST)=true and log the FilterChainContext object.

In Grizzly 3.0.1, FilterChainContext.toString() has a bytecode bug where
it does a checkcast to char[] on the message field. When the message is
a LdapResponseMessage, the cast fails with ClassCastException that
propagates through the RxJava pipeline causing a server crash.

Fix: Limit org.glassfish.grizzly JUL logging to FINE level so that
isLoggable(FINEST) returns false, preventing the broken code path.

Also add toString() to LdapResponseMessage for better diagnostics.

Agent-Logs-Url: https://github.com/OpenIdentityPlatform/OpenDJ/sessions/73a4bf17-653a-4ea6-b379-6a220c9059db

Co-authored-by: vharseko <6818498+vharseko@users.noreply.github.com>
2 files modified
14 ■■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/spi/LdapMessages.java 7 ●●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/core/LoggerConfigManager.java 7 ●●●● diff | view | raw | blame | history