Disable signature check if the file copy fails in encrypted file#34718
Disable signature check if the file copy fails in encrypted file#34718sharidas wants to merge 1 commit into
Conversation
|
Kindly let me know if this idea looks ok, thanks. |
82de3cd to
9e46e19
Compare
Codecov Report
@@ Coverage Diff @@
## master #34718 +/- ##
============================================
- Coverage 65.3% 65.26% -0.05%
- Complexity 18478 18494 +16
============================================
Files 1209 1210 +1
Lines 69964 70020 +56
Branches 1280 1280
============================================
+ Hits 45689 45697 +8
- Misses 23903 23951 +48
Partials 372 372
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #34718 +/- ##
============================================
- Coverage 65.3% 65.28% -0.02%
- Complexity 18479 18491 +12
============================================
Files 1209 1209
Lines 69970 70006 +36
Branches 1280 1280
============================================
+ Hits 45693 45704 +11
- Misses 23905 23930 +25
Partials 372 372
Continue to review full report at Codecov.
|
9e46e19 to
5ea5456
Compare
|
Added a comment at owncloud/encryption#106 (comment) |
Disable signature check if the file copy fails in the encrypted file, when files are transferred using transfer-ownership command. When the file is retried with disabled signature check and if the file is again hit with an exception the transfer ownership is stopped from execution. Signed-off-by: Sujith H <sharidasan@owncloud.com>
5ea5456 to
afcde27
Compare
|
Closing this PR in favour of owncloud/encryption#115 |
Disable signature check if the file copy fials in the encrypted
file, due to signature mismatch. The code has been adjusted
so that it would try by ignoring the signature mismatch. If the
code fails again, then it would throw the exception.
Signed-off-by: Sujith H sharidasan@owncloud.com
Description
Problem
When files are transferred using transfer ownership command, if there occurs to be a signature mismatch, in any of the encrypted files, the command fails. Idea used here is to use the flag at owncloud/encryption#106.
Idea used
Related Issue
Motivation and Context
Help transfer ownership command move ahead and process the transfer of file(s) and abort only when the copy of a file is failed twice ( with and without signature check).
How Has This Been Tested?
user1anduser2( make sure both users are logged in )user2create a foldertestand create 3 files insidetestfolder :a.txtb.txtbig.txta.txtandbig.txtas shown belowa.txtandbig.txtwill be mentioned in the console log and the oc log.Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: