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

            Bug ID: 63075
           Summary: Unexpected non-MediaWiki exception encountered, of
                    type "InvalidArgumentException", line 63 of
                    TimeDetailsFormatter.php
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: wikidata-b...@lists.wikimedia.org
          Reporter: aude.w...@gmail.com
                CC: wikidata-b...@lists.wikimedia.org
       Web browser: ---
   Mobile Platform: ---

This is an edge case, but one where i changed a snak to have mismatching
property (data type) and datavalue.  Then I tried to view a diff.

It would be good to make the diff rendering code more robust to handle this.

Unexpected non-MediaWiki exception encountered, of type
"InvalidArgumentException"
[e8dfa289] /index.php?title=Q4&diff=1328&oldid=1327 Exception from line 63 of
/Library/WebServer/Documents/php-master/extensions/Wikibase/lib/includes/formatters/TimeDetailsFormatter.php:
Data value type mismatch. Expected an TimeValue.
Backtrace:
#0
/Library/WebServer/Documents/php-master/extensions/Wikibase/lib/includes/formatters/DispatchingValueFormatter.php(72):
Wikibase\Lib\TimeDetailsFormatter->format(Wikibase\DataModel\Entity\EntityIdValue)
#1
/Library/WebServer/Documents/php-master/extensions/Wikibase/lib/includes/formatters/PropertyValueSnakFormatter.php(91):
Wikibase\Lib\DispatchingValueFormatter->formatValue(Wikibase\DataModel\Entity\EntityIdValue,
string)
#2
/Library/WebServer/Documents/php-master/extensions/Wikibase/lib/includes/formatters/PropertyValueSnakFormatter.php(73):
Wikibase\Lib\PropertyValueSnakFormatter->formatValue(Wikibase\DataModel\Entity\EntityIdValue,
string)
#3
/Library/WebServer/Documents/php-master/extensions/Wikibase/lib/includes/formatters/DispatchingSnakFormatter.php(74):
Wikibase\Lib\PropertyValueSnakFormatter->formatSnak(Wikibase\DataModel\Snak\PropertyValueSnak)
#4
/Library/WebServer/Documents/php-master/extensions/Wikibase/repo/includes/ClaimDifferenceVisualizer.php(243):
Wikibase\Lib\DispatchingSnakFormatter->formatSnak(Wikibase\DataModel\Snak\PropertyValueSnak)
#5
/Library/WebServer/Documents/php-master/extensions/Wikibase/repo/includes/ClaimDifferenceVisualizer.php(184):
Wikibase\ClaimDifferenceVisualizer->formatSnakDetails(Wikibase\DataModel\Snak\PropertyValueSnak)
#6
/Library/WebServer/Documents/php-master/extensions/Wikibase/repo/includes/ClaimDifferenceVisualizer.php(109):
Wikibase\ClaimDifferenceVisualizer->visualizeMainSnakChange(Diff\DiffOpChange)
#7
/Library/WebServer/Documents/php-master/extensions/Wikibase/repo/includes/EntityDiffVisualizer.php(143):
Wikibase\ClaimDifferenceVisualizer->visualizeClaimChange(Wikibase\ClaimDifference,
Wikibase\DataModel\Claim\Statement)
#8
/Library/WebServer/Documents/php-master/extensions/Wikibase/repo/includes/EntityDiffVisualizer.php(101):
Wikibase\EntityDiffVisualizer->getClaimDiffHtml(Diff\DiffOpChange)
#9
/Library/WebServer/Documents/php-master/extensions/Wikibase/repo/includes/EntityContentDiffView.php(177):
Wikibase\EntityDiffVisualizer->visualizeDiff(Wikibase\DataModel\Entity\ItemDiff)
#10
/Library/WebServer/Documents/php-master/includes/diff/DifferenceEngine.php(732):
Wikibase\EntityContentDiffView->generateContentDiffBody(Wikibase\ItemContent,
Wikibase\ItemContent)
#11
/Library/WebServer/Documents/php-master/includes/diff/DifferenceEngine.php(654):
DifferenceEngine->getDiffBody()
#12
/Library/WebServer/Documents/php-master/includes/diff/DifferenceEngine.php(624):
DifferenceEngine->getDiff(string, string, string)
#13
/Library/WebServer/Documents/php-master/includes/diff/DifferenceEngine.php(443):
DifferenceEngine->showDiff(string, string, string)
#14 /Library/WebServer/Documents/php-master/includes/Article.php(801):
DifferenceEngine->showDiffPage(boolean)
#15 /Library/WebServer/Documents/php-master/includes/Article.php(540):
Article->showDiffPage()
#16
/Library/WebServer/Documents/php-master/extensions/Wikibase/repo/includes/actions/ViewEntityAction.php(198):
Article->view()
#17
/Library/WebServer/Documents/php-master/extensions/Wikibase/repo/includes/actions/ViewEntityAction.php(122):
Wikibase\ViewEntityAction->displayEntityContent(Wikibase\ItemContent)
#18 /Library/WebServer/Documents/php-master/includes/Wiki.php(428):
Wikibase\ViewEntityAction->show()
#19 /Library/WebServer/Documents/php-master/includes/Wiki.php(292):
MediaWiki->performAction(Article, Title)
#20 /Library/WebServer/Documents/php-master/includes/Wiki.php(588):
MediaWiki->performRequest()
#21 /Library/WebServer/Documents/php-master/includes/Wiki.php(447):
MediaWiki->main()
#22 /Library/WebServer/Documents/php-master/index.php(49): MediaWiki->run()

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to