Steps to reproduce:
- Upload images and pdf's with a similar name. eg (mycat.png, category.jpg, cat1.pdf)
- Edit Page
- Insert Gallery
- Enter a term in the search box that matches a known image name and a known pdf filename. eg. cat
Expected result:
- 2 results with thumbnails for mycat.png and category.jpg
Actual Result:
No results returned
Ajax result contains message like 'Could not normalize image parameters for cat1.pdf'
If I change the search query to:
-filemime:pdf cat
I get results correctly.