Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addKubernetes/addOpenshift without ID fails #2755

Closed
Schnitzel opened this issue Jul 7, 2021 · 0 comments · Fixed by #2929
Closed

addKubernetes/addOpenshift without ID fails #2755

Schnitzel opened this issue Jul 7, 2021 · 0 comments · Fixed by #2929
Labels
1-api-auth API & Authentication subsystem

Comments

@Schnitzel
Copy link
Contributor

Describe the bug

trying to run this:

mutation addKubernetes {
  addOpenshift(input:
{
  name: "foobar",
  consoleUrl: "no-need",
  token: "no-need",
  routerPattern: "no-need",
}
  ) {
    id
  }
}

fails with:

{
  "errors": [
    {
      "message": "(conn=232212, no: 45018, SQLState: HY000) Placeholder 'id' is not defined\nsql: CALL CreateOpenshift(\n      :id,\n      :name,\n      :console_url,\n      :token,\n      :router_pattern,\n      NULL,\n      NULL,\n      NULL,\n      NULL\n    ); - parameters:{'name':'foobar','console_url':'no-need','token':'no-need','router_pattern':'no-need'}",
      "locations": [
        {
          "line": 328,
          "column": 3
        }
      ],
      "path": [
        "addOpenshift"
      ]
    }
  ],
  "data": {
    "addOpenshift": null
  }
}

you need to add it with a specific ID set:

mutation addKubernetes {
  addOpenshift(input:
{
  name: "foobar",
  consoleUrl: "no-need",
  token: "no-need",
  routerPattern: "no-need",
  id: 151
}
  ) {
    id
  }
}

which works, but that should not be expected

@Schnitzel Schnitzel changed the title addKubernetes without ID fails addKubernetes/addOpenshift without ID fails Jul 7, 2021
@rocketeerbkw rocketeerbkw added the 1-api-auth API & Authentication subsystem label Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-api-auth API & Authentication subsystem
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants