Skip to content

[stable35] fix(files_external): reset EOF when seeking in SFTPReadStream - #66166

Open
backportbot[bot] wants to merge 1 commit into
stable35from
backport/66002/stable35
Open

backportbot[bot] wants to merge 1 commit into
stable35from
backport/66002/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 3, 2026

Copy link
Copy Markdown

Backport of PR #66002

Once a read reached the end of the remote file, the eof flag stayed set
after a seek, and every later read returned an empty string. The movie
preview reads the moov atom at the end of a video and then copies the
file from the start, so the sparse file was all zeros and ffmpeg failed.

Fixes #66001

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tiago Carrondo <tiago@carrondo.pt>
@backportbot
backportbot Bot requested review from provokateurin and susnux November 3, 2026 07:01
@backportbot
backportbot Bot requested a review from a team as a code owner November 3, 2026 07:01
@backportbot
backportbot Bot removed the request for review from a team November 3, 2026 07:01
@backportbot backportbot Bot added this to the Nextcloud 35.0.3 milestone Nov 3, 2026

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants