Project

General

Profile

Actions

Bug #87610

closed

Filelist Search - Add constraint to avoid searching of records marked as missing.

Added by Ricky Mathew almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2019-02-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

The filelist search now fetches all records except deleted and hidden on a matching string.It should avoid searching for records marked as missing, since those fetched missing records leads to Folder not found or File not found Exceptions like in the following screenshot.

As a work around i just added the 'missing = 0' constraint at the end of findBySearchWordInMetaData() in TYPO3\CMS\Core\Resource\Index\FileIndexRepository class

$queryBuilder->andWhere(
                $queryBuilder->expr()->eq($sysFileTableName.'.missing', $queryBuilder->createNamedParameter(0, \PDO::PARAM_INT))
        );
        $result = $queryBuilder->execute();
        $fileRecords = [];

If this workaround feels sensible can someone please push it to the gerrit review?


Files

file_not_found.png (173 KB) file_not_found.png Ricky Mathew, 2019-02-01 07:42

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #87048: File search searches in forbidden folders => InsufficientFolderAccessPermissionsExceptionClosed2018-11-30

Actions
Related to TYPO3 Core - Bug #89168: File search only accepts single search word AGAINClosedMarkus Klein2019-09-13

Actions
Related to TYPO3 Core - Bug #88175: Exception thrown when searching for files: You are not allowed to access the given folderClosed2019-04-18

Actions
Actions

Also available in: Atom PDF