https://bugzilla.wikimedia.org/show_bug.cgi?id=48711

       Web browser: ---
            Bug ID: 48711
           Summary: Fatal when pre-defined (special) PropertyId is no
                    longer registered
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: Unprioritized
         Component: Semantic MediaWiki
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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()

-- 
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

Reply via email to