Repository navigation
always create a new instance of the encryption module - #15616
Conversation
There was a problem hiding this comment.
Maybe be more precise and say that the passed callback function must return an encryption module instance.
|
Steps: enable encryption, go to admin page directly, got this: |
449b7e1 to
803ea63
Compare
|
Moving file in and out of a shared folder as recipient works, which is what this PR fixes 👍 However while testing I found that if I move a file as owner into a share, the share keys aren't created for the recipients, raised here: #15619 |
803ea63 to
e7e72ac
Compare
|
@owncloud-bot retest this please |
|
Refer to this link for build results (access rights to CI server needed): Build result: FAILURE[...truncated 81 lines...] > git config --local --remove-section credential # timeout=10 > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10 > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10Fetching upstream changes from https://github.com/owncloud/core.gitusing GIT_SSH to set credentials using .gitcredentials to set credentials > git config --local credential.helper store --file=/tmp/git3550067960847430501.credentials # timeout=10 > git -c core.askpass=true fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git config --local --remove-section credential # timeout=10 > git rev-parse refs/remotes/origin/pr/15616/merge^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/pr/15616/merge^{commit} # timeout=10Checking out Revision c3d5f48196e47c588fda360b76577fe725bbc909 (refs/remotes/origin/pr/15616/merge) > git config core.sparsecheckout # timeout=10 > git checkout -f c3d5f48196e47c588fda360b76577fe725bbc909 > git rev-list c3d5f48196e47c588fda360b76577fe725bbc909 # timeout=10 > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveTriggering pull-request-analyser-ng-simple » SLAVEpull-request-analyser-ng-simple » SLAVE completed with result FAILURESetting status of e7e72ac to FAILURE with url https://ci.owncloud.org/job/pull-request-analyser-ng-simple/11526/ and message: Merged build finished.💣 Test FAILed. 💣 |
|
Unit tests fail (sqlite): |
e7e72ac to
bda1bbb
Compare
|
@owncloud-bot retest this please |
1 similar comment
|
@owncloud-bot retest this please |
|
Refer to this link for build results (access rights to CI server needed): |
|
need second reviewer @DeepDiver1975 @th3fallen @nickvergessen Thanks! |
|
needs rebase.... |
bda1bbb to
21e6643
Compare
|
rebased |
|
@owncloud-bot retest this please |
|
Refer to this link for build results (access rights to CI server needed): |
There was a problem hiding this comment.
You execute the callback, so IEncryptionModule is still correct
|
@owncloud-bot retest this please |
|
needs rebase - thx |
There was a problem hiding this comment.
return call_user_func($this->encryptionModules[$defaultModuleId]['callback']);
c787b38 to
c097e88
Compare
c097e88 to
7d4b1b5
Compare
|
The inspection completed: 2 new issues, 2 updated code elements |
|
@owncloud-bot retest this please |
|
👍 once jenkins goes green |
|
Refer to this link for build results (access rights to CI server needed): |
|
Greeeeen. Merging |
always create a new instance of the encryption module


make sure that we have two differnt instances of the encryption module if we do a stream_copy and read and write a encrypted stream at the same file. This was solved by regitsering a closure instead of a instance of the encryption module so that we can create a new instance on every getEncryptionModule() call.
cc @DeepDiver1975 @PVince81 @th3fallen