Loading...
 
Skip to main content

Search file name from top file gallery doesn't find it when it is in child

Status
Open
Subject
Search file name from top file gallery doesn't find it when it is in child
Version
20.x
21.x
Category
  • Error
  • Less than 30-minutes fix
Feature
File Gallery (elFinder or standard UI)
Resolution status
New
Submitted by
Xavier de Pedro
Lastmod by
Xavier de Pedro
Rating
(0)
Description

At the File Gal UI, when you search for a file name (search string "foo", file name "my foo file") you get no results if the file is in a child file galery and not in the top one (file gal 1).

If you go to the child file gallery, and search again, you will find the file. But the problem is in production sites, with many files in many file galleries, and someone wants to replace a file with a new version of that file, you need to find where that file is, and most users look for file name strings in the search box to find files in the File Gallery UI (new users don't search for file id, which would work, but that is another story).

If you search the same string in the tiki search module (using unified search index) against object type "files", then you find that file with no problems.

So apparently, the search form in the file gallery when you are in th etop file gallery should include by default all child file galleries to get the expected results (oh well, this is just an educated guess)

FYI

P.S: We are not using elfinder since it was affected by other CSRF bugs, and afaik, you can't replace a file with a new version while keeping the same file id, throgh elfinder UI.

P.S.S: The CSRF bugs should be fixed now with r70908

Importance
6
Easy to solve?
8
Priority
48
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7178
Created
Wednesday 18 September, 2019 13:37:21 UTC
by Xavier de Pedro
LastModif
Sunday 10 November, 2019 18:20:03 UTC


Show PHP error messages