Project

General

Profile

Actions

Bug #58288

closed

Cache that write absolute paths needs PATH_site in cache identifier

Added by Helmut Hummel about 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-04-28
Due date:
% Done:

100%

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

Description

The package cache writes paths to extension directories (TYPO3_LOADED_EXT) into the cache.

When calling e.g. a TYPO3 cli script from a different directory (due to different mounts) and this
cache does not exist yet, it will be written with absolute paths taken from PATH_site of the cli
When then calling the website, many things will fail as relative path calculations are done with the
current PATH_site

The easiest way to tackle this issue, is to make the caches depend on PATH_site, like it is for ext_tables and ext_localconf caches


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #60737: Symlinks as Document roots are breaking the cacheClosed2014-08-01

Actions
Has duplicate TYPO3 Core - Bug #60224: Package Paths should be relative to TYPO3_siteClosed2014-07-10

Actions
Has duplicate TYPO3 Core - Bug #58952: Inconsistent extension/package relative pathsClosed2014-05-20

Actions
Has duplicate TYPO3 Core - Bug #59088: PathUtility::stripPathSitePrefix() fails with symlinked TYPO3-dirsClosed2014-05-24

Actions
Actions #1

Updated by Stefano Kowalke about 10 years ago

I encounter the same issue. A possible reason might be a two disk setup. I have a SSD with the OS and a HDD with my $HOME folder, where the $HOME folder on the SSD is just a symlink to the one on the HDD.

$ ll /Users
lrwxr-xr-x   1 root          admin    23B 15 Jul  2013 sok -> /Volumes/HDD/Users/sok/

So while PATH_site get filled with /Volumes/HDD/Users/Sites/TYPO3/www.introduction.dev, all other functions determine this path /Users/sok/Sites/TYPO3/www.introduction.dev/.

Actions #2

Updated by Gerrit Code Review about 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/31565

Actions #3

Updated by Gerrit Code Review about 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/31565

Actions #4

Updated by Gerrit Code Review about 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/31565

Actions #5

Updated by Gerrit Code Review about 10 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/31565

Actions #6

Updated by Gerrit Code Review about 10 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/31580

Actions #7

Updated by Helmut Hummel about 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack almost 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF