[TYPO3-mvc] Rewritten Property Mapper and exception #1297759968 with a not available uid
Thierry Brodard
thierry.brodard at techniconcept.ch
Sat Aug 24 19:02:32 CEST 2013
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
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 !
More information about the TYPO3-project-typo3v4mvc
mailing list