Skip to content

Conversation

@backportbot-nextcloud
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented Aug 26, 2021

⚠️ This backport had conflicts and is incomplete ⚠️

backport of #28373

Whenever the command is run and a "legacy cipher" seems to be detected
when the legacy option is disabled, it's highly likely that the file is
actually unencrypted but the database contains a encrypted version
higher than 0 for some reason.

The command now detects this case and automatically sets the encrypted
version to 0 so that the file can be read again.

Signed-off-by: Vincent Petry <[email protected]>
This prevents side effects in tests by properly cleaning up
even with expected exceptions.

Signed-off-by: Vincent Petry <[email protected]>
@PVince81 PVince81 force-pushed the backport/28373/stable22 branch from 56db3ef to eada9ea Compare August 26, 2021 12:18
@PVince81
Copy link
Member

conflicts solved, it was in the use statements

@PVince81 PVince81 self-assigned this Aug 26, 2021
@PVince81 PVince81 added the 3. to review Waiting for reviews label Aug 26, 2021
@MichaIng
Copy link
Member

Failed test unrelated:

1) Test\Files\ObjectStore\AzureTest::testCopy
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'foobar'
+'Path or Http-Method does not match any emulated command.\n
+Possible causes include\n
+  - missing account name path parameter\n
+  - Unsupported Http-Method on resource\n
+  - Unsupported / Not implemented "comp" query parameter on resource'

/drone/src/tests/lib/Files/ObjectStore/ObjectStoreTest.php:125

@PVince81 PVince81 merged commit 389123a into stable22 Aug 27, 2021
@PVince81 PVince81 deleted the backport/28373/stable22 branch August 27, 2021 06:13
@PVince81
Copy link
Member

thanks a lot for the reviews and merges @MichaIng

@blizzz blizzz mentioned this pull request Sep 23, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants