Fix subfolders in encrypted folders - #17608
daniele-verducci wants to merge 5 commits into
Conversation
|
APK file: https://github.com/nextcloud/android/actions/runs/34505348733/artifacts/10163844801 |
|
master-IT test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/17608-IT-master-17-26 |
5da4dab to
531efbc
Compare
📱 QA build
The QA build installs alongside a released Nextcloud app, so you can keep Downloading the file requires a GitHub account, so open this link on the |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
531efbc to
0f71ff1
Compare
alperozturk96
left a comment
There was a problem hiding this comment.
Could you please share the crash-log and explain your approach?
|
|
||
| return try { | ||
| EncryptionUtils.decryptStringAsymmetricV2(user.encryptedMetadataKey, privateKey) | ||
| EncryptionUtils.decryptStringAsymmetricV2(user.decryptedMetadataKey, privateKey) |
There was a problem hiding this comment.
Why we are trying to decrypt the decrypted metadata key here?
There was a problem hiding this comment.
I see, this doesn't make sense. The result is not used, so I believe this call in the previous code was used to throw an exception if the key isn't valid. Is it a correct interpretation?
In that case, maybe I can get directly the key with retrieveTopMostMetadataKey(). It should throw an exception as well.
But then should I verify the key in any way?
Hey Alper, here's the crashlog: This happens when opening a subfolder on an encrypted folder. The crash is caused by the users array being empty/null (the user is used to retrieve the key). I can say it works, but I'm not sure it's the correct fix. What do you think about it? |
0f71ff1 to
7bdb3c3
Compare
|
@alperozturk96 Can you check last commit? Could it be a solution? |
|
blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed. |
7bdb3c3 to
3d34758
Compare
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
…etrieval function) Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com> Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
This reverts commit 7bdb3c3. Signed-off-by: daniele-verducci <daniele.verducci@nextcloud.com>
3d34758 to
d374ffa
Compare
|
Completed, but do not merge until the encrypted folder tests are implemented (in a separate PR). |

How to repro:
How to repro 2:
🏁 Checklist
/backport to stable-xx.x🤖 AI (if applicable)