[go: up one dir, main page]

Page MenuHomePhabricator

PHP Notice: Undefined index: etag
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   PHP Notice: Undefined index: etag
exception.trace
from /srv/mediawiki/php-1.39.0-wmf.26/extensions/DiscussionTools/includes/ApiDiscussionToolsEdit.php(286)
#0 /srv/mediawiki/php-1.39.0-wmf.26/extensions/DiscussionTools/includes/ApiDiscussionToolsEdit.php(286): MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.39.0-wmf.26/includes/api/ApiMain.php(1900): MediaWiki\Extension\DiscussionTools\ApiDiscussionToolsEdit->execute()
#2 /srv/mediawiki/php-1.39.0-wmf.26/includes/api/ApiMain.php(875): ApiMain->executeAction()
#3 /srv/mediawiki/php-1.39.0-wmf.26/includes/api/ApiMain.php(846): ApiMain->executeActionWithErrorHandling()
#4 /srv/mediawiki/php-1.39.0-wmf.26/api.php(90): ApiMain->execute()
#5 /srv/mediawiki/php-1.39.0-wmf.26/api.php(45): wfApiMain()
#6 /srv/mediawiki/w/api.php(3): require(string)
#7 {main}
Impact
Notes

7 instances in the last 24h, all from private wikis:

  • vrt-wiki.wikimedia.org
  • steward.wikimedia.org
  • arbcom-en.wikipedia.org

Event Timeline

matmarex edited projects, added Editing-team (Kanban Board); removed Editing-team.
matmarex subscribed.

Probably caused by rMW7d5815b57435: ParsoidHandler: do not emit etag for wt2html. We shouldn't expect the etag to be set.

Each of these also causes logging from VisualEditor: MediaWiki\Extension\VisualEditor\ParsoidHelper::transformHTML: Received funny ETag from client: ''. That also shouldn't happen.

Change 826643 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/DiscussionTools@master] ApiDiscussionToolsEdit: etag is optional

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

Change 826644 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] ParsoidHelper: Stop logging missing etags

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

Change 826643 merged by jenkins-bot:

[mediawiki/extensions/DiscussionTools@master] ApiDiscussionToolsEdit: etag is optional

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

Change 826644 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] ParsoidHelper: Stop logging missing etags

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

Looks clear:

"Undefined index: etag": https://logstash.wikimedia.org/goto/fa49f94e565cf04825f696304d232fe5

image.png (527×2 px, 41 KB)

…Unfortunately the other change had the opposite effect than intended. Now filed as T316969.