Bug #60316

Parsing RTE links should not throw an exception if a resource is missing or its path invalid

Added by Alexander Schnitzler about 1 year ago. Updated about 1 year ago.

Status:Resolved Start date:2014-07-14
Priority:Should have Due date:
Assigned To:Helmut Hummel % Done:

100%

Category:rtehtmlarea Spent time: -
Target version:7.0
TYPO3 Version:6.2 Is Regression:No
PHP Version:5.4 Sprint Focus:
Complexity:

Screen Shot 2014-07-14 at 3.31.58 PM.png (117.5 kB) Alexander Schnitzler, 2014-07-14 23:45

exception.png (354.5 kB) Helmut Hummel, 2014-07-15 00:31


Related issues

related to Core - Bug #46785: FileDoesNotExistException Resolved 2013-03-29

Associated revisions

Revision f9f4b492
Added by Helmut Hummel about 1 year ago

[BUGFIX] Catch all resource exceptions when parsing RTE links

The RteHtmlParser checks for valid links by trying to retrieve
a file or folder object. The FAL API will throw exceptions
if anything goes wrong with the given path.

Catch all these exceptions to ignore the invalid link
and act the same for invalid paths as for not found files/ folders

Releases: 6.2, 6.3
Resolves: #60316
Change-Id: I0752678eb8ed2b596c3a88536d957ec35c172d7b
Reviewed-on: http://review.typo3.org/31619
Reviewed-by: Alexander Schnitzler <>
Tested-by: Alexander Schnitzler <>
Reviewed-by: Helmut Hummel <>
Tested-by: Helmut Hummel <>

Revision b4aa2ff0
Added by Helmut Hummel about 1 year ago

[BUGFIX] Catch all resource exceptions when parsing RTE links

The RteHtmlParser checks for valid links by trying to retrieve
a file or folder object. The FAL API will throw exceptions
if anything goes wrong with the given path.

Catch all these exceptions to ignore the invalid link
and act the same for invalid paths as for not found files/ folders

Releases: 6.2, 6.3
Resolves: #60316
Change-Id: I0752678eb8ed2b596c3a88536d957ec35c172d7b
Reviewed-on: http://review.typo3.org/31745
Reviewed-by: Helmut Hummel <>
Tested-by: Helmut Hummel <>

History

#1 Updated by Helmut Hummel about 1 year ago

Steps to reproduce:

  1. Create tt_content text element
  2. Disable RTE
  3. put the following into the bodytext field and save
    <link ../fileadmin/foo>bar</link>
    
  4. enable RTE and quit
  5. open this element again

#2 Updated by Helmut Hummel about 1 year ago

Steps to reproduce:

  1. Create tt_content text element
  2. Disable RTE
  3. put the following into the bodytext field and save
    <link ../fileadmin/foo>bar</link>
    
  4. enable RTE and quit
  5. open this element again

#3 Updated by Gerrit Code Review about 1 year ago

  • Status changed from Accepted to Under Review

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

#4 Updated by Helmut Hummel about 1 year ago

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

Also available in: Atom PDF