Last modified: 2014-11-12 03:58:31 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 T74214, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72214 - ImportTest::testHandlePageContainsRedirect failure with non-wikitext content in main namespace
ImportTest::testHandlePageContainsRedirect failure with non-wikitext content ...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 45750
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-18 13:51 UTC by Aude
Modified: 2014-11-12 03:58 UTC (History)
4 users (show)

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


Attachments

Description Aude 2014-10-18 13:51:33 UTC
ImportTest::testHandlePageContainsRedirect with data set #0 ('<mediawiki>
	<page>
		<title>Test</title>
		<ns>0</ns>
		<id>21</id>
		<redirect title="Test22"/>
		<revision>
			<id>20</id>
			<timestamp>2014-05-27T10:00:00Z</timestamp>
			<contributor>
				<username>Admin</username>
				<id>10</id>
			</contributor>
			<comment>Admin moved page [[Test]] to [[Test22]]</comment>
			<text xml:space="preserve" bytes="20">#REDIRECT [[Test22]]</text>
			<sha1>tq456o9x3abm7r9ozi6km8yrbbc56o6</sha1>
			<model>wikitext</model>
			<format>text/x-wiki</format>
		</revision>
	</page>
</mediawiki>', 'Test22')
This test printed output: Revision 20 using content model wikitext cannot be stored on "Test" on this wiki, since that model is not supported on that page.
Comment 1 This, that and the other (TTO) 2014-11-12 03:58:31 UTC
This really doesn't have anything to do with bug 73283, other than the tests being in the same file.

This is a result of bug 45750. Obviously the test is assuming it is running on a wiki where the content model in mainspace is "wikitext". Presumably there are other tests that assume this as well; I wonder if we should make it a requirement for running the tests that pages in the main namespace have "wikitext" content model?

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


Navigation
Links