[TYPO3-mvc] Rewritten Property Mapper and exception #1297759968 with a not available uid

Thierry Brodard thierry.brodard at techniconcept.ch
Sat Aug 24 22:47:12 CEST 2013


Thanks, I thought about it too, and already took a look at 
t3lib_error_ProductionExceptionHandler.

In beetween I made the same test on 6.1, and a 404 is thrown instead of 
a 500. The redirection is already nicely made via 
$TYPO3_CONF_VARS['FE']['pageNotFound_handling']


Le 24.08.13 20:42, Frans Saris a écrit :
> Hi Thierry,
>
> Maybe it is a option to create your own exception handler to turn the
> status 500 into a status 400 when the visitor ip isn't one of your dev ip's?
>
> Gr. Frans
> Hi all,
>
> With the rewritten property mapper enabled, if an argument is passed in the
> URL with a wrong uid (which doesn't appear normally with RealURL, but I did
> it to test), the exception #1297759968: Exception while property mapping at
> property path "":Object with identity "123456" not found.
> is raised.
>
> How to handle that ?
>
> This case can come with url called from search engines results: it can be
> possible that an uid isn't available anymore, but the search engines still
> give it as result. And: error 500 is displayed, instead of a nice 404. And
> since the exception cannot be trapped in the action of the controller, no
> way to display something better to the user.
>
> I've tried with the @ignorevalidation annotation, but it doesn't help.
>
> I read a lot about it, especially
> http://forge.typo3.org/issues/**38921<http://forge.typo3.org/issues/38921>where
> Georg Ringer as mentioned this problem.
> In the static template of the "news" extension, the rewritten property
> mapper isn't enabled, certainly because of this.
>
>
> TYPO3 4.7 is used.
>
> Thanks for helping !
> ______________________________**_________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>



More information about the TYPO3-project-typo3v4mvc mailing list