Cannot change project

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
peteh
Posts: 10
Joined: 27 Jan 2015, 05:28

Cannot change project

Post by peteh »

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!
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot change project

Post by atrol »

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 ?
Please use Search before posting and read the Manual
peteh
Posts: 10
Joined: 27 Jan 2015, 05:28

Re: Cannot change project

Post by peteh »

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
peteh
Posts: 10
Joined: 27 Jan 2015, 05:28

Re: Cannot change project

Post by peteh »

- 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
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot change project

Post by atrol »

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 ?
Please use Search before posting and read the Manual
peteh
Posts: 10
Joined: 27 Jan 2015, 05:28

Re: Cannot change project

Post by peteh »

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.
peteh
Posts: 10
Joined: 27 Jan 2015, 05:28

Re: Cannot change project

Post by peteh »

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?
Everybody in or organisation has this problem. We use at least Chrome, Safari and FireFox.
atrol wrote:Are you able to reproduce the issue at http://www.atrol.de/mantisbt-1.2 ?
I have no credentials to log in and the ones I use for this forum don't work.

Thanks
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot change project

Post by atrol »

peteh wrote: I have no credentials to log in and the ones I use for this forum don't work.
There is a link "Signup for a new account"
Please use Search before posting and read the Manual
peteh
Posts: 10
Joined: 27 Jan 2015, 05:28

Re: Cannot change project

Post by peteh »

atrol wrote:There is a link "Signup for a new account"
I'm such a blind nut, sorry.

Just tried and I can change the project without any problems there.
peteh
Posts: 10
Joined: 27 Jan 2015, 05:28

Re: Cannot change project

Post by peteh »

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:
Image

And here is what happens on our Mantis BT site:
Image

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.
peteh
Posts: 10
Joined: 27 Jan 2015, 05:28

Re: Cannot change project

Post by peteh »

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:
Image

Ours:
Image
peteh
Posts: 10
Joined: 27 Jan 2015, 05:28

Re: Cannot change project

Post by peteh »

Any pointers what I could check next would be hugely appreciated?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Cannot change project

Post by atrol »

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

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;
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?
Please use Search before posting and read the Manual
peteh
Posts: 10
Joined: 27 Jan 2015, 05:28

Re: Cannot change project

Post by peteh »

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.
Post Reply