FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Embedded LDAP SSL should not be enabled when its bundle is empty by leestana01 · Pull Request #50700 · spring-projects/spring-boot · GitHub

Embedded LDAP SSL should not be enabled when its bundle is empty - #50700

Closed
leestana01 wants to merge 1 commit into
spring-projects:mainfrom
leestana01:fix-ldap-ssl-empty-bundle
Closed

Embedded LDAP SSL should not be enabled when its bundle is empty#50700
leestana01 wants to merge 1 commit into
spring-projects:mainfrom
leestana01:fix-ldap-ssl-empty-bundle

Conversation

Copy link
Copy Markdown
Contributor

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.

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>
spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 5, 2026
snicoll self-assigned this Jun 6, 2026
snicoll added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 9, 2026
snicoll modified the milestones: 3.5.15, 4.1.0 Jun 9, 2026
snicoll pushed a commit that referenced this pull request Jun 9, 2026
See gh-50700

Signed-off-by: leestana01 <leestana01@naver.com>
snicoll closed this in e0a9ed9 Jun 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL