Project

General

Profile

Actions

Bug #60737

closed

Symlinks as Document roots are breaking the cache

Added by Frederik Vosberg over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2014-08-01
Due date:
% Done:

0%

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

Description

Hi there,

my hoster uses symlinks to the document root to resolve the domain to the document root.

  1. If there is a host-specific pseudo-DocumentRoot, use it instead of the default one
    RewriteCond %{REQUEST_URI} !^/f?cgi-bin/
    RewriteCond /var/www/virtual/julia/%{HTTP_HOST} -d
    RewriteRule (.*) /var/www/virtual/julia/%{HTTP_HOST}$1
    

That causes errors when trying to load file paths with GeneralUtility::getFileAbsFileName() because the PATH_typo3 constant contains the current document root. (the current domain of this request).

But the cache holds absolute paths to the symlink document root of the request which triggered the caching.

So the getFileAbsFileName returns empty filePaths, because the absolute file paths passed to it didnt start wih the PATH_typo3.

So we have to realpath them before checking.

Im going to push a patch to gerrit, give me a minute it is my first time ;)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #58288: Cache that write absolute paths needs PATH_site in cache identifierClosed2014-04-28

Actions
Actions

Also available in: Atom PDF