Project

General

Profile

Actions

Bug #29853

closed

Broken image paths when in workspace module.

Added by Bart Dubelaar about 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2011-09-15
Due date:
% Done:

100%

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

Description

When comparing live & draft versions in the workspaces module, images paths are broken and images are not shown.
The point is that, if your images are stored in 'uploads/', the relative path will now be 'typo3/uploads/' because you're viewing the backend. Is this a bug or can this be fixed with a setting somewhere?


Files

wspatch.diff (750 Bytes) wspatch.diff patch using RTE processing function Bart Dubelaar, 2011-09-26 16:15
Actions #1

Updated by Tobias Liebig about 13 years ago

I can confirm this is a bug (using the introduction package 4.5.6)

Actions #2

Updated by Bart Dubelaar about 13 years ago

The problem is that the record as it is in the database is outputted directly without any parsing.
In extdirect/server.php: $liveRecord = t3lib_BEfunc::getRecord($parameter->table, $parameter->t3ver_oid);), and that gets printed.

Of course I can do a dirty search for 'uploads/', 'fileadmin/', etc. and prefix it with a slash. But that just doesn't cut it.
Can anyone point me to some proper functions to parse the record from the DB? Then I will create a fix.

Actions #4

Updated by Mr. Hudson about 13 years ago

Patch set 1 of change I9e8cdf717ce0c89ab3e16d33267727f7050092a9 has been pushed to the review server.
It is available at http://review.typo3.org/5370

Actions #5

Updated by Tolleiv Nietsch about 13 years ago

  • Status changed from New to Under Review

Thanks for contributing

Actions #6

Updated by Mr. Hudson about 13 years ago

Patch set 1 of change I4aa49e8c9d41f47af2c56562284be0c494c78713 has been pushed to the review server.
It is available at http://review.typo3.org/6005

Actions #7

Updated by Bart Dubelaar about 13 years ago

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

Applied in changeset commit:f9f3c737a1e23c0126b2604299b4e8c902ea5a47.

Actions #8

Updated by Michael Stucki almost 11 years ago

  • Category changed from Bugs to Workspaces
Actions #9

Updated by Michael Stucki almost 11 years ago

  • Project changed from 624 to TYPO3 Core
  • Category changed from Workspaces to Workspaces
Actions #10

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF