ios
ios copied to clipboard
Searching in Files does not work
Please agree to the following
- [X] I have searched existing issues for duplicates
- [X] I agree to follow this project's Code of Conduct
Summary
Searching in Files does not work
System Setup
- iOS: iPadOS 15.2
- Cryptomator: 2.1.3 (844)
Cloud Type
iCloud Drive
Steps to Reproduce
- Open Files
- Open / Unlock Vault
- Use Search functionality in Files
- Tap on the "Cryptomator" tab (or subdirectory name) in the segmented control
Expected Behavior
Items should be filtered and shown
Actual Behavior
The Files app always says "No Results"
Reproducibility
Always
Relevant Log Output
No response
Anything else?
No response
This is an unfortunate case of "it is how it is". As far as I know, the File Provider extension doesn't offer any API for "search". Maybe Apple expects things to work "automagically" via working sets but we've disabled it for security reasons, see #153.
@tobihagemann Could you explain a little bit more what the security risk is of the working set being enabled? Is it only because the encrypted files show up in the search?
If that is the only reason could you implement a toggle in the app that only allows you to enable search but only when you have the unlock duration set to indefinite. If search is disabled it will work as it currently does. But when the search is enabled it does not evict the working set which would allow searching. There should be a message under the toggle explaining the security risks.
There are two reasons why we currently do not support the search functionality:
-
items appear in the search although the vault is locked
-
it is not possible to intercept the searches (neither in the Files app nor in the global Siri search). Therefore, it would only be possible to show the already cached items in the search (by using the working set).
However, we could actually provide a limited search (as described in 2.) that the user can optionally enable. In this case, as @XxBlackHatxX already correctly mentioned, we should inform the user about the implication regarding local security, as well as the limitation of the search function.
feature request for (optional) file search! Highly appreciated! Thx
Any progress on this issue? Just tested search on iOS and ran into this issue of no search results.