Uh oh!
There was an error while loading. Please reload this page.
avoid fread on directories and unencrypted files - #24966
Conversation
Reworking the logic in order to first check the filecache and only then reading the fileheader. This in order to solve #21578.
jknockaert
commented
Jan 5, 2021
@nextcloud/encryption Pls review. Also check the discussion of the issue I posted in #21578. That said, I didn't yet find out why this function is evaluated very often for keyfiles. |
jknockaert
commented
Jan 5, 2021
Signed-off-by: Jasper Knockaert jasper@knockaert.nl |
jknockaert
commented
Jan 5, 2021
Can anyone help with the testing? It is my understanding that in the tests the call to the cache was never evaluated, so I guess that should somewhere be caught now that it comes first. |
jknockaert
commented
Jan 5, 2021
OK, with all checks passed now I think this one is ready for review. As for the |
AndyXheli
commented
Jan 7, 2021
@jknockaert I applied the below fix and im not getting the errors anymore |
RedKage
commented
Jan 16, 2021
I dont know what this is doing, nor am I a nextcloud maintainer. |
Signed-off-by: Jasper Knockaert jasper@knockaert.nl
jknockaert
commented
Jan 16, 2021
@RedKage Thanks; fixed. |
jknockaert
commented
Jan 16, 2021
@ChristophWurst Any suggestion who to invite for a review? |
jknockaert
commented
Jan 26, 2021
@nextcloud/encryption Can anyone review? This is a fairly minor patch that fixes errors with php7.4. It would be good to have it included in the next point release of nextcloud. |
moverduinsecov
commented
Jan 27, 2021
Have applied changes manually, and so far everything looks fine. |
jknockaert
commented
Feb 22, 2021
Can anyone review? This is a minor (and straightforward) patch that fixes errors with php7.4. It would be good to have it included in the next point release of nextcloud. |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
vitormattos
commented
Apr 3, 2021
If the test passes, what's wrong? :-) |
vitormattos
left a comment
There was a problem hiding this comment.
It seems to be ok, there seems to be no need to create new test scenarios.
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
jknockaert
commented
Apr 6, 2021
Thanks @vitormattos and @icewind1991 for the reviews. |
This comment has been minimized.
This comment has been minimized.
vitormattos
commented
Apr 8, 2021
It is in the same class but does not seem to be related to this pull request. Looking at the log quickly, without a thorough analysis, the method changed in this pull request is not in the callstack of the log you posted. |
This comment has been minimized.
This comment has been minimized.
vitormattos
commented
Apr 8, 2021
I suggest sending a new pull request solving this problem :) The solution is already described in the log, it is necessary to implement, check the impacts, review the unit tests to ensure they are ok and send the pull request. |
AndyXheli
commented
Apr 8, 2021
I just did! i tagged you in it so maybe we can have someone look at it quicker :) |
vitormattos
commented
Apr 8, 2021
You have opened an issue. Submit the pull request with the solution. The correction is simple, but it is necessary to check the impacts well. |
AndyXheli
commented
Apr 8, 2021
@vitormattos i would not know the solutions i don't code. maybe @jknockaert knows it but i dont |
jknockaert
commented
Apr 8, 2021
@axheli Pls tag me. I may have time to have a look at it over the weekend. |
vitormattos
commented
Apr 8, 2021
|
AndyXheli
commented
Apr 8, 2021
@jknockaert Thank you so much :) |
AndyXheli
commented
May 28, 2021
Still an issue on Nextcloud 21.0.2 @LukasReschke can we please add this fix ? |
solracsf
commented
Jun 6, 2021
/backport to stable21 |
solracsf
commented
Jun 6, 2021
/backport to stable20 |
solracsf
commented
Jun 6, 2021
/backport to stable19 |
AndyXheli
commented
Jul 2, 2021
Hello everyone is anybody willing to add this fix to the Next release 21.0.4 ? |

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