View Issue Details

IDProjectCategoryView StatusLast Update
0016337mantisbtadministrationpublic2014-02-07 18:24
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.2.12 
Target Version1.2.16Fixed in Version1.2.16 
Summary0016337: Creating the first project on a fresh install causes error 2800
Description

When the first project is created after installing MantisBT, an application error 2800 occurs when submitting the changes from manage_proj_create_page.php, although the project is created successfully.

Steps To Reproduce
  • fresh install (no records in mantis_project_table)
  • go to manage / projects
  • click Create New Project
  • Enter name and click Add Project
Additional Information

Apache access log shows 2 subsequent calls to manage_proj_create.php, the 2nd one is triggering the error:

127.0.0.1 - - [28/Aug/2013:17:10:53 +0200] "POST /mantis/manage_proj_create.php HTTP/1.1" 200 2381 "http://localhost/mantis/manage_proj_create_page.php" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Fi
refox/23.0"
127.0.0.1 - - [28/Aug/2013:17:10:53 +0200] "GET /mantis/manage_proj_create.php HTTP/1.1" 200 2463 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0"

TagsNo tags attached.

Relationships

related to 0009826 closeddregad Single project user should default to the project, not All Projects 

Activities

dregad

dregad

2013-08-28 11:29

developer   ~0037940

git bisect shows this is a regression introduced by commit b1a1bbae.

html_login_info() calls html_meta_redirect() when there is only one project.

dregad

dregad

2013-08-28 11:43

developer   ~0037941

Resolved by checking if the requester's URI is manage_proj_create.php, and only redirect if not.

Related Changesets

MantisBT: master-1.2.x b1a1bbae

2012-09-10 01:56

dregad


Details Diff
User with access to single project defaults to it, not all projects

Since 1.2, if a user has access to only one project, the project
selection box at top right isn't shown. This was causing issues as new
users accounts have 'All projects' as their default:

- user can't report issues (no link for all projects)
- categories displayed are prefixed with [project]

Until this commit, users had to define their (single) project as default
using preferences to work around the problem; this is no longer needed.

Function html_login_info() now sets the current project as appropriate
if user has only access to a single one, and also defines that as the
default.

The account preferences page has also been modified to only include 'All
projects' in the selection list when user has more than one project
available.

Fixes 0009826, 0014268
Affected Issues
0009826, 0014268, 0016337
mod - account_prefs_inc.php Diff File
mod - core/html_api.php Diff File

MantisBT: master cfa022bc

2012-09-10 01:56

dregad


Details Diff
User with access to single project defaults to it, not all projects

Since 1.2, if a user has access to only one project, the project
selection box at top right isn't shown. This was causing issues as new
users accounts have 'All projects' as their default:

- user can't report issues (no link for all projects)
- categories displayed are prefixed with [project]

Until this commit, users had to define their (single) project as default
using preferences to work around the problem; this is no longer needed.

Function html_login_info() now sets the current project as appropriate
if user has only access to a single one, and also defines that as the
default.

The account preferences page has also been modified to only include 'All
projects' in the selection list when user has more than one project
available.

Fixes 0009826, 0014268
Affected Issues
0009826, 0014268, 0016337
mod - account_prefs_inc.php Diff File
mod - core/html_api.php Diff File

MantisBT: master-1.2.x 9ef5537b

2013-08-28 07:37

dregad


Details Diff
Do not redirect after creating the first project

When the first project is created after installing MantisBT, an
application error 2800 occurs when submitting the changes from
manage_proj_create_page.php, although the project is created
successfully.

Regression introduced by b1a1bbaeb690b7611899ae8075586d655155d18c

Fixes 0016337
Affected Issues
0016337
mod - core/html_api.php Diff File

MantisBT: master f3607f47

2013-08-28 07:37

dregad


Details Diff
Do not redirect after creating the first project

When the first project is created after installing MantisBT, an
application error 2800 occurs when submitting the changes from
manage_proj_create_page.php, although the project is created
successfully.

Regression introduced by b1a1bbaeb690b7611899ae8075586d655155d18c

Fixes 0016337
Affected Issues
0016337
mod - core/html_api.php Diff File