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

Frans Saris franssaris at gmail.com
Sat Aug 24 20:42:00 CEST 2013


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