View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0016337 | mantisbt | administration | public | 2013-08-28 11:26 | 2014-02-07 18:24 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.12 | ||||
Target Version | 1.2.16 | Fixed in Version | 1.2.16 | ||
Summary | 0016337: 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 |
| ||||
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 | ||||
Tags | No tags attached. | ||||
git bisect shows this is a regression introduced by commit b1a1bbae. html_login_info() calls html_meta_redirect() when there is only one project. |
|
Resolved by checking if the requester's URI is manage_proj_create.php, and only redirect if not. |
|
MantisBT: master-1.2.x b1a1bbae 2012-09-10 01:56 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 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 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 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 |