Project

General

Profile

Actions

Bug #18700

closed

TYPO3 4.2.0 - DAM browser returns an invalid file link in htmlArea RTE

Added by Xavier Perseguers over 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-04-25
Due date:
% Done:

0%

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

Description

- Install DAM
- In configuration of rtehtmlarea, activate "enable DAM Browser"

This replaces the "File" tab in insert hyperlink with a "Media" tab.

Now select a file located in fileadmin from RTE. The returned link to the file does not contain the "fileadmin/path/to/directory" part, but only the hostname and the filename. That is:

instead of http://domain.tld/fileadmin/path/to/somefile.txt

I get

http://domain.tld/somefile.txt

which is then stored as a link to "/somefile.txt" in DB (using standard RTE transformations) and this is link is rendered as "http:///somefile.txt" in page rendering process.

(issue imported from #M8254)


Files

bug_8254.patch (698 Bytes) bug_8254.patch Administrator Admin, 2008-04-26 19:54
rtehtmlarea_bugfix_8254.patch (2.08 KB) rtehtmlarea_bugfix_8254.patch Administrator Admin, 2008-04-26 20:48
Actions #1

Updated by Xavier Perseguers over 16 years ago

If I activate the DAM browser, any click to select a Media file leads to calling function insertElement which is defined in <sysext>/rtehtmlarea/mod3/class.tx_rtehtmlarea_dam_browse_links.php, line 431.

The parameter filename only contains the filename, not the path. The function calls link_folder(filename), which thus calls it without any file path.

If I deactivate the DAM browser, then any click to select a file calls function link_folder with parameter "fileadmin/path/to/filename".

Actions #2

Updated by Xavier Perseguers over 16 years ago

The patch fixes this bug.

Actions #3

Updated by Stanislas Rolland over 16 years ago

Yes, thanks for the patch.

Actions #4

Updated by Stanislas Rolland over 16 years ago

Fixed in SVN TYPO3core branch TYPO3_4-2 revision 3635.

Actions #5

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF