-
-
Notifications
You must be signed in to change notification settings - Fork 102
Description
Description of environment:
Nextcloud 18.0.2, Maps 0.1.6
shared folder between two users. Encryption is enabled, master key / recovery key is enabled.
steps to reproduce
User1 uploads a file/picture.
All three keys (user1, user2, recovery) are being created for an uploaded file/picture.
BackgroundJob exits with following error:
Error | core | OC\Encryption\Exceptions\DecryptionFailedException: Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.
in details I can see, that the BackgroundJob seems to try to open the file/picture with the key of user2 instead of using the recoveryKey or the uploading user1:
/apps2/maps/lib/BackgroundJob/AddPhotoJob.php - line 56: OCA\Maps\Service\PhotofilesService->addPhotoNow(OC\Files\Node\File {}, "user2")
Conclusion
I am not sure if this is an error or is intended. But those pictures are not being shown on the map.
If it would be possible for the BackgroundJob to use the recoveryKey for this, would be awsome.
Alternatively have an option to scan/index the files on the file while the user-session is still live and use user1 key?