ios icon indicating copy to clipboard operation
ios copied to clipboard

Searching in Files does not work

Open jangelsb opened this issue 2 years ago • 5 comments

Please agree to the following

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

  1. Open Files
  2. Open / Unlock Vault
  3. Use Search functionality in Files
  4. 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"

3F1587A1-713E-477E-820D-A3AE0B1457A7 FD97858A-FF48-4D42-A805-D1F475E28632

Reproducibility

Always

Relevant Log Output

No response

Anything else?

No response

jangelsb avatar Mar 20 '22 04:03 jangelsb

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 avatar Mar 22 '22 12:03 tobihagemann

@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.

XxBlackHatxX avatar Jun 14 '22 12:06 XxBlackHatxX

There are two reasons why we currently do not support the search functionality:

  1. items appear in the search although the vault is locked

  2. 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.

phil1995 avatar Jun 14 '22 14:06 phil1995

feature request for (optional) file search! Highly appreciated! Thx

pin00b avatar Mar 05 '23 20:03 pin00b

Any progress on this issue? Just tested search on iOS and ran into this issue of no search results.

chrisbchrisb avatar Jan 16 '24 14:01 chrisbchrisb