Error adding SSH key with empty comment or spaces in comment #30

Closed
opened 2026-04-13 14:16:35 +02:00 by nik · 5 comments
nik commented 2026-04-13 14:16:35 +02:00 (Migrated from edugit.org)
│   File "/usr/local/lib/python3.13/dist-packages/graphene_django_cud/mutations/batch_update.py", line 221, in get_object       │
│     return cls.get_queryset(root, info, full_input).get(pk=cls.resolve_id(input["id"]))                                       │
│                                                                           ~~~~~^^^^^^                                         │
│ graphql.error.graphql_error.GraphQLError: 'id'                                                                                │
│                                                                                                                               │
│ GraphQL request:2:3                                                                                                           │
│ 1 | mutation updateSshKeys($input: [BatchPatchSSHKeyInput]!) {                                                                │
│ 2 |   updateSshKeys(input: $input) {                                                                                          │
│   |   ^                                                                                                                       │
│ 3 |     items: sshKeys {     

Spaces are allowed in comments, and the comment field is allowed to be empty.

```plain │ File "/usr/local/lib/python3.13/dist-packages/graphene_django_cud/mutations/batch_update.py", line 221, in get_object │ │ return cls.get_queryset(root, info, full_input).get(pk=cls.resolve_id(input["id"])) │ │ ~~~~~^^^^^^ │ │ graphql.error.graphql_error.GraphQLError: 'id' │ │ │ │ GraphQL request:2:3 │ │ 1 | mutation updateSshKeys($input: [BatchPatchSSHKeyInput]!) { │ │ 2 | updateSshKeys(input: $input) { │ │ | ^ │ │ 3 | items: sshKeys { ``` Spaces are allowed in comments, and the comment field is allowed to be empty.
nik commented 2026-04-13 14:20:55 +02:00 (Migrated from edugit.org)

changed title from Error adding second SSH key to Error adding SSH key with empty comment or spaces in comment

<p>changed title from <code class="idiff">Error adding <span class="idiff left right deletion">second </span>SSH key</code> to <code class="idiff">Error adding SSH key<span class="idiff left right addition"> with empty comment or spaces in comment</span></code></p>
nik commented 2026-04-13 14:20:55 +02:00 (Migrated from edugit.org)

changed the description

changed the description
magicfelix commented 2026-04-14 11:56:14 +02:00 (Migrated from edugit.org)
created branch [`30-error-adding-ssh-key-with-empty-comment-or-spaces-in-comment`](/AlekSIS/onboarding/AlekSIS-App-Kompjuter/-/compare/master...30-error-adding-ssh-key-with-empty-comment-or-spaces-in-comment) to address this issue
magicfelix commented 2026-04-14 11:57:45 +02:00 (Migrated from edugit.org)

mentioned in merge request !98

mentioned in merge request !98
hansegucker commented 2026-04-15 20:24:29 +02:00 (Migrated from edugit.org)

mentioned in commit 4f1c8fd3ad

mentioned in commit 4f1c8fd3ad92b9e966396d67779f1e3dcd7d5185
hansegucker (Migrated from edugit.org) closed this issue 2026-04-15 20:24:30 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-App-Kompjuter#30
No description provided.