stash-box
stash-box copied to clipboard
[Bug Report] nil pointer dererence on SceneEditUpdate mutation
Describe the bug
When submitting a sceneEditUpdate mutation with a mismatched operation enum, GQL will pass through an internal system error
To Reproduce
- Create an edit via WebUI with ID
edit-uuidof enumCREATE - Update the edit via GQL query
mutation SceneEditUpdate {
sceneEditUpdate(
input: {
edit: {
comment: "edit"
operation: MODIFY
}
details: { title: "lorem ipsum 2" }
}
id: "edit-uuid"
) {
status
}
}
response
{
"errors": [
{
"message": "Internal system error. Error <runtime error: invalid memory address or nil pointer dereference>",
"path": [
"sceneEditUpdate"
]
}
],
"data": {
"sceneEditUpdate": null
}
}
Expected behavior An error explining that the operation ENUM does not match the targeted edit
Screenshots stash-box server logs: https://gist.github.com/feederbox826/5ba2924b3168136433a914c880cef4b2
Additional context N/a