| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
EmbeddedLdapProperties.Ssl.isEnabled() derived enablement from this.bundle != null, so it returned true even when the bundle was overridden to an empty string. Use StringUtils.hasText(this.bundle) to align with the other SSL properties classes (Cassandra, Couchbase, MongoDB, Redis, RabbitMQ) and the documented "enabled automatically if 'bundle' is provided" behavior. Signed-off-by: leestana01 <leestana01@naver.com>
See gh-50700 Signed-off-by: leestana01 <leestana01@naver.com>
| Back | FazBrowse Home | New Git URL |
EmbeddedLdapProperties.Ssl.isEnabled() derives enablement from this.bundle != null, so it returns true even when the bundle is overridden to an empty string.
This was harmonized for the other SSL properties classes in #50624 (Cassandra, MongoDB, Redis, Mail), and Couchbase/RabbitMQ already used StringUtils.hasText(...), but EmbeddedLdapProperties was missed. This aligns it with those classes and with its own Javadoc ("Enabled automatically if 'bundle' is provided").
Note: EmbeddedLdapAutoConfiguration additionally guards the bundle with StringUtils.hasLength(...), so this corrects the property's contract rather than changing the end-to-end auto-configuration behaviour.