2016-12-08 04:48 EST

View Issue Details Jump to Notes ] Wiki ]
IDProjectCategoryView StatusLast Update
0008877mantisbtintegrationpublic2010-08-22 14:45
Assigned To 
PlatformWAMPOSWindowsOS Version
Product Version1.1.1 
Target VersionFixed in Version 
Summary0008877: MediaWiki integration should use Windows/WAMP friendly URL
DescriptionThe MediaWiki integration API (wiki_mediawiki_api.php) uses at function "wiki_mediawiki_get_url_for_page_id" the root namespace as a file name in the article URL. This causes Apache to crash in WAMP servers, due to Windows does not allow a colon (:) in file names.

A solution to this kind of problem, frequently recommended by Apache users, is the use of Apache rules to rewrite the URLs (see http://www.mwusers.com/forums/archive/index.php/t-4407.html and http://www.apachelounge.com/forum/viewtopic.php?p=996 ), but a very simple way of avoid this problem is passing the article title as a parameter to MediaWiki index page instead of call the article title as a file name.

I'm attaching a patch file for the wiki_mediawiki_api.php file. If you agree with this change, please commit it.
Attached Files
  • patch file icon mantis1.1.1_MediawikiArticlePath.patch (437 bytes) 2008-02-11 08:28 -
    Index: wiki_mediawiki_api.php
    --- wiki_mediawiki_api.php	(revision 4968)
    +++ wiki_mediawiki_api.php	(working copy)
    @@ -35,7 +35,7 @@
     			$t_page_id = $t_root_namespace . ':' . $p_page_id;
    -		return $t_root_url . 'index.php/' . urlencode( $t_page_id );
    +		return $t_root_url . 'index.php?title=' . urlencode( $t_page_id );
     	# ----------------------
    patch file icon mantis1.1.1_MediawikiArticlePath.patch (437 bytes) 2008-02-11 08:28 +


There are no notes attached to this issue.

-Issue History
Date Modified Username Field Change
2008-02-11 08:28 jefersonfoliveira New Issue
2008-02-11 08:28 jefersonfoliveira File Added: mantis1.1.1_MediawikiArticlePath.patch
2010-08-22 14:45 atrol Tag Attached: patch
+Issue History