View Issue Details

IDProjectCategoryView StatusLast Update
0008877mantisbtintegrationpublic2010-08-22 14:45
Reporterjefersonfoliveira 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
PlatformWAMPOSWindowsOS Version
Product Version1.1.1 
Target VersionFixed in Version 
Summary0008877: MediaWiki integration should use Windows/WAMP friendly URL
Description

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

Tagspatch

Relationships

Activities

2008-02-11 08:28

 

mantis1.1.1_MediawikiArticlePath.patch (437 bytes)
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 );
 	}
  
 	# ----------------------

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