Update Encryption.php to fix issue #34599 "encrypted remote storage"#36546
Update Encryption.php to fix issue #34599 "encrypted remote storage"#36546micbar merged 2 commits intorelease-10.4.0from
Conversation
|
Various things related to notifications are failing when encryption is on (user and/or master key) https://drone.owncloud.com/owncloud/encryption/1026/114/16 - user key webUISharingNotifications and the same for master-key at https://drone.owncloud.com/owncloud/encryption/1026/89/16 https://drone.owncloud.com/owncloud/encryption/1026/61/14 - user key apiSharingNotifications and the same at https://drone.owncloud.com/owncloud/encryption/1026/36/14 - master key apiSharingNotifications |
Codecov Report
@@ Coverage Diff @@
## master #36546 +/- ##
============================================
+ Coverage 64.7% 64.7% +<.01%
- Complexity 19130 19133 +3
============================================
Files 1270 1270
Lines 74854 74863 +9
Branches 1327 1327
============================================
+ Hits 48434 48443 +9
Misses 26029 26029
Partials 391 391
Continue to review full report at Codecov.
|
ceb5898 to
3d3bde2
Compare
|
Rebased just now. After some changes to CI in encryption today, I will run encryption CI again against this... |
|
Hi @phil-davis do you have an update on this? |
3d3bde2 to
2486017
Compare
|
Rebased again just now. |
|
Seems that CI is failing with errors creating some images 😢 |
|
https://drone.owncloud.com/owncloud/core/22911/22/7 |
2486017 to
14998a1
Compare
|
I found the issue with CI - owncloud/encryption#166 (comment) - and actually all the tests pass fine with encryption enabled. |
14998a1 to
3b4e7cd
Compare
|
@micbar I added a changelog. From a QA point-of-view this does not break anything. Please get an appropriate person to do a final code review. then IMO this could be merged. |
micbar
left a comment
There was a problem hiding this comment.
Changelog title exceeds 80 chars.
Otherwise 👍
Update Encryption.php Update Encryption.php Update Encryption.php
3b4e7cd to
e681b10
Compare
fixed (I thought that the 80 char limit would be for the text after the |
|
@micbar CI has passed - ready for review again. |
Description
This is an updated rebase of PR #36179 with the commits squashed.
The commit still has @martink-p as author, so that will be good for giving proper credit to the author.
It adds a wrapper function to "stream_read" which reads (and checks) until the required block size is available or there is no remaining data.
Issue
Motivation and Context
This pull request fixes an issue with encrypted external WebDAV storage and was verified as a solution with nextcloud issue nextcloud/server#9792
How Has This Been Tested?
Text from #36179 :
Types of changes
Checklist: