Skip Menu |

This queue is for tickets about the MediaWiki CPAN distribution.

Report information
The Basics
Id: 30627
Status: new
Priority: 0/
Queue: MediaWiki

People
Owner: Nobody in particular
Requestors: buzz [...] exotica.org.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: 1.12



Subject: File uploading wasn't working (includes patch)
Uploads were not working. They did work at some point but something must have changed either with mediawiki or with the module. I'm running mediawiki 1.11.0 See the attached patch for a fix. I have my installation running from http://mywebsite/mediawiki/index.php with a shortcut configured at http://mywebsite/wiki/ the upload tried to post the image to /mediawiki/index.php/Special:Upload which does not work. I have changed it so it tries to post to /mediawiki/index.php?title=Special%3AUpload which seem to make more sense. I also updated the submit value text from "upload" to "Upload file"
Subject: page.diff
--- page.pm 2007-09-24 08:54:58.000000000 +0100 +++ /usr/share/perl5/MediaWiki/page.pm 2007-11-09 20:55:40.000000000 +0000 @@ -427,7 +427,7 @@ # # TODO: check for all known warnings; return extended error info # - my $upload_url = $obj->{client}->{index} . "/Special:Upload"; + my $upload_url = $obj->_wiki_url("Special:Upload"); my $loop = 0; first_try_or_redir: @@ -439,7 +439,7 @@ 'wpUploadFile' => [ undef, $title, Content => $content ], 'wpDestFile' => $title, 'wpUploadDescription' => $note ? $note : "", - 'wpUpload' => 'upload', + 'wpUpload' => 'Upload file', 'wpIgnoreWarning' => $force ? 'true' : 0 )] );
From: buzz [...] exotica.org.uk
I pressed the wrong options for the bug. It is not fixed in 1.12. It is a bug that exists in 1.12. Unfortunately I am unable to correct this due to the strange CPAN bug interface not allowing modifications once submitted.