Skip to content

Conversation

@liamdemafelix
Copy link

@liamdemafelix liamdemafelix commented May 29, 2021

The logs are spammed with fclose() not being able to close a non-resource:

image

This happens for every file. This pull request aims to check if a source is a valid resource before fclose()-ing, otherwise it silently returns true to avoid breaking compatibility.

This occurs when the primary storage backend is S3/S3-compatible. Probably also happens in non-standard backends (Openstack, etc.) but wasn't tested.

This has been tested to work on my setup:

  • Nextcloud 21.0.2
  • PHP 7.4
  • Deployed through the linuxserver/nextcloud Docker image
  • Primary Object Storage: S3 (Wasabi)

@skjnldsv skjnldsv requested review from blizzz and icewind1991 May 29, 2021 07:15
@skjnldsv skjnldsv added 3. to review Waiting for reviews bug labels May 29, 2021
@skjnldsv skjnldsv added this to the Nextcloud 22 milestone May 29, 2021
@blizzz blizzz mentioned this pull request Jun 2, 2021
57 tasks
@MorrisJobke MorrisJobke mentioned this pull request Jun 10, 2021
59 tasks
This was referenced Jun 16, 2021
@blizzz blizzz modified the milestones: Nextcloud 22, Nextcloud 23 Jun 24, 2021
@skjnldsv skjnldsv mentioned this pull request Oct 13, 2021
@skjnldsv
Copy link
Member

Fixed upstream already

@skjnldsv skjnldsv closed this Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants