Bug #60224

Package Paths should be relative to TYPO3_site

Added by Robert Vock about 1 year ago. Updated about 1 year ago.

Status:Closed Start date:2014-07-10
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:Package Manager Spent time: -
Target version:-
TYPO3 Version:6.2 Is Regression:No
PHP Version: Sprint Focus:
Complexity:

Description

Ok, this one is quite complicated to explain.

In short: The Backend does not work if you use multiple domains with virtual hosts (see screenshot). Using paths relative to TYPO3_site for packages would fix this bug.

I have the following Apache Setup for virtual hosts:

<VirtualHost *:80>
  ServerName local-dev
  ServerAlias *.dev
  VirtualDocumentRoot /var/www/%-2+
</VirtualHost>

This means, when I visit www.example.de.dev Apache looks for files in /var/www/www.example.de/* and when I visit www.example.com it looks in /var/www/www.example.com/*

(Both folders are symlinks to the same folder)

This makes it possible to easily work on different domains in a local setup.

When I now visit the backend via www.example.de/typo3/ the package manager sees /var/www/www.example.de as Document Root and uses it as packagePath.

This information is written to the Cache (cache_core/PackageObjects_HASH)

Then I visit the backend via www.example.com/typo3/. The cache is read and the package paths are /var/www/www.example.de/typo3/sysext/t3skin/ instead of example.com.

This leads to incorrect links to stylesheets (see screenshot).

Using relative paths in the cache would fix this problem. Another fix could be to use different caches based on the hostname or document root.

broken-backend.png (64.9 kB) Robert Vock, 2014-07-10 10:30

incorrect-includes.png (108.8 kB) Robert Vock, 2014-07-10 10:30


Related issues

duplicates Core - Bug #58288: Cache that write absolute paths needs PATH_site in cache ... Resolved 2014-04-28

History

#1 Updated by Markus Klein about 1 year ago

  • Status changed from New to Accepted

I'm rather sure this is a duplicate, but I can't find it atm.

#2 Updated by Helmut Hummel about 1 year ago

  • Status changed from Accepted to Closed

Thanks for the report. I will close this as duplicate. Please comment and watch #58288

Also available in: Atom PDF