Last modified: 2014-07-16 12:07:16 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 T68842, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66842 - Fatal error: Call to undefined method Wikibase\Api\EditEntity::setTitle() in Wikibase\EditEntity
Fatal error: Call to undefined method Wikibase\Api\EditEntity::setTitle() in ...
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=3 s=2014-06-17
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-19 14:36 UTC by Aude
Modified: 2014-07-16 12:07 UTC (History)
3 users (show)

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


Attachments

Description Aude 2014-06-19 14:36:30 UTC
Fatal error: Call to undefined method Wikibase\Api\EditEntity::setTitle() in /Library/WebServer/Documents/php-master/extensions/WikidataBuild/extensions/Wikibase/repo/includes/EditEntity.php on line 746

$context->setTitle() is called which is a method available in RequestContext

ApiBase derives from ContextSource which lacks this method.  ApiWikibase::getContext returns RequestContext.

We either need to restore that or do something perhaps hacky in EditEntity like:

new DerivativeContext( $context ) which then allows title to be set.

I don't know, if / where else, this issue occurs.

this issue means that I cannot edit via the api, which is obviously bad (and bad that tests didn't catch this)
Comment 1 Gerrit Notification Bot 2014-06-19 16:36:35 UTC
Change 140733 had a related patch set uploaded by Aude:
Give EditEntity a valid context (RequestContext)

https://gerrit.wikimedia.org/r/140733
Comment 2 Gerrit Notification Bot 2014-06-20 14:29:21 UTC
Change 140733 merged by jenkins-bot:
Give EditEntity a valid context (RequestContext)

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

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


Navigation
Links