Aude has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/247464

Change subject: Check for EntityLookupException in ModifyEntity
......................................................................

Check for EntityLookupException in ModifyEntity

not sure this fixes the problems with merging,
but could be related and this is appearing in the
error logs.

Bug: T115892
Change-Id: Iaf9e6fe6b913464cd1af0ee0be0c739eb2ecdb6c
---
M repo/includes/api/ModifyEntity.php
1 file changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/64/247464/1

diff --git a/repo/includes/api/ModifyEntity.php 
b/repo/includes/api/ModifyEntity.php
index 487f81a..118b92f 100644
--- a/repo/includes/api/ModifyEntity.php
+++ b/repo/includes/api/ModifyEntity.php
@@ -18,6 +18,7 @@
 use Wikibase\DataModel\Entity\ItemId;
 use Wikibase\DataModel\Entity\EntityIdParser;
 use Wikibase\DataModel\Entity\EntityIdParsingException;
+use Wikibase\DataModel\Services\Lookup\EntityLookupException;
 use Wikibase\EntityRevision;
 use Wikibase\Lib\Store\EntityRevisionLookup;
 use Wikibase\Lib\Store\EntityStore;
@@ -207,7 +208,12 @@
 
                        try {
                                $entityRevision = 
$this->revisionLookup->getEntityRevision( $entityId, $baseRevisionId );
+                       } catch ( EntityLookupException $ex ) {
+                               $this->errorReporter->dieException( $ex, 
'no-such-entity' );
                        } catch ( StorageException $ex ) {
+                               // @fixme EntityRevisionLookup still throws 
BadRevisionException, which
+                               // is a subclass of StorageException, so we 
still have some inconsistency
+                               // and need to check both.
                                $this->errorReporter->dieException( $ex, 
'no-such-entity' );
                        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/247464
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaf9e6fe6b913464cd1af0ee0be0c739eb2ecdb6c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to