stash-box icon indicating copy to clipboard operation
stash-box copied to clipboard

[Bug Report] nil pointer dererence on SceneEditUpdate mutation

Open feederbox826 opened this issue 2 years ago • 0 comments

Describe the bug When submitting a sceneEditUpdate mutation with a mismatched operation enum, GQL will pass through an internal system error

To Reproduce

  1. Create an edit via WebUI with ID edit-uuid of enum CREATE
  2. 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

feederbox826 avatar Nov 03 '23 22:11 feederbox826