Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable22] Fix encrypted version to 0 when finding unencrypted file #28603

Merged
merged 2 commits into from
Aug 27, 2021

Conversation

backportbot-nextcloud[bot]
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 <vincent@nextcloud.com>
This prevents side effects in tests by properly cleaning up
even with expected exceptions.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
@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.

3 participants