goharbor/harbor · error

empty uuid of registration

Error message

empty uuid of registration

What it means

Error "empty uuid of registration" thrown in goharbor/harbor.

Source

Thrown at src/pkg/scan/scanner/manager.go:107

	if err := registration.Validate(true); err != nil {
		return "", errors.Wrap(err, "create registration")
	}

	if err := encryptCredential(registration); err != nil {
		return "", errors.Wrap(err, "encrypt credential: create registration")
	}

	if _, err := scanner.AddRegistration(ctx, registration); err != nil {
		return "", errors.Wrap(err, "dao: create registration")
	}

	return uid.String(), nil
}

// Get ...
func (bm *basicManager) Get(ctx context.Context, registrationUUID string) (*scanner.Registration, error) {
	if len(registrationUUID) == 0 {
		return nil, errors.New("empty uuid of registration")
	}

	r, err := scanner.GetRegistration(ctx, registrationUUID)
	if err != nil {
		return nil, err
	}
	if r != nil {
		if err := decryptCredential(r); err != nil {
			return nil, errors.Wrap(err, "decrypt credential: get registration")
		}
	}
	return r, nil
}

// Update ...
func (bm *basicManager) Update(ctx context.Context, registration *scanner.Registration) error {
	if registration == nil {
		return errors.New("nil registration to update")

View on GitHub (pinned to 7b2fd08cc5)

When it happens

Trigger: Thrown at src/pkg/scan/scanner/manager.go:107 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of goharbor/harbor@7b2fd08cc5 (2026-08-16). Data as JSON: /api/errors/7ec5a0f8220722ac. Report an issue: GitHub.