Page MenuHomePhabricator

Z7 with local keys has keys messed up when stored by API
Open, Needs TriagePublicBUG REPORT

Description

Description

Steps to reproduce:

  1. Send a request to API to create a new composition implementation for Z10339 which contains a Z7 like this:
{
    "Z1K1": "Z7",
    "Z7K1": {
        "Z1K1": "Z18",
        "Z18K1": {
	    "Z1K1": "Z6",
	    "Z6K1": "Z10339K1"
        }
    },
    "K1": {
        "Z1K1": "Z6",
	"Z6K1": "first input"
    },
    "K2": {
        "Z1K1": "Z6",
	"Z6K1": "second input"
    },
}

Observed behavior:

  • API stores the implementation, but with the "K2" key replaced by "Z7K2", i.e.
{
    "Z1K1": "Z7",
    "Z7K1": {
        "Z1K1": "Z18",
        "Z18K1": {
	    "Z1K1": "Z6",
	    "Z6K1": "Z10339K1"
        }
    },
    "K1": {
        "Z1K1": "Z6",
	"Z6K1": "first input"
    },
    "Z7K2": {
        "Z1K1": "Z6",
	"Z6K1": "second input"
    },
}

Expected behavior (Acceptance criteria):

  • It doesn't adjust the key.

Note
The reproduction step calls the API directly because T324597 means you cannot currently use the UI.


Completion checklist