Skip to content

GH-11560: Correct jcifs property keys in SmbSessionFactory - #11561

Open
pfosser wants to merge 1 commit into
spring-projects:mainfrom
pfosser:GH-11560
Open

pfosser wants to merge 1 commit into
spring-projects:mainfrom
pfosser:GH-11560

Conversation

@pfosser

@pfosser pfosser commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Fixes the jcfis property keys, changed in jcifs 3.0.0

…tory

Signed-off-by: Paolo Fosser <pfosser@libero.it>
props.setProperty("jcifs.smb.client.minVersion", this.getSmbMinVersion().name());
props.setProperty("jcifs.smb.client.maxVersion", this.getSmbMaxVersion().name());
props.setProperty("jcifs.client.minVersion", this.getSmbMinVersion().name());
props.setProperty("jcifs.client.maxVersion", this.getSmbMaxVersion().name());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From jCIFS itself:

        final String minVer = p.getProperty("jcifs.client.minVersion");
        final String maxVer = p.getProperty("jcifs.client.maxVersion");

I wish they had constants class on the matter instead of us trying to scan their source code for proper names...

But thank you anyway!
Will be merged next week.

@pfosser pfosser Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So do I, and wonder why on earth they don't. Perfect way to break client code.
Anyway I have to admit that Claude did that scan for me...

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants