[TYPO3-mvc] New feature:
Lienhart Woitok
Lienhart.Woitok at netlogix.de
Wed Mar 31 10:24:27 CEST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi Jochen,
I'm not really happy with this change. Several reasons:
1. Setting Development context does not work for me. I suspect running php as cgi to be responsible for this. I have (according to phpinfo()) an environment variable REDIRECT_EXTBASE_CONTEXT, but this one isn't read by Extbase, thus falling back to production context. For now, I hardcoded development context in Dispatcher, but this is obviously not a final solution.
2. Showing exceptions and stack traces to the end user is a no-go, no question on that. But displaying simply nothing isn't the solution either. Some kind of error message is necessary. How should the end user know that anything went wrong and how he/she can recover from this situation or who to inform about the issue?
TYPO3 has an production exception handler that AFAIK doesn't discloses internal information to the end user but informs him/her that an error occurred. So as far as I'm concerned, letting TYPO3 decide what to do with exceptions thrown by Extbase would be more user friendly. Simply suppressing output is not very friendly to the developer (especially if switching to development context does not work reliable in all environments), as it leaves him with virtually no other choice than to wrap each action into a try/catch if he wants some custom exception handling in production context.
For the first issue, I'll file a bug on forge.
Kind regards,
Lienhart Woitok
TYPO3 Entwickler
Telefon: +49 (911) 539909 - 0
E-Mail: Lienhart.Woitok at netlogix.de
- --
netlogix GmbH & Co. KG
Systemhaus | Trainingscenter | Medienagentur
Andernacher Straße 53 | 90411 Nürnberg
Telefon: +49 (911) 539909 - 0 | Fax: +49 (911) 539909 - 99
E-Mail: mailto:info at netlogix.de | Internet: http://www.netlogix.de/
netlogix GmbH & Co. KG ist eingetragen am Amtsgericht Nürnberg (HRA 13338)
Persönlich haftende Gesellschafterin: netlogix Verwaltungs GmbH (HRB 20634)
Umsatzsteuer-Identifikationsnummer: DE 233472254
Geschäftsführer: Stefan Buchta, Matthias Schmidt
- -----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von Jochen Rau
Gesendet: Dienstag, 30. März 2010 15:45
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: [TYPO3-mvc] New feature:
Hi.
Since r2144 there is a new feature in extbase.
[!!!][+FEATURE] Extbase: Implemented the possibility to set the context
extbase extensions are running in. Default is "Production". You can set
the context in the .htaccess file e.g. by "SetEnv EXTBASE_CONTEXT
Development". If Extbase runs in "Production" context no exception
messages are shown in FE but an empty plugin content. The message is
logged by t3lib_div::sysLog(). In any other context the exception is
catched an thrown again to be handled by the appropriate handler defined
in the Install Tool. The next step is to be able to define different TS
settings for different contexts. Resolves #6840.
This is how contexts are defined in FLOW3. It changes the behavior of
the Extension (blank plugin content instead of a blank page in case of a
fatal error). But maybe it can go into Extbase 1.1 (shipped with 4.3.3).
What's you opinion about the feature and it's release plan?
Regards
Jochen
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
-----BEGIN PGP SIGNATURE-----
Version: PGP Universal 3.0.0 (Build 2881)
Charset: Windows-1252
wpUDBQFLswbBWevMF2ftbKMBCDN+A/0cJp8VvZXs4ct+dmQTo6ED59wjqPatQHvK
MPuJ8BJ2bSHreV7jRuEopt2kzizw/DVhU+rSCCSb2oRle+q3+KlUuKibwj9Y8nAL
O6gPQ7yVCGaL/z/VsU47HBGBM9Zy4f8DQAoJPScFAHDOrisfgCk2a4HkSuVO0ods
dg0YVkt0MQ==
=uyIf
-----END PGP SIGNATURE-----
More information about the TYPO3-project-typo3v4mvc
mailing list