X Tutup
Skip to content

NameParser validation is not correct #182

@magnayn

Description

@magnayn

E.g:

  if (!VALID_REPO_PATTERN.matcher(name).matches()) {
            throw new InvalidRepositoryNameException(String.format(
                    "Invalid repository name (%s), only [a-z0-9-_.] are allowed", name));
        }

Disallows names with hyphens, which are allowed.

Correct set seem to be here:

https://github.com/docker/docker/blob/master/registry/v2/regexp.go

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup