{"record":{"id":"663394f7d0d1ae57","repo":"rancher/rancher","slug":"unsupported-filter-operator-q-for-attribute-q-o","errorCode":null,"errorMessage":"unsupported filter operator %q for attribute %q: only %s allowed","messagePattern":"unsupported filter operator %q for attribute %q: only (.+?) allowed","errorType":"validation","errorClass":null,"httpStatus":400,"severity":"error","filePath":"pkg/auth/providers/scim/filter.go","lineNumber":199,"sourceCode":"\tif !slices.ContainsFunc(allowedAttributes, func(a string) bool {\n\t\treturn strings.EqualFold(f.Attribute, a)\n\t}) {\n\t\treturn fmt.Errorf(\"unsupported filter attribute %q: only %s supported\",\n\t\t\tf.Attribute, strings.Join(allowedAttributes, \", \"))\n\t}\n\n\t// Check operator.\n\tfor _, allowed := range allowedOperators {\n\t\tif f.Operator == allowed {\n\t\t\treturn nil\n\t\t}\n\t}\n\n\tallowedStrs := make([]string, len(allowedOperators))\n\tfor i, op := range allowedOperators {\n\t\tallowedStrs[i] = string(op)\n\t}\n\treturn fmt.Errorf(\"unsupported filter operator %q for attribute %q: only %s allowed\",\n\t\tf.Operator, f.Attribute, strings.Join(allowedStrs, \", \"))\n}\n\n// tokenize splits the filter string into tokens: attribute, operator, [value].\n// Handles quoted values with escaped quotes inside.\nfunc tokenize(filter string) ([]string, error) {\n\tvar tokens []string\n\tvar current strings.Builder\n\tinQuotes := false\n\tescapeNext := false\n\n\tfor i := 0; i < len(filter); i++ {\n\t\tc := filter[i]\n\n\t\tif escapeNext {\n\t\t\tcurrent.WriteByte(c)\n\t\t\tescapeNext = false\n\t\t\tcontinue","sourceCodeStart":181,"sourceCodeEnd":217,"githubUrl":"https://github.com/rancher/rancher/blob/932558d4e68565aff2d2f36e89ec4a391b06e7c5/pkg/auth/providers/scim/filter.go#L181-L217","documentation":"Error \"unsupported filter operator %q for attribute %q: only %s allowed\" thrown in rancher/rancher.","triggerScenarios":"Thrown at pkg/auth/providers/scim/filter.go:199 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":"932558d4e68565aff2d2f36e89ec4a391b06e7c5","analyzedAt":"2026-08-16T04:37:02.125Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}