{"record":{"id":"915a7a9119c63717","repo":"goharbor/harbor","slug":"bad-request-915a7a","errorCode":"BAD_REQUEST","errorMessage":"the value of \"base\" query can only be exact match value with \"*\"","messagePattern":"the value of \"base\" query can only be exact match value with \"\\*\"","errorType":"validation","errorClass":"errors.Error","httpStatus":400,"severity":"error","filePath":"src/pkg/artifact/dao/dao.go","lineNumber":374,"sourceCode":"}\n\n// handle q=base=*\n// when \"q=base=*\" is specified in the query, the base collection is the all artifacts of database,\n// otherwise the base collection is only the tagged artifacts and untagged artifacts that aren't\n// referenced by others\nfunc setBaseQuery(qs beegoorm.QuerySeter, query *q.Query) (beegoorm.QuerySeter, error) {\n\tif query == nil || len(query.Keywords) == 0 {\n\t\tqs = qs.FilterRaw(\"id\", both)\n\t\treturn qs, nil\n\t}\n\tbase, exist := query.Keywords[\"base\"]\n\tif !exist {\n\t\tqs = qs.FilterRaw(\"id\", both)\n\t\treturn qs, nil\n\t}\n\tb, ok := base.(string)\n\tif !ok || b != \"*\" {\n\t\treturn qs, errors.New(nil).WithCode(errors.BadRequestCode).\n\t\t\tWithMessage(`the value of \"base\" query can only be exact match value with \"*\"`)\n\t}\n\t// the base is specified as \"*\"\n\treturn qs, nil\n}\n\n// handle query string: q=tags=value q=tags=~value\nfunc setTagQuery(ctx context.Context, qs beegoorm.QuerySeter, query *q.Query) (beegoorm.QuerySeter, error) {\n\tif query == nil || len(query.Keywords) == 0 {\n\t\treturn qs, nil\n\t}\n\ttags, exist := query.Keywords[\"tags\"]\n\tif !exist {\n\t\ttags, exist = query.Keywords[\"Tags\"]\n\t\tif !exist {\n\t\t\treturn qs, nil\n\t\t}\n\t}","sourceCodeStart":356,"sourceCodeEnd":392,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/artifact/dao/dao.go#L356-L392","documentation":"Error \"the value of \"base\" query can only be exact match value with \"*\"\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/artifact/dao/dao.go:374 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"}