View Issue Details

IDProjectCategoryView StatusLast Update
0009267mantisbtplug-inspublic2008-08-11 09:41
ReporterBlue Ninja Assigned Tojreese  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit trunk 
Fixed in Version1.2.0a2 
Summary0009267: URL for updating plugin settings is wrong.
Description

The "Update Configuratin" button when changing plugin settings points to the incorrect URL, for both the FAQ and Formatting plugins on my installation. The URL used is:

http://www.mywebsite.com/tracker//tracker/plugin.php?page=MantisCoreFormatting/config

The correct URL is:

http://www.mywebsite.com/tracker/plugin.php?page=MantisCoreFormatting/config

TagsNo tags attached.

Activities

jreese

jreese

2008-06-16 11:23

reporter   ~0018102

Just as a test, can you try setting $g_short_path = '/tracker/' in your config_inc.php and see if this still occurs? I believe this is related to bugs 0009266 and 0009043 because of the way that Mantis attempts to determine a relative URL to work with external applications (like wikis) that use the Mantis header/footer calls. Unfortunately, with the way it's currently implemented, and URL rewriting by Apache, or filesystem symlinking on *nix hosts, can break this detection method, in which case setting $g_short_path manually will at least override the (incorrect) detected value.

Blue Ninja

Blue Ninja

2008-06-16 11:55

reporter   ~0018104

This did not seem to have any effect - other URLs in the tracker seem to still work fine (or at least I haven't noticed any incorrect ones), but the URL for updating plugin settings still seems identically wrong.

cas

cas

2008-06-16 12:59

reporter   ~0018105

Just set $g_short_path = '/tracker/' to $g_short_path = "";

Then it works as it should

Blue Ninja

Blue Ninja

2008-06-16 13:06

reporter   ~0018107

Last edited: 2008-06-16 13:27

Nope, then I get:

SYSTEM WARNING: strpos() [function.strpos]: Empty delimiter

In the "Status" column of my view_all_bug_page.

EDIT: This was due to construction of the URL to the assigned-to user.

jreese

jreese

2008-06-16 13:26

reporter   ~0018108

Thanks for the info Blue Ninja. Found a missing parameter in the core plugin that was generating a relative URL for the redirect when it shoudn't have, and that was getting tacked onto an absolute url...

Fixed in SVN trunk, r5368.

Blue Ninja

Blue Ninja

2008-06-16 13:32

reporter   ~0018111

Ahh, interesting - works for that plugin, but not the FAQ plugin still. I figured it was common code for all plugins - I'll post a link here in Bug 0009261 for him to take care of there. Thanks!

Related Changesets

MantisBT: master 98b76019

2008-06-16 13:25

jreese


Details Diff
Fixed bug 0009267: MantisCoreFormatting plugin did not use correct redirect url.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5368 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0009267
mod - plugins/MantisCoreFormatting/pages/config_edit.php Diff File