Skip to content

Trying to save a Nomad variable errors with "Invalid name." #26234

Open
@shochdoerfer

Description

@shochdoerfer

Nomad version

v1.10.2

Operating system and Environment details

Debian Bookworm

Issue

I want to store a large file (250KB) as a Nomad variable.

Clicking on the "Save variables" button returns this error:

Error saving nomad/jobs/my-job
Invalid name. Name must contain only alphanumeric or "-", "_", "~", or "/" characters, and be fewer than 128 characters in length.

Expected Result

The error message is wrong. It's not the name that is invalid, but the value. Show the following or a similar error message instead:

Error saving nomad/jobs/my-job
Invalid value. Value must contain only alphanumeric or "-", "_", "~", or "/" characters, and be fewer than 128 characters in length.

Ideally, showing the character limit also in the "Editing nomad/jobs/my-job" view would be nice.

Metadata

Metadata

Labels

stage/acceptedConfirmed, and intend to work on. No timeline committment though.theme/uitype/bug

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions