View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0016039 | mantisbt | bugtracker | public | 2013-06-09 20:17 | 2014-12-08 02:07 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.0dev | ||||
Target Version | 1.3.0-beta.1 | ||||
Summary | 0016039: Login, signup and lost password pages cause error in apache log | ||||
Description | Whenever the login page is loaded, errors appear in the apache error log: <pre>[Sun Jun 09 23:58:01 2013] [error] [client 127.0.0.1] script '/var/www/mantis/css/login_page.php' not found or unable to stat, referer: http://localhost/mantis/login_page.php</pre> | ||||
Tags | No tags attached. | ||||
This is caused by the dynamic css page defining the custom status colors (status_config.php), which is always loaded (through several api's included by core.php). The culprit is the call to get_percentage_by_status() which needs to call auth_get_current_user_id(), but as we're obviously not authenticated yet, we get to access_denied(). This relies on $_SERVER['SCRIPT_NAME'] to redirect to the login page, but since we're in css directory we get a 404 error. To fix this, status_config.php should be changed to exit when called from the login page (as the status colors are anyway not needed on the login page). |
|
sdfgdf |
|
xdfjghjgh |
|
MantisBT: master c2dd477a 2013-06-09 16:31 Damien Regad Details Diff |
Fix 0016039: Login page causes error in web server log Regression introduced by 564f92a02ff738645d68b6e7f5ace1009b5c5f9f. Dynamic CSS 'status_config.php' page now exits without generating any stylesheets when called from login_page.php (status colors are not needed there anyway). |
Affected Issues 0016039 |
|
mod - css/status_config.php | Diff File | ||
MantisBT: master cfd1d1a7 2013-10-23 22:54 Details Diff |
Additional fix 0016039: Signup page causes error in web server log |
Affected Issues 0016039 |
|
mod - css/status_config.php | Diff File | ||
MantisBT: master 638a04b4 2013-10-23 23:01 Details Diff |
Additional fix 0016039: Lost password page causes error in web server log |
Affected Issues 0016039 |
|
mod - css/status_config.php | Diff File | ||
MantisBT: master e8cd4bea 2013-10-27 11:02 Details Diff |
Additional fix 0016039: Accout update page causes error in web server log |
Affected Issues 0016039 |
|
mod - css/status_config.php | Diff File |