There's an issue when using Spotlight together with vfs_catia, where things like ':' on disk on the server are being translated to '/' on the client (for mac), but when searching on the client, I get the filename with a ":" in it. The returned filenames should probably also be filtered trough the vfs_catia module somehow?
How to reproduce:
- Activate vfs_catia (I use `vfs objects = catia fruit streams_xattr acl_xattr` with default catia settings)
- create a folder in a shared folder on the server where Spotlight is enabled that contains a ':'. I created one with `mkdir -p /tank/fileshare/100004_Test\:4`
- On a Mac client, verify that you see '100004_Test/4' as filename on the share.
- On that Mac client, search for '100004'.
The search results will return '100004_Test:4', and not the '100004_Test/4' which is seen by the client.
I suspect more characters would cause issues, but this was our main cause of problems.
Small addition here, it's only the name in the search result that's wrong - on High Sierra at least, I can access this folder perfectly from within the search results, even though the name is wrong.
Yes, the paths of the Tracker search results should be translated through string_replace_allocate().