View Issue Details

IDProjectCategoryView StatusLast Update
0008994mantisbtadministrationpublic2012-01-17 02:05
Reporterleblancma Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version1.1.1 
Summary0008994: Cannot login when down for maintenance
Description

After creating a page 'mantis_offline.php' to take my bugtracker offline, I cannot login as described in core.php (line 44).

Page 'mantis_offline.php' is properly displayed as expected. If I add
?mbadmin=1
to the login_page.php url, I do see the login page, however, I cannot login to my bugtracker. I get bounced back to the mantis_offline.php page.

Steps To Reproduce
  1. Create the 'mantis_offline.php' page.
  2. Check that it is properly displayd.
  3. Add ?mbadmin=1 to the url
  4. Try to login

BUG Mantis displays page 'mantis_offline.php'.

TagsNo tags attached.

Activities

vboctor

vboctor

2008-07-14 04:10

manager   ~0018490

We should allow the administrator to login while mantis is offline.

dregad

dregad

2010-09-16 10:10

developer   ~0026737

I just tested this, and it partially works for me on 1.2.1.

What I mean is: it is indeed not possible to login, or to use parts of the system where a displayed page is redirected to another.

However, if your session cookie is still valid (e.g. you log in before putting Mantis in maintenance mode), then you are able to append ?mbadmin=1 to whatever page you want to view and access it without problems (e.g. http://yoursite.com/mantis/my_view_page.php?mbadmin=1 or http://yoursite.com/mantis/view.php?id=1234&mbadmin=1), but keep in mind that you need to manually edit the URL each time you navigate to a different page.

Wouldn't it be better, if feasible, to store the "mbadmin" flag in the session cookie, so that the navigation becomes more seamless for the administrator during the maintenance ?