View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012092 | mantisbt | api soap | public | 2010-06-18 11:17 | 2010-07-29 10:45 |
Reporter | dominik | Assigned To | jreese | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.1 | ||||
Fixed in Version | 1.2.2 | ||||
Summary | 0012092: Wrong URL in E-Mail notifications by changes via webservice | ||||
Description | When adding an issue via webservice, the email notification has the wrong url. Same problem was already fixed in 0008604 but seems to reappear again. The path seems to be recognized wrong: "normal" use$g_path = 'https://www.server.org/mantis/'; "SOAP" use$g_path = 'https://www.server.org/mantis/api/soap/'; I think the following lines from config_defaults_inc.php are responsible for that: $t_path = str_replace( basename( $_SERVER['PHP_SELF'] ), '', $_SERVER['PHP_SELF'] ); | ||||
Additional Information | --sip--
| ||||
Tags | No tags attached. | ||||
In my case a $t_path = str_replace( basename( $_SERVER['PHP_SELF'] ), '', $_SERVER['PHP_SELF'] ); did the trick (at least as far as I can see)... |
|
This is also the case if you access Mantis via different addresses (e.g., inside/outside DMZ or via an ssh tunnel). I see things like http://localhost:10180/mantis/view.php?id=3305 in notifications in this case. It may be useful to have the address presented in notifications be a fixed one, rather than calculating it. The same issue occurs in the old source code integration as well. |
|
Confirmation: patch resolved problem for me |
|
Fix committed to 1.2.x and master branches. |
|
MantisBT: master 00e60da3 2010-06-21 14:00 Details Diff |
Fix 0012092: Detect SOAP API in url sniffing |
Affected Issues 0012092 |
|
mod - config_defaults_inc.php | Diff File | ||
MantisBT: master-1.2.x cf7f557f 2010-06-21 14:00 Details Diff |
Fix 0012092: Detect SOAP API in url sniffing |
Affected Issues 0012092 |
|
mod - config_defaults_inc.php | Diff File |