Last modified: 2011-11-11 22:14:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34367, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32367 - Moving a file and deleting the destination page dies with a FileRepo exception
Moving a file and deleting the destination page dies with a FileRepo exception
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.20.x
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-11 21:32 UTC by Roan Kattouw
Modified: 2011-11-11 22:14 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Roan Kattouw 2011-11-11 21:32:58 UTC
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}
Comment 1 Bryan Tong Minh 2011-11-11 22:11:18 UTC
Needs an if ( $nt->getNamespace() == NS_FILE ) wrapper. Did this ever work?
Comment 2 Aaron Schulz 2011-11-11 22:14:38 UTC
Fixed in r102818.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links