[TYPO3-core] RFC: bugfix #6240, pageNotFound_handling returns empty page if specified URL cannot be retrieved

Helmut Hummel typo3 at jhpc.de
Fri Nov 16 14:17:54 CET 2007


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=6240

Branches:
TYPO3_4-1, trunk

Problem:
When using $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] with a URL,
which cannot be retrieved with getURL, a blank page is shown instead of
a meaningful error message.

Solution:
1. Fix the check of the return value of the getURL function (which was
   introduced here: [1])
2. Introduce a error message, that the specified URL cannot be
   retrieved, instead of setting a location header and try to redirect
   to the specified URL

Comment:
I added bug_6240_nobrainer.diff for your information, and because it's
the main part but I really would like to see the error message, too,
because it makes no sense to redirect, if getting URL fails.

Perhaps bug_6240_nobrainer.diff can go into 4_1 and the other one in
trunk only (since it changes behaviour).

Regards Helmut

[1]http://typo3.svn.sourceforge.net/viewvc/typo3/TYPO3core/trunk/typo3/sysext/cms/tslib/class.tslib_fe.php?r1=1770&r2=1798
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_6240_nobrainer.diff
Type: text/x-patch
Size: 513 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071116/5be88262/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_6240_v3.diff
Type: text/x-patch
Size: 1152 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071116/5be88262/attachment-0001.bin 


More information about the TYPO3-team-core mailing list