Repository navigation
add migration script from old encryption to new one - #15445
Conversation
There was a problem hiding this comment.
Shouldnt this know the encryption module id since keys are stored in /files_encryption/OC_DEFAULT_MODULE/*.$keyid
There was a problem hiding this comment.
The id is used here when we create the new target location: https://github.com/owncloud/core/pull/15445/files#diff-edd4cc87f86b59eb64c8f85bf4de2ba7R184
The parameter contains the path to the old location.
f7ecb85 to
38cbf30
Compare
|
|
@DeepDiver1975 thoughts on his question? |
There was a problem hiding this comment.
It was you... It's a 1:1 copy from the old encryption where you created the command line tool 😄
|
From my POV a manual step is okay as long as we properly display this to the admin during/after upgrade. |
|
@th3fallen thanks for testing. The problem here is that the new encryption directly created the share-key and the recovery-key and write it to the database. That's OK in most cases but in case of a migration we have a conflict. We probably need a check if we are still in transition and hold the new encryption back as long as the migration isn't finished... I will have a look at it. |
eb82c21 to
9dd9c4c
Compare
|
@owncloud-bot retest this please |
9dd9c4c to
4300610
Compare
|
@owncloud-bot retest this please |
|
Refer to this link for build results (access rights to CI server needed): |
|
There are now two ways to upgrade from the old encryption. or The second message is shown if no external user back-end is enabled. In this case we can assume a reasonable small installation and let the user execute the migration from the web interface by clicking the "Start migration" button. Please review and test it... Thanks! |
|
Refer to this link for build results (access rights to CI server needed): |
|
needs rebase and still getting this |
There was a problem hiding this comment.
While at it: Shouldn't this not get properly indented?
|
I have a fix for the SFTP storage (it was specific for that one), so I will test upgrading with ext storage shares now. |
|
@schiesbn ok I'm done: I applied #15644 to be able to test with SFTP + shares. Files cannot be downloaded as recipients. Then I tried the same on stable8 and noticed that this never worked in the first place... so nothing from this PR. Raised as: #15645 The only remaining issue for this PR is #15445 (comment) |
dd6733e to
9e85796
Compare
|
@PVince81 public link shares should work now |
|
@owncloud-bot retest this please |
|
Tested public link migration, works now 👍 I hope you manage to fix the Oracle issue too. |
15ca10e to
771364d
Compare
|
@owncloud-bot retest this please |
771364d to
b636e4f
Compare
|
@owncloud-bot retest this please |
…ack-ends are enabled
…ero; result of floor needs to be casted to int in order to compare it with ->size
b636e4f to
9596650
Compare
|
@owncloud-bot retest this please |
|
The inspection completed: 12 new issues, 52 updated code elements |
|
Refer to this link for build results (access rights to CI server needed): |
|
need second reviewer @DeepDiver1975 @th3fallen |
|
🙌 Works for me 👍 |
add migration script from old encryption to new one

migration from the old encryption to the new one.
All test pass locally but still need manual testing.
Since encryption 2.0 is a new app the admin needs to manually enable the new encryption module in the app store and enable encryption in the admin settings.
There are two ways to upgrade from the old encryption.
The admin setting show you one of the following messages:
or
The second message is shown if no external user back-end is enabled. In this case we can assume a reasonable small installation and let the user execute the migration from the web interface by clicking the "Start migration" button.
If external user back-ends are enabled we expect a larger installation and a installation where the admin has access to the command line, in this case we recommend the occ tool
cc @th3fallen maybe you can give it a try?