Cannot change project
Moderators: Developer, Contributor
Cannot change project
We had to rebuild an entire server from backups and since doing so, we can no longer switch projects. This is true when creating new bug reports and also on the filter screen. Where should I look?
Thanks in advance for any pointers!
Thanks in advance for any pointers!
Re: Cannot change project
I was not able to reproduce your problem with a fresh install of the latest stable version of MantisBT (1.2.19 at the moment).
The provided information is not sufficient to provide any help in resolving the issue. A complete and detailed description is required to get a clear understanding of the problem.
Please explain what you do, what are the results you expect to get and what you actually get.
Also provide detailed, step-by-step instructions to reproduce the issue; the additional information listed below may also be useful:
- Exact version of MantisBT, PHP, Database, Web server, Browser and Operating System
- Relevant customizations (e.g. changes in config_inc.php, etc)
- Installed plugins or custom functions ?
- Was the MantisBT source code modified in any way ?
The provided information is not sufficient to provide any help in resolving the issue. A complete and detailed description is required to get a clear understanding of the problem.
Please explain what you do, what are the results you expect to get and what you actually get.
Also provide detailed, step-by-step instructions to reproduce the issue; the additional information listed below may also be useful:
- Exact version of MantisBT, PHP, Database, Web server, Browser and Operating System
- Relevant customizations (e.g. changes in config_inc.php, etc)
- Installed plugins or custom functions ?
- Was the MantisBT source code modified in any way ?
Re: Cannot change project
The drop down boxes which allow me to chose a project just don't work.
For example, if I go here:
http://mantis.d3.org.nz/login_select_pr ... t_page.php
I can chose a project (and optionally make it the default). Say the "Choose Project" drop down list "Project X" and now I change this to "Project Y" and click the "Select Project" button, the next page (http://mantis.d3.org.nz/bug_report_page.php) will still show "Project X" in the top right corner. If I change it on this page to "Project Y", a server round trip appears to take place but upon return, the dropdown box is reset to "Project X".
I used Google Chromes debugger but this didn't give me any clues. I also checked the apache2 logs on the server and couldn't see anything noteworthy.
Are there any other logs? How could I debug this on the server?
Thanks
For example, if I go here:
http://mantis.d3.org.nz/login_select_pr ... t_page.php
I can chose a project (and optionally make it the default). Say the "Choose Project" drop down list "Project X" and now I change this to "Project Y" and click the "Select Project" button, the next page (http://mantis.d3.org.nz/bug_report_page.php) will still show "Project X" in the top right corner. If I change it on this page to "Project Y", a server round trip appears to take place but upon return, the dropdown box is reset to "Project X".
I used Google Chromes debugger but this didn't give me any clues. I also checked the apache2 logs on the server and couldn't see anything noteworthy.
Are there any other logs? How could I debug this on the server?
Thanks
Re: Cannot change project
- Exact version of MantisBT, PHP, Database, Web server, Browser and Operating System
Mantis BT 1.2.18
PHP Version 5.3.10-1ubuntu3.15
MySQL Server version: 5.5.40-0ubuntu0.12.04.1
Apache/2.2.22 (Ubuntu)
Google Chrome
Ubuntu 12.04.5 LTS
- Relevant customizations (e.g. changes in config_inc.php, etc)
None
- Installed plugins or custom functions ?
None
- Was the MantisBT source code modified in any way ?
No
Mantis BT 1.2.18
PHP Version 5.3.10-1ubuntu3.15
MySQL Server version: 5.5.40-0ubuntu0.12.04.1
Apache/2.2.22 (Ubuntu)
Google Chrome
Ubuntu 12.04.5 LTS
- Relevant customizations (e.g. changes in config_inc.php, etc)
None
- Installed plugins or custom functions ?
None
- Was the MantisBT source code modified in any way ?
No
Re: Cannot change project
Did you install any browser plugins?
Did you disable JavaScript in browser?
Did you clear browser cache?
Are you able to reproduce the issue using another browser?
Are you able to reproduce the issue at http://www.atrol.de/mantisbt-1.2 ?
Did you disable JavaScript in browser?
Did you clear browser cache?
Are you able to reproduce the issue using another browser?
Are you able to reproduce the issue at http://www.atrol.de/mantisbt-1.2 ?
Re: Cannot change project
Some more info:
I pulled the project-1.2.18 version from github and compared it with the code we're running. None of the files were different.
The only thing perhaps slightly odd was the content of .htaccess:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
Mantis is enabled in apache as follows:
<VirtualHost *:80>
ServerName ...
ServerAdmin .@...
DirectoryIndex index.php index.html index.pl index.xhtml
DocumentRoot /var/www/mantis
<Directory "/var/www/mantis">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
This modules are enabled in apache:
alias.conf
alias.load
auth_basic.load
authn_file.load
authz_default.load
authz_groupfile.load
authz_host.load
authz_user.load
autoindex.conf
autoindex.load
cache.load
cgi.load
deflate.conf
deflate.load
dir.conf
dir.load
env.load
expires.load
headers.load
ldap.load
mem_cache.conf
mem_cache.load
mime.conf
mime.load
mod-evasive.conf
mod-evasive.load
mod-security.conf
mod-security.load
negotiation.conf
negotiation.load
php5.conf
php5.load
reqtimeout.conf
reqtimeout.load
rewrite.load
setenvif.conf
setenvif.load
status.conf
status.load
unique_id.load
Not sure what else I should check.
I pulled the project-1.2.18 version from github and compared it with the code we're running. None of the files were different.
The only thing perhaps slightly odd was the content of .htaccess:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
Mantis is enabled in apache as follows:
<VirtualHost *:80>
ServerName ...
ServerAdmin .@...
DirectoryIndex index.php index.html index.pl index.xhtml
DocumentRoot /var/www/mantis
<Directory "/var/www/mantis">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
This modules are enabled in apache:
alias.conf
alias.load
auth_basic.load
authn_file.load
authz_default.load
authz_groupfile.load
authz_host.load
authz_user.load
autoindex.conf
autoindex.load
cache.load
cgi.load
deflate.conf
deflate.load
dir.conf
dir.load
env.load
expires.load
headers.load
ldap.load
mem_cache.conf
mem_cache.load
mime.conf
mime.load
mod-evasive.conf
mod-evasive.load
mod-security.conf
mod-security.load
negotiation.conf
negotiation.load
php5.conf
php5.load
reqtimeout.conf
reqtimeout.load
rewrite.load
setenvif.conf
setenvif.load
status.conf
status.load
unique_id.load
Not sure what else I should check.
Re: Cannot change project
Everybody in or organisation has this problem. We use at least Chrome, Safari and FireFox.atrol wrote:Did you install any browser plugins?
Did you disable JavaScript in browser?
Did you clear browser cache?
Are you able to reproduce the issue using another browser?
I have no credentials to log in and the ones I use for this forum don't work.atrol wrote:Are you able to reproduce the issue at http://www.atrol.de/mantisbt-1.2 ?
Thanks
Re: Cannot change project
I'm such a blind nut, sorry.atrol wrote:There is a link "Signup for a new account"
Just tried and I can change the project without any problems there.
Re: Cannot change project
Thanks to your link to http://www.atrol.de/mantisbt-1.2 I could check if there was a difference between the actions on that site and on our Mantis BT site and surprise, suprise: there is!
Here are the last two actions taken when I change the project on http://www.atrol.de/mantisbt-1.2:
And here is what happens on our Mantis BT site:
The interesting difference is that on your site view_all_set.php is passed a query string whereas on our site there is no query string.
Here are the last two actions taken when I change the project on http://www.atrol.de/mantisbt-1.2:
And here is what happens on our Mantis BT site:
The interesting difference is that on your site view_all_set.php is passed a query string whereas on our site there is no query string.
Re: Cannot change project
The second screen shot from our server I provided above was the wrong one, sorry. I repost both of them again but here I widened the Path column and highlighted the difference:
Yours:
Ours:
Yours:
Ours:
Re: Cannot change project
Any pointers what I could check next would be hugely appreciated?
Re: Cannot change project
Are you able to reproduce the issue using a new account?
Are you able to reproduce the issue with a new MantisBT installation on the same server?
You might get additional debugging information by following these steps:
1. temporarily configure your system by adding the following lines to file config_inc.pgh
WARNING - SECURITY RISK: the 'show_detailed_errors' config can cause MantisBT to display sensitive information about your system. It is recommended to restrict its activation to a Test environment, only for as long as necessary. If possible, do not turn it ON globally, instead limit it for specific user(s) using the Manage Configuration page.
2. Reproduce the problem
Do you get any warning or error messages?
Are you able to reproduce the issue with a new MantisBT installation on the same server?
You might get additional debugging information by following these steps:
1. temporarily configure your system by adding the following lines to file config_inc.pgh
Code: Select all
$g_display_errors = array(
E_WARNING => 'halt',
E_NOTICE => 'halt',
E_USER_ERROR => 'halt',
E_USER_WARNING => 'halt',
E_USER_NOTICE => 'halt'
);
$g_show_detailed_errors = ON;
2. Reproduce the problem
Do you get any warning or error messages?
Re: Cannot change project
SOLVED!
Thanks heaps for your help atrol!
As it turns out, apache2's mod-security was installed on this server and it caused this problem. There maybe some rules we could have turned off, but instead we've removed the module and now things work as they did before.
Thanks heaps for your help atrol!
As it turns out, apache2's mod-security was installed on this server and it caused this problem. There maybe some rules we could have turned off, but instead we've removed the module and now things work as they did before.