Spotlight: FILTER in generated query doesn't handle nested directories with spaces

Mike M Pestorich mmpestorich at gmail.com
Sat Aug 20 07:00:19 UTC 2016


Hi Ralph,

Thank you for pointing me to your previous Netatalk commit. I’m not an experienced C programmer so it was extremely helpful. A patch is attached and after some testing, it seems to be working as expected.

Thanks!
Mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-rpc_server-Character-Encode-Spotlight-Queries.patch
Type: application/octet-stream
Size: 1681 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160820/b3be3bc1/0001-s3-rpc_server-Character-Encode-Spotlight-Queries.obj>
-------------- next part --------------

> On Aug 19, 2016, at 3:44 AM, Ralph Böhme <slow at samba.org> wrote:
> 
> Hi Mike,
> 
> On Fri, Aug 19, 2016 at 02:56:32AM -0700, Mike M Pestorich wrote:
>> I followed the directions at
>> https://wiki.samba.org/index.php/Spotlight
>> <https://wiki.samba.org/index.php/Spotlight> and at first glance
>> everything seemed to be working great. However I noticed that if I
>> run a search from within a nested directory that directory’s path
>> contains spaces the query always returns no results.
> 
> hm, guess we need a similar fix as the one I made in Netatalk some
> time ago:
> 
> <https://github.com/Netatalk/Netatalk/commit/90aa43d1eb75d62452dafa0c55ab8455c548c379>
> 
> Can you craft a patch based on this?
> 
> Cheerio!
> -slow



More information about the samba-technical mailing list