Page MenuHomePhabricator

Ensure the ZObject's type exists
Closed, ResolvedPublic


Extend the definition of what is well-formed:

For every well-formed ZObject, ensure that the value of the Z1K1/type key is the ZID of an object that exists in the wiki.

Event Timeline

Change 617171 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/extensions/WikiLambda@master] Validate that a ZObject's type exists

Change 617171 merged by jenkins-bot:
[mediawiki/extensions/WikiLambda@master] Validate that a ZObject's type exists

Seems to currently only check the top level object, not yet embedded objects, i.e. the following serialization stores fine.

  "Z1K1": "Z2",
  "Z2K2": {
      "Z1K1": "Foo",
      "K1": "Bar"

With the latest version of the getValue() patch, this won't let you store it any more, but gives a fatal PHP error. Will fix that bit.

DVrandecic claimed this task.

Thanks! Verified