Project

General

Profile

Actions

Feature #8018

closed

Repository creation (API/CLI/UI) should perform validation on name for Docker-based repositories

Added by Og Maciel about 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Web UI
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Since the name for a Docker-based repository need to match the exact 'upstream name' for an existing Docker image, we will need to perform some type of sanitation in the name field so that only the expected characters (i.e. a-z, 0-9, / and _) are allowed. If we don't perform any validation for Docker-based repos, then the user won't find out about this until he/she tries to synchronize it.

If no form validation can be performed (UI), then perhaps we should display some type of help text explaining what the rules are? Preferably all layers (API, CLI and UI) would fail to create the repository and provide some useful information so that the user can fix the name.

Actions

Also available in: Atom PDF