Page MenuHomePhabricator

Trying to publish a composition fails, throwing `Cannot read properties of undefined (reading 'Z9K1')` JS error
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:
Nothing

What should have happened instead?:
It should save the implementation as a new object.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
Note that we are dealing with a builtin Function here. But https://www.wikifunctions.org/view/en/Z10015 worked

Reported by User:0xDeadbeef

Event Timeline

Jdforrester-WMF renamed this task from Cannot publish a composition for Z801 to Trying to publish a composition fails, throwing `Cannot read properties of undefined (reading 'Z9K1')` JS error.Aug 3 2023, 12:46 PM
Jdforrester-WMF triaged this task as High priority.
Jdforrester-WMF moved this task from To triage to Backlog on the Abstract Wikipedia team board.
Jdforrester-WMF subscribed.

From my console:

TypeError: Cannot read properties of undefined (reading 'Z9K1')
    at S.validateZObject (load.php?lang=en-gb&modules=ext.wikilambda.edit%7Cjquery%2Cvue&skin=vector-2022&version=t1wn5:45:66)
    at Array.<anonymous> (<anonymous>:308:706)
    at S.dispatch (<anonymous>:316:498)
    at S.dispatch (<anonymous>:315:470)
    at T.forEach.n.<computed> (<anonymous>:319:115)

Change 945615 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Fix unsafe validator to not reach into undefined keys

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

Jdforrester-WMF changed the task status from Open to In Progress.Aug 3 2023, 3:56 PM
Jdforrester-WMF moved this task from Backlog to To deploy on the Abstract Wikipedia team board.

Change 945615 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Fix unsafe validator to not reach into undefined keys

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

Change 944862 had a related patch set uploaded (by Jforrester; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@wmf/1.41.0-wmf.20] Fix unsafe validator to not reach into undefined keys

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

Change 944862 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@wmf/1.41.0-wmf.20] Fix unsafe validator to not reach into undefined keys

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

Mentioned in SAL (#wikimedia-operations) [2023-08-03T16:17:26Z] <jforrester@deploy1002> Started scap: Backport for [[gerrit:944862|Fix unsafe validator to not reach into undefined keys (T343393)]]

Mentioned in SAL (#wikimedia-operations) [2023-08-03T16:19:03Z] <jforrester@deploy1002> jforrester: Backport for [[gerrit:944862|Fix unsafe validator to not reach into undefined keys (T343393)]] synced to the testservers mwdebug2002.codfw.wmnet, mwdebug1002.eqiad.wmnet, mwdebug2001.codfw.wmnet, mwdebug1001.eqiad.wmnet, and mw-debug kubernetes deployment (accessible via k8s-experimental XWD option)

Mentioned in SAL (#wikimedia-operations) [2023-08-03T16:28:24Z] <jforrester@deploy1002> Finished scap: Backport for [[gerrit:944862|Fix unsafe validator to not reach into undefined keys (T343393)]] (duration: 10m 57s)