Skip to content

fix(server): nil passive port range crashes passive transfers - #1845

Merged
fclairamb merged 4 commits into
mainfrom
feat/todos-2026-10-30
Oct 30, 2026
Merged

fclairamb merged 4 commits into
mainfrom
feat/todos-2026-10-30

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

Fixes the nil *PortRange stored in the settings interface when passive_transfer_port_range is not configured: ftpserverlib took the port-range path and panicked on every passive transfer (WinSCP error in the issue).

Closes #1825

🤖 Generated with Claude Code

Without `passive_transfer_port_range` in the config, every passive transfer failed (WinSCP: "value method
PortRange.NumberAttempts called using nil *PortRange pointer"). server/server.go:83 stored a nil *PortRange in the
PasvPortGetter interface, which made it non-nil, so ftpserverlib took the port-range path. The port range is now
declared as the interface. TestSettingsWithoutPassivePortRange failed before the fix.

Closes #1825

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fclairamb fclairamb added the frozen Batch PR under review: takes only its own fixes, new work goes to the next batch label Oct 30, 2026
@fclairamb
fclairamb marked this pull request as ready for review October 30, 2026 05:58
@fclairamb
fclairamb merged commit b7dbc33 into main Oct 30, 2026
8 checks passed
@fclairamb
fclairamb deleted the feat/todos-2026-10-30 branch October 30, 2026 05:59
fclairamb added a commit that referenced this pull request Oct 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.16.5](v0.16.4...v0.16.5)
(2026-10-30)


### Bug Fixes

* always check keycloak credentials, even on shared accesses
([#1848](#1848))
([9a24e42](9a24e42))
* **deps:** update github.com/fclairamb/ftpserverlib to v0.32.6
([#1850](#1850))
([ec4f71b](ec4f71b))
* **server:** nil passive port range crashes passive transfers
([#1845](#1845))
([b7dbc33](b7dbc33))
* **server:** random default password, mail upload limit, non-root
images, token file mode, pinned release action
([#1847](#1847))
([60645ff](60645ff))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Florent Clairambault <florent.clairambault@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autopilot frozen Batch PR under review: takes only its own fixes, new work goes to the next batch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ftpserver 0.16.3 may have a bug when used with Windows 10/11

1 participant