Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable19] avoid fread on directories and unencrypted files #27405

Closed
wants to merge 7 commits into from

Conversation

backportbot-nextcloud[bot]
Copy link

backport of #24966

@solracsf
Copy link
Member

solracsf commented Jun 9, 2021

@jknockaert i've applied this patch, but i'm now having these errors:

fread(): read of 8192 bytes failed with errno=21 Is a directory at /lib/private/Files/Storage/Wrapper/Encryption.php#858

@jknockaert
Copy link
Contributor

@acsfer I'm no longer having any such errors after I disabled the encryption app.

@solracsf
Copy link
Member

solracsf commented Jun 9, 2021

Oh, ok, so this doens't fix these errors while encryption is enabled, right?

@jknockaert
Copy link
Contributor

@acsfer I wouldn't know if it (still) fixes any errors while encryption is enabled.

@blizzz blizzz mentioned this pull request Jun 23, 2021
2 tasks
@blizzz blizzz mentioned this pull request Jul 1, 2021
1 task
Jasper Knockaert added 7 commits July 1, 2021 11:44
Reworking the logic in order to first check the filecache and only then reading the fileheader.
This in order to solve #21578.
Signed-off-by: Jasper Knockaert jasper@knockaert.nl
@skjnldsv skjnldsv force-pushed the backport/24966/stable19 branch from 087d360 to 1c3fe81 Compare July 1, 2021 09:44
@ghost
Copy link

ghost commented Jul 3, 2021

@acsfer yes it dose fix the errors while encryption is enabled I tested it on vs 19, 20, 21

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dose fix the issue

@skjnldsv skjnldsv closed this Jul 5, 2021
@skjnldsv
Copy link
Member

skjnldsv commented Jul 5, 2021

19 is EOL, please upgrade to 20

@nextcloud nextcloud locked as resolved and limited conversation to collaborators Jul 5, 2021
@skjnldsv skjnldsv deleted the backport/24966/stable19 branch July 5, 2021 06:54
@MichaIng MichaIng removed this from the Nextcloud 19.0.13 milestone Sep 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants