View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003948 | mantisbt | bugtracker | public | 2004-06-17 07:09 | 2004-08-29 02:15 |
Reporter | hugopedersen | Assigned To | vboctor | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Mantis | OS | Any | OS Version | 0.18.2 |
Fixed in Version | 0.19.0rc1 | ||||
Summary | 0003948: Will not jump to bug when following link in mail | ||||
Description | When a bug is reported a link to that is send to a user. If this user who is not logged on to Mantis, clicks the link Mantis shows the logon screen but after login it doesn't jump to the bug that was part of the link. | ||||
Steps To Reproduce | Be sure not to be logged on to Mantis | ||||
Additional Information | I am not allowing Anonymous login | ||||
Tags | No tags attached. | ||||
Attached Files | footer.txt (594 bytes)
<body> <br> <table border="1" cellspacing="0" width="100%" bgcolor="#9c9cf7"> <tr> <td> </td> </tr> </table> <table border="0" width="100%"> <tr> <td width="40%"> <a target="_blank" href="http://www.jamo.com/consumer/products/products.php3?id=DVR+50"> <IMG src="jamo/dvr_50.gif" align="left" border="0"> </a> </td> <td width="10%"> </td> <td width="40%"> <a target="_blank" href="http://2f.jamo.com/"> <IMG src="jamo/hdp4250.gif" align="right" border="0"> </a> </td> </tr> </table> header.txt (672 bytes)
<body> <table border="0" width="100%"> <tr> <td width="40%"> <a target="_blank" href="http://www.mantisbt.org/"> <IMG src="jamo/mantislogo4.jpg" align="left" border="0"> </a> </td> <td width="10%"> <a target="_blank" href="http://www.php.net/"> <IMG src="jamo/php.gif" align="center" border="0"> </a> </td> <td width="40%"> <a target="_blank" href="http://www.mysql.org/"> <IMG src="jamo/mysql-logo.png" align="right" border="0"> </a> </td> </tr> </table> <table border="1" cellspacing="0" width="100%" bgcolor="#9c9cf7"> <tr> <td> </td> </tr> </table> | ||||
which version are you using? I'm not allowing anonymous login too. |
|
I think I fixed this some versions back. Try upgrading to 0.18.3. |
|
I have both 0.18.2 and 0.18.3 running and it is not working on either installations. |
|
hmmm... on which side are you after clicking the link and logging in? |
|
When clicking the link I am promted for login and the returned to main_page.php |
|
hmmmm.... sorry, i have no idea. vboctor? is your 0.18.0 / 0.18.3 a "new installed" version or an updated version? i have both versions "new installed" without this problem. bearbeitet am: 06-18-04 05:37 |
|
Both 0.18.2 and 0.18.3 are clean installs - the only mods are the mailsetup, header and footer on pages and db setup in config |
|
maybe you've changed something essential in the header. can you post it? in between i'll try to find out where this redirect is happening. bye the way: the user who tries to login, has access to the bug in the link? bearbeitet am: 06-18-04 06:28 |
|
The user is me, and I am administrator with access to everything I think. I have uploaded the 2 files I use for header and footer - there are some images that I haven't uploaded |
|
ok, your header / footer shouldn't be the problem, unless its not in the page ahead of the redirect. i guess you need some help of vboctor... the redirect to the bug-page is in the page login_cookie_test.php you should get something like /mantis/bug_view_page.php?bug_id=0000123 did you try to switch on all debug-messages under "Debugging" in config_defaults_inc.php (especially $g_stop_on_errors=ON;)? maybe you'll get a warning then. bearbeitet am: 06-18-04 07:00 |
|
When I try the I get main_page.php |
|
$g_stop_on_errors = ON; |
|
Sorry - pushed the button to soon $g_show_detailed_errors = ON |
|
hmm... i'm nearly out of ideas... vboctor??? one last thing to check: when you type in an url like http://your-domain/bug_view_page.php?bug_id=0003948 is this the url you get? |
|
The URL that I get is http://your-domain/login_page.php?return= |
|
so thats the problem! which browser are you using? bearbeitet am: 06-23-04 05:48 |
|
Mozilla FireFox 0.8.0+ |
|
do you have the problem in both browsers? if yes... open core/access_api.php place afterwards and tell me if you get an output and paste it here (when opening url like http://your-domain/bug_view_page.php?bug_id=0000123). should be something like bearbeitet am: 06-23-04 06:13 |
|
The only output I get is p_return_page: |
|
And the problem is in both browsers |
|
i've edited my note.. |
|
p_return_page: - REQUEST_URI: |
|
so.. i guess its not a mantis.. but a server problem... $_SERVER['REQUEST_URI'] is a server variable... please ask vboctor for more details.. my knowledge isn't enough... i think. |
|
Erinnerung gesendet an vboctor Hi! The server-variable $_SERVER['REQUEST_URI'] is empty... Bye, |
|
What version of PHP are you using? |
|
PHP 4.3.4 |
|
The issue is still alive after I installed version 0.19.0a2 so it might be a server problem, but what? Any one with any ideas |
|
grangeway> I can see you added a relationship, but I can't get access to it. |
|
Question: Does changing the 2-3 references in access_api, authentication_api of: Have any effect for you ? |
|
Yes it results in: APPLICATION ERROR #200 |
|
in which case, try adding one of following before the REQUEST_URI lines. I'd be interested in whether both/neither work. if (!isset($_SERVER['REQUEST_URI'])) { if (!isset($_SERVER['REQUEST_URI'])) { |
|
if (!isset($_SERVER['REQUEST_URI'])) { when inserted in access_api, authentication_api and when pressing the link in my mail I am redirected to the login picture and when logged in I am returned to the correct bug / issue I haven't tried the second yet - should I do so ? |
|
The code in authentication_api |
|
ok, so that code solves the issuefor you? Both $_SERVER['PHP_SELF'] and SCRIPT_NAME as far as i know should return the same value - i'd be interested in you confirming that this is the case as i think i'd rather check for $_SERVER['PHP_SELF'] then SCRIPT_NAME If that does fix the issue, i'll check something into CVS for 0.19 Paul |
|
The fix for this issue should be in 0.19.0rc1 when it's released. |
|
Has to add note for Paul |
|
Just tested the second code snippet and the result is the same - it works. If that is the one you like the most, then I will leave this in my setup. Had to reopen the bug to be able to add this comment! I think some people would like that the participant in an issue (and only those) could add notes even after the bug was resolved/closed - I know that I would. |
|
thanks |
|