You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "sarankumarbaskar (via GitHub)" <gi...@apache.org> on 2026/07/22 04:50:51 UTC
[PR] [NET-745] Clarify UnixFTPEntryParser trimLeadingSpaces in Javadoc [commons-net]
sarankumarbaskar opened a new pull request, #405:
URL: https://github.com/apache/commons-net/pull/405
UnixFTPEntryParser preserves leading spaces in filenames by default, since Unix filenames can legitimately start with spaces. However, some FTP servers (including IBM i / OS/400 returning Unix-style listings) pad the date column with extra spaces when showing a year instead of a time for older entries, causing filenames to have an unintended leading space.
This was reported on the dev mailing list and tracked as NET-745. The trimLeadingSpaces constructor option (added in 3.4) fixes it, but the class Javadoc did not mention this behavior or the workaround.
This PR adds a paragraph to the class Javadoc explaining the issue and pointing to the trimLeadingSpaces constructor.
Resolves [NET-745](https://issues.apache.org/jira/browse/NET-745).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [NET-745] Clarify UnixFTPEntryParser trimLeadingSpaces in Javadoc [commons-net]
Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory merged PR #405:
URL: https://github.com/apache/commons-net/pull/405
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org