View Issue Details

IDProjectCategoryView StatusLast Update
0016510mantisbtinstallationpublic2014-12-08 02:07
Reporteratrol Assigned Todregad  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.0dev 
Target Version1.3.0-beta.1 
Summary0016510: Wrong redirect after installation
Description

After installation you get a link at the bottom of the page to login and create your first project.
Instead you will get the page admin/install.php when clicking the link.

TagsNo tags attached.
Attached Files
install.png (29,939 bytes)   
install.png (29,939 bytes)   

Activities

dregad

dregad

2013-10-18 08:57

developer   ~0038307

Was the config file created properly ?

atrol

atrol

2013-10-18 09:18

developer   ~0038308

config_inc.php looks OK.
I am able to use the installation without problems.
It's just the redirect that goes wrong.

The installer page is opened in upgrade mode after clicking the link.
database_version in config_table is 189

atrol

atrol

2013-10-19 04:48

developer   ~0038313

Last edited: 2013-10-19 04:49

I found out that the behavior is caused by the way I started the installation using one of my bookmarks in browser.
I installed by starting page http://localhost/mantisbt/master/login_page.php instead of starting page http://localhost/mantisbt/master/admin/install.php
IIRC this worked in older versions and should work also in 1.3 or should at least not show this confusing behavior.
Maybe related to 0014486

Starting the installation using http://localhost/mantisbt/master/admin/install.php works, but the new workflow is more complicated than in 1.2

This is the current workflow in 1.3 which is even more complicated if I don't enter a value for crypto_master_salt
1) Start http://localhost/mantisbt/master/admin/install.php and enter needed values
2) Click link to create a project
3) Get redirected to login page
4) Login as administrator/root
5) Get redirected to account page
6) Change password
7) Get automatically logged out and redirected to login page
8) Log in as administrator with new password
9) Finally get redirected to project create page

Enforcing a value for the administrator password in installation dialog 0010968 would simplify the installation process for users and simplify the code.

dregad

dregad

2013-10-22 17:44

developer   ~0038328

I was able to reproduce this behavior, and after investigation I believe it is caused by the browser caching the redirection header. I was able to fix the problem by adding a 'no-cache' header.

dregad

dregad

2013-10-22 18:09

developer   ~0038329

2013-10-23 00:01 atrol Fixed in Version 1.3.0dev => 1.3.x

Beat me to it ;-)
You shouldn't have to do this in the future, I think I fixed the behavior of the source plugin, see my post to the mailing list.

govind

govind

2013-12-01 22:04

reporter   ~0038697

sdfgdf

govind

govind

2013-12-01 22:05

reporter   ~0038735

xdfjghjgh

Related Changesets

MantisBT: master 4c0ba6e1

2013-10-20 13:40

dregad


Details Diff
Fix redirection to login page after install

When installation is started from login page (redirected to install from
core.php), the link to 'Continue to log into Mantis' goes back to
install page instead of login page.

Resolved problem by adding a no-cache header.

Also changed Location header response to 307 instead of default 302.

Fixes 0016510
Affected Issues
0016510
mod - core.php Diff File