View Issue Details

IDProjectCategoryView StatusLast Update
0016039mantisbtbugtrackerpublic2014-12-08 02:07
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.3.0dev 
Target Version1.3.0-beta.1 
Summary0016039: 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>
<pre>[Mon Jun 10 00:01:17 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?return=%2Fmantis%2Fmy_view_page.php</pre>

TagsNo tags attached.

Activities

dregad

dregad

2013-06-09 20:29

developer   ~0037156

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).

govind

govind

2013-12-01 22:04

reporter   ~0038690

sdfgdf

govind

govind

2013-12-01 22:05

reporter   ~0038739

xdfjghjgh

Related Changesets

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

atrol


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

atrol


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

atrol


Details Diff
Additional fix 0016039: Accout update page causes error in web server log Affected Issues
0016039
mod - css/status_config.php Diff File