Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

tomaswolf
Copy link
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
7 checks passed
@dadoonet
Copy link

dadoonet commented Nov 8, 2024

Thanks a lot!

@tomaswolf
Copy link
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.

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