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

decryption not working on files in trashbin #16045

Closed
jknockaert opened this issue Jun 23, 2019 · 3 comments
Closed

decryption not working on files in trashbin #16045

jknockaert opened this issue Jun 23, 2019 · 3 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info stale Ticket or PR with no recent activity

Comments

@jknockaert
Copy link
Contributor

Running occ encryption:decrypt to decrypt files of a user results in the files in the trashbin not being decrypted.
Most likely this can be fixed together with #7284.
@nextcloud/encryption

@jknockaert jknockaert added bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Jun 23, 2019
@chainria
Copy link

chainria commented Jun 1, 2020

Actually, I simply went forward and in lib/private/Encryption/DecryptAll.php line 30 I added:

    $directories[] = '/' . $uid . '/files';
+   $directories[] = '/' . $uid . '/files_trashbin/files';

and it simply worked like a charm. I suspect because the directory structure is very similar, see https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/encryption_details.html#id6

This unfortunately does NOT fix #7284, which actually would be the more important thing (tried those as well). But maybe this can be of any help to someone? Also, maybe this should be merged into NC as well? I see no harm done at all. @nextcloud/encryption

Edit: btw, simply re-run decrypt-all and it will take care of your trashbin.

@szaimen
Copy link
Contributor

szaimen commented Jun 2, 2021

Is this Issue still valid? If not, please close this issue. Thanks! :)

@ghost
Copy link

ghost commented Jul 2, 2021

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

@ghost ghost added the stale Ticket or PR with no recent activity label Jul 2, 2021
@ghost ghost closed this as completed Jul 16, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug needs info stale Ticket or PR with no recent activity
Projects
None yet
Development

No branches or pull requests

3 participants