OCC scan failed because of few encrypted files
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 598
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I understand that the file scan is not able to work with encrypted files. Now I have a scenario where the main part of the files are not encrypted and a few of them are (due to changing the encryption, sharing and disabling the encryption).
Running ./occ maps:scan-photos processes the files until it locates the first file which is encrypted and then stops to continue the work:
In Encryption.php line 376:
Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.
I would like to suggest just to skip encrypted files and not crash the execution at all. Right now, the process is not able to end its work properly.
Opening the maps-app on Nextcloud tells me that the process isn't finished yet.
Also, is there a workaround for now?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing ./occ maps:scan-photos and inspect Encryption.php around line 376, then trace how the Maps scan handles that decryption error. Done means encrypted files are skipped, the remaining files continue processing, and the Maps app reports the scan as finished.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- backend, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100