Feature #51676
Support of symlinks for Resources
Status: | Under Review | Start date: | 2013-09-03 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 100% |
|
Category: | Resource | |||
Target version: | - | |||
PHP Version: | 5.4 | Complexity: | ||
Has patch: | No |
Description
We are using Typo3.Surf as deployment tool. Surf creates a folder structure with symlinks during the deployment. When creating a resource (e.g. uploading a file), flow will not use the symlink name (sites/foobar.com/releases/current/Web/...) but the real path (sites/foobar.com/releases/201309021405/Web/...).
Surf keeps by default 5 releases, so in our case the resources are lost after 5 deployments.
To solve this behavior we need to keep the symlink path instead of the real one in resource entities.
Associated revisions
[BUGFIX] Published resources don't support symlinks
Fixes an issue with the publication of persistent resources which
resulted in inaccessible resources after a few deployments with
TYPO3.Surf.
TYPO3.Surf heavily relies on symbolic links for pointing to the
currently active release. The key problem was that the symbolic
link which is put into the Web/_Resources folder used an absolute
path (realpath) to the resource file in Data/Persistent/ rather than
a possible symbolic link. This worked fine as long as the actual
directory (previous release) exists, but breaks as soon as old
releases have been removed.
Resolves: #51676
Releases: 2.0, master
Change-Id: I5585a23eb8db414cbce8f181bf7d73d5c41e0bb9
[TASK] Resources are published with relative symlinks
Fixes an issue with the publication of persistent resources which
used absolute paths rather than relative paths for generating symbolic
links.
TYPO3.Surf heavily relies on symbolic links for pointing to the
currently active release. The key problem was that the symbolic
link which is put into the Web/_Resources folder used an absolute
path (realpath) to the resource file in Data/Persistent/ rather than
a possible symbolic link. This worked fine as long as the actual
directory (previous release) exists, but breaks as soon as old
releases have been removed.
Resolves: #51676
Resolves: #51809
Releases: master
Change-Id: I2e84cd8f9abd41578a87791813d03e764528feb9
History
#1 Updated by Gerrit Code Review almost 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23555
#2 Updated by Gerrit Code Review almost 2 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23555
#3 Updated by Anonymous almost 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 64480cd47066458bfd9a15a9a10f1760e5a0a3b4.
#4 Updated by Gerrit Code Review almost 2 years ago
- Status changed from Resolved to Under Review
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23783
#5 Updated by Gerrit Code Review almost 2 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23783
#6 Updated by Gerrit Code Review over 1 year ago
Patch set 5 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/23783
#7 Updated by Adrian Föder over 1 year ago
- Status changed from Under Review to Resolved
Applied in changeset 6d206c1d35324f26e8780fdad80fed466bc9f4e1.
#8 Updated by Gergana Noncheva-Vassilyeva about 1 year ago
Hi,
this fix was reverted in 2.2.0-bata2 besause of some bugs (according to the change log). Is there a new ticket for the fix?
Thanks,
Gergana
#9 Updated by Gerrit Code Review about 1 year ago
- Status changed from Resolved to Under Review
Patch set 1 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/30519
#10 Updated by Gerrit Code Review 12 months ago
Patch set 2 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at http://review.typo3.org/30519
#11 Updated by Gerrit Code Review 12 months ago
Patch set 3 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at http://review.typo3.org/30519
#12 Updated by Gerrit Code Review 11 months ago
Patch set 4 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at http://review.typo3.org/30519
#13 Updated by Gerrit Code Review 8 months ago
Patch set 1 for branch 2.3 of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at http://review.typo3.org/34878
#14 Updated by Gerrit Code Review 8 months ago
Patch set 2 for branch 2.3 of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at http://review.typo3.org/34878
#15 Updated by Gerrit Code Review about 1 month ago
Patch set 5 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at http://review.typo3.org/30519