https://bugzilla.wikimedia.org/show_bug.cgi?id=32367
Web browser: ---
Bug #: 32367
Summary: Moving a file and deleting the destination page dies
with a FileRepo exception
Product: MediaWiki
Version: 1.19-svn
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: Unprioritized
Component: Images and files
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Steps to reproduce:
1) Create [[Foo]]
2) Create [[MediaWiki:Foobarbaz.css]]
3) Attempt to move [[Foo]] to [[MediaWiki:Foobarbaz.css]]
4) When MW complains the destination page exists, check "Yes, delete the page"
and continue
5) You get an exception:
`MediaWiki:Foobarbaz.css` is not a valid file title.
Backtrace:
#0 /home/catrope/mediawiki/trunk/phase3/includes/filerepo/File.php(104):
File::normalizeTitle(Object(Title), 'exception')
#1 /home/catrope/mediawiki/trunk/phase3/includes/filerepo/LocalFile.php(149):
File->__construct(Object(Title), Object(LocalRepo))
#2 /home/catrope/mediawiki/trunk/phase3/includes/filerepo/LocalFile.php(76):
LocalFile->__construct(Object(Title), Object(LocalRepo))
#3 [internal function]: LocalFile::newFromTitle(Object(Title),
Object(LocalRepo))
#4 /home/catrope/mediawiki/trunk/phase3/includes/filerepo/FileRepo.php(90):
call_user_func(Array, Object(Title), Object(LocalRepo))
#5 /home/catrope/mediawiki/trunk/phase3/includes/GlobalFunctions.php(3264):
FileRepo->newFile(Object(Title))
#6
/home/catrope/mediawiki/trunk/phase3/includes/specials/SpecialMovepage.php(379):
wfLocalFile(Object(Title))
#7
/home/catrope/mediawiki/trunk/phase3/includes/specials/SpecialMovepage.php(93):
MovePageForm->doSubmit()
#8 /home/catrope/mediawiki/trunk/phase3/includes/SpecialPageFactory.php(470):
MovePageForm->execute(NULL)
#9 /home/catrope/mediawiki/trunk/phase3/includes/Wiki.php(237):
SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#10 /home/catrope/mediawiki/trunk/phase3/includes/Wiki.php(605):
MediaWiki->performRequest()
#11 /home/catrope/mediawiki/trunk/phase3/includes/Wiki.php(524):
MediaWiki->main()
#12 /home/catrope/mediawiki/trunk/phase3/index.php(58): MediaWiki->run()
#13 {main}
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l