Skip to content

GH-628: Fix reading directories with trailing blanks in the name#630

Merged
tomaswolf merged 1 commit into
apache:masterfrom
tomaswolf:gh-628
Nov 8, 2024
Merged

GH-628: Fix reading directories with trailing blanks in the name#630
tomaswolf merged 1 commit into
apache:masterfrom
tomaswolf:gh-628

Conversation

@tomaswolf
Copy link
Copy Markdown
Member

ValidateUtils.checkNotNullAndNotEmpty(String, ...) as a side-effect returns the trimmed string!

Add new methods ValidateUtils.hasContent(String, ...) that don't do so, and use that instead.

Fixes #628.

…he name

ValidateUtils.checkNotNullAndNotEmpty(String, ...) as a side-effect
returns the trimmed string!

Add new methods ValidateUtils.hasContent(String, ...) that don't do so,
and use that instead.
@tomaswolf tomaswolf merged commit 827e81e into apache:master Nov 8, 2024
@dadoonet
Copy link
Copy Markdown

dadoonet commented Nov 8, 2024

Thanks a lot!

@tomaswolf
Copy link
Copy Markdown
Member Author

tomaswolf commented Nov 8, 2024

Thank you; you're welcome. Caused by poor coding in ages-old code; one really wouldn't expect a method named "checkNotNullAndNotEmpty" to have such a side effect.

@dadoonet
Copy link
Copy Markdown

@tomaswolf Any idea of when you will most likely be releasing a new version?

@tomaswolf
Copy link
Copy Markdown
Member Author

Short answer: end of January or first half of February 2025, but that's my personal goal only.

Long answer:

We don't have a fixed release plan. There's no organization large enough backing this project that would provide reliable manpower for regular releases. It's all individual volunteer effort; releases being done by @gnodet, and before being published releases have to go through a review and voting phase by the MINA PMC. Even if Guillaume might have time to cut a 2.14.2 release now, I don't know if the other PMC members would have time to review it. I know that I am unlikely to have that time this month.

With my Eclipse developer hat on, I'd like to include a new release of Apache MINA sshd in JGit and in Eclipse for its next release (March 12, 2025). Which means I aim for a 2.15.0 release around end of January 2025. 2.15.0 should include PR #639 and it should be prepared to work with or without SecurityManager, which AFAIK will finally disappear in Java 24 (also March 2025).

This fix here is already available in the snaphot release from the Apache snapshots repository. As a stop-gap measure you might just use that.

@dadoonet
Copy link
Copy Markdown

Thanks! It's helpful.

it should be prepared to work with or without SecurityManager

Yeah. I'm sad this has been removed from the JVM. It was so useful for Elastic and that's how we did not suffer from the Log4Shell disaster...

@tomaswolf tomaswolf deleted the gh-628 branch April 25, 2025 15:34
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.

SSH_FX_NO_SUCH_FILE when reading a dir with a space character at the end

2 participants