Skip to content

[stable34] fix(RemoteService): remove redundant stream cleanup in convertFileTo()#5780

Open
backportbot[bot] wants to merge 1 commit into
stable34from
backport/5755/stable34
Open

[stable34] fix(RemoteService): remove redundant stream cleanup in convertFileTo()#5780
backportbot[bot] wants to merge 1 commit into
stable34from
backport/5755/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Jun 19, 2026

Copy link
Copy Markdown

Backport of PR #5755

The raw stream is handed to the Guzzle-based HTTP client as the
request body; Guzzle wraps it in a PSR-7 stream and closes the
underlying resource once the request has been sent. The fclose()
call in the finally block therefore always operates on an invalid
resource and logs a warning on every conversion (e.g. one per
generated preview).

Drop the try/finally block and rely on the HTTP client to close
the stream, as suggested in review.

Fixes #5743

Signed-off-by: Nicola Fabiano <nicola@nicfab.eu>
@backportbot backportbot Bot requested a review from elzody as a code owner June 19, 2026 09:29
@backportbot backportbot Bot requested a review from juliusknorr June 19, 2026 09:29
@backportbot backportbot Bot requested a review from juliusknorr as a code owner June 19, 2026 09:29
@backportbot backportbot Bot added the 3. to review Ready to be reviewed label Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant