Last modified: 2013-07-22 14:18:52 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 T47880, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45880 - Exception from line 531 of EditEntity.php:
Exception from line 531 of EditEntity.php:
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Unprioritized minor (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-08 03:59 UTC by Sam Reed (reedy)
Modified: 2013-07-22 14:18 UTC (History)
3 users (show)

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


Attachments

Description Sam Reed (reedy) 2013-03-08 03:59:21 UTC
2 issues here: 
1) an exception is being thrown
2) No message at all..

        public function checkEditPermissions() {
                wfProfileIn( __METHOD__ );

                foreach ( $this->requiredPremissions as $action ) {
                        $permissionStatus = $this->newContent->checkPermission( $action, $this->getUser() );

                        $this->status->merge( $permissionStatus );

                        if ( !$this->status->isOK() ) {
                                $this->errorType |= self::PERMISSION_ERROR;
                                wfProfileOut( __METHOD__ );
                                throw new \PermissionsError( $action, $permissionStatus->getErrorsArray() );
                        }
                }

                wfProfileOut( __METHOD__ );
        }



2013-03-08 03:15:09 mw1204 wikidatawiki: [22a243ee] /w/api.php   Exception from line 531 of /usr/local/apache/common-local/php-1.21wmf11/extensions/Wikibase/repo/includes/EditEntity.php:
#0 /usr/local/apache/common-local/php-1.21wmf11/extensions/Wikibase/repo/includes/EditEntity.php(596): Wikibase\EditEntity->checkEditPermissions()
#1 /usr/local/apache/common-local/php-1.21wmf11/extensions/Wikibase/repo/includes/api/CreateClaim.php(123): Wikibase\EditEntity->attemptSave('', 2, '+\')
#2 /usr/local/apache/common-local/php-1.21wmf11/extensions/Wikibase/repo/includes/api/CreateClaim.php(62): Wikibase\Api\CreateClaim->saveChanges(Object(Wikibase\ItemContent))
#3 /usr/local/apache/common-local/php-1.21wmf11/includes/api/ApiMain.php(839): Wikibase\Api\CreateClaim->execute()
#4 /usr/local/apache/common-local/php-1.21wmf11/includes/api/ApiMain.php(379): ApiMain->executeAction()
#5 /usr/local/apache/common-local/php-1.21wmf11/includes/api/ApiMain.php(350): ApiMain->executeActionWithErrorHandling()
#6 /usr/local/apache/common-local/php-1.21wmf11/api.php(77): ApiMain->execute()
#7 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...')
#8 {main}
Comment 1 Addshore 2013-07-22 14:18:52 UTC
The section of code the exception seems to have been thrown from no longer exists.

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


Navigation
Links