{"record":{"id":"946cac6e7d177749","repo":"goharbor/harbor","slug":"match-repo-name-s-against-pattern-s-error","errorCode":null,"errorMessage":"match repo name '%s' against pattern '%s' error: %v","messagePattern":"match repo name '(.+?)' against pattern '(.+?)' error: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/pkg/reg/adapter/dockerhub/adapter.go","lineNumber":303,"sourceCode":"\t\t\tpage++\n\t\t}\n\t\tlog.Debugf(\"got %d repositories for namespace %s\", n, ns)\n\t}\n\n\tvar rawResources = make([]*model.Resource, len(repos))\n\trunner := utils.NewLimitedConcurrentRunner(adp.MaxConcurrency)\n\tfor i, r := range repos {\n\t\tindex := i\n\t\trepo := r\n\t\trunner.AddTask(func() error {\n\t\t\tname := fmt.Sprintf(\"%s/%s\", repo.Namespace, repo.Name)\n\t\t\tlog.Debugf(\"Routine started to collect tags for repo: %s\", name)\n\n\t\t\t// If name filter set, skip repos that don't match the filter pattern.\n\t\t\tif len(nameFilter) != 0 {\n\t\t\t\tm, err := util.Match(nameFilter, name)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"match repo name '%s' against pattern '%s' error: %v\", name, nameFilter, err)\n\t\t\t\t}\n\t\t\t\tif !m {\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvar tags []string\n\t\t\tpage := 1\n\t\t\tpageSize := 100\n\t\t\tfor {\n\t\t\t\tpageTags, err := a.getTags(repo.Namespace, repo.Name, page, pageSize)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"get tags for repo '%s/%s' from DockerHub error: %v\", repo.Namespace, repo.Name, err)\n\t\t\t\t}\n\t\t\t\tfor _, t := range pageTags.Tags {\n\t\t\t\t\ttags = append(tags, t.Name)\n\t\t\t\t}\n","sourceCodeStart":285,"sourceCodeEnd":321,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/reg/adapter/dockerhub/adapter.go#L285-L321","documentation":"Error \"match repo name '%s' against pattern '%s' error: %v\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/reg/adapter/dockerhub/adapter.go:303 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}