Bug #66008
closedLocalConfiguration 'adminOnly' => '-1', show sys_notes
0%
Description
Current behaviour:
When you lock the access to the backend by setting 'adminOnly' => '-1', the system shows an exception message if you try to acess the login form:
"TYPO3 Backend locked: Backend and Install Tool are locked for maintenance. [BE][adminOnly] is set to "-1". More information regarding this error might be available online" (Link to http://wiki.typo3.org/Exception/CMS/1294586847)
Desired behaviour:
It would really nice if the system would also show sys_notes (if available) in addition to the above message. This would enable developers to inform the user about expected maintenance duration or other important information. Just like they are already displayed if adminOnly is set to other values than -1.
Updated by Benni Mack over 9 years ago
- Target version set to 7.4 (Backend)
- Sprint Focus set to On Location Sprint
Updated by Marc Willmann over 9 years ago
Is this really wanted? As the sys_notes are stored in the database, this will require some database queries which is maybe a very bad idea in this system state.
Updated by Marco Huber over 9 years ago
If just backend is locked (or admin only) then the frontend is still available and so there are database queries, too. So a simple SELECT shouldn't be too bad.
But now I see, that getting a database connection would be really hard at some points where adminOnly is checked (f.e. in TYPO3\CMS\Core\Core\Bootstrap::checkLockedBackendAndRedirectOrDie())
Updated by Georg Ringer over 9 years ago
- Status changed from New to Rejected
thanks marc for looking it up!
You could set it to 0 and add the file
typo3conf/LOCK_BACKENDand add a redirect URL there to inform the users.
you could also disable the users and still use the sys_notes.
-1 is defined as shutdown and not planned to make there more rendering.
Updated by Anja Leichsenring about 9 years ago
- Sprint Focus deleted (
On Location Sprint)