Project

General

Profile

Actions

Bug #15444

closed

external documents not always indexed

Added by alexlg almost 19 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2006-01-18
Due date:
% Done:

0%

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

Description

External documents are not indexed, if they are integrated via Filelist. They erroneously get a double slash, so the test in t3lib_div::getFileAbsFileName(...) fails, thus the file is not indexed.

I think this is related to a flaw in the construction of the path to the documents inserted via the Filellist, which constructs relative references to documents as absolute paths somewhere...

By replacing the double slashes with one singe slash i got the indexing to work. All I did was replacing the lines (about lines 758ff):

} elseif (!$qParts['query']) {
$localFile = t3lib_div::getFileAbsFileName(PATH_site.$linkSource);
if ($localFile && @is_file($localFile)) {
// Index local file:
$this->indexRegularDocument($linkSource);
}
}

with these (changed ones marked with // lg):

} elseif (!$qParts['query']) {
$localFile = ereg_replace('//','/',PATH_site.$linkSource); // lg
$localFile = t3lib_div::getFileAbsFileName($localFile); // lg
if ($localFile && @is_file($localFile)) {
// Index local file:
$this->indexRegularDocument($localFile); // lg
}
}

Hope this helps.
(issue imported from #M2306)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #22296: IS cannot not index files if absRefPrefix is set and indexExternalURLs is notClosedDmitry Dulepov2010-03-18

Actions
Actions #1

Updated by Dmitry Dulepov over 14 years ago

See #13858 for the fix

Actions #2

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF