{"record":{"id":"bfcd62a4db2f5ee0","repo":"goharbor/harbor","slug":"bad-aws-url","errorCode":null,"errorMessage":"bad aws url","messagePattern":"bad aws url","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/pkg/reg/adapter/awsecr/adapter.go","lineNumber":71,"sourceCode":"\t\treturn nil, err\n\t}\n\tsvc, err := getAwsSvc(\n\t\tregion, registry.Credential.AccessKey, registry.Credential.AccessSecret, registry.Insecure, registry.CACertificate, nil)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tauthorizer := NewAuth(registry.Credential.AccessKey, svc)\n\treturn &adapter{\n\t\tregistry: registry,\n\t\tAdapter:  native.NewAdapterWithAuthorizer(registry, authorizer),\n\t\tcacheSvc: svc,\n\t}, nil\n}\n\nfunc parseAccountRegion(url string) (string, string, error) {\n\trs := ecrRegexp.FindStringSubmatch(url)\n\tif rs == nil || len(rs) < 3 {\n\t\treturn \"\", \"\", errors.New(\"bad aws url\")\n\t}\n\treturn rs[1], rs[2], nil\n}\n\ntype factory struct {\n}\n\n// Create ...\nfunc (f *factory) Create(r *model.Registry) (adp.Adapter, error) {\n\treturn newAdapter(r)\n}\n\n// AdapterPattern ...\nfunc (f *factory) AdapterPattern() *model.AdapterPattern {\n\treturn getAdapterInfo()\n}\n\nvar (","sourceCodeStart":53,"sourceCodeEnd":89,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/reg/adapter/awsecr/adapter.go#L53-L89","documentation":"Error \"bad aws url\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/reg/adapter/awsecr/adapter.go:71 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"}