Last modified: 2013-06-05 22:55:00 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 T50711, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48711 - Fatal when pre-defined (special) PropertyId is no longer registered
Fatal when pre-defined (special) PropertyId is no longer registered
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-22 14:20 UTC by MWJames
Modified: 2013-06-05 22:55 UTC (History)
4 users (show)

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


Attachments

Description MWJames 2013-05-22 14:20:54 UTC
During the course of the usage of specials properties, it can happen that once pre-defined properties (_Foo) are no longer registered but still reside within a subject as property.

Trying to query subjects with those properties will result in a fatal [1] because SMWDIHandlerWikiPage::dataItemFromDBKeys tries to invoke a propertyId that is no longer is registered with SMWDIProperty::initPropertyRegistration but non-updated subjects(wikipages) still have those properties attached.

[1] There is no predefined property with "_MEDIATYPE".
Backtrace:
#0 \\foo\mw\SemanticMediaWiki\includes\storage\SQLStore\SMW_DIHandler_WikiPage.php(120): SMWDIProperty->__construct('_MEDIATYPE')
#1 \\foo\mw\SemanticMediaWiki\includes\storage\SQLStore\SMW_SQLStore3_Queries.php(450): SMWDIHandlerWikiPage->dataItemFromDBKeys(Array)
#2 \\foo\mw\SemanticMediaWiki\includes\storage\SQLStore\SMW_SQLStore3_Queries.php(311): SMWSQLStore3QueryEngine->getInstanceQueryResult(Object(SMWQuery), 1)
#3 \\foo\mw\SemanticMediaWiki\includes\storage\SQLStore\SMW_SQLStore3.php(350): SMWSQLStore3QueryEngine->getQueryResult(Object(SMWQuery))
#4 \\foo\mw\SemanticMediaWiki\includes\specials\SMW_SpecialAsk.php(253): SMWSQLStore3->getQueryResult(Object(SMWQuery))
#5 \\foo\mw\SemanticMediaWiki\includes\specials\SMW_SpecialAsk.php(72): SMWAskPage->makeHTMLResult()
#6 \\foo\includes\SpecialPage.php(613): SMWAskPage->execute(NULL)
#7 \\foo\includes\SpecialPageFactory.php(499): SpecialPage->run(NULL)
#8 \\foo\includes\Wiki.php(291): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#9 \\foo\includes\Wiki.php(565): MediaWiki->performRequest()
#10 \\foo\includes\Wiki.php(458): MediaWiki->main()
#11 \\foo\index.php(59): MediaWiki->run()
Comment 1 Gerrit Notification Bot 2013-05-22 14:27:39 UTC
Related URL: https://gerrit.wikimedia.org/r/64938 (Gerrit Change Ibfb2ceb33d0260c281b4d72a79deacdf14ac60d8)

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


Navigation
Links