Skip to content

handle invalid error during the OCI registry registration #105

@migmartri

Description

@migmartri

The system raises an exception, and returns a 500 error to the user, during the creation of an OCI repository if the name is invalid.

*name.ErrBadName
repository can only contain the characters `abcdefghijklmnopqrstuvwxyz0123456789_-./`: [REPO_URI]

/home/runner/work/chainloop/chainloop/app/controlplane/internal/service/ocirepository.go in (*OCIRepositoryService).Save at line 56

This task is about

  • Make sure that the validation error gets exposed to the user, not just a generic 500 error
  • Do not record an exception in such case and just return validation error

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions